Welcome! Log In Create A New Profile

Advanced

Chainload U-Boot on NSA325v2 from bodhi's u-boot

Posted by davidedg 
Chainload U-Boot on NSA325v2 from bodhi's u-boot
July 20, 2015 02:28PM
Hi,

I have U-Boot 2014.07-tld-3 on nand.
I compiled another version of u-boot (which I know it works because I already tried flashing).
I'm trying to chainloading it from 2014.07-tld-3 version :
NSA325> usb reset; ext2load  usb 0:2 0x800000 /media/u-boot.kwb ; go 0x800200
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
444432 bytes read in 265 ms (1.6 MiB/s)
## Starting application at 0x00800200 ...


U-Boot 2014.07-tld-3 (Mar 06 2015 - 21:30:53)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_??
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0 [PRIME]
MV88E1318 PHY initialized on egiga0

It loads ... but it seems to start the same u-boot again ??
If I load another file, it "correctly" hangs up... so it *is* loading something... but I can't understand why the version is the same...(and my custom commands are not there).

Any clues?
Ty!

--
DavideDG
My NAS userspace configs
My Zyxel NSA325 mod
My D-Link DNS325 mod
My Lacie NS2MAX mod
Re: Chainload U-Boot on NSA325v2 from bodhi's u-boot
July 20, 2015 02:45PM
Davide,

Chainloading u-boots using more modern versions is difficult (due to structural changes). You could try recompiling my u-boot version as is, and name it differently to identify it. See if you can do that first. And then start changing the code a little, try it. Keep doing this until it stops working. That's when you know it has been changed in a way (memory locations were substantially different) that it's no longer possible to chainload.

With that said, chain loading is really good for experiment only. If you need to add some significant functionality to u-boot, then chance is that it needs to be different enough that chainloading will not work :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: