Skip to content

Commit

Permalink
use custom image
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurii Smetanka committed Oct 21, 2024
1 parent ceaa428 commit fc81fb3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions builder/bpim4.json.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,19 @@ variable "pwn_version" {
type = string
}

variable "images_root" {
type = string
description = "Path to disk image directory"
default = "../../../images"
}

source "arm-image" "bpim4-pwnagotchi" {
image_type = "armbian"
image_arch = "arm64"
// iso_url = "https://mirrors.dotsrc.org/armbian-dl/bananapim4zero/archive/Armbian_24.8.1_Bananapim4zero_bookworm_current_6.6.44.img.xz"
// iso_url = "https://dl.armbian.com/nightly/bananapim4zero/Bookworm_current_gnome-backported-mesa"
iso_url = "file:${abspath('../../../images')}/Armbian-unofficial_24.11.0-trunk.303_Bananapim4zero_bookworm_current_6.6.54.img.xz"
iso_checksum = "file:${abspath('../../../images')}/Armbian-unofficial_24.11.0-trunk.303_Bananapim4zero_bookworm_current_6.6.54.img.xz.sha"
iso_url = "file:${abspath(var.images_root)}/Armbian-unofficial_24.11.0-trunk.303_Bananapim4zero_bookworm_current_6.6.54.img.xz"
iso_checksum = "file:${abspath(var.images_root)}/Armbian-unofficial_24.11.0-trunk.303_Bananapim4zero_bookworm_current_6.6.54.img.xz.sha"
output_filename = "../../../pwnagotchi-bpim4.img"
// qemu_binary = "qemu-aarch64-static"
qemu_args = ["-r", "6.6.54"]
Expand Down

0 comments on commit fc81fb3

Please sign in to comment.