1 |
Hello, |
2 |
I really appreciate so much contribution done by Gentoo embedded guys. |
3 |
Several mouths ago I tried to use Gentoo environment to build single |
4 |
kernel+rootfs image |
5 |
successfully and crossdev is really a great utility for building |
6 |
cross-toolchains. |
7 |
As a result I wrote this script to automate the whole build procedures. |
8 |
The single kernel+rootfs image is made using initramfs, so only 2.6 kernel |
9 |
is usable now. |
10 |
This script is not quite mature and some implementation is really ugly so |
11 |
far. |
12 |
To run this dialog-based script, the following packages are needed: |
13 |
dev-util/dialog |
14 |
sys-devel/crossdev |
15 |
app-portage/mirrorselect |
16 |
|
17 |
Usage example: |
18 |
1. Build toolchain i686-gentoo-linux-uclibc. |
19 |
In Main Menu: |
20 |
Choose Build->i686->gentoo->linux->uclibc->Choose version[Optional]->Select |
21 |
build stage |
22 |
->Select Misc options->Confirm->Start to build-> Follow the steps to |
23 |
configure toolchain |
24 |
2. Build rootfs |
25 |
In Main Menu: |
26 |
Choose Package->Select toolchain i686-gentoo-linux-uclibc->Select the |
27 |
packages you want to install |
28 |
(at least C library, baselayout-lite, and busybox are needed), then the |
29 |
script start to build packages |
30 |
and the rootfs is located in /usr/i686-gentoo-linux-uclibc/genroot/rootfs. |
31 |
3. Build image: |
32 |
In Main Menu: |
33 |
Choose Kernel->Select toolchain i686-gentoo-linux-uclibc->Choose |
34 |
1.InstallKernel->Install gentoo-sources |
35 |
->Then Choose 2. Configure kernel. remember to enable initramfs and specify |
36 |
initramfs source as |
37 |
/usr/i686-gentoo-linux-uclibc/genroot/rootfs ->Choose 5. Build a single |
38 |
image (Kernel+Rootfs) |
39 |
Then you can get the image under /usr/src/linux/arch/i386/boot/bzImage |
40 |
|
41 |
I would like to make it GPL'ed and make it part of the gentoo-embedded |
42 |
project if Gentoo embedded guys |
43 |
feel the script really help and fit the goal of the project. |
44 |
Any suggestions and feedbacks are welcomed. |
45 |
Sorry for my poor English because I am not a native speaker. |