HC4 unable to boot

Post Reply
stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

HC4 unable to boot

Post by stanko »

Hi guys,

I just got my new HC4 devices I bought 2 with the goal to use OMV on it. I wish to use both SATA ports (HDD/SSD drives) for data ONLY and to boot the OS from microSD. I am using the official recommended power supply.

I have managed to get one working. I have installed Debian via netboot_default (`5.9.0-odroid-arm64 #1 SMP PREEMPT Debian 5.9.8-202011142254~buster (2020-11-14) aarch64`) installed OMV5 and it is running all good and (hopefully) stable (for now and hopefully for the foreseeable future).

At first I had issues getting it to boot via the microSD card but after testing different microSD card brands and versions it seems that some cards work and others don't.

Tested microSD cards:
- SAMSUNG EVO Plus microSDHC 32GB CLASS 10 - NOT WORKING
- SanDisk Ultra microSDHC 16GB HC I 10 A1 - WORKS!
- SanDisk Extreme microSDHC 32GB HC I V30 U3 A1 - WORKS!

Installing via netboot wasn't an issue only booting it after the install was the problem with SAMSUNG EVO microSD cards. So if anyone is having issues with microSD booting the system it might be an issue with brand and type.

Other tested boot options:
- SATA SSD - WORKS!
- USB to SATA SSD - WORKS!

So getting the first one working required some time and testing but now it is up and running.


Now the second HC4 I am unable to get it to run any installed OS. When turning on the unit petitboot is up and running, it is all working. I am able to update petitboot version via `pb-update` (20201005, 20201101, 20201112). The unit is able to execute netboot and install Debian or Ubuntu. But when trying to boot Debian or Ubuntu installed via netboot_default or any C4/HC4 compatible image (Armbian, Debian 4.9) it will stop at a certain point. This issue happens regardless if trying to boot via SATA SSD or microSD.

This is the screen output where the boot stops when running Debian:
hc4_01.png
hc4_01.png (2.13 MiB) Viewed 351 times
hc4_02.png
hc4_02.png (2.86 MiB) Viewed 351 times
hc4_03.png
hc4_03.png (2.86 MiB) Viewed 351 times
hc4_04.png
hc4_04.png (2.37 MiB) Viewed 351 times
I would like point out that when swapping the microSD/SSD between the first HC4 (working) and the second HC4 (non working) it will successfully boot on the first unit and fail on the second one. The microSD/SSD installed via the second HC4 unit will successfully boot on the first one.

My question is if this would indicate a certain hardware failure/issue with the unit or if this could by any chance be a software issue?

I hope my post is not too verbose and that I am not wasting your time. If there is any more information needed please let me know.

Kind regards,

Stanko

mad_ady
Posts: 8825
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 529 times
Contact:

Re: HC4 unable to boot

Post by mad_ady »

Do you have the same petitboot version on both systems?

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

mad_ady wrote:
Mon Nov 16, 2020 3:51 am
Do you have the same petitboot version on both systems?
No. First (working) is on 20201101. Second (non working) is currently on 20201112. I have tried second HC4 with versions 20201005, 20201101 and 20201112 of petitboot.

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by peppoonline »

Mhhhh, sounds nice. And you have zero freezes with the working HC4? I tried exaclty the same and mine can't even finish the OMV installation :)
Try and error time ;)

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

peppoonline wrote:
Mon Nov 16, 2020 4:47 am
Mhhhh, sounds nice. And you have zero freezes with the working HC4? I tried exaclty the same and mine can't even finish the OMV installation :)
Try and error time ;)
So far it is stable (23h uptime). I still need to fully test it (stress test etc.) I am waiting for the NAS HDDs. I am running a couple of OMV plugins and a couple of dockers and for now it is working all good. SSD/HDD Hot hot plugging works fine. I got these yesterday so it might be early to say for sure but I am happy with the one that works :D , but the seconds one I am not sure what is the issue and how to resolve it. Hope we sort this out.

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by peppoonline »

So weird.... I just did a fresh SSD Install with the same petitboot firmware, as you said and I am still getting them freezes.

Yeah, new product...I think I will take some days off from my odroid, because I spent so many hours in the last 2 days, with zero success :/

But I'll follow your thread and hope yours is stable :)

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

I just tested:
- ubuntu-20.04-4.9-minimal-odroid-c4-hc4-20201015.img - NOT WORKING
- https://github.com/CoreELEC/CoreELEC/re ... HC4.img.gz - and this OS works!!!

So I think we can probably rule this out as a hardware issue? I am guessing this might have something to do with the cpuinfo_max_freq as this seems to be one of the main differences.

first HC4 - Debian 10

Code: Select all

