android_external_toybox/mkroot
2023-11-13 22:26:14 -06:00
..
packages Update package version and hit build with a rock until it finishes. 2023-11-13 22:26:14 -06:00
mkroot.sh Let run-qemu.sh be run from other directories. 2023-11-13 10:50:29 -06:00
README.root Script to tar up mkroot output for web page, with top level README. 2023-07-25 11:39:29 -05:00
record-commands Slight simplification. 2023-09-01 15:20:36 -05:00
tar-for-web.sh Also pull out toybox-$ARCH binaries, and scp to website with command line args. 2023-07-30 04:41:04 -05:00
testroot.sh Better "no kernel" calculation. 2023-07-30 04:25:10 -05:00

Use ./run-qemu.sh to boot system image to a shell prompt, "exit" when done.

Additional arguments to run-qemu.sh are QEMU arguments,
$KARGS contains additional linux kernel arguments. For example:

  KARGS=quiet ./run-qemu.sh -hda docs/linux-fullconfig
  # cat /dev/?da
  # exit

To extract the root filesystem from cpio.gz and chroot into it

  ( mkdir fs && cd fs && zcat ../initramfs.cpio.gz | cpio -i -d -H newc )
  chroot fs /init

To recreate the initramfs.cpio.gz from fs directory

  ( cd fs && find . -printf '%P\n' | cpio -o -H newc -R +0:+0 | gzip ) \
    > initramfs.cpio.gz