天嵌 ARM开发社区

 找回密码
 注册
查看: 3805|回复: 6

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

[复制链接]
a1154870074 发表于 2015-4-15 19:04:11 | 显示全部楼层 |阅读模式
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.
[root@EmbedSky /]# 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

[root@EmbedSky /]# cd sbin
[root@EmbedSky /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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-4-26 22:14 , Processed in 1.046875 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表