uname -a
Linux toaster 5.9.0-odroid-arm64 #1 SMP PREEMPT Debian 5.9.8-202011142254~buster (2020-11-14) aarch64 GNU/Linux
cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq 
2016000
2016000
2016000
2016000
second HC4 - CoreELEC

Code: Select all

CoreELEC (official): 9.2.5 (Amlogic-ng.arm)
CoreELEC:~ # uname -a
Linux CoreELEC 4.9.113 #1 SMP PREEMPT Wed Oct 28 12:05:30 EDT 2020 aarch64 GNU/Linux
CoreELEC:~ # cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
1908000
1908000
1908000
1908000
Is it possible I am having Silicon Lottery with the first and it is working with higher clocks? Also shouldn't the HC4 work at 1.800GHz? Anyways I think this is good news and that it might be a software miss-configuration issue or that maybe the CPU shouldn't run at higher clock speeds.

Is there a way to down-clock `cpuinfo_max_freq` for Ubuntu or preferably Debian and of course could this be the actual issue in the first place?

I leave it at that for now and hopefully someone more knowledgeable will leave a comment :).

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

@stanko,

Can you please download and replace /dtbs/amlogic/5.9.0-odroid-arm64/meson64_odroidhc4.dtb in the your storage which does not work? The new device tree has upto 1.8GHz CPU frequency tables.
https://drive.google.com/file/d/1EMUoDg ... sp=sharing

ODROID-HC4 should work at 1.8GHz max. The 5.9 custom kernel for ODROID-HC4 has not limited in the device tree but limited to 1.8GHz using cpufrequtils, looks like it does not work properly.

EDIT: do you have the models of 2GB or 4GB?

peppoonline
Posts: 36
Joined: Fri Nov 13, 2020 5:48 pm
languages_spoken: english
ODROIDs: HC4
Has thanked: 0
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by peppoonline »

I just did what you suggested, but it doesn't change the frequency... I verified that your file is present under "/dtbs/amlogic/5.9.0-odroid-arm64/"

Code: Select all

eag@odroid:~$ uname -a
Linux odroid 5.9.0-odroid-arm64 #1 SMP PREEMPT Debian 5.9.8-202011142254~buster (2020-11-14) aarch64 GNU/Linux
eag@odroid:~$ cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
2016000
2016000
2016000
2016000
My ubuntu-20.04-4.9-minimal-odroid-c4-hc4-20201015.img (flashed to µSD), which is stable, has exactly the clock speeds you mentioned.

Code: Select all

root@odroid:/home/eag# uname -a
Linux odroid 4.9.236-51 #1 SMP PREEMPT Tue Nov 10 12:53:39 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
root@odroid:/home/eag# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq
1800000
1800000
1800000
1800000
Anything else to check? :)
4GB, didn't knew there was a 2GB version.

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

tobetter wrote:
Mon Nov 16, 2020 9:23 am
@stanko,

Can you please download and replace /dtbs/amlogic/5.9.0-odroid-arm64/meson64_odroidhc4.dtb in the your storage which does not work? The new device tree has upto 1.8GHz CPU frequency tables.
https://drive.google.com/file/d/1EMUoDg ... sp=sharing

ODROID-HC4 should work at 1.8GHz max. The 5.9 custom kernel for ODROID-HC4 has not limited in the device tree but limited to 1.8GHz using cpufrequtils, looks like it does not work properly.

EDIT: do you have the models of 2GB or 4GB?
Hi @tobetter

I have tested the file and sadly its still the same will not boot:
Stops here again
S02_hc4_01.png
S02_hc4_01.png (2.59 MiB) Viewed 257 times
This is what changed:

Code: Select all

/media/stanko/4555d0c3-d237-4ca6-9486-70514c7c56cb/dtbs/5.9.0-odroid-arm64/amlogic$ ls -l
total 674
-rwxr-xr-x 1 root root 37763 nov 14 14:59 meson64_odroidc2.dtb
-rwxr-xr-x 1 root root 72909 nov 14 14:59 meson64_odroidc4.dtb
-rwxr-xr-x 1 root root 72793 nov 16 12:07 meson64_odroidhc4.dtb
-rwxr-xr-x 1 root root 72973 nov 14 14:59 meson64_odroidhc4.dtb.original
-rwxr-xr-x 1 root root 78459 nov 14 14:59 meson64_odroidn2.dtb
-rwxr-xr-x 1 root root 78495 nov 14 14:59 meson64_odroidn2_plus.dtb
-rwxr-xr-x 1 root root 77117 nov 14 14:59 meson-g12b-odroid-n2.dtb
-rwxr-xr-x 1 root root 37763 nov 14 14:59 meson-gxbb-odroidc2.dtb
-rwxr-xr-x 1 root root 72876 nov 14 14:59 meson-sm1-odroid-c4.dtb
-rwxr-xr-x 1 root root 73137 nov 14 14:59 meson-sm1-odroid-hc4.dtb
stanko@stanko:/media/stanko/4555d0c3-d237-4ca6-9486-70514c7c56cb/dtbs/5.9.0-odroid-arm64/amlogic$ sha1sum meson64_odroidhc4.dtb
0a8243a5d8847bb28510b8ea97d70a45d7c01848  meson64_odroidhc4.dtb
stanko@stanko:/media/stanko/4555d0c3-d237-4ca6-9486-70514c7c56cb/dtbs/5.9.0-odroid-arm64/amlogic$ sha1sum meson64_odroidhc4.dtb.original 
2470cf33f0c2cdb731a68cf4446126a169ceb912  meson64_odroidhc4.dtb.original
This is Debian image installed via netboot. I put the checksum of the files as well.
If there is anything else we can try please let me know. I will test as soon as I can.

