Open umlaeute opened 1 year ago
also, from checking the code it seems that the image-name (unless it is a zip-file) must not contain the sequence xz
preceded by an arbitrary character: https://github.com/guysoft/CustomPiOS/blob/f6fea14adfe9febc288bd7c6db8466755a81825f/src/qemu_boot.sh#L15
e.g.
$ echo mixzap.img.xz | sed "s/.xz//"
map.img.xz
$
the correct sed-expression would be "s/\.xz$//"
, but i think a much better way would be to use POSIX parameter expansion:
IMG_NAME=$(basename "${ZIP_IMG%.xz}")
Hey, you are quite right. I initially wrote qemu_boot as a quick hack and it really has the place to become something more useful and well documented. I am not sure how much time I have to do that now. Perhaps adding an if args<0 and to print help would be a good start. I would really welcome a PR if you have time for that.
i might :-)
sidenote: shouldn't qemu_boot.sh
and qemu_boot64.sh
be virtually identical (obviously apart from the CPU/kernel/dtb/...)?
i might :-)
sidenote: shouldn't
qemu_boot.sh
andqemu_boot64.sh
be virtually identical (obviously apart from the CPU/kernel/dtb/...)?
Yes, though I update which kernel is used since they changed over time. They could be joined in to one script
i found https://github.com/bablokb/pi-qemu-helper which seems to be a better alternative to your scripts (as it also supports booting with a GUI)
Cool - if you have some example of what commands to run on a .zip file to get a running emulation we could add that to the wiki. Also I am interested too :)
i'm just starting with CustomPiOS, and i'm a bit stumped on how to use
qemu_boot
.qemu_boot.sh
without any arguments (or with-h
; or with a non-existing file) to output some usage informationbuild_dist
/tmp
otherwise the uncompressed image won't be found