1 Compiling toolchain and source on an AMD64/IA64 system
2 ======================================================
4 # get a root shell, (on ?ubuntu use this)
7 # install deboostrap (if you do not already have it)
8 apt-get install debootstrap
10 # make a directory for the 32 bit system
13 # create a flag file in so 'ls /' will show where you are
14 touch /sid-i386/This_is_sid-i386
16 # in the next line s/us/tw/ or whatever you nearest repository is called
17 debootstrap --arch=i386 sid /sid-i386 http://ftp.us.debian.org/debian/
19 # watch it download the whole system ...
21 # modify /etc/fstab (if your /home is symlink, use the absolute path)
22 echo "proc /sid-i386/proc proc defaults 0 0" >> /etc/fstab
23 echo "/home /sid-i386/home bind defaults,bind 0 0" >> /etc/fstab
26 # if it is necessary to use RS232 from this chroot than maybe
27 # the device directory should be mounted. Only useful
28 # if the command 'make flash-bootloader' is going to be used
29 # and need access to /dev/ttyUSBx
30 echo "/dev /sid-i386/dev bind defaults,bind 0 0" >> /etc/fstab
36 # OPTIONAL: if the device directory was included above
39 # OPTIONAL: add your favorite configs to sid's root e.g.
40 cp -p /root/.joverc /sid-i386/root/
41 cp -p /root/.bash* /sid-i386/root/
46 # install necessary packages
48 apt-get install gcc g++ gawk flex bison make patch wget
49 apt-get install libgd2-noxpm-dev
50 apt-get install --no-install-recommends libqt4-dev
51 apt-get install libncurses5-dev
53 # OPTIONAL: add your favorite programs e.g. jove editor
54 apt-get --no-install-recommends jove
56 # exit from the sid-i386 chroot
59 # set up your username and group for sid
61 grep "^${ME}:' /etc/passwd >> /sid-i386/etc/passwd
62 grep "^${ME}:' /etc/shadow >> /sid-i386/etc/shadow
63 ME=mygroup # If different
64 grep "^${ME}:' /etc/group >> /sid-i386/etc/group
65 grep "^${ME}:' /etc/gshadow >> /sid-i386/etc/gshadow
67 # exit from sudo root shell
70 # now back to your normal login account
72 # login as yourself under sid
73 sudo chroot /sid-i386 su -l myusername