QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2006|回复: 5

求教解決在skyeye 運行的 uclinux 無法與外部網路連接的問題

[复制链接]
发表于 2010-10-12 11:14:05 | 显示全部楼层 |阅读模式
uclinux 編譯成功 , 也能夠在 skyeye 裡起動 。 但當我在 command shell 輸入 ifconfig 卻顯示 :
No usable address families found .
Socket: Address family not supported by protocol
在booting 時顯示 :
failed to setup_module  (name:net , type:rtl8019)
以下是我的 skyeye.conf :
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=0x00400000, file=./boot.rom
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 : type=rtl8091 , mac=0:4:3:2:1:f , ethmod=tuntap , hostip=10.0.0.1

我的目標是在 skyeye 成功使用wget 功能 ,
請指教 ! 謝謝 !
发表于 2010-10-12 14:04:49 | 显示全部楼层
回复

使用道具 举报

 楼主| 发表于 2010-10-15 09:59:16 | 显示全部楼层

回复 2# ksh 的帖子

Thanks . However , soon after I rebuilt my kernel with your method , ifconfig is killed . The following is my booting record and skyeye.conf . I think it is due to my wrong configuration in skyeye.conf . I can't use the default one provided on the net since uclinux will not run successfully and it will output error :
SKYEYE : NumInstrs 4974841 , mem_write_byte addr = 2000023c no bank .
I would be much appreciated with your help . Thanks !

booting :
root@steven-desktop:/home/steven/uClinux-dist/images# skyeye -e linux
Your elf file is little endian.
arch: arm
cpu info: armv3, arm7tdmi, 41007700, fff8ff00, 0
mach info: name at91, mach_init addr 0x8060680
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
can't find device module: (name:net, typenull))
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm7100 mmu ops
Loaded ROM   ./boot.rom
exec file "linux"'s format is elf32-little.
load section .init: addr = 0x01000000  size = 0x0000a000.
load section .text: addr = 0x0100a000  size = 0x000cceb0.
load section .data: addr = 0x010d8000  size = 0x00009b74.
not load section .bss: addr = 0x010e1b80  size = 0x00021550 .
not load section .comment: addr = 0x00000000  size = 0x00001182 .
not load section .debug_abbrev: addr = 0x00000000  size = 0x0003b4b7 .
not load section .debug_info: addr = 0x00000000  size = 0x00ac4fe9 .
not load section .debug_line: addr = 0x00000000  size = 0x000a430f .
not load section .debug_pubnames: addr = 0x00000000  size = 0x0000c3fe .
not load section .debug_aranges: addr = 0x00000000  size = 0x00002348 .
not load section .debug_str: addr = 0x00000000  size = 0x00023606 .
not load section .debug_frame: addr = 0x00000000  size = 0x00015ca8 .
not load section .debug_ranges: addr = 0x00000000  size = 0x00010ae0 .
call ARMul_InitSymTable,kernel filename is linux.
start addr is set to 0x01000000 by exec file.
Linux version 2.4.34.5-uc0 (root@steven-desktop) (gcc version 3.4.4) #2 Thu Oct 14 10:48:33 HKT 2010
Processor: Atmel AT91M40xxx revision 0
Architecture: EB01
Ignoring unrecognised tag 0x54410001
Ignoring unrecognised tag 0x54410002
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... 15.82 BogoMIPS
Memory: 4MB = 4MB total
Memory: 3000KB available (819K code, 176K 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-15503FF [VIRTUAL 1400000-15503FF] (RO) <ROMFS>
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>Universal TUN/TAP device driver 1.5 (C)1999-2002 Maxim Krasnyansky
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 1024)
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
expand[8] killed because of sig - 11
STACK DUMP:
0x011cff1c: 011cd16c 00000000 6144c024 00000800 00000000 2144be34 00000000
0x011cff38: 13000000 00000003 00000004 0144a7d8 00003429 00000013 00000000
0x011cff54: 00000000 00000000 011cff80 0144eaa0 6144c2d4 00000070 0144eab0
0x011cff70: 00000003 011cff80
pc : [<00000004>]    lr : [<2144c140>]    Not tainted
sp : 011cff1c  ip : 011cff1c  fp : 0144a590
r10: 011cc004  r9 : 00000003  r8 : 011cff4c
r7 : 011ca004  r6 : 011cff28  r5 : 00000000  r4 : ffffffff
r3 : 00000098  r2 : 00000003  r1 : 011cd274  r0 : 00000000
Flags: nzCv  IRQs on  FIQs on  Mode USER_26  Segment user
Control: 0
Command: mount -t proc proc /proc
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974847, mem_read_word addr = 20000087 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974866, mem_read_word addr = 20000087 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974896, mem_read_word addr = 1fffe32c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974904, mem_read_word addr = 1fffff9f no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974904, mem_read_word addr = 1fffffa3 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974904, mem_read_word addr = 1fffffa7 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974904, mem_read_word addr = 1fffffab no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 4974904, mem_read_word addr = 1fffffaf no bank
mount[9] killed because of sig - 11
STACK DUMP:
pc : [<00000004>]    lr : [<1fffe330>]    Not tainted
sp : 1fffffb3  ip : 00000050  fp : 00000000
r10: ffffffff  r9 : 0100b8bc  r8 : 00000005
r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00000000
r3 : 00000000  r2 : 1fffe000  r1 : 1fffffb3  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode USER_26  Segment user
Control: 0
Command: mount -t ext2 /dev/ram0 /var
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122672, mem_read_word addr = 20000087 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122691, mem_read_word addr = 20000087 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122721, mem_read_word addr = 1fffe32c no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122729, mem_read_word addr = 1fffff9f no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122729, mem_read_word addr = 1fffffa3 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122729, mem_read_word addr = 1fffffa7 no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122729, mem_read_word addr = 1fffffab no bank
SKYEYE:Error in mem_read_word, no bank found, NumInstrs 5122729, mem_read_word addr = 1fffffaf no bank
mount[10] killed because of sig - 11
STACK DUMP:
pc : [<00000004>]    lr : [<1fffe330>]    Not tainted
sp : 1fffffb3  ip : 00000050  fp : 00000000
r10: ffffffff  r9 : 0100b8bc  r8 : 00000005
r7 : 00000000  r6 : 00000000  r5 : 00000000  r4 : 00000000
r3 : 00000000  r2 : 1fffe000  r1 : 1fffffb3  r0 : 00000000
Flags: nZCv  IRQs on  FIQs on  Mode USER_26  Segment user
Control: 0
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: cat /etc/motd
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ | | | | / /
   | |_| | |__| || | | | | |_| |/   
   |  _______|_||_|_| |_|____|_/_/
   | |
   |_|

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

Execution Finished, Exiting
sh[7] killed because of sig - 11
STACK DUMP:
0x0114febc: 0114a3fc 00000000 61487acc 00000000 0114ffc4 00000000 00000002
0x0114fed8: 0114ffc4 00000000 00000002 2147d458 0147d550 00000000 00000000
0x0114fef4: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x0114ff10: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x0114ff2c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x0114ff48: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x0114ff64: 00000000 00000000 10000000 00000000 00000000 00000000 00000000
0x0114ff80: 0114ffa8 0148cc08 00000002 61488134 0000018c 0148cc18 00000002
0x0114ff9c: 0114ffa8
pc : [<00000004>]    lr : [<21487fa0>]    Not tainted
sp : 0114febc  ip : 0114febc  fp : 0147d2e0
r10: 01148004  r9 : 00000002  r8 : 0114ffa8
r7 : 00000001  r6 : 0114fec8  r5 : 00000000  r4 : ffffffff
r3 : 000001e0  r2 : 00000002  r1 : 0114ad20  r0 : 00000000
Flags: nzCv  IRQs on  FIQs on  Mode USER_26  Segment user
Control: 0

Sash command shell (version 1.1.1)
/> ifconfig
ifconfig[12] killed because of sig - 11
STACK DUMP:
0x013f7e38: 013f29f0 00000000 6149e444 21499458 00000000 00000000 013f296c
0x013f7e54: 00000000 00000000 013f296c 01497db4 00000000 00000000 00000000
0x013f7e70: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x013f7e8c: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x013f7ea8: 00000000 00000000 00000000 00000000 00000000 00000000 00000000
0x013f7ec4: 00000000 00000000 00000000 00000000 00000000 00000013 0149c628
0x013f7ee0: 013f7f3d 014a0e18 013f7f2c 00008a3b 0149ce00 00000500 00000005
0x013f7efc: 00000cbd 00008a3b 081c0300 01000415 1a131100 170f1200 00000016
0x013f7f18: 013f2c98 013f3430 00000000 013f7f94 2149cda4 00000500 00000005
0x013f7f34: 00000cbd 00008a3b 081c0300 01000415 1a131100 170f1200 00000016
pc : [<00000004>]    lr : [<2149e560>]    Not tainted
sp : 013f7e38  ip : 013f7e38  fp : 01496a68
r10: 013f0004  r9 : 00000174  r8 : 00000000
r7 : 00000000  r6 : 013f7e44  r5 : 00000000  r4 : ffffffff
r3 : 00000198  r2 : 00000001  r1 : 013f2d9c  r0 : 00000000
Flags: nzCv  IRQs on  FIQs on  Mode USER_26  Segment user
Control: 0
回复

使用道具 举报

 楼主| 发表于 2010-10-15 10:01:21 | 显示全部楼层

回复 2# ksh 的帖子

#skyeye config file sample
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=0x00400000, file=./boot.rom
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=M, type=RW, addr=0x2000023c, size=0x1a000000
mem_bank: map=I, type=RW, addr=0xf0000000, size=0x10000000
#set nic info state=on/off  mac=xxxxxxx  ethmod=tuntap/vnet hostip=dd.dd.dd.dd
net: state=on, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
回复

使用道具 举报

发表于 2010-10-15 14:02:52 | 显示全部楼层

回复 4# nicesteven 的帖子

I guess the key problem for you is the net setting, maybe you should set it like follows:
net: type=rtl8019, mac=0:4:3:2:1:f, ethmod=tuntap, hostip=10.0.0.1
type=rtl8019 is needed, and not type=rtl8091. I did not verify it, you could have a try and
give me feedback if possible, thank you!
回复

使用道具 举报

 楼主| 发表于 2010-10-15 14:32:14 | 显示全部楼层

回复 5# lchlog 的帖子

it still doesn't work after i modified the net setting as u have mensioned and the error messages are the same .
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-3-28 20:58 , Processed in 0.118277 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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