From 5d9f00933693e353dfef434abc52ebe10fb3a2f5 Mon Sep 17 00:00:00 2001 From: Henrik Grimler Date: Tue, 22 Apr 2025 15:55:43 +0200 Subject: [PATCH] device-odroid-xu4: use msdos partition type bl1 is embedded at 0x200 (512), but the GPT header uses roughly the first 0x500 bytes, and hence bl1 overwrites part of the GPT header. Fix issue by changing to msdos partition type. Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6442 --- device/community/device-odroid-xu4/APKBUILD | 4 ++-- device/community/device-odroid-xu4/deviceinfo | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/device/community/device-odroid-xu4/APKBUILD b/device/community/device-odroid-xu4/APKBUILD index eeea57ddd..069336335 100644 --- a/device/community/device-odroid-xu4/APKBUILD +++ b/device/community/device-odroid-xu4/APKBUILD @@ -3,7 +3,7 @@ pkgname=device-odroid-xu4 pkgdesc="ODROID XU4" -pkgver=1 +pkgver=2 pkgrel=0 url="https://postmarketos.org" license="MIT" @@ -32,6 +32,6 @@ nonfree_firmware() { } sha512sums=" -bf14f975ee01f8dbc9109444ab408ac0948ae67af267d8f4101f2ca688750761277e793b2800985277d0e91205c13e89bd66e37bfebe3608ea7d29ecdb20c907 deviceinfo +4d39e938092318cfc6a6b102e15bfabfec215669c73a6334019e158062760e50ce5957297cdbe309d78b770c26128385bec779d92606b4204e39f305dea70183 deviceinfo 9f6c3cc0079e718ef0dfc221fadaf9bc092a8601b62794c2298eab893924af457612bd8a6e852fb2b181bee637e774dd2abea681eb72b1aa9c6672e686454795 modules-initfs " diff --git a/device/community/device-odroid-xu4/deviceinfo b/device/community/device-odroid-xu4/deviceinfo index b87374171..23879fb05 100644 --- a/device/community/device-odroid-xu4/deviceinfo +++ b/device/community/device-odroid-xu4/deviceinfo @@ -27,3 +27,7 @@ deviceinfo_sd_embed_firmware_step_size="512" deviceinfo_boot_part_start="3072" deviceinfo_kernel_cmdline="init=/init.sh rw console=tty0 console=ttySAC2,115200 panic=10 consoleblank=0 loglevel=9 cma=256M PMOS_FORCE_PARTITION_RESIZE" deviceinfo_generate_extlinux_config="true" + +# The bl1 embed location in sdcard conflicts with GPT header, so need +# to use msdos. +deviceinfo_partition_type="msdos"