Gentoo Archives: gentoo-embedded

From: Hans-Werner Hilse <hilse@×××.de>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] gentoo-mini-linux (2.6.X + uClibc + busybox + udev + hotplug/coldplug + *fsutils + smb/nfs+ ...) for system-setup
Date: Tue, 07 Dec 2004 17:33:16
Message-Id: 20041207183903.04d2d855.hilse@web.de
In Reply to: Re: [gentoo-embedded] gentoo-mini-linux (2.6.X + uClibc + busybox + udev + hotplug/coldplug + *fsutils + smb/nfs+ ...) for system-setup by "Buttchereit
1 Hi again
2
3 (on list, this time ;-)
4
5 On Tue, 07 Dec 2004 18:08:01 +0100
6 "Buttchereit, Axel (XLsigned)" <XL@××××××××.net> wrote:
7
8 > Something like this should work. Right?
9 >
10 > 1. extract stage1 to "rootfs/"
11 > 2. copy modules from generic i386-kernel to rootfs/lib/modules (???, see below)
12
13 not needed. Although there are packages that require an installed configured kernel tree to decide how to proceed (pcmcia comes to my mind).
14
15 > 3. configure networking (rootfs/etc/resolv.conf)
16 > 4. chroot roofs /bin/bash
17 > - ----------------------------------------------------------------
18 > 5. emerge sync
19 > 6. /usr/portage/scripts/bootstrap.sh
20 > 7. emerge system
21 > 8. customize and emerge ... udev hotplug coldplug ntfsutils busybox...
22 > 9. exit
23 > - -----------------------------------------------------------------
24 > 10. Create "small" (32MB) ext2-filesytem on flat file "rootfs,ext2"
25 > 11. mount "rootfs.ext2" using "-o loop"
26 > 12. Copy all relevant files and folders from "rootfs/" to mounted "rootfs.ext2"
27 > 13. gzip "rootfs.ext2"
28 > 14. copy "rootfs.ext2.gz" and "bzImage" (gerneric i386-kernel) to my
29 > PXE-Server (fli4l) and add a boot menu entry (PXEGRUB, menu.1st)
30
31 Yes, this should work.
32
33 > Maybe it's a better idea to emerge "gentoo-dev-sources" while "chroot"-ed
34 > and build the kernel.
35
36 It should work with nearly any kernel, no need to compile again what you already have as the kernel doesn't have library dependencies (although the kernel build system may have them, so be careful not to just "mount --bind" your old sources into your chroot).
37
38 HWH
39
40 --
41 gentoo-embedded@g.o mailing list

Replies