Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

make qemu #16

Open
xiexiewww opened this issue Aug 12, 2018 · 1 comment
Open

make qemu #16

xiexiewww opened this issue Aug 12, 2018 · 1 comment

Comments

@xiexiewww
Copy link

I have prepare everything before "make qemu "
But I got stock with "make qemu"
[ -f guestimg/guestdisk.img ] || cp raspbian.img guestimg/guestdisk.img
[ driver/komodo.ko -ot guestimg/guestdisk.img ] || guestimg/cptoext2.sh driver/komodo.ko guestimg/guestdisk.img /lib/modules/komodo.ko[ -f guestimg/guestdisk.img ] || cp raspbian.img guestimg/guestdisk.img
[ -z "piimage/piimage.img piimage/config.txt" ] || guestimg/cptofat.sh piimage/piimage.img piimage/config.txt guestimg/guestdisk.img /
Usage: guestimg/cptofat.sh file image dest
guestimg/subdir.mk:14: recipe for target 'guestimg/guestdisk.img' failed
make: *** [guestimg/guestdisk.img] Error 1
make: *** Deleting file 'guestimg/guestdisk.img'
I have not found any solution so far.
Could you help me?
Many thanks in advance!

@0xabu
Copy link
Contributor

0xabu commented Aug 13, 2018

It's hard to be completely sure without knowing what files you have on your filesystem, but it looks to me like this might be a bug in guestimg/subdir.mk:15. Both piimage/config.txt and piimage/piimage.img are out of date, so it is trying to copy both of them into guestdisk.img using cptofar.sh, but the script only supports copying a single file at a time.

These scripts are quite flaky -- they are written in a very roundabout way using pure-userland utilities like e2cp and mcopy in order to work on WSL, but if you're on Linux it would be much faster just to make a loopback mount of the partition and copy the files in directly. The end-goal is to take a Raspbian image, copy komodo.ko into the ext2 filesystem from where you can later insmod it, and copy the modified config.txt and piimage.img in the FAT boot partition so that the monitor runs in secure world at startup prior to booting Linux.

Also: this isn't a real-time support forum -- this is a GitHub bug tracker for a research prototype, so you shouldn't expect fast turnaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants