Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.


  Search this Thread
Old 12-06-2010, 05:47 PM   #1
LQ Newbie
Registered: Dec 2010
Posts: 1

Rep: Reputation: 0
Adding scripts to kernel image


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?


Old 12-06-2010, 07:32 PM   #2
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905Reputation: 905
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.


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
adding logging to shell scripts digity Programming 4 01-14-2010 08:33 AM
Adding Startup Scripts kaplan71 SUSE / openSUSE 1 08-25-2005 11:52 PM
adding bootsplash scripts to bootup? microsoft/linux Debian 7 12-17-2004 10:44 AM
Adding startup scripts etcetera Linux - Software 1 12-16-2004 09:19 AM
User adding scripts? evilchild Programming 3 11-21-2003 09:49 AM

All times are GMT -5. The time now is 05:18 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration