pmos/device-pine64-pinenote: fix flash procedure #1345

Closed
opened 2025-06-21 21:49:05 +00:00 by forge · 3 comments
Owner
No description provided.
Author
Owner

The full device flash hasn't been updated for the second PineNote batch. Where it blocks is that pmbootstrap has no mechanism to flash a new partition table and u-boot with rkdeveloptool. I can manually flash by following https://github.com/PNDeb/pinenote-debian-image/tree/trixie/partition_tables, or:

  # enable `write-partition-table` commands
  rkdeveloptool reboot-maskrom
  rkdeveloptool boot rk356x_spl_loader_v1.12.112.bin

  # write new GPT partition table
  rkdeveloptool write-partition-table partition_table_standard2.txt

  # write new u-boot
  rkdeveloptool write 64 idblock.bin
  rkdeveloptool write-partition uboot uboot.img

After this is setup, I can leverage postmarketos' rkdevelop flasher to flash , but I need to integrate these steps somehow in postmarketos.

The full device flash hasn't been updated for the second PineNote batch. Where it blocks is that pmbootstrap has no mechanism to flash a new partition table and u-boot with rkdeveloptool. I can manually flash by following https://github.com/PNDeb/pinenote-debian-image/tree/trixie/partition_tables, or: ``` # enable `write-partition-table` commands rkdeveloptool reboot-maskrom rkdeveloptool boot rk356x_spl_loader_v1.12.112.bin # write new GPT partition table rkdeveloptool write-partition-table partition_table_standard2.txt # write new u-boot rkdeveloptool write 64 idblock.bin rkdeveloptool write-partition uboot uboot.img ``` After this is setup, I can leverage postmarketos' rkdevelop flasher to flash , but I need to integrate these steps somehow in postmarketos.
Author
Owner

The following partition table has proven to work:
mtdparts=rk3566mmc:0x3FC0@0x40(idbloader),0x20000@0x4000(uboot),0x1000@0x24000(waveform),0x800@0x25000(uboot_env),0x20000@0x25800(logo),0x85800@0x45800(boot:bootable),-@0xcb000(os1:grow)

Then we can follow the above steps. I won't care about getting pmbootstrap support, as it seems out of scope.

The following partition table has proven to work: `mtdparts=rk3566mmc:0x3FC0@0x40(idbloader),0x20000@0x4000(uboot),0x1000@0x24000(waveform),0x800@0x25000(uboot_env),0x20000@0x25800(logo),0x85800@0x45800(boot:bootable),-@0xcb000(os1:grow)` Then we can follow the above steps. I won't care about getting pmbootstrap support, as it seems out of scope.
Author
Owner
Fixed: https://wiki.postmarketos.org/wiki/PINE64_PineNote_(pine64-pinenote) And added ATF BL31 to u-boot: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6698
forge closed this issue 2025-07-10 21:47:35 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forge/ayaports#1345
No description provided.