![]() |
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. |
What is the error?
Maybe you need a init to boot, and/or perhaps a initrd.gz (or whatever image)... |
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 |
Quote:
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 |
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. |
Hello,
I will try it and now I have this problem: Quote:
I understand that problem is in root option when boot kernel. best regards |
Hello,
I found problem. In boot options I forgot nfs arguments. Best regards |
All times are GMT -5. The time now is 04:51 PM. |