Denys Vlasenko | 6acf586 | 2012-03-18 23:27:23 +0100 | [diff] [blame^] | 1 | How to test strace build using Aboriginal Linux's system images. |
| 2 | |
| 3 | * Put a autoconf'ed strace source tree into hdc.dir/strace dir. |
| 4 | For example, this should work: |
| 5 | git clone git://strace.git.sourceforge.net/gitroot/strace/strace && |
| 6 | cd strace && autoreconf -i -f |
| 7 | |
| 8 | * Run ./make-hdc-img.sh: it will generate ext2 image file, |
| 9 | hdc.img, from hdc.dir/* data. This requires root for loop mount. |
| 10 | |
| 11 | * Download and unpack, or build from source and unpack |
| 12 | one or more system-image-ARCH directories into this directory |
| 13 | (the one which contains this README). |
| 14 | |
| 15 | * Run: ./parallel-build-hdc-img.sh system-image-DIR1 system-image-DIR2... |
| 16 | (background it if you don't want to see "Waiting to finish" thing). |
| 17 | This runs a strace build in several qemu virtual machines in parallel. |
| 18 | |
| 19 | * Observe system-image-*.log file(s) with growing log of strace build. |
| 20 | |
| 21 | There is no automated detection of errors for now: you need to examine |
| 22 | logs yourself. |
| 23 | |
| 24 | For me, the following system images worked: |
| 25 | system-image-armv4l |
| 26 | system-image-armv4tl |
| 27 | system-image-armv5l |
| 28 | system-image-armv6l |
| 29 | system-image-i686 (had to s/qemu-system-i386/qemu/ in run-emulator.sh) |
| 30 | system-image-mipsel |
| 31 | system-image-mips |
| 32 | system-image-x86_64 |
| 33 | |
| 34 | And these did not: |
| 35 | system-image-armv4eb - VFS: Cannot open root device "sda" or unknown-block(0,0) |
| 36 | system-image-m68k - run-emulator.sh has no call of qemu-system-* (not supported yet??) |
| 37 | system-image-mips64 - |
| 38 | need to run ./native-build.sh ../hdc.img by hand; |
| 39 | copying in /mnt/init fails (segv?) |
| 40 | system-image-powerpc - qemu-system-ppc: command not found |
| 41 | system-image-sh4 - hdc does not mount (no support for 2 disks) |
| 42 | system-image-sparc - qemu-system-sparc: command not found |