QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2138|回复: 4

再问cs8900a问题

[复制链接]
发表于 2009-5-2 10:04:04 | 显示全部楼层 |阅读模式
Your elf file is little endian.
arch: arm
cpu info: armv4, arm920t, 41009200, ff00fff0, 2
mach info: name s3c2410x, mach_init addr 0x806ed60
ethmod num=1, mac addr=0:4:3:2:1:f, hostip=10.0.0.1
tapif_initpen: Permission denied
-----------------------------------------------------------
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE:    mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!
-----------------------------------------------------------
failed to setup_module (name:net, type:cs8900a)

lcd_mod:1
uart_mod:0, desc_in:, desc_out:, converter:
SKYEYE: use arm920t mmu ops
Loaded RAM   ./initrd.img
start addr is set to 0xc0008000 by exec file.
Linux version 2.6.14 (francois@francois-laptop) (gcc version 3.3.2) #4 Fri May 1 18:12:31 CST 2009
CPU: ARM920Tid(wb) [41009200] revision 0 (ARMvundefined/unknown)
Machine: SMDK2410
Warning: bad configuration page, trying to continue
Memory policy: ECC disabled, Data cache writeback
CPU S3C2410 (id 0x32410000)
S3C2410: core 62.400 MHz, memory 62.400 MHz, peripheral 62.400 MHz
S3C2410 Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists
Kernel command line: mem=32M console=ttySAC0 root=/dev/ram initrd=0xc0800000,0x00800000 ramdisk_size=8192 rw
PID hash table entries: 256 (order: 8, 4096 bytes)
timer tcon=00000000, tcnt cb1f, tcfg 00000200,00000000, usec 0000189e
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 22272KB available (1556K code, 291K data, 96K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
checking if image is initramfs...it isn't (bad gzip magic numbers); looks like an initrd
softlockup thread 0 started up.
Freeing initrd memory: 8192K
NET: Registered protocol family 16
S3C2410: Initialising architecture
Console: switching to colour frame buffer device 80x25
fb0: Virtual frame buffer device, using 1024K of video memory
s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410
s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410
s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
ERROR: s3c2410x_io_write_word(0x1900030a) = 0x00000000
eth0: incorrect signature 0xffff

mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 204
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
RAMDISK: ext2 filesystem found at block 0
RAMDISK: Loading 4096KiB [1 disk] into ram disk... done.
VFS: Mounted root (ext2 filesystem).
Freeing init memory: 96K
ifconfig: SIOCSIFADDR: No such device
/bin/ash: can't access tty; job control turned off
注释的地方都是什么意思啊?是我内核配置的问题?还是我的文件系统制作时的我问题?我查看了我的配置,该有的我都有了......
发表于 2009-5-2 10:58:14 | 显示全部楼层
/dev 里面的设备有问题?
回复

使用道具 举报

发表于 2009-5-2 11:15:30 | 显示全部楼层

回复 1# boy0673 的帖子

两个问题:
1. 阅读如下警告:
NOTICE: you should be root at first !!!
NOTICE: you should inmod linux kernel net driver tun.o!!!
NOTICE: if you don't make device node, you should do commands:
NOTICE:    mkdir /dev/net; mknod /dev/net/tun c 10 200
NOTICE: now the net simulation function can not support!!!
NOTICE: Please read SkyEye.README and try again!!!

你应该用root用户运行这个示例,因为在运行网卡模拟的时候,需要插入tun.o的内核模块
回复

使用道具 举报

 楼主| 发表于 2009-5-2 14:16:44 | 显示全部楼层

回复 3# ksh 的帖子

在做根文件系统时,把mkdir /dev/net; mknod /dev/net/tun c 10 200已经做了
问题主要出在:没有tun.o,                 而生成tun.o模块需要重新配置内核...
两个问题:
     1, 我配置内核时 make menuconfig, 不认识network driver 里能生成tun.o的相关项目...
     2,是不是生成tun.o模块后,在重新把这个模块添加到initrd.img里,运行skyeye,insmod?
请高手予以指点...
回复

使用道具 举报

 楼主| 发表于 2009-5-2 14:23:41 | 显示全部楼层
我错了...真得是权限问题啊....苦死我了..
sudo skyeye -e  vmlinux

... ...
Cirrus Logic CS8900A driver for Linux (Modified for SMDK2410)
eth0: CS8900A rev D at 0xe0000300 irq=53, no eeprom , addr: 08: 0:3E:26:0A:5B
... ....
看来我的内核配置绝对没有问题...但是我想再问一下怎么在内核配置里编译出tun.o这种模块文件...相应的配置项目是?

[ 本帖最后由 boy0673 于 2009-5-2 17:26 编辑 ]
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-2 06:28 , Processed in 0.042118 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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