my am1707 can boot from spi flash and nand flash ,but when i boot with nfs mode ,it does't run;
my host tftp and nfs configration is well,in my host , i am sure that i can use 'mount' command correctly ,and i remote mount is well ,and my EVM also can ping the host.
but i don't mount my host's directer to my EVM ,i do'n know what some thing wrong !
please help me.
a embedded lover but don't excellent.
i am sorry , my english is not very good ,please beg me .
i type the commands list below:
host $ /usr/sbin/exportfs -avhost $ /sbin/service nfs restarthost $ /etc/init.d/iptables statushost $ /etc/init.d/iptables stop
U-Boot > setenv nfshost 192.168.1.77U-Boot > setenv rootpath /share/targetU-Boot > setenv serverip 192.168.1.77U-Boot > setenv bootfile uImageU-Boot > setenv bootcmd 'dhcp;bootm'U-Boot > setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock mem=32MU-Boot > boot
this is my ubot environmetn:
U-Boot > printenvbootdelay=3baudrate=115200ethaddr=00:0e:99:02:ff:87ipaddr=192.168.1.125stdin=serialstdout=serialstderr=serialver=U-Boot 2009.11 (Mar 16 2011 - 13:26:26)nfshost=192.168.1.77serverip=192.168.1.77bootfile=uImagebootcmd=dhcp;bootmbootargs=console=ttyS2,115200n8 noinitrd rw ip=dhcp root=/dev/nfs nfsroot=192.168.1.77:/mount/target,nolock mem=32Mrootpath=/share/target
Environment size: 377/131068 bytes
this is my error under uboot:
U-Boot > boot BOOTP broadcast 1BOOTP broadcast 2BOOTP broadcast 3BOOTP broadcast 4BOOTP broadcast 5BOOTP broadcast 6BOOTP broadcast 7BOOTP broadcast 8BOOTP broadcast 9BOOTP broadcast 10
Retry count exceeded; starting againBOOTP broadcast 1BOOTP broadcast 2BOOTP broadcast 3BOOTP broadcast 4BOOTP broadcast 5BOOTP broadcast 6BOOTP broadcast 7BOOTP broadcast 8BOOTP broadcast 9BOOTP broadcast 10
thank you!
sincerely ! luo....
Hi Luo,
Looks like there is problem with dhcp. Could you please try by having static ip?
U-Boot >setenv ipaddr 192.168.1.125
U-Boot >setenv bootcmd 'tftp;bootm'
U-Boot >setenv bootargs console=ttyS2,115200n8 noinitrd rw ip=192.168.1.125 root=/dev/nfs nfsroot=${nfshost}:${rootpath},nolock mem=32M
I assume your trying get uImage by tftp.
Regards,
Prakash
Maybe manually specify your dhcp command alone to see if it works:
dhcp 192.168.1.77:uImage
Maybe double check that your TFTP server is running. This host command should work:
chkconfig --list
Double check that the "uImage" file is in the TFTP server's root directory. On Fedora 12, by default, it is at "/var/lib/tftpboot". That directory might in a different place on your host.
Some oddness with your U-Boot env varables. NFS root is in one spot "/share/target" and another it is "/mount/target".
thank you very much,i have done follw you tips.