kasim老大,求救:
U-Boot 2013.01-rc2 (Jan 24 2013 - 19:33:05) for FriendlyLEG-TINY210
CPU: S5PC110@1000MHz
Board: FriendlyLEG-TINY210
DRAM: 512 MiB
WARNING: Caches not enabled
PWM Moudle Initialized.
GPD0CON : 1111, GPD0DAT : e
NAND: 2048 MiB
MMC: SAMSUNG SD/MMC: 0, SAMSUNG SD/MMC: 1
In: serial
Out: serial
Err: serial
Net: dm9000
Hit any key to stop autoboot: 0
[FriendlyLEG-TINY210]# pri
baudrate=115200
bootargs=root=/dev/mmcblk0p2 rw rootfstype=ext4 bootdelay=5 init=/sbin/init console=ttySAC0,115200
bootcmd=fatload mmc 0 21000000 uImage; bootm 21000000
bootdelay=8
ethact=dm9000
ethaddr=00:40:5c:26:0a:5b
fileaddr=20008000
filesize=496840
gatewayip=192.168.1.1
ipaddr=192.168.4.191
nand_erasesize=100000
nand_oobsize=80
nand_writesize=2000
netmask=255.255.255.0
serverip=192.168.4.192
stderr=serial
stdin=serial
stdout=serial
Environment size: 479/16380 bytes
[FriendlyLEG-TINY210]# setenv serverip 192.168.4.192
[FriendlyLEG-TINY210]# setenv ipaddr 192.168.4.191
[FriendlyLEG-TINY210]# sav
Saving Environment to MMC...
Writing to MMC(0)... done
[FriendlyLEG-TINY210]# ping 192.168.4.192
dm9000 i/o: 0x88001000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:40:5c:26:0a:5b
operating at 100M full duplex mode
Using dm9000 device
ARP Retry count exceeded; starting again
dm9000 i/o: 0x88001000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:40:5c:26:0a:5b
operating at 100M full duplex mode
ARP Retry count exceeded; starting again
dm9000 i/o: 0x88001000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:40:5c:26:0a:5b
operating at 100M full duplex mode
ARP Retry count exceeded; starting again
dm9000 i/o: 0x88001000, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 00:40:5c:26:0a:5b
operating at 100M full duplex mode
一直执行ARP Retry,修改超时时间后还是这样 。
$vim ./net/tftp.c
/* Well known TFTP port # */
#define WELL_KNOWN_PORT 69
/* Millisecs to timeout for lost pkt */
#define TIMEOUT 50000UL
#ifndef CONFIG_NET_RETRY_COUNT
/* # of timeouts before giving up */
# define TIMEOUT_COUNT 10
#else
# define TIMEOUT_COUNT (CONFIG_NET_RETRY_COUNT * 2)
#endif
我的板子是Tiny210V2,暂时没找到原因,求帮助啊。。。
找到原因了
$vim ./net/arp.c
#ifndef CONFIG_ARP_TIMEOUT
/* Milliseconds before trying ARP again */
# define ARP_TIMEOUT 50000UL
#else
# define ARP_TIMEOUT CONFIG_ARP_TIMEOUT
#endif
老大,这个在opencsbc 2012 10 中没修改。
[ 此帖被wjgksc在2013-01-24 19:59重新编辑 ]