Jump to content

Trying to install Wireguard plugin with OMV6 results in Odroid HC2 being stuck in bootloader


cidra

Recommended Posts

I already posted the question in the Odroid forum. I decided to post it here too since it may be more inherent to the Armbian OS.

 

I used both Armbian_23.02.3_Odroidxu4_bullseye_current_5.4.239.img from the odroidxu4 archive and Armbian-unofficial_23.11.0-trunk_Odroidxu4_bullseye_current_6.1.63 generated from the Armbian build script. (Base CLI Image).

 

After flashing the former image and then installing OMV6, this is the output that OMV6 gives me when installing the openmediavault-wireguard plugin:
 

Spoiler
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  linux-image-6.1.0-0.deb11.13-rt-armmp linux-image-rt-armmp wireguard
  wireguard-tools
Suggested packages:
  linux-doc-6.1 debian-kernel-handbook openresolv | resolvconf
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-6.1.0-0.deb11.13-rt-armmp linux-image-rt-armmp
  openmediavault-wireguard wireguard wireguard-tools
0 upgraded, 5 newly installed, 0 to remove and 8 not upgraded.
Need to get 41.4 MB of archives.
After this operation, 203 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf wireguard-tools armhf 1.0.20210223-1 [78.1 kB]
Get:2 http://httpredir.debian.org/debian bullseye-backports/main armhf linux-image-6.1.0-0.deb11.13-rt-armmp armhf 6.1.55-1~bpo11+1 [41.3 MB]
Get:3 http://deb.debian.org/debian bullseye/main armhf wireguard all 1.0.20210223-1 [8164 B]
Get:4 https://openmediavault-plugin-developers.github.io/packages/debian shaitan/main armhf openmediavault-wireguard all 6.3.7 [19.2 kB]
Get:5 http://httpredir.debian.org/debian bullseye-backports/main armhf linux-image-rt-armmp armhf 6.1.55-1~bpo11+1 [1500 B]
Fetched 41.4 MB in 2s (23.0 MB/s)
Selecting previously unselected package linux-image-6.1.0-0.deb11.13-rt-armmp.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 45551 files and directories currently installed.)
Preparing to unpack .../linux-image-6.1.0-0.deb11.13-rt-armmp_6.1.55-1~bpo11+1_armhf.deb ...
Unpacking linux-image-6.1.0-0.deb11.13-rt-armmp (6.1.55-1~bpo11+1) ...
Selecting previously unselected package linux-image-rt-armmp.
Preparing to unpack .../linux-image-rt-armmp_6.1.55-1~bpo11+1_armhf.deb ...
Unpacking linux-image-rt-armmp (6.1.55-1~bpo11+1) ...
Selecting previously unselected package wireguard-tools.
Preparing to unpack .../wireguard-tools_1.0.20210223-1_armhf.deb ...
Unpacking wireguard-tools (1.0.20210223-1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20210223-1_all.deb ...
Unpacking wireguard (1.0.20210223-1) ...
Selecting previously unselected package openmediavault-wireguard.
Preparing to unpack .../openmediavault-wireguard_6.3.7_all.deb ...
Unpacking openmediavault-wireguard (6.3.7) ...
Setting up linux-image-6.1.0-0.deb11.13-rt-armmp (6.1.55-1~bpo11+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-5.4.239-odroidxu4
I: /initrd.img.old is now a symlink to boot/initrd.img-5.4.239-odroidxu4
I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-0.deb11.13-rt-armmp
I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-0.deb11.13-rt-armmp
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-0.deb11.13-rt-armmp:.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-0.deb11.13-rt-armmp
update-initramfs: Converting to u-boot format
Setting up wireguard-tools (1.0.20210223-1) ...
wg-quick.target is a disabled or a static unit, not starting it.
Setting up linux-image-rt-armmp (6.1.55-1~bpo11+1) ...
Setting up wireguard (1.0.20210223-1) ...
Setting up openmediavault-wireguard (6.3.7) ...
Updating configuration database ...
net.ipv4.ip_forward = 1
modprobe: FATAL: Module wireguard not found in directory /lib/modules/5.4.239-odroidxu4
Processing triggers for man-db (2.9.4-2) ...
Processing triggers for openmediavault (6.9.8-1) ...
Updating workbench configuration files ...
Restarting engine daemon ...

END OF LINE

 

Then, after rebooting, here is the output of minicom:

Spoiler
U-Boot 2017.05-armbian (Apr 04 2023 - 04:20:05 +0000) for ODROID-XU4

CPU:   Exynos5422 @ 800 MHz
Model: Odroid XU4 based on EXYNOS5422
Board: Odroid XU4 based on EXYNOS5422
Type:  unknown
DRAM:  2 GiB
MMC:   EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
MMC Device 0 ( SD ): 59.5 GiB
Card did not respond to voltage select!
mmc_init: -95, time 12
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press quickly 'Enter' twice to stop autoboot:  0 
** File not found /boot.ini **
## Executing script at 43e00000
Wrong image format for "source" command
13433 bytes read in 40 ms (327.1 KiB/s)
## Executing script at 43e00000
** File not found /boot/armbianEnv.txt **
** Unrecognized filesystem type **
** File not found armbianEnv.txt **
7386616 bytes read in 594 ms (11.9 MiB/s)
35334161 bytes read in 2680 ms (12.6 MiB/s)
0 bytes read in 34 ms (0 Bytes/s)
Found mainline kernel configuration
87881 bytes read in 90 ms (953.1 KiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x40008000 [ 0x000000 - 0x70b5f8 ]
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    35334097 Bytes = 33.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
** File not found /boot.scr **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
mmc_init: -110, time 100
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0:   USB EHCI 1.00
USB1:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... XHCI timeout on event type 33... cannot recover.
BUG: failure at drivers/usb/host/xhci-ring.c:467/xhci_wait_for_event()!
BUG!
resetting ...


U-Boot 2017.05-armbian (Apr 04 2023 - 04:20:05 +0000) for ODROID-XU4

CPU:   Exynos5422 @ 800 MHz
Model: Odroid XU4 based on EXYNOS5422
Board: Odroid XU4 based on EXYNOS5422
Type:  unknown
DRAM:  2 GiB
MMC:   EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
MMC Device 0 ( SD ): 59.5 GiB
Card did not respond to voltage select!
mmc_init: -95, time 11
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press quickly 'Enter' twice to stop autoboot:  0 
** File not found /boot.ini **
## Executing script at 43e00000
Wrong image format for "source" command
13433 bytes read in 41 ms (319.3 KiB/s)
## Executing script at 43e00000
** File not found /boot/armbianEnv.txt **
** Unrecognized filesystem type **
** File not found armbianEnv.txt **
7386616 bytes read in 599 ms (11.8 MiB/s)
35334161 bytes read in 2699 ms (12.5 MiB/s)
0 bytes read in 34 ms (0 Bytes/s)
Found mainline kernel configuration
87881 bytes read in 90 ms (953.1 KiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x40008000 [ 0x000000 - 0x70b5f8 ]
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    35334097 Bytes = 33.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
** File not found /boot.scr **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
mmc_init: -110, time 101
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0:   USB EHCI 1.00
USB1:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... Device NOT ready
   Request Sense returned 04 44 81
2 USB Device(s) found
scanning bus 2 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 1 Ethernet Device(s) found

USB device 0: 
    Device 0: not available
Waiting for Ethernet connection... done.
BOOTP broadcast 1

And the ODROID doesn't go further. It stays stuck at  "BOOTP broadcast 1".

 

Next, I tried to repeat the same steps with the image generated from the Armbian build script. Here is the output of OMV6 when installing openmediavault-wireguard:

Spoiler
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  linux-image-6.1.0-0.deb11.13-rt-armmp linux-image-rt-armmp wireguard
Suggested packages:
  linux-doc-6.1 debian-kernel-handbook
Recommended packages:
  firmware-linux-free apparmor
The following NEW packages will be installed:
  linux-image-6.1.0-0.deb11.13-rt-armmp linux-image-rt-armmp
  openmediavault-wireguard wireguard
0 upgraded, 4 newly installed, 0 to remove and 0 not upgraded.
Need to get 41.3 MB of archives.
After this operation, 203 MB of additional disk space will be used.
Get:1 http://httpredir.debian.org/debian bullseye-backports/main armhf linux-image-6.1.0-0.deb11.13-rt-armmp armhf 6.1.55-1~bpo11+1 [41.3 MB]
Get:2 http://deb.debian.org/debian bullseye/main armhf wireguard all 1.0.20210223-1 [8164 B]
Get:3 https://openmediavault-plugin-developers.github.io/packages/debian shaitan/main armhf openmediavault-wireguard all 6.3.7 [19.2 kB]
Get:4 http://httpredir.debian.org/debian bullseye-backports/main armhf linux-image-rt-armmp armhf 6.1.55-1~bpo11+1 [1500 B]
Armbian live patch apt
gpg: keyblock resource '/usr/share/keyrings/armbian.gpg': No such file or directory
Fetched 41.3 MB in 2s (23.3 MB/s)
Selecting previously unselected package linux-image-6.1.0-0.deb11.13-rt-armmp.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 45649 files and directories currently installed.)
Preparing to unpack .../linux-image-6.1.0-0.deb11.13-rt-armmp_6.1.55-1~bpo11+1_armhf.deb ...
Unpacking linux-image-6.1.0-0.deb11.13-rt-armmp (6.1.55-1~bpo11+1) ...
Selecting previously unselected package linux-image-rt-armmp.
Preparing to unpack .../linux-image-rt-armmp_6.1.55-1~bpo11+1_armhf.deb ...
Unpacking linux-image-rt-armmp (6.1.55-1~bpo11+1) ...
Selecting previously unselected package wireguard.
Preparing to unpack .../wireguard_1.0.20210223-1_all.deb ...
Unpacking wireguard (1.0.20210223-1) ...
Selecting previously unselected package openmediavault-wireguard.
Preparing to unpack .../openmediavault-wireguard_6.3.7_all.deb ...
Unpacking openmediavault-wireguard (6.3.7) ...
Setting up linux-image-6.1.0-0.deb11.13-rt-armmp (6.1.55-1~bpo11+1) ...
I: /vmlinuz is now a symlink to boot/vmlinuz-6.1.0-0.deb11.13-rt-armmp
I: /initrd.img is now a symlink to boot/initrd.img-6.1.0-0.deb11.13-rt-armmp
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-0.deb11.13-rt-armmp:.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-0.deb11.13-rt-armmp
update-initramfs: Armbian: Converting to u-boot format: /boot/uInitrd-6.1.0-0.deb11.13-rt-armmp
Image Name:   uInitrd
Created:      Tue Nov 28 12:16:27 2023
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    35322329 Bytes = 34494.46 KiB = 33.69 MiB
Load Address: 00000000
Entry Point:  00000000
update-initramfs: Armbian: Symlinking /boot/uInitrd-6.1.0-0.deb11.13-rt-armmp to /boot/uInitrd
'/boot/uInitrd' -> 'uInitrd-6.1.0-0.deb11.13-rt-armmp'
update-initramfs: Armbian: done.
Setting up linux-image-rt-armmp (6.1.55-1~bpo11+1) ...
Setting up wireguard (1.0.20210223-1) ...
Setting up openmediavault-wireguard (6.3.7) ...
Updating configuration database ...
net.ipv4.ip_forward = 1
Processing triggers for openmediavault (6.9.8-1) ...
Updating workbench configuration files ...

** CONNECTION LOST **

 

And here is the output of minicom:

Spoiler
U-Boot 2017.05-armbian (Nov 03 2023 - 07:18:59 +0000) for ODROID-XU4

CPU:   Exynos5422 @ 800 MHz
Model: Odroid XU4 based on EXYNOS5422
Board: Odroid XU4 based on EXYNOS5422
Type:  unknown
DRAM:  2 GiB
MMC:   EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
MMC Device 0 ( SD ): 59.5 GiB
Card did not respond to voltage select!
mmc_init: -95, time 11
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press quickly 'Enter' twice to stop autoboot:  0 
** File not found /boot.ini **
## Executing script at 43e00000
Wrong image format for "source" command
13433 bytes read in 43 ms (304.7 KiB/s)
## Executing script at 43e00000
64 bytes read in 49 ms (1000 Bytes/s)
8421056 bytes read in 680 ms (11.8 MiB/s)
35322393 bytes read in 2694 ms (12.5 MiB/s)
0 bytes read in 39 ms (0 Bytes/s)
Found mainline kernel configuration
83327 bytes read in 96 ms (846.7 KiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x40008000 [ 0x000000 - 0x807ec0 ]
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    35322329 Bytes = 33.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
** File not found /boot.scr **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
mmc_init: -110, time 100
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0:   USB EHCI 1.00
USB1:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... XHCI timeout on event type 33... cannot recover.
BUG: failure at drivers/usb/host/xhci-ring.c:467/xhci_wait_for_event()!
BUG!
resetting ...


U-Boot 2017.05-armbian (Nov 03 2023 - 07:18:59 +0000) for ODROID-XU4

CPU:   Exynos5422 @ 800 MHz
Model: Odroid XU4 based on EXYNOS5422
Board: Odroid XU4 based on EXYNOS5422
Type:  unknown
DRAM:  2 GiB
MMC:   EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
MMC Device 0 ( SD ): 59.5 GiB
Card did not respond to voltage select!
mmc_init: -95, time 11
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   No ethernet found.
Press quickly 'Enter' twice to stop autoboot:  0 
** File not found /boot.ini **
## Executing script at 43e00000
Wrong image format for "source" command
13433 bytes read in 50 ms (261.7 KiB/s)
## Executing script at 43e00000
64 bytes read in 56 ms (1000 Bytes/s)
8421056 bytes read in 688 ms (11.7 MiB/s)
35322393 bytes read in 2706 ms (12.4 MiB/s)
0 bytes read in 46 ms (0 Bytes/s)
Found mainline kernel configuration
83327 bytes read in 103 ms (790 KiB/s)
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
Kernel image @ 0x40008000 [ 0x000000 - 0x807ec0 ]
## Loading init Ramdisk from Legacy Image at 42000000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    35322329 Bytes = 33.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Ramdisk image is corrupt or invalid
** File not found /boot.scr **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
** Invalid partition 2 **
## Executing script at 43e00000
Wrong image format for "source" command
mmc_init: -110, time 101
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
starting USB...
USB0:   USB EHCI 1.00
USB1:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
USB2:   Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
scanning bus 1 for devices... Device NOT ready
   Request Sense returned 04 44 81
2 USB Device(s) found
scanning bus 2 for devices... cannot reset port 1!?
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found

USB device 0: 
    Device 0: not available
No ethernet found.
missing environment variable: pxeuuid
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm-exynos
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default-arm
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/default
No ethernet found.
Config file not found
No ethernet found.
No ethernet found.
mmc block read, dev 0, addr 0x40008000, blk start 2047, blk cnt 16384
Bad Linux ARM zImage magic!
Exynos5422 # 

 

What could be the issue?

Thanks in advance for your help.

Edited by cidra
Link to comment
Share on other sites

33 minutes ago, cidra said:

What could be the issue?

 

Quick quess. Bug in OMV wireguard install scripts or Wireguard package dependency which removes Armbian firmware and installs kernel that has no support for Odroid XU4.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines