a1154870074 发表于 2015-4-15 19:04:11

TX2440的网卡DM9000的移植问题,求指导

yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 108K
/etc/init.d/rcS: line 22: net_set: not found
/etc/rc.d/init.d/httpd: line 17: /sbin/boa: not found

Please press Enter to activate this console.

启动后
Please press Enter to activate this console.
# net_set
-/bin/sh: net_set: not foun
set_net这个文件我放在sbin目录下了,权限也改了-rwxrwxrwx。为啥会这样?


TQ-lkp 发表于 2015-4-16 08:54:36

net_set命令找不到,跟dm9000没有关系,看下/sbin有没有加到系统的PATH里面

TQ-ZQL 发表于 2015-4-16 08:54:52

tx2440不是我们做的板子,建议找相关板子制作厂家要相关支持.

a1154870074 发表于 2015-4-16 08:59:38

TQ-lkp 发表于 2015-4-16 08:54
net_set命令找不到,跟dm9000没有关系,看下/sbin有没有加到系统的PATH里面

PATH=/sbin:/usr/sbin:/bin:/usr/sbin
我是把net_set放/sbin下面的

a1154870074 发表于 2015-4-16 09:01:33

TQ-ZQL 发表于 2015-4-16 08:54
tx2440不是我们做的板子,建议找相关板子制作厂家要相关支持.

是TQ2440天嵌科技的

TQ-lkp 发表于 2015-4-16 09:28:00

直接进到net_set所在目录执行./net_set

a1154870074 发表于 2015-4-19 15:51:52

TQ-lkp 发表于 2015-4-16 09:28
直接进到net_set所在目录执行./net_set

# cd sbin
# ./net_set
-/bin/sh: ./net_set: not found
还是一样,是不是/bin/sh不识别net_set,下面是net_set的代码
#!/bin/sh
echo Try to bring eth0 interface up ...>/dev/s3c2410_serial0
if [ -f /etc/net.conf ] ; then
    source /etc/net.conf
    ifconfig eth0 down
    ifconfig eth0 hw ether $MAC
    echo ifconfig eth0 hw ether $MAC >/dev/s3c2410_serial0
    ifconfig eth0 $IPADDR netmask $NETMASK up
    echo ifconfig eth0 $IPADDR netmask $NETMASK up >/dev/s3c2410_serial0
    route add default gw $GATEWAY
    echo add default gw $GATEWAY >/dev/s3c2410_serial0
else
    ifconfig eth0 hw ether 10:23:45:67:89:ab
    ifconfig eth0 192.168.5.105 netmask 255.255.255.0 up
    route add default gw 192.168.1.1
    echo ifconfig eth0 hw ether 10:23:45:67:89:ab >/dev/s3c2410_serial0
    echo ifconfig eth0 192.168.5.105 netmask 255.255.255.0 up >/dev/s3c2410_serial0
    echo route add default gw 192.168.1.1 >/dev/s3c2410_serial0
fi
echo Done > /dev/s3c2410_serial0
页: [1]
查看完整版本: TX2440的网卡DM9000的移植问题,求指导