• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 文件系统的制做问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
楼主  发表于: 2009-06-03 15:06

 文件系统的制做问题

用的是supervivi和友善的zImage
自己做了个文件系统,由于自己搞的内核心一直有问题所以无法一起来
下到扳子上后出来了这个就一直不动了
Copy linux kernel from 0x00050000 to 0x30008000, size = 0x00200000 ... done
zImage magic = 0x016f2818
Setup linux parameters at 0x30000100
linux command line is: "noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0"
MACH_TYPE = 782
NOW, Booting Linux......
Uncompressing Linux........................................................................................................ done, booting the kernel.
Linux version 2.6.13 (root@capcross) (gcc version 3.4.1) #1 Thu Nov 27 09:49:37 CST 2008

CPU: ARM920Tid(wb) [41129200] revision 0 (ARMv4T)

Machine: QQ2440

ATAG_INITRD is deprecated; please update your bootloader.

Memory policy: ECC disabled, Data cache writeback

CPU S3C2440A (id 0x32440001)

BUG: mapping for 0x19000000 at 0xd0000000 overlaps vmalloc space

S3C2440: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz

S3C2410 Clocks, (c) 2004 Simtec Electronics

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: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0

irq: clearing subpending status 00000003

irq: clearing subpending status 00000002

PID hash table entries: 512 (order: 9, 8192 bytes)

timer tcon=00000000, tcnt a4ca, tcfg 00000200,00000000, usec 00001e57

Console: colour dummy device 80x30

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory: 64MB = 64MB total

Memory: 61056KB available (2515K code, 1032K data, 144K init)

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

NET: Registered protocol family 16

USB Power Control, (c) 2004 Simtec Electronics

S3C2440: Initialising architecture

S3C2440: IRQ Support

S3C2440: Clock Support, UPLL 48.000 MHz

SCSI subsystem initialized

usbcore: registered new driver hub

S3C2410 DMA Driver, (c) 2003-2004 Simtec Electronics

DMA channel 0 at c4800000, irq 33

DMA channel 1 at c4800040, irq 34

DMA channel 2 at c4800080, irq 35

DMA channel 3 at c48000c0, irq 36

NetWinder Floating Point Emulator V0.97 (double precision)

devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)

devfs: boot_options: 0x1

yaffs Nov 27 2008 09:47:56 Installing.

Initializing Cryptographic API

Console: switching to colour frame buffer device 30x20

S3C24X0 fb0: s3c2410fb frame buffer device initialize done

GPIO L3 bus interface for S3C2440, installed

S3C2410 RTC, (c) 2004 Simtec Electronics

s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling

leds initialized

buttons initialized

qq2440_pwm initialized

s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440

s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440

s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440

io scheduler noop registered

io scheduler anticipatory registered

io scheduler deadline registered

io scheduler cfq registered

RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize

loop: loaded (max 8 devices)

nbd: registered device at major 43

DM9000 ethernet driver V1.26 I/O: c481a300, VID: 90000a46

Linux video capture interface: v1.00

ovcamchip: v2.27 for Linux 2.6 : OV camera chip I2C driver

Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx

S3C24XX NAND Driver, (c) 2004 Simtec Electronics

s3c2440-nand: mapped registers at c4880000

s3c2440-nand: timing: Tacls 9ns, Twrph0 39ns, Twrph1 9ns

NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)

NAND_ECC_NONE selected by board driver. This is not recommended !!

Scanning device for bad blocks

Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":

0x00000000-0x00030000 : "bootloader"

0x00050000-0x00250000 : "kernel"

0x00250000-0x03ffc000 : "root"

s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1

s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 2 ports detected

Initializing USB Mass Storage driver...

usbcore: registered new driver usb-storage

USB Mass Storage support registered.

usbcore: registered new driver usbhid

drivers/usb/input/hid-core.c: v2.01:USB HID core driver

usbcore: registered new driver ov511

drivers/usb/media/ov511.c: v1.64 for Linux 2.5 : ov511 USB Camera Driver

usbcore: registered new driver gspca

drivers/usb/media/gspca/gspca_core.c: gspca driver 00.60.00 registered

mice: PS/2 mouse device common for all mice

ts: Compaq touchscreen protocol output

s3c2410 TouchScreen successfully loaded

i2c /dev entries driver

s3c2440-i2c s3c2440-i2c: slave address 0x10

s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz

s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter

s3c2410-sdi s3c2410-sdi: powered down.

s3c2410-sdi s3c2410-sdi: initialisation done.

SBC2440 SOUND driver register

s3c2410-sdi s3c2410-sdi: running at 0kHz (requested: 0kHz).

SBC2440 SOUND driver probe!

SBC2440 UDA1341 audio driver initialized

NET: Registered protocol family 2

s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).

s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: s3cmci_request: no card

s3c2410-sdi s3c2410-sdi: powered down.

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

TCP bic registered

NET: Registered protocol family 1

NET: Registered protocol family 17

yaffs: dev is 32505858 name is "mtdblock2"

yaffs: Attempting MTD mount on 31.2, "mtdblock2"

VFS: Mounted root (yaffs filesystem).

mount_devfs_fs(): unable to mount devfs, err: -2

Freeing init memory: 144K

Warning: unable to open an initial console.

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
1楼  发表于: 2009-06-03 15:25
在线等
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2009-06-03 15:38
给你一个忠告,不要什么都想搞一把,到最后什么都搞不好。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
3楼  发表于: 2009-06-03 15:52
我不是什么都想搞,只是想整体熟悉下流程在结合讲解学习
贴出来只是想让你们前辈看看问题所在,毕竟刚刚学见的少
级别: 骑士
UID: 4234
精华: 0
发帖: 152
金钱: 1420 两
威望: 1142 点
综合积分: 304 分
注册时间: 2009-03-05
最后登录: 2012-08-18
4楼  发表于: 2009-06-03 21:29
内核自己做最好,有很多东西别人做的不一定适合你的,如果仅仅是想做一个可以跑的内核还是比较简单的
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
5楼  发表于: 2009-06-03 21:40
是啊,可我得先熟悉熟悉的,
头疼的就是错的时候无从下手
问题是一个接一个
级别: 新手上路
UID: 3070
精华: 0
发帖: 17
金钱: 170 两
威望: 162 点
综合积分: 34 分
注册时间: 2008-12-25
最后登录: 2013-05-21
6楼  发表于: 2009-06-04 11:00
建议你解压mini2440的文件系统,参照着做(留意文件夹“dev”、“lib”、“etc”)。
看到你的贴的问题信息1、mount_devfs_fs(): unable to mount devfs, err: -2
2、Warning: unable to open an initial console.
我觉得问题很可能出在你文件系统的“etc”上,里面有3个文件的文件,是初始化用的。你参照mini做好的文件系统并结合其他书改,但不要一味照着它的。
我前两天刚弄出一个自己的文件系统,开始问题也多多,但是都是出在etc上,
另外在做文件系统时,建议不要每次直接将镜像烧入flash测试,而改用NFS挂载文件系统的方式去测试。
do right, be good!
级别: 新手上路
UID: 4397
精华: 0
发帖: 21
金钱: 210 两
威望: 210 点
综合积分: 42 分
注册时间: 2009-03-13
最后登录: 2009-07-09
7楼  发表于: 2009-06-04 13:10
自己在网上百度一下哦,做一个可以用的文件系统是很简单的,做一个好的文件系统则要下一番功夫的,祝你好运!
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
8楼  发表于: 2009-06-04 14:11
好的,前面只把内核烧进去了,没有搞文件系统,光运行内核的话
到drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 132K
Warning: unable to open an initial console.
Failed to execute /linuxrc.  Attempting defaults...
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
就不动了,我单独下了官方的zImage也好象到这,估计自己搞的内核没有撒问题了
但是我接着把我自己做的文件系统烧进去也是在这个地方停住了,回去还得好好研究一下文件系统的制造

你说的用nfs挂,如何测试?
级别: 新手上路
UID: 5970
精华: 0
发帖: 37
金钱: 380 两
威望: 375 点
综合积分: 74 分
注册时间: 2009-05-15
最后登录: 2009-09-14
9楼  发表于: 2009-06-05 15:29
Freeing init memory: 144K

Warning: unable to open an initial console.

Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

停在这了,具体是错在哪,总斑竹帮忙看看啊
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go