LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 05-31-2012, 08:55 AM   #1
shylock_1
LQ Newbie
 
Registered: Oct 2009
Posts: 25

Rep: Reputation: 0
Kernel crashes


Hi Guys,

I am trying to flash ROM memory with Linux Kernel 2.6.39.4 with busy box I have following hw and requirements

1/ Using intel's Atom E660T process which only can go upto 32bit no more.
2/ On board 8MB of ROM eMM connected to SPI0 bus and like to store a kernel 2.6.39.4 into it so the entire board could boot from it

3/ After successful build of Kernel 2.6.39.4 an OS image file found in the linux-2.6.39.4/arch/x86/boot/bzImage

4/ Which normally converted to binary using following command
Code:
./mkimage -c "console=ttyS0,115200n8 rootwait root=/dev/mmcblk0p2 init=/sbin/init loglevel=7 position_fix=1 pcie_aspm=off lpj=1499875" -i ramdisk.cpio bzImage plk.bin
5/ Finally I get plk.bin file which is roughly around 3.1MB in size

6/ Normally there are two partition on the eMM (NAND ROM) i.e
p1 and p2
7/ The p2 is created for the busybox utilities and p1 for actual kernel image i.e plk.bin to be store for regular use.

8/ After sending command
Code:
dd if=/plk.bin  of=/dev/mmcblk0p1  conv=fsync
The image get flashed into the ROM but boot process beigins
following stage it crashes the kernel and boot does NOT successfully
reach to bash prompt.
I wonder what I am missing? File, or any other resource I could not figure out whats gone wrong. If some please shed light on this remedy.
Code:
L*0d58 *ɣkH,K*9f9 6.-} ..43-,)6ʥK*ṳd
[    2.928575] Write protecting the kernel text: 3728k
[    2.933567] Write protecting the kernel read-only data: 1684k
console ready
execve() failed: no such file or directory
[    2.947582] Kernel panic - not syncing: Attempted to kill init!
[    2.953623] Pid: 1, comm: init Not tainted 2.6.39.4 #9
[    2.958866] Call Trace:
[    2.961380]  [<c139fed2>] ? printk+0xf/0x11
[    2.965652]  [<c139fdd9>] panic+0x5b/0x145
[    2.969838]  [<c103120e>] do_exit+0x92/0x5c5
[    2.974201]  [<c11bdb42>] ? tty_write+0x1e5/0x1e5
[    2.979003]  [<c10318de>] sys_exit+0x13/0x13
[    2.983364]  [<c13a2621>] syscall_call+0x7/0xb
Thank you in advance, guys I am really upto my last thread.
Shy
 
Old 05-31-2012, 06:11 PM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Make sure your flash is correct:
Code:
cmp plk.bin /dev/mmcblk0p1
Any way you can run plk.bin in a VM environment? That would tell you if it is built ok.
 
Old 05-31-2012, 11:59 PM   #3
shylock_1
LQ Newbie
 
Registered: Oct 2009
Posts: 25

Original Poster
Rep: Reputation: 0
Angry Procedure ....please

Hi,

To all my working environment are native Linux, and I do not know how to test or create VM environment for this test. If you have procedure please could you outline. I might give a go.

Thank you,

Shy
 
  


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
wireless crashes Kernel I think Nemesissparadise Linux - Networking 11 02-16-2011 10:00 PM
Ubuntu Kernel crashes altella Ubuntu 2 11-04-2009 03:14 PM
Browser and/or kernel crashes???? nstiesi Linux - General 2 09-29-2006 11:16 PM
updated kernel crashes boaojatista Fedora 14 05-27-2006 09:51 AM
2.6.7 kernel random crashes chakkerz Linux - General 4 06-28-2004 07:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 02:28 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