1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
|
5 |
Hans-Werner Hilse wrote: |
6 |
> Hi, |
7 |
> |
8 |
> On Tue, 07 Dec 2004 01:51:13 +0100 |
9 |
> "Buttchereit, Axel (XLsigned)" <XL@××××××××.net> wrote: |
10 |
> |
11 |
> |
12 |
>>Now for my (open) questions: |
13 |
>> 1. "buildroot" obviously does not provide a "fully featured" root-fs |
14 |
>> for |
15 |
>> kernel-2.6, i. e. with udev, hotplug/coldplug. |
16 |
>> Anyone out there with experience on that? |
17 |
> |
18 |
> |
19 |
> I've managed to use the new embedded-stage1 from Gentoo to compile |
20 |
> myself a basic system, which is at least what buildroot does plus lots |
21 |
> of more apps. I've even managed to compile xorg (6.8.0-r4 was the only |
22 |
> one that worked for me right out of the box, it's currently masked). |
23 |
> |
24 |
> A last tip: I wouldn't recommend to actually install busybox into your |
25 |
> dev environment. Just emerge it with "emerge --buildpkgonly busybox" and |
26 |
> then do a "ROOT=/your/target/root emerge -K busybox" |
27 |
> |
28 |
> Note that gentoo won't work as a cross compilation env, AFAIK. |
29 |
> |
30 |
|
31 |
Thanks! |
32 |
|
33 |
I have just downloaded an experimental x86-uClibc stages1. :-) |
34 |
|
35 |
For both my development system and my target system(s) are "x86", |
36 |
I think that "chroot"-ing into my build environment (based on stage1) |
37 |
should also work. i. e. re-use my current 2.6.9-kernel. |
38 |
(The target kernel is also 2.6.9, but for generic i386) |
39 |
|
40 |
Something like this should work. Right? |
41 |
|
42 |
1. extract stage1 to "rootfs/" |
43 |
2. copy modules from generic i386-kernel to rootfs/lib/modules (???, see below) |
44 |
3. configure networking (rootfs/etc/resolv.conf) |
45 |
4. chroot roofs /bin/bash |
46 |
- ---------------------------------------------------------------- |
47 |
5. emerge sync |
48 |
6. /usr/portage/scripts/bootstrap.sh |
49 |
7. emerge system |
50 |
8. customize and emerge ... udev hotplug coldplug ntfsutils busybox... |
51 |
9. exit |
52 |
- ----------------------------------------------------------------- |
53 |
10. Create "small" (32MB) ext2-filesytem on flat file "rootfs,ext2" |
54 |
11. mount "rootfs.ext2" using "-o loop" |
55 |
12. Copy all relevant files and folders from "rootfs/" to mounted "rootfs.ext2" |
56 |
13. gzip "rootfs.ext2" |
57 |
14. copy "rootfs.ext2.gz" and "bzImage" (gerneric i386-kernel) to my |
58 |
PXE-Server (fli4l) and add a boot menu entry (PXEGRUB, menu.1st) |
59 |
|
60 |
Maybe it's a better idea to emerge "gentoo-dev-sources" while "chroot"-ed |
61 |
and build the kernel. |
62 |
|
63 |
- -Axel |
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
-----BEGIN PGP SIGNATURE----- |
71 |
Version: GnuPG v1.2.6 (GNU/Linux) |
72 |
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org |
73 |
|
74 |
iD8DBQFBteNxWr3rpUlTqH4RAjm6AJ9IO3eJDelJMnHx9uMJTBaY/DzWdQCfeC2d |
75 |
u3lc2CaGAMubuvo4TpRNyeY= |
76 |
=xRjb |
77 |
-----END PGP SIGNATURE----- |
78 |
|
79 |
-- |
80 |
gentoo-embedded@g.o mailing list |