Hi all,
I've a little trouble to configure network. Something i can't see goes wrong:
If i use the original sd card provided by freescale, network is correctly configurated with the following boot env:
setenv baudrate '115200'
setenv loadaddr '0x70800000'
setenv netdev 'eth0'
setenv ethprime 'FEC0'
setenv uboot 'u-boot.bin'
setenv kernel 'uImage'
setenv ethact 'FEC0'
setenv bootcd 'run bootcmd_mmc'
setenv bootargs_nfs 'setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcp'
setenv bootcmd_net 'run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootm'
setenv bootcmd_mmc 'run bootargs_base bootargs_mmc; mmc read ${loadaddr} 0x800 0x1800; bootm'
setenv bootargs_mmc 'set bootargs ${bootargs} root=/dev/mmcblk0p1 rw rootwait'
setenv vga 'setenv bootargs console=ttymxc0,115200 video=mxcdi1fb:GBR24,VGA-XGA di1_primary vga'
setenv bootcmd_obds 'ext2load mmc 0:1 0x70800000 /unit_tests/obds.bin; go 70800000'
setenv nfsroot '/tftpboot/rootfs'
setenv lcd 'video=mxcdi0fb:RGB24,SEIKO-WVGA di0_primary'
setenv lvds 'video=mxcdi0fb:RGB666,XGA di0_primary ldb=di0'
setenv bootcmd 'run bootcmd_mmc'
setenv bootfile 'uImage'
setenv fileaddr '70800000'
setenv netmask '255.255.255.0'
setenv hdmi 'setenv bootargs console=ttymxc0,115200 video=mxcdi0fb:RGB24,1024x768M@60 hdmi di0_primary'
setenv serverip '192.168.0.1'
setenv ipaddr '192.168.1.115'
setenv gatewayip '192.168.1.2'
setenv dnsip '194.2.0.20'
setenv bootdelay '3'
setenv bootargs_base 'set bootargs console=ttymxc0,115200 video=mxcdi0fb:RGB666,XGA di0_primary ldb=di0'
setenv bootarg_mmcset 'bootargs console=ttymxc0,115200 gpu_nommu setenv bootargs console=ttymxc0,115200 video=mxcdi0fb:RGB24,1920x1080M@60 hdmi di0_primary root=/dev/nfs ip=dhcp nfsroot=10.29.240.144:/tftpboot/rootfs,v3,tcp root=/dev/mmcblk0p1 rw'
setenv bootargs 'console=ttymxc0,115200 gpu_nommu setenv bootargs console=ttymxc0,115200 video=mxcdi0fb:RGB24,1920x1080M@60 hdmi di0_primary root=/dev/nfs ip=dhcp nfsroot=10.29.240.144:/tftpboot/rootfs,v3,tcp root=/dev/mmcblk0p1 rw rootwait'
setenv ethaddr '12:34:56:78:9a:bc'
setenv stdin 'serial'
setenv stdout 'serial'
setenv stderr 'serial'
Route command says:
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 eth0
default 192.168.1.2 0.0.0.0 UG 0 0 0 eth0
and ifconfig says:
eth0 Link encap:Ethernet HWaddr 12:34:56:78:9a:bc
inet addr:192.168.1.115 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49 errors:0 dropped:0 overruns:0 frame:0
TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5639 (5.6 KB) TX bytes:3655 (3.6 KB)
Base address:0x6000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:26 errors:0 dropped:0 overruns:0 frame:0
TX packets:26 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1300 (1.3 KB) TX bytes:1300 (1.3 KB)
Network is working properly.
---------------------------------------------------------------------------------------------------------------------------------------
Now, if i use another sd card with a Min conf profile, configurated with the same uboot env, network is not set up at all.
route and ifconfig commands are empty.
I suppose it's the uboot env that sets up network parameters. So why the result is not the same in both cases ?
And how can i set up network in the second case ?
Thanks.