QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2214|回复: 13

help: armlinux的skyeye.conf

[复制链接]
发表于 2004-5-15 14:31:25 | 显示全部楼层 |阅读模式
谁能帮我贴一下典型的适合armlinux的skyeye.conf吗?
或者是用于linux-2.4.18-rmk7的,
或者是最新的用于linux src(2.4.13)patched for ep7312的。
我找不着啊。



Don't tell me to download the testsuite.
It's too large.
发表于 2004-5-15 23:52:38 | 显示全部楼层
#skyeye config file sample
cpu: arm720t

mach: ep7312

#mem_num: 4

mem_bank: map=I, type=RW, addr=0x80000000, size=0x00010000
mem_bank: map=M, type=R,  addr=0x0, size=0xC0000
mem_bank: map=M, type=R,  addr=0xC0000, size=0x140000, file=./romfs-zmrx.img
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x1000000
lcd:state=on
#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet,
#hostip=192.168.111.1301

#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet, #hostip=192.168.177.131
回复

使用道具 举报

 楼主| 发表于 2004-5-17 00:09:11 | 显示全部楼层
谢谢!我试了一下。这个是for ep7312的,请问romfs-zmrx.img是怎么来的呢?我只下到了for linux-2.4.18-rmk7的initrd.img。
run之后报mount root fs error之类的信息。
希望帮助!
回复

使用道具 举报

发表于 2004-5-17 11:13:11 | 显示全部楼层
在skyeye.conf中把romfs-zmrx.img改成initrd.img
回复

使用道具 举报

 楼主| 发表于 2004-5-17 23:23:21 | 显示全部楼层
改了才报cann't mount root fs, super block之类的问题,不改它会报找不着了。
而若用在linux-2.4.18-rmk7上,它干脆到starting……这第一句的位置就停了。
是不是非要自己弄一个initrd.img根文件系统盘出来呀?但这个应该比较通用啊,最好我就不要再费劲了,而且实际上主要是由于我不熟,虽然知道有这么回事。要选目录、文件,要mknod或mkdev之类的吧?选哪些?建哪些dev?
回复

使用道具 举报

 楼主| 发表于 2004-5-19 23:25:12 | 显示全部楼层
help?! Please.
And expect Bamboo's readme eagerly.
回复

使用道具 举报

 楼主| 发表于 2004-5-20 21:52:20 | 显示全部楼层
唉,还没回信。大哥们帮帮忙。小弟上回网拨回号不易呀。这个50块的TP-link的内猫要让小弟的机器蓝屏三次以上不是难事。想来驱动写得很破。(要有资料的话真想自己牛得能写个驱动才解气)
回复

使用道具 举报

发表于 2004-5-21 11:26:35 | 显示全部楼层
把你的错误信息详细贴出来看一下。包括使用initrd.img和romfs-zmrx.img的情况,你说的比较简单,别人很难解答你的问题的。
回复

使用道具 举报

 楼主| 发表于 2004-5-22 00:04:20 | 显示全部楼层
感谢ksh大虾出手。眼前一亮,:-)。

我因为看到前面版主回caolingzhi的帖子,其中报的问题的表现差不多;
再加上不太了解有什么好的方法将输出信息重定向出来,以为这种问题很常见,所以只说了一下情况。
以下是重定向时盲输入的,请教有无更好的方法?


问题输出:

=====================================================
1. 我手头只有initrd.img,那个romfs-zmrx.img不知道啊。在哪儿?
=====================================================

=====================================================
2. skyeye.conf (用的halfyear给的)
----------
#skyeye config file sample
cpu: arm720t

mach: ep7312

#mem_num: 4

mem_bank: map=I, type=RW, addr=0x80000000, size=0x00010000
mem_bank: map=M, type=R, addr=0x0, size=0xC0000
mem_bank: map=M, type=R, addr=0xC0000, size=0x140000, file=initrd.img #, file=./romfs-zmrx.img
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x1000000
#lcd:state=on
#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet,
#hostip=192.168.111.1301

#net: state=on, mac=0:4:3:2:1:f, ethmod=vnet, #hostip=192.168.177.131

=====================================================




