PINE64
pinephone pro boot: kernel image not aligned on 64k boundary - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=177)
+--- Forum: General Discussion of PinePhone Pro (https://forum.pine64.org/forumdisplay.php?fid=178)
+--- Thread: pinephone pro boot: kernel image not aligned on 64k boundary (/showthread.php?tid=16872)



pinephone pro boot: kernel image not aligned on 64k boundary - kmerfeld - 06-20-2022

Hello, I was trying to install the custom modem firmware (https://github.com/Biktorgj/pinephone_modem_sdk) on my pinephone pro,
but I think I borked something. whenever I boot I get something like https://pastebin.com/q6ksLzih

This happens on both emmc and sd card, though I wiped emmc over tow-boot's USB Mass Storage mode at some point.

I've tried booting with postmarketos and manjaro, and get similar results. Any pointers on what I can do?


RE: pinephone pro boot: kernel image not aligned on 64k boundary - ajaso - 08-10-2022

(06-20-2022, 01:08 PM)kmerfeld Wrote: Hello, I was trying to install the custom modem firmware (https://github.com/Biktorgj/pinephone_modem_sdk) on my pinephone pro,
but I think I borked something. whenever I boot I get something like https://pastebin.com/q6ksLzih

This happens on both emmc and sd card, though I wiped emmc over tow-boot's USB Mass Storage mode at some point.

I've tried booting with postmarketos and manjaro, and get similar results. Any pointers on what I can do?

Something similar happened for me, although not from flashing modem firmware. I just flashed the Plasma Mobile postmarketOS image for pinephone pro (20220803...) from an SD card, and it installed fine. Booted it, and set my encryption password and login passcode. Seemed to be working alright. Set it down for the night, and in the morning, the battery must have died, so I charged it, and it boot looped (known issue I understand), and then it went dark; no boot loop. Connected with the 3.5mm audio-serial cable, and found this.
Code:
U-Boot TPL 2021.10 (Oct 04 2021 - 15:09:26)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...
  Booting `postmarketOS'

EFI stub: Booting Linux Kernel...
EFI stub: ERROR: FIRMWARE BUG: kernel image not aligned on 64k boundary
EFI stub: Using DTB from configuration table
EFI stub: Exiting boot services...
[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.17.9 (pmos@build) (aarch64-alpine-linux-musl-gcc (Alpine 11.2.1_git2022021
9) 11.2.1 20220219, GNU ld (GNU Binutils) 2.38) #1 SMP PREEMPT Tue Jul 12 06:17:33 UTC 2022
[    0.000000] Machine model: Pine64 PinePhonePro
[    0.000000] earlycon: uart8250 at MMIO32 0x00000000ff1a0000 (options '')
[    0.000000] printk: bootconsole [uart8250] enabled

U-Boot TPL 2021.10 (Oct 04 2021 - 15:09:26)
Channel 0: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
Channel 1: LPDDR4, 50MHz
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB
256B stride
lpddr4_set_rate: change freq to 400000000 mhz 0, 1
lpddr4_set_rate: change freq to 800000000 mhz 1, 0
Trying to boot from BOOTROM
Returning to boot ROM...



RE: pinephone pro boot: kernel image not aligned on 64k boundary - ajaso - 08-15-2022

Update: It seems that the "kernel image not aligned" may be unrelated to my problem. Seems that my PinePhone Pro battery was related to my boot-loop problem. I swapped my original PinePhone battery into the Pro, and it stopped boot-looping, and just worked. As a sanity check, I tried booting my original PinePhone with the Pro battery, and it did not boot. The whole way, I saw the "kernel image not aligned" message fly by during boot, but it hasn't seemed to cause any problem that I have seen yet.