Skip to content

Commit

Permalink
Update the image base version and fix Pi5 AMA0 device error
Browse files Browse the repository at this point in the history
  • Loading branch information
TojikCZ authored and ondratu committed May 15, 2024
1 parent c1345a5 commit de66aff
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions image_builder/image_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@


KERNEL_URL = ("http://security.debian.org/debian-security/pool/updates/main/l/"
"linux/linux-image-6.1.0-17-armmp-lpae_6.1.69-1_armhf.deb")
"linux/linux-image-6.1.0-21-armmp-lpae_6.1.90-1_armhf.deb")
match = KERNEL_URL_REGEX.match(KERNEL_URL)

if match is None:
Expand All @@ -31,8 +31,8 @@
VMLINUZ_NAME = f"vmlinuz-{KERNEL_VERSION_NAME}"

IMAGE_URL = ("https://downloads.raspberrypi.org/raspios_lite_armhf/images/"
"raspios_lite_armhf-2023-12-11/"
"2023-12-11-raspios-bookworm-armhf-lite.img.xz")
"raspios_lite_armhf-2024-03-15/"
"2024-03-15-raspios-bookworm-armhf-lite.img.xz")

DATA_FILE = "data.json"
COMPRESSED_IMAGE_NAME = "source_image.img.xz"
Expand Down
4 changes: 2 additions & 2 deletions prusa/link/data/image_builder/manager-start-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ iptables -t nat -I OUTPUT -p tcp -o lo -d localhost --dport 80 -j REDIRECT --to-

set_up_port () {
# Sets the baudrate and cancels the hangup at the end of a connection
stty -F "$1" 115200 -hupcl;
stty -F "$1" 115200 -hupcl || true
}

message() {
printf "M117 $2\n" > "$1"
printf "M117 $2\n" > "$1" || true
}

wifi_nic_name=$(find /sys/class/net -follow -maxdepth 2 -name wireless 2> /dev/null | cut -d / -f 5)
Expand Down
4 changes: 2 additions & 2 deletions prusa/link/data/image_builder/prusalink-start-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ iptables -t nat -I OUTPUT -p tcp -o lo -d localhost --dport 80 -j REDIRECT --to-

set_up_port () {
# Sets the baudrate and cancels the hangup at the end of a connection
stty -F "$1" 115200 -hupcl;
stty -F "$1" 115200 -hupcl || true
}

message() {
printf "M117 $2\n" > "$1"
printf "M117 $2\n" > "$1" || true
}

wifi_nic_name=$(find /sys/class/net -follow -maxdepth 2 -name wireless 2> /dev/null | cut -d / -f 5)
Expand Down

0 comments on commit de66aff

Please sign in to comment.