Skip to contentSkip to conversation

tftpboot of multi image

U-Boot-Users Bob White 5 participants 6 messages Apr 7, 2004 – Apr 8, 2004

lore
Share & tools
lore

Bob White

author
#0 lore raw

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

Signature · 4 lines
Robert B. White        Perigee, A Division of Sensis Corp
Software Design Engr   316 Commerce Blvd.
TEL: 315.453.7842x29   Liverpool, NY  13088
FAX: 315.453.7917      www.Perigee.com
#1 lore raw
Quoted 3 lines · Bob White

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?

Quoted 1 line

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
#2 lore raw
In reply to Bob White
Quoted 3 lines · 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
Quoted 4 lines

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

Signature · 5 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at 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_
author
#3 lore raw

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.

Quoted 20 lines
Quoted 3 lines · 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
Quoted 4 lines

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.

Quoted 22 lines

Best regards,

Wolfgang Denk

Signature · 16 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at 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 at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Bob

Signature · 4 lines
Robert B. White        Perigee, A Division of Sensis Corp
Software Design Engr   316 Commerce Blvd.
TEL: 315.453.7842x29   Liverpool, NY  13088
FAX: 315.453.7917      www.Perigee.com
#4 lore raw
In reply to Bob White

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

Quoted 10 lines

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

#5 lore raw

Hi Tolunay,

Quoted 5 lines

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

Signature · 1 line
Who is General Failure and why is he reading my hard disk?