1 |
The steps are as follows |
2 |
|
3 |
1- mkdir -p /root/uclibc/build |
4 |
2- cd /root/uclibc/build |
5 |
3- tar -jxvfp /path/to/stage3....tar.bz2 // ( uclibc stage3 ) |
6 |
4- cp -L /etc/resolv.conf /root/uclibc/build/etc |
7 |
5- mkdir -p usr/portage |
8 |
6- mount --bind /usr/portage /root/uclibc/build/usr/portage |
9 |
7- mount –bind /dev /root/uclibc/build/dev |
10 |
8- mount -t proc proc /root/uclibc/build/proc |
11 |
9- chroot /root/uclibc/build /bin/bash |
12 |
10- env-update && source /etc/profile |
13 |
11- in the make.conf I added the following variables |
14 |
|
15 |
FEATURES="ccache buildpkg" |
16 |
USE="minimal" |
17 |
PKGDIR="${PORTDIR}/packages/uclibc" |
18 |
UCLIBC_CPU="PENTIUMII |
19 |
ln -snf /usr/portage/profiles/uclibc/x86 /etc/make.profile |
20 |
|
21 |
12- emerge -av ccache |
22 |
13- emerge -uavDN world |
23 |
14- emerge -C mktemp |
24 |
15- cp /etc/skel/.bash_profile /etc/skel/.bashrc /root |
25 |
|
26 |
The above steps were done for preparing the uclibc build environment knowing |
27 |
that the stage I have used was uclibc stage3 |
28 |
then I have unmasked some packages that will be used in building my system ( |
29 |
tinygentoo) that will be installed in a compact flash |
30 |
the steps then are as follows: |
31 |
1- mkdir /tinygentoo |
32 |
2- ROOT=/tinygentoo USE=symlink emerge -avk =sys-apps/baselayout-2.0.0 |
33 |
uclibc busybox |
34 |
|
35 |
then i did all the required symbolic links to busybox and all preparations |
36 |
including the proc and /etc/fstab and then compiled the kernel and made the |
37 |
initramfs , the system in the compact flash work successfully and then I |
38 |
have added many packages like iptables, python and twisted web server and |
39 |
all have worked successfully. the problem arises when i installed dhcp, it |
40 |
can not work neither in the build environment nor in the tinygentoo knowing |
41 |
that my USE flag when I merged uclibc was ( USE="minimal -build -debug |
42 |
-hardened (-iconv) -ipv6 (-nls) -pregen -saveconfig -uclibc-compat |
43 |
-userlocales -wordexp ) |
44 |
|
45 |
|
46 |
Thanks very much for reading and replying |
47 |
|
48 |
On Tue, Feb 10, 2009 at 6:09 PM, Karl Hiramoto <karl@××××××××.org> wrote: |
49 |
|
50 |
> Abdolmohaimen Siddig wrote: |
51 |
> > I merged uclibc but I think that certain flags should be in my USE |
52 |
> > flag . would you please tell me what flags should be enabled |
53 |
> As said earlier, you should send details on all the steps you are |
54 |
> doing.. I assume your cross compiling? |
55 |
> |
56 |
> read again |
57 |
> http://www.gentoo.org/proj/en/base/embedded/handbook/ |
58 |
> |
59 |
> |
60 |
> are you using the xmerge helper script? |
61 |
> |
62 |
> You probably are not doing something like: |
63 |
> |
64 |
> xmerge --root /target_foo/ uclibc |
65 |
> |
66 |
> .. |
67 |
> karl |
68 |
> |
69 |
> |
70 |
> |
71 |
|
72 |
|
73 |
-- |
74 |
Abdolmohaimen Alsiddig Ahmed |
75 |
Nile Center for Technology Researches |
76 |
+249924205886 |