LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 08-21-2009, 08:18 PM   #1
rohshall
LQ Newbie
 
Registered: Oct 2008
Posts: 11

Rep: Reputation: 0
Kernel panic due to failed recognization of initramfs cpio archieve


I am trying to boot initramfs cpio archieve as an external filesystem because I have to split kernel and root fs because of system limitation.

http://www.mjmwired.net/kernel/Docum...-initramfs.txt

The documentation for initramfs says (External initramfs images: line 210) that initramfs can be passed as an initrd to the kernel and from the kernel log, it does so too. But then later it panics. Why is this happening?


U-Boot> tftp 20410000 rootfs.arm.cpio.gz

U-Boot> tftp 21600000 uImage

U-Boot> bootm 21600000
## Booting kernel from Legacy Image at 21600000 ...
Image Name: Linux-2.6.30-00001-ga0c23b6-dirt
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 703784 Bytes = 687.3 kB
Load Address: 20008000
Entry Point: 20008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux............................................... done, bootin.
Linux version 2.6.30-00001-ga0c23b6-dirty (salil@salil-laptop) (gcc version 4.39
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Atmel AT91RM9200-DK
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 179 MHz, master 59 MHz, main 18.432 MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: mem=32M console=ttyS0,115200 initrd=0x20410000,24M root=/dw
NR_IRQS:192
AT91: 128 gpio irqs in 4 banks
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x30
console [ttyS0] enabled
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory: 32MB = 32MB total
Memory: 6432KB available (1216K code, 121K data, 96K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 89.79 BogoMIPS (lpj=350208)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
bio: create slab <bio-0> at 0
Trying to unpack rootfs image as initramfs...
Kernel panic - not syncing: Out of memory and no killable processes...

Backtrace:
[<c0024750>] (dump_backtrace+0x0/0x10c) from [<c011dc58>] (dump_stack+0x18/0x1c)
r7:c0153664 r6:00000000 r5:00000000 r4:c1c3fb00
 
Old 09-23-2009, 07:24 AM   #2
Suresh Maniyath
Member
 
Registered: Feb 2009
Location: India
Distribution: Fedora, Ubuntu
Posts: 37

Rep: Reputation: 19
Ramdisk

Did you tried booting the kernel with a RAMDISK image? Is it able to boot?

Regards,
Suresh Maniyath
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why initramfs is using cpio and not tar or pax zoombee Linux - General 2 11-19-2008 10:43 AM
Kernel 2.6.17.6 - kernel panic on initramfs linead Debian 20 08-09-2008 09:08 AM
kernel panic - no cpio magic mavs Debian 1 10-24-2007 06:21 PM
Unpacking initramfs ... <0> Kernel panic - not syncing: bad gzip magic nymbers Jamate Debian 2 04-05-2007 01:41 AM
Kernel panic - not syncing: no cpio magic StanleyP Linux - Newbie 2 09-20-2006 05:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration