[U-Boot] Problem setting target's ip address in kernel parameters passed by bootm

David Aldrich David.Aldrich at EMEA.NEC.COM
Mon Apr 30 14:11:44 CEST 2012


Hi

I am a newbie to u-boot and embedded linux.  I am trying to build a development environment around a Freescale P4080DS board.  Presently, I want the target to boot from a kernel image in flash and to mount an NFS root filesystem.  This is not working.

Target ip addr: 172.29.68.13
Host ip addr: 172.29.68.252

I have set environment variable bootargs to:

bootargs=console=ttyS0,115200 root=/dev/nfs rw ip=172.29.68.13 nfsroot=172.29.68.252:<my file system path>

and have saved that value to Flash using saveenv.

I think I have two problems:

Firstly, I have not installed an NFS server on the host. Well, I should be able to do that.

Secondly, after boot, the host cannot ping the target, and vice versa.  On the target I see:

root at p4080ds:~# ifconfig 
fm1-gb1 Link encap:Ethernet HWaddr 00:04:9F:02:01:FD 
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0 
inet6 addr: fe80::204:9fff:fe02:1fd/64 Scope:Link
etc.

Why is the ip address shown as 192.168.1.100 but I set it as 172.29.68.13 in bootargs?

Any advice would be much appreciated.

Best regards

David




More information about the U-Boot mailing list