CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 6686|回复: 1

[求助] msdcard 上 uboot 设置IP 不能ping 自己

[复制链接]
发表于 2013-11-17 03:28:07 | 显示全部楼层 |阅读模式
本帖最后由 gongjiangnan 于 2013-11-17 03:30 编辑

用的cubietruck 是不是编译uboot的时候配置下config?

start log

U-Boot 2013.10-rc2-08405-gb322f67 (Nov 17 2013 - 02:45:15) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubietruck
I2C:   ready
DRAM:  2 GiB
MMC:   SUNXI SD/MMC: 0
In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  0

env


sun7i# printenv
autoboot=run loadkernel && run setargs && true && bootm 0x48000000
autoload=no
baudrate=115200
boot_ram=saved_stdout=$stdout;setenv stdout nc;if iminfo 0x41000000; then true; setenv stdout $saved_stdout; source 0x41000000;else setenv stdi
bootcmd=if run loadbootenv; then echo Loaded environment from ${bootenv};env import -t ${scriptaddr} ${filesize};fi;if test -n "${uenvcmd}"; t;
bootdelay=3
bootenv=uEnv.txt
bootscr=boot.scr
console=ttyS0,115200
device=mmc
ethact=emac
ethaddr=12:34:56:78:99:aa
gatewayip=192.168.1.1
ipaddr=192.168.1.99
kernel=uImage
loadbootenv=fatload $device $partition $scriptaddr ${bootenv} || ext2load $device $partition $scriptaddr boot/${bootenv} || ext2load $device $}
loadbootscr=fatload $device $partition $scriptaddr ${bootscr} || ext2load $device $partition $scriptaddr boot/${bootscr} ||ext2load $device $p}
loadkernel=if bootpath=/boot/ && ext2load $device $partition 0x43000000 ${bootpath}script.bin && ext2load $device $partition 0x48000000 ${booti
loglevel=8
netmask=255.255.255.0
panicarg=panic=10
partition=0:1
scriptaddr=0x44000000
setargs=if test -z \\"$root\\"; then if test \\"$bootpath\\" = "/boot/"; then root="/dev/mmcblk0p1 rootwait"; else root="/dev/mmcblk0p2 rootwa}
stderr=serial
stdin=serial
stdout=serial

Environment size: 1953/131068 bytes

sun7i# ping 192.168.1.99
Using emac device
ping failed; host 192.168.1.99 is not alive




回复

使用道具 举报

 楼主| 发表于 2013-11-19 04:09:37 | 显示全部楼层
--- NetLoop Entry
--- NetState set to 0
--- NetLoop Init
Using emac device
--- NetLoop timeout handler set (bffaca6c)
sending ARP for 192.168.1.99
ARP broadcast 1
ARP broadcast 2
--- NetLoop timeout
--- NetState set to 3
--- NetLoop UDP handler set (00000000)
--- NetLoop ARP handler set (00000000)
--- NetLoop timeout handler cancelled
--- NetLoop Fail!
ping failed; host 192.168.1.99 is not alive
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-5-8 12:35 , Processed in 0.019819 second(s), 15 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部