![]() |
OpenSlug.CustomisingTheBuild HistoryHide minor edits - Show changes to markup June 02, 2008, at 02:45 AM
by -- bad URL
Changed lines 5-9 from:
To customise the build you have to get a working knowledge of how the build works. Watch the steps, read the OpenEmbedded documentation. This page contains specific information about the OpenSlug build - not about bitbake or OE! to:
To customise the build you have to get a working knowledge of how the build works. Watch the steps, read the OpenEmbedded documentation. New page seems to be here: OpenEmbedded Getting Started. This page contains specific information about the OpenSlug build - not about bitbake or OE! June 10, 2006, at 12:05 PM
by -- URL openembedded getting started changed
Changed lines 56-57 from:
Anything else you want to do involves at the very least editing to:
Anything else you want to do involves at the very least editing February 02, 2006, at 09:52 PM
by -- Updated the OpenEmbedded Links
Changed lines 3-9 from:
If you have built OpenSlug from the source tarball or from the nslu2-linux monotone archive the underlying build process is the same. It is based on To customise the build you have to get a working knowledge of how the build works. Watch the steps, read the OpenEmbedded documentation. This page contains specific information about the OpenSlug build - not about bitbake or OE! to:
If you have built OpenSlug from the source tarball or from the nslu2-linux monotone archive the underlying build process is the same. It is based on To customise the build you have to get a working knowledge of how the build works. Watch the steps, read the OpenEmbedded documentation. This page contains specific information about the OpenSlug build - not about bitbake or OE! Changed lines 56-57 from:
Anything else you want to do involves at the very least editing to:
Anything else you want to do involves at the very least editing October 29, 2005, at 01:05 PM
by -- adding some 2.7beta file locations
Added lines 7-9:
Added lines 17-28:
Out of date file locationsIt appears some filenames have changed between when these instructions were created and the latest (2.7 beta) OpenSlug release. In particular the conf file locations don't quite match up. I'm new here so I'm going to put a mapping here of where I think things are found, and maybe finish things up later once I've got my slug working. -Zhyla
August 26, 2005, at 05:24 PM
by -- typo
Changed lines 18-19 from:
to:
August 15, 2005, at 08:07 AM
by -- Removing really out of date UcSlugC info
Deleted lines 55-66:
Using uClibcThe default build uses the Free Software Foundation glibc library as the fundamental C library. It is big. uClibc is a smaller implementation with almost as much functionality. To use uClibc simply add: TARGET_OS_local = "linux-uclibc"
to With uClibc you can add a lot more to the root file system. Indeed if you are considering using OpenSlug in a way where it uses the root file system on flash you almost certainly want to use a uClibc build. June 24, 2005, at 09:01 PM
by -- How to hack the build
Added lines 1-96:
Customising the OpenSlug buildIf you have built OpenSlug from the source tarball or from the nslu2-linux monotone archive the underlying build process is the same. It is based on To customise the build you have to get a working knowledge of how the build works. Watch the steps, read the OpenEmbedded documentation. This page contains specific information about the OpenSlug build - not about bitbake or OE! Places to look, tricks and traps
A quick overviewThe build steps are roughly as follows:
The build of a package executes a number of steps - tasks - as described by
Changing the buildThe simplest change is just to build a new package - bitbake package-index
Anything else you want to do involves at the very least editing Adding a package to the firmwareYou can add a small package to the image. If you add too much either the image will not build or it will fail to boot because there is insufficient space on the root file system. Take a look at OPENSLUG_EXTRA_DEPENDS += "lrzsz"
OPENSLUG_EXTRA_RDEPENDS += "lrzsz"
Add two lines like this for the package (or packages) you want to install. (It's the While you are doing this, take a look at the other package additions in there. You probably don't want both the reiserfs tools and the ext3 file system tools - because you probably only use one or the other. Using uClibcThe default build uses the Free Software Foundation glibc library as the fundamental C library. It is big. uClibc is a smaller implementation with almost as much functionality. To use uClibc simply add: TARGET_OS_local = "linux-uclibc"
to With uClibc you can add a lot more to the root file system. Indeed if you are considering using OpenSlug in a way where it uses the root file system on flash you almost certainly want to use a uClibc build. Changing the kernelIt's easy to use another kernel. OpenSlug and
To use the 2.6.12 kernel (this is known to work) simply add the following two lines to PREFERRED_PROVIDER_virtual/kernel = nslu2-kernel
PREFERRED_VERSION_nslu2-kernel = 2.6.12
Then rebuild the image. At this time it is not possible to test a new kernel without reflashing the image - in fact it may never be possible because the space on the flash is so limited. Testing new imagesOpenSlug provides a special shell script to update a new image without using UpSlug. This is the script reflash -i my-new-image.img
This must be done with a root file system which is not the NSLU2 flash. It is advisable to use a disk root system for this, but it is possible to do it with just the NSLU2 by swapping to a ram file system first: turnup ram
shutdown -r now
In this case download the image to
|