| 1 | TODO for bootstrap / pbuilder config. |
|---|
| 2 | |
|---|
| 3 | (no particular order) |
|---|
| 4 | |
|---|
| 5 | note: pbuilder bug - default mirror does not include deb-src version. |
|---|
| 6 | also: gnupg needs the user directory and to be run once for |
|---|
| 7 | dpkg-source! :-( |
|---|
| 8 | also need apt-get build-dep if using emchain |
|---|
| 9 | |
|---|
| 10 | copy build log and built files out of jail/ before compressing |
|---|
| 11 | define parameters - inherit from pbuilderrc |
|---|
| 12 | |
|---|
| 13 | These chroots have already been tested and instructions |
|---|
| 14 | exist in the Wiki. http://wiki.debian.org/EmDebian/CrossDebootstrap |
|---|
| 15 | |
|---|
| 16 | dpkg filter to remove unneeded files: |
|---|
| 17 | 1. /var/lib/dpkg/info/*.symbols |
|---|
| 18 | 2. /var/lib/dpkg/available-old |
|---|
| 19 | 3. /var/lib/dpkg/status-old |
|---|
| 20 | modify dpkg to drop /var/log/dpkg.log |
|---|
| 21 | or simply mount /var/log, /var/cache in RAM. |
|---|
| 22 | |
|---|
| 23 | modify apt to remove unwanted files: |
|---|
| 24 | /var/cache/apt/(src)?pkgcache.bin |
|---|
| 25 | always run apt-get clean |
|---|
| 26 | always drop files in /var/lib/apt/lists/ |
|---|
| 27 | |
|---|
| 28 | Split out /usr/share/X11/locale/ (1.3Mb) |
|---|
| 29 | |
|---|
| 30 | Drop /usr/lib/xorg/modules/libscanpci.so (2Mb) |
|---|
| 31 | |
|---|
| 32 | X fails to start without: |
|---|
| 33 | /usr/lib/xorg/modules/libpcidata.so |
|---|
| 34 | (can the file size be reduced?) |
|---|
| 35 | |
|---|
| 36 | Other candidates may be amongst: |
|---|
| 37 | 100527 |
|---|
| 38 | 47296 /usr |
|---|
| 39 | 30674 /usr/lib |
|---|
| 40 | 29150 /var |
|---|
| 41 | 25092 /var/cache |
|---|
| 42 | 25049 /var/cache/apt |
|---|
| 43 | 24576 /var/cache/apt/pkgcache.bin |
|---|
| 44 | 18138 /lib |
|---|
| 45 | 12007 /lib/modules |
|---|
| 46 | 12005 /lib/modules/2.6.25.2-pxa270 |
|---|
| 47 | 11345 /lib/modules/2.6.25.2-pxa270/kernel |
|---|
| 48 | 8224 /usr/share |
|---|
| 49 | 7378 /usr/bin |
|---|
| 50 | 6897 /lib/modules/2.6.25.2-pxa270/kernel/drivers |
|---|
| 51 | 5822 /usr/lib/gconv |
|---|
| 52 | 3747 /usr/lib/xorg |
|---|
| 53 | 3745 /usr/lib/xorg/modules |
|---|
| 54 | 3572 /var/lib |
|---|
| 55 | 3358 /usr/lib/libgtk-x11-2.0.so.0.1200.3 |
|---|
| 56 | 2780 /var/lib/dpkg |
|---|
| 57 | 2744 /sbin |
|---|
| 58 | 2709 /lib/modules/2.6.25.2-pxa270/kernel/fs |
|---|
| 59 | 2414 /usr/share/zoneinfo |
|---|
| 60 | 2153 /var/lib/dpkg/info |
|---|
| 61 | 2046 /lib/modules/2.6.25.2-pxa270/kernel/drivers/usb |
|---|
| 62 | 1799 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media |
|---|
| 63 | 1733 /usr/share/fonts |
|---|
| 64 | 1656 /usr/bin/Xorg |
|---|
| 65 | 1490 /tmp |
|---|
| 66 | 1430 /usr/share/X11 |
|---|
| 67 | 1381 /usr/share/X11/locale |
|---|
| 68 | 1288 /lib/modules/2.6.25.2-pxa270/kernel/drivers/net |
|---|
| 69 | 1179 /usr/lib/libcrypto.so.0.9.8 |
|---|
| 70 | 1160 /usr/share/fonts/X11 |
|---|
| 71 | 1150 /lib/libc-2.7.so |
|---|
| 72 | 1122 /usr/lib/libxml2.so.2.6.32 |
|---|
| 73 | 1080 /bin |
|---|
| 74 | 955 /lib/modules/2.6.25.2-pxa270/kernel/drivers/usb/serial |
|---|
| 75 | 940 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media/dvb |
|---|
| 76 | 932 /usr/lib/xorg/modules/libpcidata.so |
|---|
| 77 | 926 /usr/lib/libstdc++.so.6.0.10 |
|---|
| 78 | 913 /lib/modules/2.6.25.2-pxa270/kernel/net |
|---|
| 79 | 904 /usr/lib/libX11.so.6.2.0 |
|---|
| 80 | 869 /usr/share/zoneinfo/right |
|---|
| 81 | 846 /lib/modules/2.6.25.2-pxa270/kernel/drivers/media/video |
|---|
| 82 | 842 /usr/bin/gpg |
|---|
| 83 | 833 /usr/sbin |
|---|
| 84 | 821 /usr/lib/libapt-pkg-libc6.6-6.so.4.6.0 |
|---|
| 85 | 755 /var/lib/apt |
|---|
| 86 | 751 /var/lib/apt/lists |
|---|
| 87 | 744 /bin/busybox |
|---|
| 88 | 742 /tmp/bb-1.11 |
|---|
| 89 | 740 /tmp/busybox |
|---|
| 90 | 740 /tmp/bb-1.11/busybox |
|---|
| 91 | 731 /var/lib/apt/lists/buildd.emdebian.org_emdebian_dists_unstable_main_binary-arm_Packages |
|---|
| 92 | 711 /usr/lib/libglib-2.0.so.0.1600.5 |
|---|
| 93 | 685 /lib/modules/2.6.25.2-pxa270/kernel/fs/nls |
|---|
| 94 | 666 /lib/modules/2.6.25.2-pxa270/kernel/sound |
|---|
| 95 | 662 /usr/share/zoneinfo/posix |
|---|
| 96 | 662 /lib/libslang.so.2.1.3 |
|---|
| 97 | |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | ============================== |
|---|
| 101 | |
|---|
| 102 | Balloon todo list |
|---|
| 103 | ------------------- |
|---|
| 104 | |
|---|
| 105 | Add CONFIG_DISPLAY_TOPPOLY in kernel build. |
|---|
| 106 | |
|---|
| 107 | $ grep perl usr/sbin/* |
|---|
| 108 | Binary file usr/sbin/chroot matches |
|---|
| 109 | usr/sbin/cleanup-info: |
|---|
| 110 | usr/sbin/dpkg-divert: |
|---|
| 111 | usr/sbin/dpkg-statoverride: |
|---|
| 112 | Binary file usr/sbin/fbset matches |
|---|
| 113 | usr/sbin/install-info: |
|---|
| 114 | usr/sbin/mkboot: bootpart=$(perl -ne 'print $1 if /^\s*boot\s*=\s*(\S*)/' /etc/lilo.conf) |
|---|
| 115 | usr/sbin/pam_getenv: |
|---|
| 116 | Binary file usr/sbin/rdate matches |
|---|
| 117 | Binary file usr/sbin/udhcpd matches |
|---|
| 118 | usr/sbin/update-alternatives: |
|---|
| 119 | (debianutils: /usr/sbin/mkboot) |
|---|
| 120 | |
|---|
| 121 | $ grep perl usr/bin/* | grep -v Binary |
|---|
| 122 | usr/bin/chkdupexe: |
|---|
| 123 | usr/bin/chkdupexe: |
|---|
| 124 | usr/bin/chkdupexe: |
|---|
| 125 | usr/bin/chkdupexe: die "NUTS! Personaly I think your perl or filesystem is broken.\n". |
|---|
| 126 | (util-linux) |
|---|
| 127 | |
|---|
| 128 | Kernel command line: noinitrd root=/dev/mtdblock1 init=/linuxrc console=ttyS2,115200 rootfstype=yaffs2 cpufreq=59000-206400 machine_id=00000 |
|---|
| 129 | |
|---|
| 130 | balloon3_init_irq: chained handler installed - irq 126 automatically enabled |
|---|
| 131 | |
|---|
| 132 | |
|---|
| 133 | |
|---|
| 134 | /etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then |
|---|
| 135 | /etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then |
|---|
| 136 | /etc/init.d/S10udev: if start-stop-daemon --stop --name udevd --quiet --oknodo --retry 5; then |
|---|
| 137 | |
|---|
| 138 | --retry is also not supported. |
|---|
| 139 | |
|---|
| 140 | mkdir /mnt/sda1 |
|---|
| 141 | mkdir /mnt/sda2 |
|---|
| 142 | |
|---|
| 143 | Add initscripts to get mountpoint for udev. |
|---|
| 144 | |
|---|
| 145 | drop install-info from dpkg |
|---|