Boot from SSD using Hardkernel's Odroid HC4


 Share

1 1

Recommended Posts

My current HC4-setup consists of 1 SSD and 1 HDD. The SSD contains the most recent Armbian-image (Buster-based) (https://redirect.armbian.com/odroidhc4/Buster_current).

Long story short: it won't boot from SSD, and Google tells me it is because Armbian is not compatible with Petiboot. Armbian suggests the following solution:

 

"Important: To be able to boot clean Armbian mainline based u-boot / kernel experiences, you need to remove incompatible Petitboot loader that is shipped with the board. From the Petitboot, go for “Exit to shell” and these commands to remove the Petitboot:"

# flash_eraseall /dev/mtd0
# flash_eraseall /dev/mtd1
# flash_eraseall /dev/mtd2
# flash_eraseall /dev/mtd3

"This will make your SPI flash memory empty and would start from SD on next boot."

 

However, it doesn't mention whether this works for booting from an SSD. Does it? And if not, is there a possibility of booting Armbian from an SSD without using an SD-card?

 

Thanks in advance!

 

P.S. I found the following (unresolved) related question: https://www.reddit.com/r/ODroid/comments/moxxhl/uboot_from_sata_on_hc4/

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

Boot from SSD without SD card is currently not supported on HC4. However, it is easy to have only the boot loader on SD card (as @Werner stated above):

- flash armbian image to SD Card

- erase petitboot as stated above

- boot armbian from SD Card

- run nand-sata-install within armbian

after this

- only the boot loader rests on SD card (i.e. you need the SD card plugged in for it to be able to boot) - but no I/O on SD card after boot loader

- OS root partition (and entire system) runs from SSD

- any update updates boot loader and kernel where they actually reside - so no special precautions needed (despite the usual "update may break something")

 

I am running on this setup and it works like a charm for me.

 

Hope that helps

 

Green Daddy

Link to post
Share on other sites

Hi

 

Which image do you both use? I've just booted Armbian_21.05.4_Odroidhc4_buster_current_5.10.43.img and and Linux believe there is no link on eth0, it's what ethtool reports and I cannot access the network.

BTW, I didn't erase Petitboot, just forced booting from SD-card by pressing "reset" button during power-on.

When booted into Petitboot ethernet works but I didn't manage to istall an OS. I see (snooping on the net) my HC4 downloading the netboot-odroidhc4.cfg file but nothing happens.

Quite dissapointed with my new toy :-(

 

Regards,

Chris

 

 

Link to post
Share on other sites

2 hours ago, ChrisO said:

Quite dissapointed with my new toy :-(


Those are development boards  ;) But I think we are close to getting stable support based on clean open source. We want to get rid of vendors proprietary solutions as soon as possible. Troubles as you have are the price that needs to be paid. Boot from SPI is also under development - not sure if it will be done before this major release.

We are just about (this month) to push out major update, where many things for this board was fixed. Try this image:
https://imola.armbian.com/dl/odroidc4/nightly/Armbian_21.08.0-trunk.114_Odroidc4_hirsute_edge_5.13.8.img.xz

 

It works perfectly on my C4:
 

  ___      _           _     _    ____ _  _   
 / _ \  __| |_ __ ___ (_) __| |  / ___| || |  
| | | |/ _` | '__/ _ \| |/ _` | | |   | || |_ 
| |_| | (_| | | | (_) | | (_| | | |___|__   _|
 \___/ \__,_|_|  \___/|_|\__,_|  \____|  |_|  
                                              
Welcome to Armbian 21.08.0-trunk.113 Hirsute with Linux 5.13.8-meson64

No end-user support: untested automated build

System load:   7%           	Up time:       1 min	
Memory usage:  4% of 3.73G  	IP:	       10.0.30.121
CPU temp:      38°C           	Usage of /:    6% of 29G    	

[ 0 security updates available, 7 updates total: apt upgrade ]
Last check: 2021-08-07 20:17

[ General system configuration (beta): armbian-config ]


Logs: http://ix.io/3vhZ

Link to post
Share on other sites

As for "Those are development boards" I will comment later ;-)

The imola image doesn't boot on my hc4. Nothing on HDMI attached monitor and on the serial console I get such output:

 

LOOP:35;SPINOR:0;CHK:1F;EMMC:800;NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;

again and again.

Ooops, I see a small difference, your c4 != my hc4, right?

 

Regards,

Chris

 

Link to post
Share on other sites

5 hours ago, ChrisO said:

Ooops, I see a small difference, your c4 != my hc4, right?


Oh, yes. But they are not that different and it should boot. @rpardini was trying to bring things together and this is the last addition:
https://github.com/armbian/build/commit/13329ebcd0f3f0270c7813e33599fa75d939bb24#diff-b79606fb3afea5bd1609ed40b622142f1c98125abcfe89a76a661b0e8e343910

I don't have HC4, only C4.


There is an image for HC4 as well, but it would be good that someone else test this too. So we can be sure it boots:
https://imola.armbian.com/dl/odroidhc4/nightly/

Link to post
Share on other sites

Armbian_21.08.0-trunk.114_Odroidhc4_hirsute_edge_5.13.8.img doesn't boot.

On console theese:

SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:A;RCY:0;SPINOR:0;CHK:1F;EMMC:800;
NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:1;SPINOR:0;CHK:1F;EMMC:800;
NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:2;SPINOR:0;CHK:1F;EMMC:800;
....

Link to post
Share on other sites

2 hours ago, ChrisO said:

Armbian_21.08.0-trunk.114_Odroidhc4_hirsute_edge_5.13.8.img doesn't boot.

On console theese:

SM1:BL:511f6b:81ca2f;FEAT:A0F83180:20282000;POC:A;RCY:0;SPINOR:0;CHK:1F;EMMC:800;
NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:1;SPINOR:0;CHK:1F;EMMC:800;
NAND:81;SD?:0;SD:0;READ:0;CHK:1F;USB:8;LOOP:2;SPINOR:0;CHK:1F;EMMC:800;
....

 

I also tried - it seems we do have an issue. Investigating ...

Link to post
Share on other sites

This afternoon booted Armbian_21.08.0-trunk.116_Odroidhc4_hirsute_edge_5.13.9.img on  my hc4. Everything looks OK :-)

As for the "Those are development boards ;)", one thing I don't understand: again and again there are new SBC's popping up designed(?) to run Linux but they cannot cope with main-stream or use components not well supported. OrangePi-PC few years ago, desaster. TinkerBoard & TinkerOS.... "Recently" OrangePi-zero & onboard WiFi. Now Odroid-hc4 with broken Petitboot and one man "support".

 

Lucky us, there is Armbian! :-)

Time to login to PayPal again, thank you very much for your efforts!

 

Regards,

Chris

 

 

Link to post
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...
 Share

1 1