Files
third_party_toybox/mkroot/README.root
T
hongll d3264407dd 同步更新升级文件
Signed-off-by: h60047265 <honglulu3@h-partners.com>
2026-02-02 10:31:07 +08:00

19 lines
587 B
Plaintext

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