Tuesday, March 08, 2005

uwoody

I finlay started to understand uwoody provided by
eric anderson. not that i have it working.
I have to download the package debootstrap

given:
devel for this is on a redhat 7.3 machine
yes 7.3 so it would probably work on mandrake
9.x or 10.x or gentoo

tricks to creating a uwoody chroot.

1. find the source pack for debootstrap:
i my case i used:
debootstrap_0.2.45-0.2.tar.gz
un-tar the file in an appropriate area
and inside the directory created
run make and make install.
make install will create a directory called.
/usr/lib/debootstrap/scripts
to this directory you will add the file
uwoody which you have downloaded from:
http://people.debian.org/~andersee/debootstrap/
you will then run the following:
debootstrap --arch i386 uwoody /target http://people.debian.org/~andersee

this will create a directory called target that
should have the basic uclibc debian binaries

i chrooted into the /target directory:
$> chroot /target /bin/bash
and updated the apt system as follows.
1. added the file sources.list directory /etc/apt
and
2. added the line
deb http://people.debian.org/~andersee uwoody main


i wanted to check if the compiler was working correctly
did the following
echo "int main() { return 0; } " > dummy.c
gcc dummy.c
this produced a.out
i ray a.out as
$> a.out
no problems
the did the following
ldd a.out
libc.so.0 => /lib/libc.so.0 (0x40007000)
libintl.so.1 => /usr/lib/libintl.so.1 (0x40053000)
libiconv.so.2 => /usr/lib/libiconv.so.2 (0x40059000)
ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x40000000)

No comments: