1 |
On Fri, 2006-01-20 at 10:55 -0500, Dennis Taylor wrote: |
2 |
> I have tried various ways of building a root fs with uClibc, but to no |
3 |
> avail. I have monitored this list long enough to know that someone |
4 |
> out there has done it. I need to do it for and X86 target that must |
5 |
> fit in about 1.5 MB of flash that gets copied to RAM and started. |
6 |
> |
7 |
> |
8 |
> The "out of the box" configuration I linked to from the uClibc site |
9 |
> fails in various ways. I like the Gentoo way of doing things, but the |
10 |
> HOWTO link I saved a while back does not work. |
11 |
> |
12 |
> Any pointers to documents that would help me succeed would be greatly |
13 |
> appreciated. |
14 |
|
15 |
|
16 |
Sorry no docs but knowing your space constraints |
17 |
|
18 |
|
19 |
cat /etc/portage/root_install_mask |
20 |
*.a |
21 |
/usr/include |
22 |
/usr/lib/*.o |
23 |
/bin/bb |
24 |
|
25 |
Or just export what you want to mask via the INSTALL_MASK= env var. |
26 |
|
27 |
emerge -b busybox uclibc |
28 |
emerge -B baselayout-lite |
29 |
ROOT=/dev/shm/ROOT \ |
30 |
emerge -KO uclibc busybox baselayout-lite |
31 |
|
32 |
# let busybox set up it's symlinks. |
33 |
mount --bind /proc /dev/shm/ROOT/proc |
34 |
chroot /dev/shm/ROOT/ /bin/sh --login |
35 |
busybox --install -s |
36 |
exit |
37 |
umount /dev/shm/ROOT/proc |
38 |
|
39 |
# these three pkgs should be your base for everything else you need |
40 |
todo. |
41 |
|
42 |
good luck and dont forget to setup your inittab/fstab/init scripts. |
43 |
|
44 |
-- |
45 |
solar <solar@g.o> |
46 |
Gentoo Linux |
47 |
|
48 |
-- |
49 |
gentoo-embedded@g.o mailing list |