ODROID-HC2: Doesn't boot after update

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

ODROID-HC2: Doesn't boot after update

Postby sheevaplugger » Mon May 31, 2021 8:04 pm

Hello *,

my System: ODROID-HC2 with WD Red 4GB

I installed alarm like described: https://archlinuxarm.org/platforms/armv ... odroid-hc2

System boots fine (first time).

After pacman -Syu, a shutdown -h now and a complete power off: the system doesn't not boot again (the blue LED doesn't light, HDD doesn't spin up).

I tried it several times. Any ideas?

I have experience with XU4, C1, C2 with alarm.
sheevaplugger
 
Posts: 22
Joined: Thu May 13, 2010 6:08 pm

Re: ODROID-HC2: Doesn't boot after update

Postby gangely » Tue Jun 01, 2021 8:26 am

I have the same problem after upgrading to linux-odroid-xu3-4.14.180-2-armv7h.pkg.tar.xz

With the USB-UART Kit, it appears that the boot process starts normally: initramfs-linux.img is loaded, but it stops at 'starting kernel'.
I could replicate on an HC2, an XU4 and an XQ4.

When rewriting the zImage and initramfs-linux.img with the former version (*) , boot proceeds normally
(you still have to downgrade the linux-odroid-xu3 package; initramfs will be rewritten, but all is working after that)

(*) zImage and initramfs-linux.img from Feb 6 00:01 ArchLinuxARM-odroid-xu3-latest.tar.gz (size= 487055548) are OK
gangely
 
Posts: 7
Joined: Thu Jul 09, 2015 9:39 am

Re: ODROID-HC2: Doesn't boot after update

Postby moonman » Tue Jun 01, 2021 4:08 pm

I cannot replicate on XU4

$this->bbcode_second_pass_code('', '[oleg@xu4 ~]$ uname -a
Linux xu4 4.14.180-2-ARCH #1 SMP PREEMPT Thu May 13 06:44:05 UTC 2021 armv7l GNU/Linux
[oleg@xu4 ~]$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x100
[ 0.000000] Linux version 4.14.180-2-ARCH (builduser@leming) (gcc version 10.2.0 (GCC)) #1 SMP PREEMPT Thu May 13 06:44:05 UTC 2021
.
.
.')

Do you have more logs? Does it just hang on "Starting kernel" and shows nothing after? Were any parameters changed in boot.txt?
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ODROID-HC2: Doesn't boot after update

Postby gangely » Wed Jun 02, 2021 7:18 am

$this->bbcode_second_pass_quote('', 'D')o you have more logs? Does it just hang on "Starting kernel" and shows nothing after? Were any parameters changed in boot.txt?


1. this is the log from screen, with 4.14.180-2 zImage

$this->bbcode_second_pass_code('', 'U-Boot 2018.01-2 (Feb 15 2018 - 02:09:52 +0000) Arch Linux ARM

CPU: Exynos5422 @ 800 MHz
Model: Odroid XU3 based on EXYNOS5422
Board: Odroid XU3 based on EXYNOS5422
Type: xu4
DRAM: 2 GiB
MMC: EXYNOS DWMMC: 0, EXYNOS DWMMC: 1
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: No ethernet found.
Hit any key to stop autoboot: 0
mmc_init: -5, time 4
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2214 bytes read in 23 ms (93.8 KiB/s)
## Executing script at 50000000
6086616 bytes read in 478 ms (12.1 MiB/s)
63518 bytes read in 58 ms (1 MiB/s)
6805330 bytes read in 528 ms (12.3 MiB/s)
Kernel image @ 0x42000000 [ 0x000000 - 0x5cdfd8 ]
## Flattened Device Tree blob at 43000000
Booting using the fdt blob at 0x43000000
Loading Ramdisk to 4f982000, end 4ffff752 ... OK
Loading Device Tree to 4f96f000, end 4f98181d ... OK

Starting kernel ...')
2. nothing more is shown

3. yes, setenv was changed to use a root partition on a SSD connected on USB3

$this->bbcode_second_pass_code('', 'part uuid ${devtype} ${devnum}:${bootpart} uuid
### gea 20210526 xu4 root on ssd ###
#setenv bootargs "console=tty1 console=ttySAC2,115200n8 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr=${macaddr} ${videoconfig}"
setenv bootargs "console=tty1 console=ttySAC2,115200n8 root=/dev/sda1 rw rootwait smsc95xx.macaddr=${macaddr} ${videoconfig}"
###')
I had same observation on an HC2 with root on a HDD, but as for the XU4, it does not affect every boot; sometimes (?) the boot will proceed up to login.

This is my present /boot on ODROID-XU4. It was a fresh installation upgrade to 4.14.180-2, then -as it will not boot- patched with the original zImage, and finally downgraded to 4.14.180-1.
$this->bbcode_second_pass_code('', '// ls -l boot
total 51804
-rw-r--r-- 1 root root 15360 Feb 15 2018 bl1.bin
-rw-r--r-- 1 root root 14592 Feb 15 2018 bl2.bin
-rw-r--r-- 1 root root 2214 May 30 12:56 boot.scr
-rw-r--r-- 1 root root 2142 May 29 13:09 boot.txt
-rw-r--r-- 1 root root 1974 Feb 15 2018 boot.txt.xu3
drwxr-xr-x 2 root root 4096 Jun 1 22:46 dtbs
-rw-r--r-- 1 root root 6805382 Jun 1 22:46 initramfs-linux.img
-rw-r--r-- 1 root root 6700978 Feb 5 23:58 initramfs-linux.img.xu3
-rw-r--r-- 1 root root 6805382 May 30 13:02 initramfs-linux.img.4.14.180-1
-rw-r--r-- 1 root root 6805382 May 31 21:14 initramfs-linux.img.4.14.180-1-20210531-2114
-rw-r--r-- 1 root root 6805330 May 31 13:41 initramfs-linux.img.4.14.180-2
-rwxr-xr-x 1 root root 239 Feb 15 2018 mkscr
-rwxr-xr-x 1 root root 1746 Feb 15 2018 sd_fusing.sh
-rw-r--r-- 1 root root 262144 Feb 15 2018 tzsw.bin
-rw-r--r-- 1 root root 575173 Feb 15 2018 u-boot.bin
-rwxr-xr-x 1 root root 6065776 May 26 2020 zImage
-rwxr-xr-x 1 root root 6086616 May 13 08:26 zImage.4.14.180-2
-rwxr-xr-x 1 root root 6065776 May 26 2020 zImage.xu3.4.14.180-1')
gangely
 
Posts: 7
Joined: Thu Jul 09, 2015 9:39 am

Re: ODROID-HC2: Doesn't boot after update

Postby moonman » Wed Jun 02, 2021 11:13 pm

Please try this https://olegtown.pw/Public/ArchLinuxArm/xu4/

I reverted the only change that was in the latest commit (besides the patch), it shouldn't be causing this issue though, but doesn't hurt to try.

$this->bbcode_second_pass_code('', 'wget https://olegtown.pw/Public/ArchLinuxArm/xu4/linux-odroid-xu3-4.14.180-2.1-armv7h.pkg.tar.xz
sudo pacman -U linux-odroid-xu3-4.14.180-2.1-armv7h.pkg.tar.xz')

It boots up every time for me on xu4 too. I don't have the HC2 unfortunately to try this myself.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ODROID-HC2: Doesn't boot after update

Postby gangely » Thu Jun 03, 2021 9:49 am

Hello,
Nice work, it's OK for me.
linux-odroid-xu3-4.14.180-2.1 booted each time I tried warm reboot and poweroff/cold boot:
- on XU4, with original setenv (root on the uSD)
- on XU4, with root on a SSD on USB3
- on HC2, with root on the HD (in a BTRFS subfolder)

Thank you very much for the correction.

BTW, if you use it, which graphics driver do you use on the XU4?
gangely
 
Posts: 7
Joined: Thu Jul 09, 2015 9:39 am

Re: ODROID-HC2: Doesn't boot after update

Postby moonman » Sat Jun 05, 2021 8:45 pm

Thank you for testing.
Looks like this issue isn't new https://github.com/hardkernel/linux/issues/337 , yet it was working fine on my XU4, but obviously it doesn't work on every device.
This change has been reverted.

I do not use graphics output on XU4
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: ODROID-HC2: Doesn't boot after update

Postby sheevaplugger » Sun Jun 06, 2021 6:50 pm

Thank you for the fix. I started from scratch with a fresh installation, updated the system (with linux-odroid-xu3 (4.14.180-3) and system reboots successfully after shutdown. :)
sheevaplugger
 
Posts: 22
Joined: Thu May 13, 2010 6:08 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 7 guests