=====================================================
3.先是for linux-2.4.13 patched for ep7312的输出:
-------------
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) target sim
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xe000 vma 0xc0028000
Loading section .text, size 0x10811c vma 0xc0036000
Loading section __ex_table, size 0x7c0 vma 0xc013e120
Loading section .data, size 0xa67b vma 0xc0140000
Start address 0xc0028000
Transfer rate: 9468600 bits in <1 sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux-2.4.13/vmlinux
Linux version 2.4.13-ac4-rmk1 ([email protected]) (gcc version 2.95.3 20010315 (release)) #7 Sat Mar 13 20:21:38 CST 2004
Processor: ARM ARM720T revision 0
Architecture: Cirrus Logic EDB7312 (EP7312 evaluation board)
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14612KB available (1056K code, 219K data, 56K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 9618kB/3206kB, 64 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
cs89x0:cs89x0_probe(0x0)
PP_addr=0x0
eth0: incorrect signature 0x0
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: FB0C0000-FB0BFFFF [VIRTUAL FB0C0000-FB0BFFFF] (RO)
Can't allocate major number 31 for Memory Technology Devices.
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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
Blkmem: bad access: block=2, count=2 (pos=800, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 2
EXT2-fs: unable to read superblock
Blkmem: bad access: block=0, count=2 (pos=400, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 0
romfs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 1f:00

Program received signal SIGINT, Interrupt.
0xc0040464 in panic (fmt=0xc01236fc "VFS: Unable to mount root fs on %s")
    at panic.c:103
103                        CHECK_EMERGENCY_SYNC
(SkyEye) bt
#0  0xc0040464 in panic (fmt=0xc01236fc "VFS: Unable to mount root fs on %s")
    at panic.c:103
#1  0xc002c8b4 in mount_root () at super.c:1042
#2  0xc0036050 in prepare_namespace () at init/main.c:874
#3  0xc0036068 in init (unused=0xc01236fc) at init/main.c:908
(SkyEye) q
The program is running.  Exit anyway? (y or n)
=====================================================




=====================================================
4.这里是for linux-2.4.18-rmk7的输出,我试着把, file=initrd.img 一句放到上面地址从0开始处,好象结果一样。
-------------
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"...
(no debugging symbols found)...
(SkyEye) target sim
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xb000 vma 0xc0028000
Loading section .text, size 0xbb898 vma 0xc0033000
Loading section __ex_table, size 0x6d8 vma 0xc00ee8a0
Loading section .data, size 0x961c vma 0xc00f0000
Start address 0xc0028000
Transfer rate: 6827104 bits in <1 sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux1/vmlinux
Linux version 2.4.18-rmk7 ([email protected]) (gcc version 2.95.3 20010315 (release)) #5 Sat Mar 13 09:08:00 CST 2004
CPU: ARM ARM720T revision 0
Machine: Cirrus Logic 7212/7312
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: root=/dev/ram
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 13080KB available (750K code, 166K data, 44K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 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
ttyAM0 at I/O 0x100 (irq = 12) is a CLPS711x
ttyAM1 at I/O 0x1100 (irq = 2 is a CLPS711x
block: 64 slots per queue, batch=16
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
RAMDISK: Couldn't find valid RAM disk image starting at 0.
Freeing initrd memory: 2048K
Kernel panic: VFS: Unable to mount root fs on 01:00

Program received signal SIGINT, Interrupt.
0xc003ce2c in panic ()
(SkyEye) by
(SkyEye) bt
#0  0xc003ce2c in panic ()
#1  0xc002c53c in mount_root ()
#2  0xc0033138 in prepare_namespace ()
#3  0xc003322c in init ()
(SkyEye) q
The program is running.  Exit anyway? (y or n)
=====================================================
回复

使用道具 举报

 楼主| 发表于 2004-5-22 20:05:59 | 显示全部楼层
我查找了一下问题出的地方,得到如下线索; 我给register_blkdev()加一些打印语句:

(mtdblock.c (?))
int register_blkdev(unsigned int major, const char * name, struct block_device_operations *bdops)
{
    printk(KERN_NOTICE "param1-major %d, 2-name %s 3-bdops %p,MAX_BLKDEV %d\n", major, name, bdops,MAX_BLKDEV);
        if (major == 0) {
                for (major = MAX_BLKDEV-1; major > 0; major--) {
                        if (blkdevs[major].bdops == NULL) {
                                blkdevs[major].name = name;
                                blkdevs[major].bdops = bdops;
                                return major;
                        }
                }
                return -EBUSY;
        }
        if (major >= MAX_BLKDEV){
                printk(KERN_NOTICE "seem exceeded the MAX_BLKDEV, return.\n");
                return -EINVAL;
        }
         
        if (blkdevs[major].bdops && blkdevs[major].bdops != bdops){
                printk(KERN_NOTICE "seems problem with bdops, return.blkdevs[%d].bdops is %p, while bdops is %p\n", major, blkdevs[major].bdops, bdops);
          //      goto SKIP;
                return -EBUSY;
        }
        
        blkdevs[major].name = name;
        blkdevs[major].bdops = bdops;
        //SKIP:
        printk(KERN_NOTICE "seem ok, return 0.\n");
        return 0;
}

然后skyeye运行显示如下:

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) target sim
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xe000 vma 0xc0028000
Loading section .text, size 0x108294 vma 0xc0036000
Loading section __ex_table, size 0x7c0 vma 0xc013e2a0
Loading section .data, size 0xa67b vma 0xc0140000
Start address 0xc0028000
Transfer rate: 9471608 bits in <1 sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux-2.4.13/vmlinux
Linux version 2.4.13-ac4-rmk1 ([email protected]) (gcc version 2.95.3 20010315 (release)) #20 Sun Mar 21 03:06:24 CST 2004
Processor: ARM ARM720T revision 0
Architecture: Cirrus Logic EDB7312 (EP7312 evaluation board)
Warning: bad configuration page, trying to continue
On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line:
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14612KB available (1056K code, 219K data, 56K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 9618kB/3206kB, 64 slots per queue
param1-major 1, 2-name ramdisk 3-bdops c0146f78,MAX_BLKDEV 255
seem ok, return 0.
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
cs89x0:cs89x0_probe(0x0)
PP_addr=0x0
eth0: incorrect signature 0x0
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: FB0C0000-FB0BFFFF [VIRTUAL FB0C0000-FB0BFFFF] (RO)



param1-major 31, 2-name Blkmem 3-bdops c0146fdc,MAX_BLKDEV 255
seem ok, return 0.
param1-major 31, 2-name mtdblock 3-bdops c0147bc8,MAX_BLKDEV 255
seems problem with bdops, return.blkdevs[31].bdops is c0146fdc, while bdops is c0147bc8
in _block.c UNDEF Can't allocate major number 31 for Memory Technology Devices.param1-MAJOR_NR 31,2-name mtdblock, 3,ops c0147bc8

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
在这里似乎是两次块设备注册的意思(?),一个叫Blkmem,一个叫mtdblock,major都相同,为31,
但bdops不同(设备的操作函数不同),所以程序判断有问题,返回EBUSY.这个是引起问题的原因吗?
还是本来就是这样的?

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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
Blkmem: bad access: block=2, count=2 (pos=800, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 2
EXT2-fs: unable to read superblock
Blkmem: bad access: block=0, count=2 (pos=400, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 0
romfs: unable to read superblock
Kernel panic: VFS: Unable to mount root fs on 1f:00

Program received signal SIGINT, Interrupt.
0xc0040468 in panic (fmt=0xc0123760 "VFS: Unable to mount root fs on %s")
    at panic.c:103
103                        CHECK_EMERGENCY_SYNC
(SkyEye) bt
#0  0xc0040468 in panic (fmt=0xc0123760 "VFS: Unable to mount root fs on %s")
    at panic.c:103
#1  0xc002c8b4 in mount_root () at super.c:1042
#2  0xc0036050 in prepare_namespace () at init/main.c:874
#3  0xc0036068 in init (unused=0xc0123760) at init/main.c:908
(SkyEye) q
The program is running.  Exit anyway? (y or n)

请多多帮忙!
回复

使用道具 举报

发表于 2004-5-23 16:47:55 | 显示全部楼层
我觉得首先skyeye.conf的文件中的内存地址应该是连续的。内存地址应该和硬件手册一致。
第一次的错误可能是因为本来是ROM的地方,不应该放initrd.img,initrd.img应该是ramfs才对。我建议你用下面的内存配置试一下:
mem_bank: map=I, type=RW, addr=0x80000000, size=0x00010000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0xc0200000, size=0x00200000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0xc0400000, size=0x00c00000
注意你的initrd.img不要超过2M
回复

使用道具 举报

 楼主| 发表于 2004-5-24 00:27:26 | 显示全部楼层
首先,我不知道ep7312应怎样设置为妥,也没什么硬件手册,所以想求得一个典型配置。
试了一下,还是有问题啊,输出好像一样的:
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) target sim
cpu info: armv4, arm720t, 41807200, ffffff00, 1
mach info: name ep7312, mach_init addr 0x813f5b4
SKYEYE: use arm7100 mmu ops
Loaded ROM ./initrd.img
Connected to the simulator.
(SkyEye) load
Loading section .init, size 0xe000 vma 0xc0028000
Loading section .text, size 0x108294 vma 0xc0036000
Loading section __ex_table, size 0x7c0 vma 0xc013e2a0
Loading section .data, size 0xa67b vma 0xc0140000
Start address 0xc0028000
Transfer rate: 9471608 bits/sec.
(SkyEye) run
Starting program: /usr/src/armlinux/linux-2.4.13/vmlinux
Linux version 2.4.13-ac4-rmk1 ([email protected]) (gcc version 2.95.3 20010315 (release)) #21 Mon Mar 22 07:27:54 CST 2004
Processor: ARM ARM720T revision 0
Architecture: Cirrus Logic EDB7312 (EP7312 evaluation board)
Warning: bad configuration page, trying to continue
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
这里是不是表明有问题?

On node 0 totalpages: 4096
zone(0): 4096 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line:
^^^^^^^^^^^^^^^^^^^^^^^^
这里是否需要什么?
Calibrating delay loop... 26.00 BogoMIPS
Memory: 16MB = 16MB total
Memory: 14612KB available (1056K code, 219K data, 56K init)
Dentry-cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode-cache hash table entries: 1024 (order: 1, 8192 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: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
pty: 256 Unix98 ptys configured
block: queued sectors max/low 9618kB/3206kB, 64 slots per queue
param1-major 1, 2-name ramdisk 3-bdops c0146f78,MAX_BLKDEV 255
seem ok, return 0.
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
cs89x0:cs89x0_probe(0x0)
PP_addr=0x0
eth0: incorrect signature 0x0
cs89x0: no cs8900 or cs8920 detected.  Be sure to disable PnP with SETUP
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenneth Albanowski
Blkmem 1 disk images:
0: FB0C0000-FB0BFFFF [VIRTUAL FB0C0000-FB0BFFFF] (RO)
param1-major 31, 2-name Blkmem 3-bdops c0146fdc,MAX_BLKDEV 255
seem ok, return 0.
param1-major 31, 2-name mtdblock 3-bdops c0147bc8,MAX_BLKDEV 255
seems problem with bdops, return.blkdevs[31].bdops is c0146fdc, while bdops is c0147bc8
in _block.c UNDEF Can't allocate major number 31 for Memory Technology Devices.param1-MAJOR_NR 31,2-name mtdblock, 3,ops c0147bc8
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^]
这是我的语句打印的,有无问题?
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 1024 bind 1024)
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
NetWinder Floating Point Emulator V0.95 (c) 1998-1999 Rebel.com
Blkmem: bad access: block=2, count=2 (pos=800, len=0)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
是不是开始不行了?
end_request: I/O error, dev 1f:00 (Blkmem), sector 2
EXT2-fs: unable to read superblock
^^^^^^^^^^^^^^^^^^^^^^^
尝试ext2不行,?
Blkmem: bad access: block=0, count=2 (pos=400, len=0)
end_request: I/O error, dev 1f:00 (Blkmem), sector 0
romfs: unable to read superblock
^^^^^^^^^^^^^^^^^^^^^^^^
尝试romfs不行?
Kernel panic: VFS: Unable to mount root fs on 1f:00
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
不行了。

Program received signal SIGINT, Interrupt.
panic (fmt=0xc0123760 "VFS: Unable to mount root fs on %s") at panic.c:103
103                        CHECK_EMERGENCY_SYNC
(SkyEye) bt
#0  panic (fmt=0xc0123760 "VFS: Unable to mount root fs on %s") at panic.c:103
#1  0xc002c8b4 in mount_root () at super.c:1042
#2  0xc0036050 in prepare_namespace () at init/main.c:874
#3  0xc0036068 in init (unused=0xc0123760) at init/main.c:908
(SkyEye) q
The program is running.  Exit anyway? (y or n)


以下是我在/usr/src/armlinux下的目录,initrd.img不超过2M啊:
total 10052
drwxr-xr-x   20 1046     101          4096 Mar  4 10:46 arch
-rw-r--r--    1 1046     101         18689 Oct 10  2001 COPYING
-rw-r--r--    1 root     root        77852 Mar  4 10:46 CREDITS
-rw-r--r--    1 root     root          593 Mar 21 01:13 diff.txt
drwxr-xr-x   30 1046     101          4096 Mar  8 17:37 Documentation
drwxr-xr-x   42 root     root         4096 Mar  8 17:38 drivers
-rw-r--r--    1 root     root        17326 Mar  4 10:46 edb7312
-rw-r--r--    1 root     root         3677 Mar 20 06:33 err2.txt
-rw-r--r--    1 root     root         4069 Mar 21 03:08 errnew.txt
-rw-r--r--    1 root     root         4153 Mar 22 07:31 err.txt
drwxr-xr-x   46 1046     101          4096 Mar 22 07:26 fs
-rw-r--r--    1 root     root          453 Mar 21 02:18 grep.txt
drwxr-xr-x   28 1046     101          4096 Mar  8 21:36 include
drwxr-xr-x    2 1046     101          4096 Mar 22 07:27 init
-rwxr-xr-x    1 root     root      1536000 Mar 15 07:14 initrd.img
drwxr-xr-x    2 1046     101          4096 Mar 13 20:11 ipc
drwxr-xr-x    2 1046     101          4096 Mar 20 05:43 kernel
drwxr-xr-x    2 1046     101          4096 Mar 13 20:24 lib
-rw-r--r--    1 root     root            0 Mar 22 07:34 ll.txt
-rw-r--r--    1 root     root        39256 Mar  4 10:46 MAINTAINERS
-rw-r--r--    1 root     root        17516 Mar 13 20:21 Makefile
drwxr-xr-x    2 1046     101          4096 Mar 13 20:22 mm
drwxr-xr-x   27 1046     101          4096 Mar 13 20:24 net
-rw-r--r--    1 1046     101         14242 Oct  6  2001 README
-rw-r--r--    1 1046     101          2815 Apr  7  2001 REPORTING-BUGS
-rw-r--r--    1 root     root         8888 Mar  4 10:46 Rules.make
drwxr-xr-x    5 1046     101          4096 Apr 24  2004 scripts
-rwxr-xr-x    1 root     root          293 Mar 22 07:23 skyeye.conf
-rwxr-xr-x    1 root     root          513 Mar 21 01:15 skyeye.conf.old
-rw-r--r--    1 root     root       133547 Mar 22 07:28 System.map
-rwxr-xr-x    1 root     root      5924464 Mar 22 07:28 vmlinux
-rwxr-xr-x    1 root     root      1189499 Mar 22 07:28 vmlinux.bin
-rwxr-xr-x    1 root     root      1205883 Mar  8 17:44 vmlinux.bin.old


以下是试用的你建议的skyeye.conf:
cpu: arm720t

mach: ep7312
mem_bank: map=I, type=RW, addr=0x80000000, size=0x00010000
mem_bank: map=M, type=RW, addr=0xc0000000, size=0x00200000
mem_bank: map=M, type=RW, addr=0xc0200000, size=0x00200000, file=./initrd.img
mem_bank: map=M, type=RW, addr=0xc0400000, size=0x00c00000


怎么解决这个问题呢?请教原因明显吗?
回复

使用道具 举报

 楼主| 发表于 2004-5-24 01:00:25 | 显示全部楼层
噢!我错了!我刚才又试了一下for linux-2.4.18-rmk7的,ksh大虾的这个.conf起作用了!终于见到了“ARMLINUX”字样!感谢!
上面我是对linux-2.4.13 patched for ep7312试的,所以没有成功。
那么也就是说这两个的根文件系统不一样。是否ep7312的是那个romfs-zmrx.img,请问在哪儿可以找到?
回复

使用道具 举报

发表于 2004-5-24 10:21:21 | 显示全部楼层
直接用linux中的genromfs命令生成即可。例如:
mount -o loop initrd.img /mnt
genromfs -d /mnt -f romfs-zmrx.img
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-12-12 05:14 , Processed in 0.078114 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

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