• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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:
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
33system-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"
43
44And these did not:
45system-image-armv4eb - VFS: Cannot open root device "sda" or unknown-block(0,0)
46system-image-m68k    - run-emulator.sh has no call of qemu-system-* (not supported yet??)
47system-image-mips64  -
48	need to run ./native-build.sh ../hdc.img by hand;
49	copying in /mnt/init fails (segv?)
50system-image-powerpc - QEMU stuck very early
51system-image-sh4     - hdc does not mount (no support for 2 disks)
52