LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
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.

Notices

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

Rep: Reputation: 0
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
 
Old 12-06-2010, 06:32 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

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


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


All times are GMT -5. The time now is 05:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration