Chaining U-boot - possible?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Chaining U-boot - possible?

Postby avishorp » Mon Jan 07, 2013 11:04 am

I want to run a new kernel on my GoFlex Home device. I've read here that a U-boot update is required - but there is a risk of bricking the device.
Is there a way to make the original, already working U-boot load the new U-boot from some device (USB, ATA, other flash partition) which in turn will load the new kernel?

Thanks,
Avishay
avishorp
 
Posts: 1
Joined: Mon Jan 07, 2013 11:00 am

Re: Chaining U-boot - possible?

Postby WarheadsSE » Mon Jan 07, 2013 3:48 pm

Which uboot do you have now?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Chaining U-boot - possible?

Postby ebbix » Mon Jan 07, 2013 4:48 pm

As far as I know, U-boot does not support chainloading officially.
However, it might work with U-boot versions that are not too much different from your current U-boot (at least this is my experience).
You might try to setup a tftp server (not ftp, but Tftp) and load the second U-boot like this:
$this->bbcode_second_pass_code('', 'setenv serverip [ip of tftp server]
setenv ipaddr [ip of your device]
tftp 0x800000 u-boot-filename
go 0x800200') Notice the offset of 0x200 (= 512 bytes), which is the size of the header.
You could also change it to load u-boot image from usb, ata or flash instead (ext2load, fatload and others...)
You might give that a try. If it works, it will most definitely work when you flash your second image to nand.
But if this fails (chainloaded u-boot does not start), there are still chances it will work when flashed (at least this is true if you plan to flash it directly to /dev/mtd0).

At least this was my method when trying cross-compiled u-boot versions on my GoFlex Net. (And they didn't run from tftp...; and yeah, they were actually compiled to run from mtd0, however, I tried chainloading them)
ebbix
 
Posts: 48
Joined: Fri Aug 10, 2012 1:55 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests