PINE64
PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot (/showthread.php?tid=11651)



PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - pato3 - 09-27-2020

My Pinebook Pro (delivered in August 2020) sometimes won't boot up:
I press the power on key, the screen stays black and the power light stays on orange. 
I have to press the power button for about 5 secs to power off the notebook and try again.
After a couple of tries it will boot normally.

In dmesg I found following Line:

Code:
[Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!

I don't know if this is related in any way to my boot issue, but it doesn't sound well to me.

Can you tell me what I can or should do?
Thanks in advance! :-)


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - wdt - 09-27-2020

https://forum.manjaro.org/t/booting-pinebook-pro-with-manjaro-is-a-real-torture/27906
i think mainline uboot is perhaps a bit flaky, at this time


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - poVoq - 09-27-2020

Quote:It is available in the repo, we maintain bsp and mainline uboot so users can switch to their preferred uboot.
Code:
sudo pacman -S uboot-pinebookpro-bsp
Will install the bsp uboot but you will have to flash it manually by following the instructions printed after installation.

This looks good so far Smile Might have finally solved the massive booting issues I had.


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - pato3 - 09-28-2020

Thanks, seems to be good now :-)


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - MeLikeyTacos - 10-16-2020

Found this thread while searching about flashing the U-Boot. During the last Manjaro update I saw this in the output:


Code:
(162/162) upgrading uboot-pinebookpro                                                  [###################################################] 100%
A new U-Boot version can be flashed onto your install drive. Please use lsblk to determine your drive, before proceeding.
You can do this by running:
# dd if=/boot/idbloader.img of=/dev/mmcblkX seek=64 conv=notrunc,fsync
# dd if=/boot/u-boot.itb of=/dev/mmcblkX seek=16384 conv=notrunc,fsync


lsblk shows this:


Code:
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
mmcblk2      179:0    0  58.2G  0 disk
├─mmcblk2p1  179:1    0 213.6M  0 part /boot
└─mmcblk2p2  179:2    0    58G  0 part /
mmcblk2boot0 179:32  0    4M  1 disk
mmcblk2boot1 179:64  0    4M  1 disk
mmcblk1      179:96  0 238.5G  0 disk
└─mmcblk1p1  179:97  0 238.5G  0 part /run/media/name/disk
zram0        252:0    0  5.6G  0 disk [SWAP]


I'm assuming the commands I need to run are:

dd if=/boot/idbloader.img of=/dev/mmcblk2p1 seek=64 conv=notrunc,fsync
dd if=/boot/u-boot.itb of=/dev/mmcblk2p1 seek=16384 conv=notrunc,fsync

Or would it be mmcblk2boot0 and mmcblk2boot1?


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - wdt - 10-16-2020

None of above,, to the WHOLE device, not partition 1,,p1
And not to the boot{0,1} device, this is separate drive on the same hardware (4M each)
/dev/mmcblk2
I hope it works out for you, some people have found later manjaro uboots
make computer unbootable, since on emmc, 1st found, have to disable emmc and fix
I'm still on 19.10


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - MeLikeyTacos - 10-16-2020

(10-16-2020, 03:08 PM)wdt Wrote: None of above,, to the WHOLE device, not partition 1,,p1
And not to the boot{0,1} device, this is separate drive on the same hardware (4M each)
/dev/mmcblk2
I hope it works out for you, some people have found later manjaro uboots
make computer unbootable, since on emmc, 1st found, have to disable emmc and fix
I'm still on 19.10

Thanks, but now I'm too scared to try it Undecided


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - poVoq - 10-17-2020

The process to change to the bsp uboot was perfectly easy and safe on my Manjaro PinebookPro.
In case something goes wrong you can always just flash a bootable image onto a SDcard and fix it from there.


RE: PBP not starting up sometimes / [Firmware Bug]: Kernel image misaligned at boot - wdt - 10-17-2020

Well yes, the bsp uboot seems more reliable, but i doubt that is what this update is, probably mainline
There have been a few people that have had orange led, wait, nothing (but orange led)
An emmc uboot change fixed this
But if emmc uboot is bad, how are you going to boot SD? Unless you take off back, you aren't
So, take off back, do switch dance or unbind,bind
If it's not broke ...........