QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2823|回复: 9

求助 让skyeye 支持网络的问题

[复制链接]
发表于 2004-6-29 09:23:09 | 显示全部楼层 |阅读模式
我搞了很久多ping不通,
我的过程
安装uclinux for skyey 的网络设备驱动的补丁
编译 uclinux 选择了新增的skyeye网络设备
编写skyeye.conf文件增加网络选项类型为tun
按照skyeye 中readme增加了linux中的tun.o模块
开始执行uclinux就是ping不通主机且运行ifconfig时,
提示没编译有error出现。然后采用vnet 我也试过,一样的结果。
发表于 2004-7-1 23:06:59 | 显示全部楼层
需要把你的skyeye.conf文件, skyeye的执行显示都列出来看看
回复

使用道具 举报

 楼主| 发表于 2004-7-3 09:15:30 | 显示全部楼层
cpu: arm7tdmi
mach: at91
mem_bank: map=M, type=RW, addr=0x00000000, size=0x00004000
mem_bank: map=M, type=RW, addr=0x01000000, size=0x00400000
mem_bank: map=M, type=R,  addr=0x01400000, size=0x00500000, file=./romfs.img
mem_bank: map=M, type=RW, addr=0x02000000, size=0x00400000
mem_bank: map=M, type=RW, addr=0x02400000, size=0x00008000
mem_bank: map=M, type=RW, addr=0x04000000, size=0x00400000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
net: state=on, mac=0:5:3:2:1:f, ethmod=tuntap, hostip=192.168.168.11

这个应该不会有错误吧
回复

使用道具 举报

发表于 2004-7-3 17:00:45 | 显示全部楼层
还缺少你的skyeye运行的情况显示。
在skyeye运行后,用
lsmod运行一下,把它的输出显示给我看看。
回复

使用道具 举报

 楼主| 发表于 2004-7-5 09:53:16 | 显示全部楼层
在这里先谢谢版主了,
lsmod 是在linux中还是在skyeye uclinxu中运行啊两种结果我多显示一下
linux 中的
[root@linux-hetec skyeye]# lsmod
Module                  Size  Used by    Not tainted
tun                     5696   0
soundcore               6532   0  (autoclean)
agpgart                43072   2  (autoclean)
nfsd                   79920   8  (autoclean)
lockd                  58064   1  (autoclean) [nfsd]
sunrpc                 79324   1  (autoclean) [nfsd lockd]
autofs                 13348   0  (autoclean) (unused)
8139too                17704   1
mii                     2156   0  [8139too]
iptable_filter          2412   0  (autoclean) (unused)
ip_tables              14936   1  [iptable_filter]
microcode               4668   0  (autoclean)
mousedev                5524   0  (unused)
keybdev                 2976   0  (unused)
hid                    22244   0  (unused)
input                   5888   0  [mousedev keybdev hid]
ehci-hcd               17480   0  (unused)
usb-uhci               26188   0  (unused)
usbcore                77024   1  [hid ehci-hcd usb-uhci]
ext3                   70368   1
jbd                    52212   1  [ext3]
/////////////////////////////////////////////////////
在skyeye uclinux 中我把busybox中的 lsmod 编译进去
运行有错误,Function not implemented

