On Thu, Dec 9, 2010 at 1:54 PM, Alexandre Courbot <gnurou@xxxxxxxxx> wrote: >> $ qemu-system-arm -M realview-pbx-a9 -kernel clfskernel-2.6.36 -hda >> initrd-rootfs.img -append "console=ttyAMA0 root=/dev/hda1 ro mem=256M" >> -m 1024 -nographic >> ... >> VFS: Cannot open root device "hda1" or unknown-block(0,0) >> Please append a correct "root=" boot option; here are the available partitions: >> Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) > > Yup, no partition are listed, this means that the kernel did not > detect the disk. The required block device driver and filesystem must > be built into the kernel (i.e. not as modules) or you will not be able > to mount access it. > > In that case I am afraid the link I gave you will not be very helpful > - you just need to enable to right device driver. Unless QEmu did not > like your disk image, but in that case I guess it would have > complained. > It is not complaining about the root disk image. I think I have tried all of the block device drivers now :( Here is the log Uncompressing Linux... done, booting the kernel. Linux version 2.6.36 (clfs@prasad-desktop) (gcc version 4.5.1 (GCC) ) #19 SMP PREEMPT Thu Dec 9 14:21:56 GMT 2010 CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c03c7f CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache Machine: ARM-RealView PBX Ignoring unrecognised tag 0x00000000 Memory policy: ECC disabled, Data cache writealloc PERCPU: Embedded 6 pages/cpu @c064c000 s4032 r8192 d12352 u65536 pcpu-alloc: s4032 r8192 d12352 u65536 alloc=16*4096 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyAMA0 root=/dev/hda1 ro mem=256M PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Memory: 256MB = 256MB total Memory: 255388k/255388k available, 6756k reserved, 0K highmem Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB) DMA : 0xffc00000 - 0xffe00000 ( 2 MB) vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB) lowmem : 0xc0000000 - 0xd0000000 ( 256 MB) pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) modules : 0xbf000000 - 0xbfe00000 ( 14 MB) .init : 0xc0008000 - 0xc002e000 ( 152 kB) .text : 0xc002e000 - 0xc03ff000 (3908 kB) .data : 0xc0400000 - 0xc04226e0 ( 138 kB) Hierarchical RCU implementation. RCU-based detection of stalled CPUs is disabled. Verbose stalled-CPUs detection is disabled. NR_IRQS:128 Console: colour dummy device 80x30 Calibrating delay loop... 393.21 BogoMIPS (lpj=1966080) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok Brought up 1 CPUs SMP: Total of 1 processors activated (393.21 BogoMIPS). NET: Registered protocol family 16 L2x0 series cache controller enabled l2x0: 8 ways, CACHE_ID 0x00000000, AUX_CTRL 0x02520000 Serial: AMBA PL011 UART driver dev:uart0: ttyAMA0 at MMIO 0x10009000 (irq = 44) is a AMBA/PL011 console [ttyAMA0] enabled dev:uart1: ttyAMA1 at MMIO 0x1000a000 (irq = 45) is a AMBA/PL011 dev:uart2: ttyAMA2 at MMIO 0x1000b000 (irq = 46) is a AMBA/PL011 fpga:uart3: ttyAMA3 at MMIO 0x1000c000 (irq = 47) is a AMBA/PL011 bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb Switching to clocksource timer3 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 1, 8192 bytes) TCP established hash table entries: 8192 (order: 4, 65536 bytes) TCP bind hash table entries: 8192 (order: 4, 98304 bytes) TCP: Hash tables configured (established 8192 bind 8192) TCP reno registered UDP hash table entries: 128 (order: 0, 4096 bytes) UDP-Lite hash table entries: 128 (order: 0, 4096 bytes) NET: Registered protocol family 1 RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. PMU: registered new PMU device of type 0 NTFS driver 2.1.29 [Flags: R/W]. msgmni has been set to 498 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered io scheduler deadline registered (default) CLCD: unknown LCD panel ID 0x00001000, using VGA CLCD: RealView hardware, XVGA display Console: switching to colour frame buffer device 128x48 brd: module loaded loop: module loaded Uniform Multi-Platform E-IDE driver ide-gd driver 1.18 pata_platform: probe of pata_platform failed with error -22 Error: Driver 'pata_platform' is already registered, aborting... smsc911x: Driver version 2008-10-21. smsc911x-mdio: probed eth0: attached PHY driver [SMSC LAN911x Internal PHY] (mii_bus:phy_addr=0:01, irq=-1) net eth0: MAC Address: 52:54:00:12:34:56 mice: PS/2 mouse device common for all mice i2c /dev entries driver mmci-pl18x: probe of fpga:mmc0 failed with error -22 usbcore: registered new interface driver usbhid usbhid: USB HID core driver TCP cubic registered NET: Registered protocol family 17 Registering the dns_resolver key type ThumbEE CPU extension supported. input: AT Raw Set 2 keyboard as /class/input/input0 VFS: Cannot open root device "hda1" or unknown-block(0,0) Please append a correct "root=" boot option; here are the available partitions: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) Backtrace: [<c00327a8>] (dump_backtrace+0x0/0x110) from [<c0328bb8>] (dump_stack+0x18/0x1c) r6:00008001 r5:cf8bb000 r4:c04231f4 [<c0328ba0>] (dump_stack+0x0/0x1c) from [<c0328c20>] (panic+0x64/0x180) [<c0328bbc>] (panic+0x0/0x180) from [<c00092a4>] (mount_block_root+0x240/0x290) r3:00000000 r2:cf81be80 r1:cf81bf58 r0:c03aa673 r7:c0026a1c [<c0009064>] (mount_block_root+0x0/0x290) from [<c0009444>] (mount_root+0x54/0x6c) [<c00093f0>] (mount_root+0x0/0x6c) from [<c00095c8>] (prepare_namespace+0x16c/0x1bc) r5:c0026a31 r4:c0422744 [<c000945c>] (prepare_namespace+0x0/0x1bc) from [<c0008ebc>] (kernel_init+0x1d0/0x220) r5:c0025574 r4:c04226e0 [<c0008cec>] (kernel_init+0x0/0x220) from [<c0049be4>] (do_exit+0x0/0x638) r8:00000000 r7:00000013 r6:c0049be4 r5:c0008cec r4:00000000 Killed > Alex. > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