- 论坛徽章:
- 0
|
我的主机是winxp
目标板是EP9315的ARM板子
使用2.6.20的内核
目标板启动设置
bootargs=root=/dev/mtdblock2 rootfstype=jffs2 console=ttyAM video=ep93xxfb
bootdelay=2
baudrate=57600
ethaddr=01:02:93:12:15:07
bootfile="linux-2.6.20.4.img"
mtdparts=mtdparts=edb93xx-nor0:1024k@0(Firmware),4096k@0x100000(Kernel),-@0x5000
00(Root-FS)
ipaddr=192.168.76.156
serverip=192.168.76.155
gatewayip=192.168.76.1
netmask=255.255.255.0
stdin=serial
stdout=serial
stderr=serial
bootm=200000
bootcmd=run nf_kernel
Linux下的启动文件中 rc.sysinit原本设置
.............
..............
# Configure the network interfaces.
#
ifconfig lo 127.0.0.1 up
route add -net 127.0.0.0 netmask 255.0.0.0 lo
if [ "x`grep ip= /proc/cmdline`" = "x" ]
then
udhcpc -i eth0 -b -p /var/run/udhcpc.eth0.pid >/dev/null 2>&1
fi
#
# Create the arecord link to aplay
#
ln -s /usr/bin/aplay /usr/bin/arecord
.............
..............
在进入主机中开启tftp服务后
在终端中使用 tftp -g -r file .192.168.76.155
提示Network is unreachable
更改成
.............
..............
# Configure the network interfaces.
#
ifconfig lo 192.168.76.156 up
route add -net 192.168.76.1 netmask 255.255255.0 lo
if [ "x`grep ip= /proc/cmdline`" = "x" ]
then
udhcpc -i eth0 -b -p /var/run/udhcpc.eth0.pid >/dev/null 2>&1
fi
#
# Create the arecord link to aplay
#
ln -s /usr/bin/aplay /usr/bin/arecord
.............
..............
在终端中使用 tftp -g -r file .192.168.76.155
提示说 连接超时
第一次设置这个东西,试过在图形界面设置,不会弄,上来请教下大大们,有好几天了一直搞不定
请高手和有有经验的人指点下 |
|