samsung-klte: switch to fastboot and require lk2nd (MR 3044)

To make panel driver upstreamable to mainline linux, we need to use
proper panel selection in secondary bootloader (still TODO), and
therefore lk2nd will be strictly required to boot mainline port.

Switch flashing method to fastboot, enable sparse rootfs generation,
and depend on lk2nd package.

Depends on: postmarketOS/pmbootstrap!2174, to provide full
integration of lk2nd in pmbootstrap.

So, full flashing procedure for samsung-klte will look like:

 $ pmbootstrap init
 $ pmbootstrap install
 $ pmbootstrap flasher --method=heimdall-bootimg flash_lk2nd
 $ pmbootstrap flasher flash_kernel --no-install
 $ pmbootstrap flasher flash_rootfs
 $ fastboot reboot
This commit is contained in:
Alexey Minnekhanov 2022-03-29 20:18:19 +03:00
parent 29d71342c1
commit 185492156e
No known key found for this signature in database
GPG Key ID: 6FE3B029D9D9FAFF
2 changed files with 6 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-klte pkgname=device-samsung-klte
pkgdesc="Samsung Galaxy S5 (G900F)" pkgdesc="Samsung Galaxy S5 (G900F)"
pkgver=4 pkgver=5
pkgrel=0 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
@ -9,6 +9,7 @@ arch="armv7"
options="!check !archcheck" options="!check !archcheck"
depends=" depends="
linux-postmarketos-qcom-msm8974 linux-postmarketos-qcom-msm8974
lk2nd-msm8974
mesa-dri-gallium mesa-dri-gallium
mkbootimg mkbootimg
postmarketos-base postmarketos-base
@ -49,5 +50,5 @@ nonfree_firmware() {
sha512sums=" sha512sums="
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf 6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
ddbf2140fdc4b3c50a78a5c946d2bec75debec68a89bfac6e1ad7b112af7c38e916ac056dbe69e266c229e3543427471375d3f5f362dcf35765e86a6bc0f4024 deviceinfo fab39759211a269bca415a2359a63794c4f8fa8458f5aae02eac33426ab4f5491c4eb6b554a2c9af993dc7dc2cbd6bf09e29296047b509a211ee162ab5f2b12d deviceinfo
" "

View File

@ -20,11 +20,11 @@ deviceinfo_screen_height="1920"
deviceinfo_getty="ttyMSM0;115200" deviceinfo_getty="ttyMSM0;115200"
# Bootloader related # Bootloader related
deviceinfo_flash_method="heimdall-bootimg" deviceinfo_flash_method="fastboot"
deviceinfo_flash_sparse="true"
deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 msm.vram=192m msm.allow_vram_carveout=1 PMOS_NO_OUTPUT_REDIRECT" deviceinfo_kernel_cmdline="console=ttyMSM0,115200,n8 msm.vram=192m msm.allow_vram_carveout=1 PMOS_NO_OUTPUT_REDIRECT"
deviceinfo_generate_bootimg="true" deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false" deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_append_seandroidenforce="true"
deviceinfo_flash_offset_base="0x00000000" deviceinfo_flash_offset_base="0x00000000"
deviceinfo_flash_offset_kernel="0x00008000" deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x02000000" deviceinfo_flash_offset_ramdisk="0x02000000"
@ -32,6 +32,7 @@ deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x01e00000" deviceinfo_flash_offset_tags="0x01e00000"
deviceinfo_flash_pagesize="2048" deviceinfo_flash_pagesize="2048"
deviceinfo_flash_heimdall_partition_kernel="BOOT" deviceinfo_flash_heimdall_partition_kernel="BOOT"
deviceinfo_flash_fastboot_partition_kernel="boot"
# USB related # USB related
deviceinfo_usb_idVendor="0x04e8" # Samsung Electronics Co., Ltd deviceinfo_usb_idVendor="0x04e8" # Samsung Electronics Co., Ltd