PINE64
UBOOT - Mainline not booting from SD card / BSP OK - 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: UBOOT - Mainline not booting from SD card / BSP OK (/showthread.php?tid=12664)



UBOOT - Mainline not booting from SD card / BSP OK - Anarethos - 12-30-2020

Hi!

I played a little bit with both version of UBOOT avilable in PACMAN in Manjaro 20.10.

Aside the fact that is you don't backup your extlinux.conf file you my end with an unbootable computer, I found that :

- When using the "mainline" (uboot-pinebookpro) version, booting from SD card don't works
- When using the "bsp" (uboot-pinebookpro-bsp) version, booting from SD card works

It is a normal behavior or is there something wrong in the way I flash the UBOOT?

Here is how i switch between both (on my eMMC)

For MAINLINE I do :
Code:
pacman -S uboot-pinebookpro
dd if=/boot/idbloader.img of=/dev/mmcblk2 seek=64 conv=notrunc,fsync
dd if=/boot/u-boot.itb of=/dev/mmcblk2 seek=16384 conv=notrunc,fsync
cp /boot/extlinux/extlinux.conf.sav /boot/extlinux/extlinux.conf
rm /boot/extlinux/*.pacnew


For BSP I do : 
Code:
pacman -S uboot-pinebookpro-bsp
dd if=/boot/idbloader.img of=/dev/mmcblk2 seek=64 conv=notrunc
dd if=/boot/uboot.img of=/dev/mmcblk2 seek=16384 conv=notrunc
dd if=/boot/trust.img of=/dev/mmcblk2 seek=24576 conv=notrunc


cp /boot/extlinux/extlinux.conf.sav /boot/extlinux/extlinux.conf
rm /boot/extlinux/*.pacnew

Thanks!


RE: UBOOT - Mainline not booting from SD card / BSP OK - Anarethos - 01-10-2021

A full re installation from SD card to eMMC (with mainline U-Boot) works as expected.

I suppose that when switching u-boot version between mainline/bsp version would be better if writing zeroes to destination drive first or something like that. Anyway, case closed!