• Home
  • History
  • Annotate
  • only in /external/strace/qemu_multiarch_testing/
NameDateSize

..20-Dec-20164 KiB

.gitignore20-Dec-201623

hdc.dir/20-Dec-20164 KiB

make-hdc-img.sh20-Dec-2016586

parallel-build-hdc-img.sh20-Dec-2016539

README20-Dec-20162.1 KiB

README

1How 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 && ./bootstrap
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 (tests passed/skipped/failed):
25system-image-armv4l  - 14/14/1 (failed: stat32-v.test - wrong stat decoding, sun_path.test - libc error)
26system-image-armv4tl - 15/14/0
27system-image-armv5l  - 15/14/0
28system-image-armv6l  - 15/14/0
29system-image-i486    - 14/14/1 (failed: count.test - grep segfault)
30system-image-i586    - 14/14/1 (failed: count.test - grep segfault)
31system-image-i686    - 14/14/1 (failed: count.test - grep segfault)
32system-image-mips    - 15/14/0
33system-image-mipsel  - 15/14/0
34system-image-powerpc - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
35system-image-sparc   - 13/14/2 (failed: ipc_sem.test - ipc_sem segfault)
36system-image-x86_64  - 14/15/0
37
38And these did not:
39system-image-m68k    - qemu-system-m68k: -M q800: Unsupported machine type
40system-image-mips64  - init dies before reaching /mnt/init
41system-image-sh4     - hdc does not mount (no support for 2 disks)
42
43
44To debug a build problem in one of sandboxes, change keep_hdb
45to "keep_hdb=true" in parallel-build-hdc-img.sh
46
47This preserves system-image-DIR1/hdb.img after the build,
48so you can go into system-image-DIR1 and run
49"HDB=hdb.img ./dev-environment.sh" to debug the problem.
50