Hi,
We have 16Mb of SRAM.
The value of CONFIG_BLK_DEV_RAM_SIZE was 4096 (default value) and we
modified it now to 5244880 (5Mb) and the ramdisk
image size after extraction is 4.9 MB.
new failure message we got is "init has generated signal 4 but has no
handler for it"
please find the new log below.
'n Thank u very much for the reply.
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: 0x00666eb0)
Allocating 0x1e4e40 bytes for kernel ...
gunzipping (0x00000000 <- 0x0040c000:0x004dfe1b)...done 0x1cd1cc bytes
Attached initrd image at 0x004e0000-0x00665a11
initrd head: 0x1f8b0808
Linux/PowerPC load: console=ttyS0 root=/dev/ram init=/sbin/init
Finalizing device tree... flat tree at 0x673300
Using PowerPC 44x Platform machine description
Linux version 2.6.30 (r...@rosebud) (gcc version 4.2.4) #22 PREEMPT
Wed Nov 4 16:58:09 IST 2009
Found initrd at 0xc04e0000:0xc0665a11
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: 12700k/16384k available (1724k kernel code, 3684k 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: 1558k 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
VFS: Mounted root (ext2 filesystem) readonly on device 1:0.
Freeing unused kernel memory: 108k init
init has generated signal 4 but has no handler for it
Kernel panic - not syncing: Attempted to kill init!
Call Trace:
[c067bd80] [c0005d44] show_stack+0x4c/0x16c (unreliable)
[c067bdc0] [c002f7c4] panic+0xa0/0x168
[c067be10] [c0033494] do_exit+0x5f8/0x638
[c067be50] [c000b7b4] _exception+0x108/0x1b4
[c067bf40] [c000e0d8] ret_from_except_full+0x0/0x4c
Rebooting in 180 seconds..
Thanks & regards,
Vineeth _
On Wed, Nov 4, 2009 at 4:53 PM, Maciek Borzecki
<[email protected]> wrote:
>> RAMDISK: gzip image found at block 0
>> RAMDISK: incomplete write (1279 != 32768)
>> write error
> this looks bad
>
> how much RAM do you have? also check if CONFIG_BLK_DEV_RAM_SIZE is set
> properly to value large enough to fit your rootfs
>
> maciek
>
>
> On Wed, Nov 4, 2009 at 11:54 AM, Vineeth <[email protected]> wrote:
>> 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 (r...@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
>> _______________________________________________
>> busybox mailing list
>> [email protected]
>> http://lists.busybox.net/mailman/listinfo/busybox
>>
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox