2.6内核为什么无法挂载文件系统

发布于 2022-07-24 05:53:29 字数 7483 浏览 9 评论 3

各位大虾:

我是在windows下模拟的linux操作系统,用的是软件cygwin,

现在我的2.6.13内核启动了但是现在还不能挂载文件系统

哪位出来再拉兄弟一把啊,说说2.6内核和2.4在制作ramdisk上与什么区别,根据我现在的情况应该怎么做呢??

下面是我的加载信息和启动后串口输出的信息:

[21474541.365000]  
Power on reset
Read chip id = ec76
Nand flash status = c0
Env.Os_Auto_Flag=ff
************************************
*                                  *
*     JHS2410 Board BIOS V1.00     *
*     Http://www.jhembed.com       *
*                                  *
************************************
NOR Flash Boot, Read ID is : 0x234b00bf
SST39VF1601 found

Please select function :
0 : USB download file
1 : Uart download file
2 : Write Nand flash with download file
3 : Load Pragram from Nand flash and run
4 : Erase Nand flash regions
5 : Write NOR flash with download file
6 : Set boot params
7 : Set AutoBoot parameter,1:linux 2:wince
0
USB download file, press Esc key to exit
Now USB is connected.
Now, Downloading [ADDRESS:30800000h,TOTAL:1162366]
ddNow, Checksum calculation
Download O.K.

Do you want to run? [y/n] : y
Uncompressing Linux.............................................................................. done, booting the kernel.
[21474536.480000] ************test**************

[21474536.480000] Linux version 2.6.13 (Admin@WinXP-SP2) (gcc version 2.95.4 20010319 (prerelease)) #73 Sat Jul 8 17:14:59 2006

[21474536.480000] CPU: ARM920T [41129200] revision 0 (ARMv4T)

[21474536.480000] Machine: SMDK2410

[21474536.480000] Warning: bad configuration page, trying to continue

[21474536.480000] Memory policy: ECC disabled, Data cache buffered

[21474536.480000] CPU S3C2410A (id 0x32410002)

[21474536.480000] S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

[21474536.480000] S3C2410 Clocks, (c) 2004 Simtec Electronics

[21474536.480000] CPU0: D VIVT write-back cache

[21474536.480000] CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] Built 1 zonelists

[21474536.480000] Kernel command line: root=/dev/mtdblock2 load_ramdisk=0 init=/linuxrc console=ttySAC0,115200 mem=64M devfs=mount

[21474536.480000] irq: clearing pending ext status 00010300

[21474536.480000] irq: clearing pending ext status 00000200

[21474536.480000] irq: clearing subpending status 00000093

[21474536.480000] irq: clearing subpending status 00000092

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

[21474536.480000] S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

[21474536.480000] S3C2410 Clocks, (c) 2004 Simtec Electronics

[21474536.480000] timer tcon=00090d00, tcnt a2c1, tcfg 00000200,00001030, usec 00001eb8

[21474536.480000] timer tcon=00590d00, tcnt a2c1, tcfg 00000200,00001030, usec 00001eb8

[21474536.480000] Console: colour dummy device 80x30

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

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

[21474536.700000] Memory: 64MB = 64MB total

[21474536.700000] Memory: 62336KB available (1902K code, 506K data, 92K init)

[21474536.820000] Mount-cache hash table entries: 512

[21474536.845000] CPU: Testing write buffer coherency: ok

[21474536.900000] Linux NoNET1.0 for Linux 2.6

[21474536.910000] S3C2410: Initialising architecture

[21474537.010000] SCSI subsystem initialized

[21474537.025000] usbcore: registered new driver usbfs

[21474537.030000] usbcore: registered new driver hub

[21474537.090000] NetWinder Floating Point Emulator V0.97 (double precision)

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

[21474537.200000] devfs: boot_options: 0x1

[21474537.205000] NTFS driver 2.1.23 [Flags: R/W].

[21474537.210000] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

[21474540.655000] s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410

[21474540.670000] s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410

[21474540.685000] s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410

[21474540.700000] io scheduler noop registered

[21474540.705000] io scheduler anticipatory registered

[21474540.780000] RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize

[21474540.820000] loop: loaded (max 8 devices)

[21474540.825000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

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

[21474540.890000] Probing YL-9200 Application Flash at physical address 0x10000000 (16-bit buswidth)

[21474540.925000] usbmon: debugfs is not available

[21474540.935000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

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

[21474540.955000] s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

[21474541.030000] hub 1-0:1.0: USB hub found

[21474541.035000] hub 1-0:1.0: 2 ports detected

[21474541.050000] Initializing USB Mass Storage driver...

[21474541.060000] usbcore: registered new driver usb-storage

[21474541.065000] USB Mass Storage support registered.

[21474541.075000] usbcore: registered new driver usbhid

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

[21474541.100000] dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005

[21474541.105000] dummy_hcd dummy_hcd: Dummy host controller

[21474541.115000] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 2

[21474541.140000] hub 2-0:1.0: USB hub found

[21474541.145000] hub 2-0:1.0: 1 port detected

[21474541.165000] mice: PS/2 mouse device common for all mice

[21474541.170000] i2c /dev entries driver

[21474541.340000] VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)

[21474541.350000] Please append a correct "root=" boot option

[21474541.355000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

小弟出来乍道,在此先谢过各位了

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

话少情深 2022-07-25 02:03:39

今天我把这个问题解决了 ,  原来是因为 程序本身没有给定ramdisk的基地址和大小
我在命令行中写成:
initrd=0x30800000,0x440000 root=/dev/ram init=linuxrc console=ttySAC0,115200
这样就可以找到ramdisk了
现在还有写问题,串口输出为:
Uncompressing Linux...................................................................... done, booting the kernel.
[21474536.480000] ************test**************

[21474536.480000] Linux version 2.6.13 (Admin@WinXP-SP2) (gcc version 2.95.4 20010319 (prerelease)) #116 Wed Jul 12 16:02:53 2006

[21474536.480000] CPU: ARM920T [41129200] revision 0 (ARMv4T)

[21474536.480000] Machine: SMDK2410

[21474536.480000] Warning: bad configuration page, trying to continue

[21474536.480000] Memory policy: ECC disabled, Data cache buffered

[21474536.480000] CPU S3C2410A (id 0x32410002)

[21474536.480000] S3C2410: core 200.000 MHz, memory 100.000 MHz, peripheral 50.000 MHz

[21474536.480000] S3C2410 Clocks, (c) 2004 Simtec Electronics

[21474536.480000] CPU0: D VIVT write-back cache

[21474536.480000] CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets

[21474536.480000] Built 1 zonelists

[21474536.480000] Kernel command line: initrd=0x30800000,0x440000 root=/dev/ram init=linuxrc console=ttySAC0,115200

[21474536.480000] irq: clearing pending ext status 00000200

[21474536.480000] irq: clearing subpending status 00000002

[21474536.480000] PID hash table entries: 128 (order: 7, 2048 bytes)

[21474536.480000] timer tcon=00500000, tcnt a2c1, tcfg 00000200,00000000, usec 00001eb8

[21474536.480000] Console: colour dummy device 80x30

[21474536.485000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)

[21474536.500000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)

[21474536.535000] Memory: 16MB = 16MB total

[21474536.535000] Memory: 9568KB available (1659K code, 495K data, 92K init)

[21474536.645000] Mount-cache hash table entries: 512

[21474536.665000] CPU: Testing write buffer coherency: ok

[21474536.695000] checking if image is initramfs...

[21474536.710000]

[21474536.710000] **populate_rootfs has been called**

[21474536.710000]

[21474536.715000] it isn't (bad gzip magic numbers); looks like an initrd

[21474536.720000]

[21474536.720000]

[21474536.720000]

[21474536.720000] *******0*******

[21474536.720000]

[21474536.720000]

[21474536.730000]

[21474536.730000]

[21474536.730000] ******is image-initrd******

[21474536.730000]

[21474537.370000] Freeing initrd memory: 4352K

[21474537.375000]

[21474537.375000]

[21474537.375000] **populate_rootfs has been called but not init initrd_start**

[21474537.375000]

[21474537.405000] Linux NoNET1.0 for Linux 2.6

[21474537.410000] S3C2410: Initialising architecture

[21474537.495000] SCSI subsystem initialized

[21474537.505000] usbcore: registered new driver usbfs

[21474537.515000] usbcore: registered new driver hub

[21474537.565000] NetWinder Floating Point Emulator V0.97 (double precision)

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

[21474537.665000] devfs: boot_options: 0x1

[21474537.670000] JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.

[21474540.670000] s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2410

[21474540.685000] s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2410

[21474540.695000] s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2410

[21474540.710000] io scheduler noop registered

[21474540.715000] io scheduler anticipatory registered

[21474540.785000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

[21474540.825000] loop: loaded (max 8 devices)

[21474540.830000] Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2

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

[21474540.885000] Probing YL-9200 Application Flash at physical address 0x10000000 (16-bit buswidth)

[21474540.925000] usbmon: debugfs is not available

[21474540.935000] s3c2410-ohci s3c2410-ohci: S3C24XX OHCI

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

[21474540.955000] s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000

[21474541.035000] hub 1-0:1.0: USB hub found

[21474541.035000] hub 1-0:1.0: 2 ports detected

[21474541.050000] Initializing USB Mass Storage driver...

[21474541.060000] usbcore: registered new driver usb-storage

[21474541.065000] USB Mass Storage support registered.

[21474541.070000] usbcore: registered new driver usbhid

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

[21474541.095000] dummy_hcd dummy_hcd: USB Host+Gadget Emulator, driver 02 May 2005

[21474541.100000] dummy_hcd dummy_hcd: Dummy host controller

[21474541.110000] dummy_hcd dummy_hcd: new USB bus registered, assigned bus number 2

[21474541.130000] hub 2-0:1.0: USB hub found

[21474541.135000] hub 2-0:1.0: 1 port detected

[21474541.155000] mice: PS/2 mouse device common for all mice

[21474541.160000] i2c /dev entries driver

[21474541.180000]

[21474541.180000]

[21474541.180000] ***********prepare_namespace has been called***************

[21474541.180000]

[21474541.215000]

[21474541.215000]

[21474541.215000] *******initrd_load has been called********

[21474541.215000]

[21474541.295000]

[21474541.295000]

[21474541.295000] *****rd_load_image has been called******

[21474541.295000]

[21474541.305000] RAMDISK: ext2 filesystem found at block 0

[21474541.310000] RAMDISK: Loading 14336KiB [1 disk] into ram disk... |
到这里就不动了,高手们出来体现一下雷锋精神,拉我一把啊

白馒头 2022-07-24 20:55:46

用2410的开发版 USB下载2.6.13的内核 BNW的显示 就这样~!

橘虞初梦 2022-07-24 19:35:13

请教 windows 下你怎么 用cygwin 模拟出 arm920?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文