[U-Boot-Users] tftpboot of multi image

Are there instructions out there for using tftpboot to download an image with an initrd automatically boot the image? I haven't come across anything.
I am trying it with a simple tftpboot command (no options) and it appears as though the ramdisk is not loading to a good address because the system lock up after uncompressing the initrd at 0x91544054 (not a valid address in my system.)
Bob

Bob White wrote:
Are there instructions out there for using tftpboot to download an image with an initrd automatically boot the image? I haven't come across anything.
There are several ways to do this, some are even documented :-) How did you create the image(s) to download?
I am trying it with a simple tftpboot command (no options)
In all cases, you are going to have to set up the environment and commands with some kind of options to help you out.
-- Dan

In message 4074433C.13855.BF94F6B@localhost you wrote:
Are there instructions out there for using tftpboot to download an image with an initrd automatically boot the image? I haven't come across anything.
That's because it's just trivial:
=> tftp 400000 /tftpboot/uImage.multi ; bootm
I am trying it with a simple tftpboot command (no options) and it appears as though the ramdisk is not loading to a good address because the system lock up after uncompressing the initrd at 0x91544054 (not a valid address in my system.)
OIt would have been really, really useful if you had bothered to provide some more details, like the exact output of the failing command. SO I can just guess that your load address is too low, and you are overwriting parts of the image when the Linux kernel gets uncompressed.
Best regards,
Wolfgang Denk

You were right, it was overwriting. It worked at a higher address. I was using address 0x00100000 which is what appears in most of the documentation.
Thank you.
In message 4074433C.13855.BF94F6B@localhost you wrote:
Are there instructions out there for using tftpboot to download an image with an initrd automatically boot the image? I haven't come across anything.
That's because it's just trivial:
=> tftp 400000 /tftpboot/uImage.multi ; bootm
I am trying it with a simple tftpboot command (no options) and it appears as though the ramdisk is not loading to a good address because the system lock up after uncompressing the initrd at 0x91544054 (not a valid address in my system.)
OIt would have been really, really useful if you had bothered to provide some more details, like the exact output of the failing command. SO I can just guess that your load address is too low, and you are overwriting parts of the image when the Linux kernel gets uncompressed.
Best regards,
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de "More software projects have gone awry for lack of calendar time than for all other causes combined." - Fred Brooks, Jr., _The Mythical Man Month_
This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users
Bob

Bob,
I tried this and it worked:
=> setenv bootcmd tftp 01000000 uImage.multi; setenv bootargs root=/dev/r am rw console=ttyS0,38400; bootm 01000000 => boot
(adapt it for your board... remember to saveenv before boot if you want it to persist)
I actually wished there was a way to obtain IP etc. config from dhcp server without booting. That way I could have more control the image to boot from u-boot environment. It could also allow me to quickly enable network access when dhcp server is available on the network for testing etc.
Best regards, Tolunay
Are there instructions out there for using tftpboot to download an image with an initrd automatically boot the image? I haven't come across anything.
I am trying it with a simple tftpboot command (no options) and it appears as though the ramdisk is not loading to a good address because the system lock up after uncompressing the initrd at 0x91544054 (not a valid address in my system.)
Bob

Hi Tolunay,
I actually wished there was a way to obtain IP etc. config from dhcp server without booting. That way I could have more control the image to boot from u-boot environment. It could also allow me to quickly enable network access when dhcp server is available on the network for testing etc.
Like the following?
=> setenv autoload no => dhcp BOOTP broadcast 1 DHCP client bound to address 192.168.42.240 =>
Cheers Detlev
participants (5)
-
Bob White
-
Dan Malek
-
Detlev Zundel
-
Tolunay Orkun
-
Wolfgang Denk