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

Vineeth vneethv at gmail.com
Wed Nov 4 10:54:24 UTC 2009


Hi,

We are porting linux 2.6.30 to a custom board with PPC440x5 processor.

Specifications of our board:

Processor : ppc440x5
Memory    : SRAM 16MB

We made our root file system using busybox-1.15.2.and trying to make a ramdisk .

The kernel execution went well till it mount the RFS.After that it
hangs with an error "Kernel panic - not syncing: No init found.  Try
passing init= option to kernel.".we tried giving init=/sbin/init as
bootarg which caused "Failed to execute /sbin/init.  Attempting
defaults..." i am attaching the boot log below. please let us know if
we are missing smthing here. our ramdisk.image.gz was about 1.8Mb and
the after extraction comes around 5Mb. Does it cause the issue , that
we dont have enough memory to execute the RFS ?
Is there any way to minimize the size of the RFS generated by the busybox ?

Boot log
--------------------------------------------------


Bootloader :Initialized the System
Bootloader :Initialized the UART
Bootloader :Copying Linux Image to RAM >
Bootloader :!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Bootloader :Copying Image Done
Bootloader : Done - LINUX Entry

zImage starting: loaded at 0x00400000 (sp: 0x006a3eb0)
Allocating 0x1e4e40 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x004dfed3)...done 0x1cd1cc bytes
Attached initrd image at 0x004e0000-0x006a2b97
initrd head: 0x1f8b0808

Linux/PowerPC load: console=ttyS0 root=/dev/ram init=/sbin/init
Finalizing device tree... flat tree at 0x6b0300
Using PowerPC 44x Platform machine description
Linux version 2.6.30 (root at rosebud) (gcc version 4.2.4) #19 PREEMPT
Wed Nov 4 14:39:26 IST 2009
Found initrd at 0xc04e0000:0xc06a2b97
console [udbg0] enabled
setup_arch: bootmem
arch: exit
Zone PFN ranges:
  DMA      0x00000000 -> 0x00001000
  Normal   0x00001000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: console=ttyS0 root=/dev/ram init=/sbin/init
NR_IRQS:512
UIC0 (32 IRQ sources) at DCR 0x1c0
PID hash table entries: 64 (order: 6, 256 bytes)
clocksource: timebase mult[a6aaaab] shift[22] registered
Console: colour dummy device 80x25
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 12456k/16384k available (1724k kernel code, 3928k reserved,
96k data, 91k bss, 108k init)
Kernel virtual memory layout:
  * 0xffffe000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfddff000..0xfde00000  : early ioremap
  * 0xd1000000..0xfddff000  : vmalloc & ioremap
Calibrating delay loop... 46.84 BogoMIPS (lpj=93696)
Mount-cache hash table entries: 512

bio: create slab <bio-0> at 0
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1802k freed
msgmni has been set to 27
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
ÿserial8250.0: ttyS0 at MMIO 0x2080000 (irq = 16) is a 16550A
console handover: boot [udbg0] -> real [ttyS0]
brd: module loaded
mice: PS/2 mouse device common for all mice
RAMDISK: gzip image found at block 0
RAMDISK: incomplete write (1279 != 32768)
write error
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
Freeing unused kernel memory: 108k init
attempt to access beyond end of device
ram0: rw=0, want=8258, limit=8192
Buffer I/O error on device ram0, logical block 4128
attempt to access beyond end of device
ram0: rw=0, want=9916, limit=8192
Buffer I/O error on device ram0, logical block 4957
attempt to access beyond end of device
ram0: rw=0, want=8258, limit=8192
Buffer I/O error on device ram0, logical block 4128
attempt to access beyond end of device
ram0: rw=0, want=9916, limit=8192
Buffer I/O error on device ram0, logical block 4957
Warning: unable to open an initial console.
attempt to access beyond end of device
ram0: rw=0, want=9884, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=9884, limit=8192
Failed to execute /sbin/init.  Attempting defaults...
attempt to access beyond end of device
ram0: rw=0, want=8260, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=8260, limit=8192
attempt to access beyond end of device
ram0: rw=0, want=8260, limit=8192
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
Call Trace:
[c0ff7f30] [c0005d44] show_stack+0x4c/0x16c (unreliable)
[c0ff7f70] [c002f8a4] panic+0xa0/0x168
[c0ff7fc0] [c00013fc] init_post+0xe8/0xf8
[c0ff7fd0] [c01941f4] kernel_init+0xd8/0x100
[c0ff7ff0] [c000d980] kernel_thread+0x4c/0x68
Rebooting in 180 seconds..



Thanks & Regards,
Vineeth


More information about the busybox mailing list