//////////////////////////////
[root@linux-hetec skyeye]# skyeye linux
GNU gdb 5.3
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
***************************************************************
************   SkyEye is Simulator based on GDB   *************
***************************************************************
This SkyEye was configured as "--host=i686-pc-linux-gnu --target=arm-elf"...
(SkyEye) tar s
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x813da8c
nic[0] info: state=1, ethmod num=1, mac addr=0:5:3:2:1:f, hostip=192.168.168.11
nic_init_begin
tapif_init begin
tapif_init: fd 6
tapif_init: system("ifconfig tap0 inet 192.168.168.11");
tapif_init end
nic_init_end
SKYEYE: use arm7100 mmu ops
Loaded ROM ./romfs.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xa000 vma 0x1000000
Loading section .text, size 0xc8cb0 vma 0x100a000
Loading section .data, size 0x88cc vma 0x10d4000
Start address 0x1000000
Transfer rate: 7187424 bits in <1 sec.
(SkyEye) run
Starting program: /home/houen/Desktop/skyeye/linux
Linux version 2.4.20-uc0 (root@linux-hetec) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #65 一 7月 5 09:04:41 CST 2004
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
On node 0 totalpages: 1024
zone(0): 0 pages.
zone(1): 1024 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/rom0
Calibrating delay loop... 12.97 BogoMIPS
Memory: 4MB = 4MB total
Memory: 3016KB available (803K code, 177K data, 40K init)
Dentry cache hash table entries: 512 (order: 0, 4096 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 1024 (order: 0, 4096 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Atmel USART driver version 0.99
ttyS0 at 0xfffd0000 (irq = 2) is a builtin Atmel APB USART
ttyS1 at 0xfffcc000 (irq = 3) is a builtin Atmel APB USART
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: 1400000-15007FF [VIRTUAL 1400000-15007FF] (RO)
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
SkyEye NE2k Ethernet driver version 0.2 (2003-04-27)
sene2k dev name: eth0: <6>NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 512 bind 512)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (romfs filesystem) readonly.
Shell invoked to run file: /etc/rc
Command: hostname GDB-ARMulator
Command: /bin/expand /etc/ramfs.img /dev/ram0
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram0 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

GDB/ARMulator support by <[email protected]>
For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> ping 192.168.168.11
PING 192.168.168.11 (192.168.168.11): 56 data bytes
ping: sendto: Network is unreachable
ping: wrote 192.168.168.11 64 chars, ret=-1
ping: sendto: Network is unreachable
ping: wrote 192.168.168.11 64 chars, ret=-1
回复

使用道具 举报

发表于 2004-7-7 00:23:06 | 显示全部楼层
1: skyeye好像不是最新的 0.7.4
2:   当uclinux执行到shell后,在宿主机上运行ifconfig ,把它的输出给我看看。
3: 当uclinux执行到shell后,在shell中运行ifconfig ,把它的结果给我看看。如果没有输出,请在编译busybox时把ifconfig的信息输出支持加上。
注意,2应该有一个tap0的网络界面 网络地址为192.168.168.11
         3应该有一个eth0的网络界面,网络地址为192.168.168.x

感觉你快成功了。
回复

使用道具 举报

 楼主| 发表于 2004-7-7 10:10:40 | 显示全部楼层
我的skyeye 版本应该是0.7.0的(skyeye-0.7.0.tar.bz2)
网络设备是按照这个uclinux4skyeye-v0.2.3.tgz做的

skyeye 中的网络有问题啊,怎么办,是不是网卡驱动有问题啊
//////////////////宿主机/////////////////////
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:3A:9D:B0
          inet addr:192.168.0.202  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2271305 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2566963 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:413990194 (394.8 Mb)  TX bytes:1172587954 (1118.2 Mb)
          Interrupt:11 Base address:0xf000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18486 (18.0 Kb)  TX bytes:18486 (18.0 Kb)

tap0      Link encap:Ethernet  HWaddr 00:FF:20:C6:A0:7A
          inet addr:192.168.168.11  Bcast:192.168.168.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          
          
/////////////////skyeye/////////////            
eth0      Link encap:Ethernet  HWaddr 00:00:00:00:00:00
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:16

lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
回复

使用道具 举报

发表于 2004-7-7 23:56:46 | 显示全部楼层
感觉你的uclinux for skyeye 没有对,因为skyeye 环境中运行的eth0 的IP地址没有配起来。可以在uclinux的shell下试试如下命令,看它的输出。
#ifconfig eth0 down
#ifconfig eth0 192.168.11.10
#ifconfig
看看是否eth0的输出有IP地址了。
如果还没有,可能是你自己加uclinux 网络驱动的过程不对。

建议用skyeye-0.7.4
还有就是你用用 skyeye-testsuit-1.0.4中的AT91目录下有网络配置的编译好的uclinux运行试试,看看网络通否。
回复

使用道具 举报

发表于 2004-9-21 21:13:23 | 显示全部楼层

我的问题!

 不知道兄弟调通没,我也有问题!
  我是在VMware 上安装的Redhat9.0,然后安装skyeye0.7.7和uClinux!
     在Skyeye下运行uClinux,老是提示:/bin/ifconfig up 10.0.0.2
   我用ifconfig 配置eth0为192。168。0。84(或83),可以看到eth0配置是对的!只是发觉接受和发送包都为0;
   在linux 下我也可以看见ifconfig 包括了tap0:198。168.0。83,也发觉接受和发送包都为0;
   (我的主机ip是192.168.0.81,VMware下的linux IP 192.168.0.82,他们通讯正常;skyeye 下lsmod 也可以看到有tun模块!)
  但是我进入uCLinux后ping 谁都死在哪!:(:(
    请大虾们帮帮忙!
   
回复

使用道具 举报

发表于 2004-9-23 18:22:07 | 显示全部楼层
楼主有没有搞定?
我这类问题也很相似
因为用redhat as3, 里面没有tun,编译内核又过不去
所以用了vnet
改了skyeye.conf, 启动uclinux没有问题
但是不管是主机下ping还是uclinux下ping
都是unreachable

/> ifconfig
eth0      Link encap:Ethernet  HWaddr 00:04:03:02:01:0F
          inet addr:10.0.0.2  Bcast:10.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:0 (0.0 iB)  TX bytes:0 (0.0 iB)
          Interrupt:16

/> ping 10.0.0.2
PING 10.0.0.2 (10.0.0.2): 56 data bytes
ping: sendto: Invalid argument
ping: wrote 10.0.0.2 64 chars, ret=-1
ping: sendto: Invalid argument
ping: wrote 10.0.0.2 64 chars, ret=-1
ping: sendto: Invalid argument

两天了,还是没搞定  
:-(
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-5-5 03:17 , Processed in 0.138198 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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