LinuxQuestions.org
Help answer threads with 0 replies.
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 05-28-2008, 08:53 AM   #1
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 218

Rep: Reputation: 32
how to create a kernel for embedded system???


Hello,

I have a lite problem.
I am interesting in create a new bzImage for geode LX with preempt rt patch.
I follow this steps:

1.- Patch kernel with preempt rt patch.
2.- Configure the new kernel.
3.- make bzImage
4.- make modules
5.- make modules_install INSTALL_MOD_PATH=/home/my_user/modules

After it I copy all files in a compact flash with correct tree files, and next, configure lilo with new configuration.
But Kernel does not boot correctly.

Perhaps, there is a problem with configuration, but I think I forget other step or similar.

any advice???

Best regards.
 
Old 05-28-2008, 08:57 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
What is the error?
Maybe you need a init to boot, and/or perhaps a initrd.gz (or whatever image)...
 
Old 05-28-2008, 06:23 PM   #3
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
How far does it get with booting? The kernel by itself will not make you happy, you also need a root filesystem and a couple of applications and settings files on your compact flash to make it work properly.
By adding the new kernel to your /boot partition as an optional kernel you can test if it really works on the PC where you built it, and if it does, then proceed with your compact flash project.

Linux Archive

Last edited by seraphim172; 06-25-2008 at 05:38 AM.
 
Old 05-29-2008, 04:50 PM   #4
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by seraphim172 View Post
How far does it get with booting? The kernel by itself will not make you happy, you also need a root filesystem and a couple of applications and settings files on your compact flash to make it work properly.
By adding the new kernel to your /boot partition as an optional kernel you can test if it really works on the PC where you built it, and if it does, then proceed with your compact flash project.
hello seraphim172,

you are right, I need a root file system and I have it, then this is not problem.

About to test new kernel in develop computer, I do not know if it is possible to do it, because host is a x86 Intel and target is Geode LX, that is compitable with x86.

I will try it.

Thanks a lot and best regards
 
Old 05-29-2008, 06:32 PM   #5
pinniped
Senior Member
 
Registered: May 2008
Location: planet earth
Distribution: Debian
Posts: 1,732

Rep: Reputation: 50
It is not sensible to just copy files from your current install; that will give you a bloated system (~200MB) when you probably don't want anything over 20MB. Also, what does your build system claim to be? If it's 'i386' or 'i486' then that will be compatible with the Geode; otherwise if it's something like 'k7' it is not compatible.

When compiling the kernel, there is now an option for the GeodeLX family.

When building libc and the toolchain, your 'host' (the machine which the software will run on) should be set to 'i586' for the best results. You probably want something like uClibc rather than GNU libc.

Have a look at the LFS project (and the 'clfs' project inside that) for tips on building a system.
 
Old 05-30-2008, 03:32 AM   #6
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Hello,

I will try it and now I have this problem:

Quote:
NET: Registered protocol family 1
Using IPI No-shortcut mode
VFS: Cannot open root device "NULL" or unknown-block(8,7)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,7).
Well, I am using pxelinux yo boot geode and NFS server to mount root file system.
I understand that problem is in root option when boot kernel.

best regards
 
Old 05-30-2008, 06:08 AM   #7
webquinty
Member
 
Registered: Apr 2008
Location: Espaņa
Distribution: Suse
Posts: 218

Original Poster
Rep: Reputation: 32
Hello,

I found problem.

In boot options I forgot nfs arguments.

Best regards
 
  


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
how to create busybox for embedded system kumar_bst Linux - Kernel 2 07-28-2007 11:10 AM
tracing 'create' system call called by any process to kernel viv_nan Linux - General 3 03-07-2007 12:09 PM
LXer: Create an embedded Derby database Ajax application LXer Syndicated Linux News 0 07-24-2006 07:21 AM
Reboot other kernel in embedded system tkmbe Linux - General 1 10-27-2005 11:40 AM
Problem booting my new kernel in an embedded system Fernando Linux - General 1 07-02-2002 10:41 AM


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