ODROID-U2 booting from USB partition

This forum is for supported devices using an ARMv7 Samsung SoC.

ODROID-U2 booting from USB partition

Postby nmset » Mon Mar 17, 2014 2:56 pm

Hello,

I followed instructions from

viewtopic.php?f=47&t=6499#p36161

to try to boot from a root partition on an attached USB hard drive with no luck.

I made a boot.scr with the following :

$this->bbcode_second_pass_code('', 'fatload mmc 0:1 0x40008000 zImage
setenv bootargs "root=/dev/hda1"
bootm 0x40008000
')

generated the boot.scr as follows :

$this->bbcode_second_pass_code('', 'mkimage -A arm -C none -T script -n 'Boot script for ODROID-U2' -d boot.txt boot.scr')

and placed the boot.scr in the vfat partition on the micro SD card.

On boot, the blue light flashes, but the ethernet lights remain off. I don't have a screen attached to this host and hence can't use it. Worse, if I delete boot.scr from the vfat partition, well there's still no network while the blue light flashes.

I had to reinstall from scratch and leave the root partition on the SD card.

I wish to boot from an attached hard drive because after my last upgrade, tools like ls, df give a segmentation fault. The partitions were clean as reported by fsck, the device booted. I suspect some weird hardware issue with the SD card.

I am asking for any clue on how to solve this.

Thanks in advance.
nmset
 
Posts: 18
Joined: Sun Jul 29, 2012 7:09 pm

Re: ODROID-U2 booting from USB partition

Postby WarheadsSE » Mon Mar 17, 2014 3:56 pm

/dev/sda1 not hda1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: ODROID-U2 booting from USB partition

Postby nmset » Mon Mar 17, 2014 4:54 pm

aaaaaaaarrrrrggghhh !!! Stupid me !!!!!!!!!

I'll try again, should do it.
nmset
 
Posts: 18
Joined: Sun Jul 29, 2012 7:09 pm

Re: ODROID-U2 booting from USB partition

Postby nmset » Mon Mar 17, 2014 6:08 pm

Unfortunately, it still does not boot from the USB hard drive, and I don't know where to look for debug information.
nmset
 
Posts: 18
Joined: Sun Jul 29, 2012 7:09 pm

Re: ODROID-U2 booting from USB partition

Postby nmset » Mon Mar 17, 2014 8:46 pm

Got success with

$this->bbcode_second_pass_code('', 'setenv bootcmd "fatload mmc 0:1 0x40008000 zImage; bootm 0x40008000"
setenv bootargs "console=tty1 console=ttySAC1,115200n8 root=/dev/sda1 rootwait"
set bootdelay 4
boot')

combining these two references :

http://www.funtoo.org/ODROID_U2
viewtopic.php?f=47&t=6874&p=38007&hilit=odroid+boot.scr#p38007

Thanks.
nmset
 
Posts: 18
Joined: Sun Jul 29, 2012 7:09 pm


Return to Samsung

Who is online

Users browsing this forum: No registered users and 4 guests