LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-12-2010, 01:01 PM   #1
andreiatlinux
LQ Newbie
 
Registered: May 2010
Posts: 5

Rep: Reputation: 0
Kernel crash when loading initramfs


Hi,

I am trying to bring-up MIPS Linux on a FPGA board with initramfs inside the kernel (cpio) and I have the bellow messages. The Kernel is compiled with debug information.

Any idea/advice how to proceed?

Thanks,
Andrei


Linux version 2.6.29-ts-mipsisa32r2elup (aardelea@tor-aardelea-cos54) (gcc versi on 4.3.2 (GCC) ) #139 Fri Nov 12 10:25:30 EST 2010



LINUX started...

console [early0] enabled

CPU revision is: 00019750 (MIPS 74Kc)

FPU revision is: 01739700

Determined physical RAM map:

memory: 00001000 @ 00000000 (reserved)

memory: 000ef000 @ 00001000 (ROM data)

memory: 00914000 @ 000f0000 (reserved)

memory: 0f5fc000 @ 00a04000 (usable)

Wasting 82048 bytes for tracking 2564 unused pages

Initrd not found or empty - disabling initrd

Zone PFN ranges:

Normal 0x00000000 -> 0x00010000

Movable zone start PFN for each node

early_node_map[1] active PFN ranges

0: 0x00000000 -> 0x00010000

Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024

Kernel command line: console=ttyS0,38400

Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.

Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes

Writing ErrCtl register=00000000

Readback ErrCtl register=00000000

PID hash table entries: 1024 (order: 10, 4096 bytes)

CPU frequency 50.00 MHz

Console: colour dummy device 80x25

Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

Memory: 249284k/251888k available (1644k kernel code, 2280k reserved, 461k data, 7016k init, 0k highmem)

Calibrating delay loop... 1.35 BogoMIPS (lpj=6784)

Mount-cache hash table entries: 512

net_namespace: 296 bytes

NET: Registered protocol family 16

bio: create slab <bio-0> at 0

CPU 0 Unable to handle kernel paging request at virtual address 01108f84, epc == 8031382c, ra == 80313834

Oops[#1]:

Cpu 0

$ 0 : 00000000 00000000 00000001 0000000d

$ 4 : 01108f80 00000001 8f8010c0 000016a6

$ 8 : 0000000f 006b7649 809f0000 8f85fc90

$12 : 809f0000 006b7649 809f0000 8029d338

$16 : 01108f86 8f839000 00000081 809f0000

$20 : 809f0000 0000011e 0000001c 809f0000

$24 : 00000000 8f8616dc

$28 : 8f820000 8f821e38 809f0000 80313834

Hi : 00000000

Lo : 00000000

epc : 8031382c huft_free+0x14/0x38

Not tainted

ra : 80313834 huft_free+0x1c/0x38

Status: 11008003 KERNEL EXL IE

Cause : 80000008

BadVA : 01108f84

PrId : 00019750 (MIPS 74Kc)

Modules linked in:

Process swapper (pid: 1, threadinfo=8f820000, task=8f81fa18, tls=00000000)

Stack : 809f0000 0000011e 0000001c 809f0000 00000000 803155e8 8f86e008 8f857408

00000009 00000006 8029d418 8f85fc04 8f821e7c 00000000 8f86e008 8f857408

00000009 00000006 809f0000 80186e58 00000000 006b7649 80331000 803163f8

80330000 00000000 00000000 80330000 00000000 80316268 00000000 8012fbcc

00000000 00000000 00000009 802f94c0 80300d40 8f802e80 00000000 80a02b70

...

Call Trace:

[<8031382c>] huft_free+0x14/0x38

[<803155e8>] inflate_dynamic+0x628/0x644

[<80316268>] unpack_to_rootfs+0xaa0/0xc30

[<80316428>] populate_rootfs+0x30/0x134

[<80107e44>] __kprobes_text_end+0x3c/0x1dc

[<8030f30c>] kernel_init+0xc0/0x130

[<80109868>] kernel_thread_helper+0x10/0x18





Code: 10800006 afb00010 2484fffa <0c0619a5> 8c900004 1600fffc 02002021 8fbf
0014 00001021

Kernel panic - not syncing: Attempted to kill init!
 
Old 11-13-2010, 07:50 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 7,914

Rep: Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775Reputation: 775
It seems you're adressing above top memory? A kernel is quite entitled to oops at that.
Find how it's being told where top memory is.
 
Old 11-15-2010, 04:23 PM   #3
andreiatlinux
LQ Newbie
 
Registered: May 2010
Posts: 5

Original Poster
Rep: Reputation: 0
I checked and the memory itself seems to be the problem. I ran some DDR memory test and it failed sometimes. I will check with the h/w guy.
During kernel debugging I found that when the kernel is loading initramfs allocates memory for header_buf, symlink_buf, window in initramfs.c very close to the top memory. Do you know why is doing that?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Loading vmlinux and initramfs on x86-based router huyhoang3673 Linux - Embedded & Single-board computer 2 08-24-2009 10:26 AM
initramfs on 2.4 kernel sailwind Linux - General 0 02-06-2009 04:44 PM
Kernel compilation with initramfs. bhaskarreddy Linux - Kernel 0 12-24-2008 04:36 AM
Kernel Booting Slow - initramfs - Ubuntu 7.04 Kernel 2.6.20 bench Linux - Kernel 3 09-11-2007 05:14 AM
kernel 2.6 initramfs ashlesha Linux - Newbie 10 07-27-2006 09:07 PM


All times are GMT -5. The time now is 10:15 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration