blob: e1bdb75d3e86b374bce1fa1cbea66b95e9c4f62c [file] [log] [blame]
Denys Vlasenko6acf5862012-03-18 23:27:23 +01001How to test strace build using Aboriginal Linux's system images.
2
3* Put a autoconf'ed strace source tree into hdc.dir/strace dir.
4For example, this should work:
5git clone git://strace.git.sourceforge.net/gitroot/strace/strace &&
6cd strace && autoreconf -i -f
7
8* Run ./make-hdc-img.sh: it will generate ext2 image file,
9hdc.img, from hdc.dir/* data. This requires root for loop mount.
10
11* Download and unpack, or build from source and unpack
12one 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).
17This 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
21There is no automated detection of errors for now: you need to examine
22logs yourself.
23
24For me, the following system images worked:
25system-image-armv4l
26system-image-armv4tl
27system-image-armv5l
28system-image-armv6l
29system-image-i686 (had to s/qemu-system-i386/qemu/ in run-emulator.sh)
30system-image-mipsel
31system-image-mips
32system-image-x86_64
33
34And these did not:
35system-image-armv4eb - VFS: Cannot open root device "sda" or unknown-block(0,0)
36system-image-m68k - run-emulator.sh has no call of qemu-system-* (not supported yet??)
37system-image-mips64 -
38 need to run ./native-build.sh ../hdc.img by hand;
39 copying in /mnt/init fails (segv?)
40system-image-powerpc - qemu-system-ppc: command not found
41system-image-sh4 - hdc does not mount (no support for 2 disks)
42system-image-sparc - qemu-system-sparc: command not found