Both of my HC4 are 4GB

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

@stanko, can you please create a file /etc/default/cpufrequtils with this and boot again?

Code: Select all

GOVERNOR=performance
MIN_SPEED="1000MHZ"
MAX_SPEED="1800MHZ"
I am checking the device tree if I made a mistake... :(
These users thanked the author tobetter for the post:
stanko (Tue Nov 17, 2020 12:15 am)

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

tobetter wrote:
Mon Nov 16, 2020 11:00 pm
@stanko, can you please create a file /etc/default/cpufrequtils with this and boot again?

Code: Select all

GOVERNOR=performance
MIN_SPEED="1000MHZ"
MAX_SPEED="1800MHZ"
I am checking the device tree if I made a mistake... :(
Hi @tobetter

I did exactly what you said and now it WORKS :D ! It is able to boot and I am able to login install software etc. (it looks good now). Max freq is now 1800000. So maybe my guess about the silicon lottery has some merit? I don't have time to fully test the systems stability today or tomorrow but it looks like this is a step in the right direction. Hope this helps you or anyone else who might be experiencing this or a similar problem :). Will report back after further testing my results.

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

stanko wrote:
Tue Nov 17, 2020 12:28 am
tobetter wrote:
Mon Nov 16, 2020 11:00 pm
@stanko, can you please create a file /etc/default/cpufrequtils with this and boot again?

Code: Select all

GOVERNOR=performance
MIN_SPEED="1000MHZ"
MAX_SPEED="1800MHZ"
I am checking the device tree if I made a mistake... :(
Hi @tobetter

I did exactly what you said and now it WORKS :D ! It is able to boot and I am able to login install software etc. (it looks good now). Max freq is now 1800000. So maybe my guess about the silicon lottery has some merit? I don't have time to fully test the systems stability today or tomorrow but it looks like this is a step in the right direction. Hope this helps you or anyone else who might be experiencing this or a similar problem :). Will report back after further testing my results.
Oh...Thanks for confirmation...
It's my bad...somehow it's not set after the package installation.
Your confirmation helps me a lot and the fix to set the same is already uploaded so other would not have the same issue...I hope so.

Please test your device whenever you have time and keep posting the status here...so I can help you futher more.

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

Hi @tobetter

I have took some time to install OMV on the second unit and sadly seems that it is failing during installation.

It failed on me twice at:

Code: Select all

...
Setting up Salt environment ...

Setting up system ...
Deploying service configurations ...
At that point the HC4 blocks and if I ping it it will block and not respond back.

After the block when powering off and on the unit back it will fail to boot:
S02_hc4_02.png
S02_hc4_02.png (3.93 MiB) Viewed 216 times

S02_hc4_03.png
S02_hc4_03.png (3.28 MiB) Viewed 216 times
After the reinstall via netboot now I am able to login but eventually the system hangs.

I checked max cpu and it is reporting differently than when I manually modified the files:

Code: Select all

root@debian:~# cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_max_freq 
2016000
2016000
2016000
2016000
root@debian:~# cat /etc/default/
bsdmainutils   cron           hwclock        networking     ssh            
console-setup  dbus           keyboard       nss            useradd        
cpufrequtils   flash-kernel   locale         rsyslog        
root@debian:~# cat /etc/default/c
console-setup  cpufrequtils   cron           
root@debian:~# cat /etc/default/cpufrequtils 
GOVERNOR=performance
MIN_SPEED="1000MHZ"
MAX_SPEED="1800MHZ"
root@debian:~# 
So I would say that it is an improvement but seems that the system is not fully stable. I am unsure what could be the cause here. If this is SW issue or HW issue. Any ideas what how can this be confirmed?

Sorry for the bad news but don't shoot the messenger ;)

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

Sorry to hear the issue again.

I guess it's because of the voltage tolerance for CPU. Since cpuinfo_max_freq shows 2016000, I think you have not replace the device tree file meson64_odroidhc4.dtb with the one in the link. This device tree is not applied and uploaded to my package server yet, so you need to update it manually.
https://drive.google.com/file/d/1EMUoDg ... sp=sharing

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

@stanko, can you try new device tree file in the link? Please replace it with meson64_odroidhc4.dtb and check /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies if your HC4 boots.
https://drive.google.com/file/d/1vuryR5 ... sp=sharing

odanmag
Posts: 19
Joined: Thu Feb 02, 2017 12:28 am
languages_spoken: english
ODROIDs: 2 x Odroid C2, 2 x Odroid C4, 2 x Odroid HC4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: HC4 unable to boot

Post by odanmag »

Got my 2 HC4 devices. I plugged in the fist one today 2 x 4TB WD HD and started Petitboot. I run Debian installer via netboot_default. I selected RAID1, LVM and encryption. Installer said all’s right. Restarted, but HD doesn’t boot, instead Petitboot appears. I updated Petitboot to latest firmware, not better, HD didn’t boot. Any idea what I can do ?

User avatar
tobetter
Posts: 6622
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 328 times
Been thanked: 921 times
Contact:

Re: HC4 unable to boot

Post by tobetter »

odanmag wrote:
Wed Nov 18, 2020 2:30 am
Got my 2 HC4 devices. I plugged in the fist one today 2 x 4TB WD HD and started Petitboot. I run Debian installer via netboot_default. I selected RAID1, LVM and encryption. Installer said all’s right. Restarted, but HD doesn’t boot, instead Petitboot appears. I updated Petitboot to latest firmware, not better, HD didn’t boot. Any idea what I can do ?
Can you start your own thread since I think your case is a bit different to this topic.

odanmag
Posts: 19
Joined: Thu Feb 02, 2017 12:28 am
languages_spoken: english
ODROIDs: 2 x Odroid C2, 2 x Odroid C4, 2 x Odroid HC4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: HC4 unable to boot

Post by odanmag »

tobetter wrote:
Wed Nov 18, 2020 2:35 am
odanmag wrote:
Wed Nov 18, 2020 2:30 am
Got my 2 HC4 devices. I plugged in the fist one today 2 x 4TB WD HD and started Petitboot. I run Debian installer via netboot_default. I selected RAID1, LVM and encryption. Installer said all’s right. Restarted, but HD doesn’t boot, instead Petitboot appears. I updated Petitboot to latest firmware, not better, HD didn’t boot. Any idea what I can do ?
Can you start your own thread since I think your case is a bit different to this topic.
Ok

stanko
Posts: 8
Joined: Sun Nov 15, 2020 4:36 am
languages_spoken: english
ODROIDs: Two ODROID-HC4
Has thanked: 1 time
Been thanked: 0
Contact:

Re: HC4 unable to boot

Post by stanko »

tobetter wrote:
Tue Nov 17, 2020 6:41 pm
@stanko, can you try new device tree file in the link? Please replace it with meson64_odroidhc4.dtb and check /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies if your HC4 boots.
https://drive.google.com/file/d/1vuryR5 ... sp=sharing
Hi @tobetter

I have replaced meson64_odroidhc4.dtb.

Code: Select all

sha1sum meson64_odroidhc4.dtb
7403862f6718bc5d6ba262a0c0b1e9c4475a4234  meson64_odroidhc4.dtb
sha1sum meson64_odroidhc4.dtb.original 
2470cf33f0c2cdb731a68cf4446126a169ceb912  meson64_odroidhc4.dtb.original

root@debian:~# cat /sys/devices/system/cpu/cpufreq/policy0/scaling_available_frequencies
1000000 1200000 1404000 1500000 1608000 1704000 1800000 
The HC4 boots fine with the original file and with the replaced file. So if I netboot Debian it will boot fine (unlike before). The problem now is that it isn't able to boot after trying to install OMV5 via the script

Code: Select all

sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash
. It will always fail and the system will completely freeze at the one of these steps: When the system/HC4 freezes after the power cycle restart it is unable to boot. Interestingly if I put this very same microSD card in the first (stable) HC4 it will boot fine.
This is also true in reverse I am able to install OMV on the first unit and if I put the microSD card in the second (unstable) HC4 it will not boot.

This is what was on the TV while I was installing OMV via ssh:
tv_out.jpg
tv_out.jpg (794.58 KiB) Viewed 123 times
Currently the second HC4 can only boot when installing Debian 10 via netboot and CoreELEC all other images I tested will not work but they will work on the first stable HC4.
I hope this helps. And I hope this is still related to software rather than hardware issues.

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 0 guests