3
0

README 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. How to test build using Aboriginal Linux system images.
  2. * Put a source tree into hdc.dir/.
  3. For example, this should work:
  4. git clone git://busybox.net/var/lib/git/busybox.git
  5. * Run ./make-hdc-img.sh: it will generate ext2 image file,
  6. hdc.img, from hdc.dir/* data. This requires root for loop mount.
  7. * Download and unpack, or build from source and unpack
  8. one or more system-image-ARCH directories into this directory
  9. (the one which contains this README).
  10. * Run: ./parallel-build-hdc-img.sh system-image-DIR1 system-image-DIR2...
  11. (background it if you don't want to see "Waiting to finish" thing).
  12. This runs build in several qemu virtual machines in parallel.
  13. * Observe system-image-*.log file(s) with growing log of the build.
  14. There is no automated detection of errors for now: you need to examine
  15. logs yourself.
  16. Log files will also contain uuencoded (or if all else fails, od -tx1'ed)
  17. binary, if build was successful.
  18. To debug a build problem in one of the sandboxes, change keep_hdb
  19. to "keep_hdb=true" in parallel-build-hdc-img.sh
  20. - this preserves system-image-ARCH/hdb.img after the build,
  21. so you can go into system-image-ARCH and run
  22. "HDB=hdb.img ./dev-environment.sh" to debug the problem.
  23. You can also run "./parallel-build-hdc-img.sh -s system-image-ARCH"
  24. - single mode, output is to screen and serial input is from keyboard.
  25. If hdc.dir/bin/busybox-$ARCH exists, it will be used during build
  26. to supply additional tools (dir with all applets appended to $PATH).
  27. For me, the following system images worked:
  28. system-image-armv4l
  29. system-image-armv4tl
  30. system-image-armv5l
  31. od is buggy on arm*:
  32. # echo Hello-hello-hello-hello | od -b
  33. 0000000 110 145 154 154 157 055 150 145 154 154 157 055 150 145 154 154
  34. 0000000 157 055 150 145 154 154 157 012 <= WRONG OFFSET
  35. 0000000 (can also be even more bogus like 17767153361)
  36. system-image-i686
  37. system-image-mips - od is buggy
  38. system-image-mipsel - od is buggy
  39. system-image-x86_64
  40. system-image-powerpc - qemu 1.2.2 didn't work, 2.4.0 worked; od is buggy
  41. system-image-sparc - qemu 1.2.2 didn't work, 2.4.0 worked; od is buggy
  42. And these did not:
  43. system-image-armv6l - hang on "Uncompressing Linux... done, booting the kernel"
  44. system-image-m68k - my qemu doesn't like "-M q800"
  45. system-image-mips64 - init dies "Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000a"
  46. system-image-sh4 - qemu segfaults early in kernel boot