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 && |
Dmitry V. Levin | 3e69bdf | 2014-04-25 22:52:06 +0000 | [diff] [blame^] | 6 | cd strace && ./bootstrap |
Denys Vlasenko | 6acf586 | 2012-03-18 23:27:23 +0100 | [diff] [blame] | 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 |
Denys Vlasenko | 254b5a7 | 2013-06-29 14:34:48 +0200 | [diff] [blame] | 33 | system-image-sparc - needed small edit in native-build.sh: |
| 34 | # Getting this early: |
| 35 | # Unhandled Exception 0x00000007 |
| 36 | # PC = 0xffd07cec NPC = 0xffd07cf0 |
| 37 | # Stopping execution |
| 38 | # and it looks like it's triggered just by too long kernel cmdline, |
| 39 | # not by specific options. |
| 40 | #export KERNEL_EXTRA="FTP_SERVER=$FTP_SERVER FTP_PORT=$FTP_PORT NATIVE_BUILD=$NATIVE_BUILD $KERNEL_EXTRA" |
| 41 | # This works: |
| 42 | export KERNEL_EXTRA="NATIVE_BUILD=$NATIVE_BUILD $KERNEL_EXTRA" |
Denys Vlasenko | 6acf586 | 2012-03-18 23:27:23 +0100 | [diff] [blame] | 43 | |
| 44 | And these did not: |
| 45 | system-image-armv4eb - VFS: Cannot open root device "sda" or unknown-block(0,0) |
| 46 | system-image-m68k - run-emulator.sh has no call of qemu-system-* (not supported yet??) |
| 47 | system-image-mips64 - |
| 48 | need to run ./native-build.sh ../hdc.img by hand; |
| 49 | copying in /mnt/init fails (segv?) |
Denys Vlasenko | 254b5a7 | 2013-06-29 14:34:48 +0200 | [diff] [blame] | 50 | system-image-powerpc - QEMU stuck very early |
Denys Vlasenko | 6acf586 | 2012-03-18 23:27:23 +0100 | [diff] [blame] | 51 | system-image-sh4 - hdc does not mount (no support for 2 disks) |