Skip to contentSkip to conversation

initrd

U-Boot-Users Marco Schramel 2 participants 2 messages Feb 25, 2004

lore
Share & tools
lore
#0 lore raw

hi,

My own buildt U-boot runs on my evalboard. Now i ve downloaded the linuxppc_2_4_devel, have configured it for 8270 and builded it (with ELDK). How are the right steps for initializing the board with kernel and initrd?
I thing it is:

	unlock ......
	erase ....
	tftpboot 100000 kernelimage
	printenv filesize
	cp.b 100000	100000 filesize
	tftpboot 100000 uInitRD
	printenv filesize
	cp.b 100000	300000 filesize
	setenv bootm 100000 300000
	saveenv bootm
	reset

Can i do this like this way ???

Thanks
Marco

---------
Marco Schramel
R&D
Bartec GmbH
Schulstr. 30
94239 Gotteszell, Germany
www.bartec.de
Marco.Schramel at go.bartec.de

Phone:  +49 (0)9929/301332
Fax:    +49 (0)9929/301112
#1 lore raw

Dear marco,

Quoted 3 lines · in message <[email protected]> you wrote:

My own buildt U-boot runs on my evalboard. Now i ve downloaded the linuxppc_2_4_devel, have configured it for 8270 and builded it (with ELDK). How are the right steps for initializing the board with kernel and initrd?

See http://www.denx.de/twiki/bin/view/DULG/LinuxRamdiskRoot (and previous sections).

Quoted 1 line
	unlock ......

What's "unlock" ?

Quoted 4 lines
	erase ....
	tftpboot 100000 kernelimage
	printenv filesize
	cp.b 100000	100000 filesize

Makes no sense. Traget address should be != source address. Use "$(filesize)" instead of filesize.

Quoted 3 lines
	tftpboot 100000 uInitRD
	printenv filesize
	cp.b 100000	300000 filesize

If you just copy from RAM to RAM then why not TFTP to 300000? Also, "$(filesize)" is required.

Quoted 1 line
	setenv bootm 100000 300000

This does not do what you think yo do. I guess what you want is more like

setenv bootcmd 'tftp 200000 kernelimage;tftp 300000 uInitRD;bootm 200000 300000'

Quoted 1 line

saveenv bootm

Syntax error. "saveenv" does not take arguments.

Quoted 1 line

Can i do this like this way ???

You _can_ do this, but it won't make you happy ;-)

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
A fanatic is a person who can't change his mind and won't change  the
subject.                                          - Winston Churchill