-
I need some help from the community to build an image. [email protected]:~/pwnagotchi-bookworm# make image
make: command: Command not found
make: Circular dist/pwnagotchi-2.8.4.tar.gz <- pwnagotchi dependency dropped.
cd builder && ~/pwnagotchi/packer init pwnagotchi.json.pkr.hcl && sudo ~/pwnagotchi/packer build -var "pwn_hostname=pwnagotchi" -var "pwn_version=2.8.4" pwnagotchi.json.pkr.hcl
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: output will be in this color.
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: Retrieving rootfs_archive
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: Trying https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz?archive=false
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: Trying https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz?archive=false&checksum=file%3Ahttps%3A%2F%2Fdownloads.raspberrypi.org%2Fraspios_lite_arm64%2Fimages%2Fraspios_lite_arm64-2023-12-11%2F2023-12-11-raspios-bookworm-arm64-lite.img.xz.sha256
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: https://downloads.raspberrypi.org/raspios_lite_arm64/images/raspios_lite_arm64-2023-12-11/2023-12-11-raspios-bookworm-arm64-lite.img.xz?archive=false&checksum=file%3Ahttps%3A%2F%2Fdownloads.raspberrypi.org%2Fraspios_lite_arm64%2Fimages%2Fraspios_lite_arm64-2023-12-11%2F2023-12-11-raspios-bookworm-arm64-lite.img.xz.sha256 => /root/.cache/packer/954fc95274fbf1dd9b273ffe9fa6e2280d09ec58.xz
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: unpacking /root/.cache/packer/954fc95274fbf1dd9b273ffe9fa6e2280d09ec58.xz to ../../../pwnagotchi-rpi-bookworm-2.8.4-arm64.img
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: unpacking with custom command: [unxz /tmp/image4064044028/954fc95274fbf1dd9b273ffe9fa6e2280d09ec58.xz]
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: resizing the image file ../../../pwnagotchi-rpi-bookworm-2.8.4-arm64.img to 9G
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: expanding partition no. 2 on the image ../../../pwnagotchi-rpi-bookworm-2.8.4-arm64.img
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mapping image ../../../pwnagotchi-rpi-bookworm-2.8.4-arm64.img to free loopback device
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: image ../../../pwnagotchi-rpi-bookworm-2.8.4-arm64.img mapped to /dev/loop0
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: running resize2fs on /dev/loop0p2
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting /dev/loop0p2 to /tmp/2461357824
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting /dev/loop0p1 to /tmp/2461357824/boot/firmware
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: running extra setup
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting /dev with: [mount --bind /dev /tmp/2461357824/dev]
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting /devpts with: [mount -t devpts /devpts /tmp/2461357824/dev/pts]
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting proc with: [mount -t proc proc /tmp/2461357824/proc]
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting binfmt_misc with: [mount -t binfmt_misc binfmt_misc /tmp/2461357824/proc/sys/fs/binfmt_misc]
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: mounting sysfs with: [mount -t sysfs sysfs /tmp/2461357824/sys]
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: Failed to find binfmt_misc for /usr/libexec/qemu-binfmt/aarch64-binfmt-P under /proc/sys/fs/binfmt_misc
==> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: remove /tmp/2461357824/usr/libexec/qemu-binfmt/aarch64-binfmt-P: no such file or directory
Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: optional (please ignore) `fuser -k` failed with exit status 1:
Build 'Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi' errored after 32 seconds 713 milliseconds: build was halted
==> Wait completed after 32 seconds 713 milliseconds
==> Some builds didn't complete successfully and had errors:
--> Raspberry Pi 64 Pwnagotchi.arm.rpi64-pwnagotchi: build was halted
==> Builds finished but no artifacts were created.
make: *** [Makefile:61: pwnagotchi] Error 1 OS: Ubuntu 20.04 AMD64 I've also tried it on MacOS with M1, but got an error and switched to my Linux Server. Maybe anyone has an idea or a solution for Mac or Linux. @wpa-2 Pointed out maybe a reinstall of qemu would solve it and I'm trying it now. |
Beta Was this translation helpful? Give feedback.
Answered by
hamzenis
Feb 23, 2024
Replies: 1 comment
-
I found a solution:
Then simply: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
hamzenis
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found a solution:
Then simply:
sudo make image