LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Adding scripts to kernel image (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/adding-scripts-to-kernel-image-848740/)

felinethropist 12-06-2010 04:47 PM

Adding scripts to kernel image
 
Hi,

I am developing a system on an embedded PowerPC and have managed to get a kernel up and running on it. However, the system does not have a ROM and I have to type in everything that is not in the kernel image and save it every single time.

I was wondering whether there is a way to add scripts in the kernel source so that after building the kernel its there in the image itself.

For example :

I have to type in the default.script file everytime to set up networking. This file is supposed to be in /usr/share/udhcpc/default.script
So what needs to be done so that the kernel image has this file in it?

Thanks

Tushar

theNbomr 12-06-2010 06:32 PM

That is one purpose of an initrd. You can put whatever you want there. It ends up being built into the kernel, so each kernel image also becomes the application. Sometimes that is not inappropriate.

--- rod.


All times are GMT -5. The time now is 03:19 PM.