PINE64
uboot wont boot to SD card after upgrade - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: uboot wont boot to SD card after upgrade (/showthread.php?tid=19022)



uboot wont boot to SD card after upgrade - jbradley419 - 01-18-2024

can someone tell me how to revert to an older version of U-Boot or upgrade to a working version?  I am currently running version 2023.07+dfsg-1.  It will no longer boot from an SD card.   I put a screen shot with the errors then after it flashes like it is adjusting video then boots.  I does then same on reboot but get stuck at the flashing screen.


RE: uboot wont boot to SD card after upgrade - tophneal - 01-18-2024

(01-18-2024, 08:47 AM)jbradley419 Wrote: can someone tell me how to revert to an older version of U-Boot or upgrade to a working version?  I am currently running version 2023.07+dfsg-1.  It will no longer boot from an SD card.   I put a screen shot with the errors then after it flashes like it is adjusting video then boots.  I does then same on reboot but get stuck at the flashing screen.

What OS are you running, some will have older versions of uboot available in their repos that you can install and then write to the appropriate place (for example, iirc Manjaro has dated versions of uboot releases and at the end of the installation in terminal you'll be given the necessary command(s) to write the newly installed uboot


RE: uboot wont boot to SD card after upgrade - jbradley419 - 01-18-2024

(01-18-2024, 01:29 PM)tophneal Wrote:
(01-18-2024, 08:47 AM)jbradley419 Wrote: can someone tell me how to revert to an older version of U-Boot or upgrade to a working version?  I am currently running version 2023.07+dfsg-1.  It will no longer boot from an SD card.   I put a screen shot with the errors then after it flashes like it is adjusting video then boots.  I does then same on reboot but get stuck at the flashing screen.

What OS are you running, some will have older versions of uboot available in their repos that you can install and then write to the appropriate place (for example, iirc Manjaro has dated versions of uboot releases and at the end of the installation in terminal you'll be given the necessary command(s) to write the newly installed uboot

Kali linux

(01-18-2024, 01:29 PM)tophneal Wrote:
(01-18-2024, 08:47 AM)jbradley419 Wrote: can someone tell me how to revert to an older version of U-Boot or upgrade to a working version?  I am currently running version 2023.07+dfsg-1.  It will no longer boot from an SD card.   I put a screen shot with the errors then after it flashes like it is adjusting video then boots.  I does then same on reboot but get stuck at the flashing screen.

What OS are you running, some will have older versions of uboot available in their repos that you can install and then write to the appropriate place (for example, iirc Manjaro has dated versions of uboot releases and at the end of the installation in terminal you'll be given the necessary command(s) to write the newly installed uboot

I see the newer version of uboot at /lib/u-boot/pinbook-pro-rk3399.  Now sure what do to with the bin and image files tho


RE: uboot wont boot to SD card after upgrade - wdt - 01-18-2024

>I put a screen shot with the errors then after it flashes like it is adjusting video then boots. I does then same on reboot but get stuck at the flashing screen.
When I read this, it sounds like a cold boot works ???
Reboot has always (or nearly so) been problematic, so why not just shutdown, then restart
dd commands,,... first run lsblk to know where to flash to, replace <emmc> with correct device
dd if=/dev/idbloader.img of=/dev/<emmc> seek=64
dd if=/dev/u-boot.itb of=/dev/<emmc> seek=16384 (or bs=1M seek=8,,, since 8*1024*2=16384)


RE: uboot wont boot to SD card after upgrade - jbradley419 - 01-19-2024

(01-18-2024, 07:01 PM)wdt Wrote: >I put a screen shot with the errors then after it flashes like it is adjusting video then boots.  I does then same on reboot but get stuck at the flashing screen.
When I read this, it sounds like a cold boot works  ???
Reboot has always (or nearly so) been problematic, so why not just shutdown, then restart
dd commands,,... first run lsblk to know where to flash to, replace <emmc> with correct device
dd if=/dev/idbloader.img of=/dev/<emmc> seek=64
dd if=/dev/u-boot.itb of=/dev/<emmc> seek=16384  (or bs=1M seek=8,,, since 8*1024*2=16384)

Yes cold boot works.   I just flashed it yesterday with the 2024 uboot in the repo.  Still getting the CRC error and won't boot off SD to reinstall os on EMMC?


RE: uboot wont boot to SD card after upgrade - dachalife - 01-19-2024

With my 2022 PBP:

The Kali installer does disable the Sdcard boot by default when you install it to the eMMC & the color bars are normal for the display after the initial boot-up screen; it doesn’t affect operation.

The PBP will not reboot & when you try, it’ll get stuck on a gray/colors screen similar to the start up one. You always need to power it off instead. (Reinstalling will not change it.)

If you want to modify your U-boot install, here is the complete guide:
https://docs.u-boot.org/en/latest/index.html

or you can build it from source & reinstall it fresh to try another OS:
https://docs.u-boot.org/en/latest/build/source.html

I haven’t had the CRC error on my PBP & it has various causes. If you want to run Kali on your PBP please follow this guide:
https://www.kali.org/docs/arm/pinebook-pro/

Also, for further assistance with Kali their site is here:
https://forums.kali.org/forum.php


RE: uboot wont boot to SD card after upgrade - jbradley419 - 01-19-2024

(01-19-2024, 10:49 AM)dachalife Wrote: With my 2022 PBP:

The Kali installer does disable the Sdcard boot by default when you install it to the eMMC & the color bars are normal for the display after the initial boot-up screen; it doesn’t affect operation.

The PBP will not reboot & when you try, it’ll get stuck on a gray/colors screen similar to the start up one. You always need to power it off instead. (Reinstalling will not change it.)

If you want to modify your U-boot install, here is the complete guide:
https://docs.u-boot.org/en/latest/index.html

or you can build it from source & reinstall it fresh to try another OS:
https://docs.u-boot.org/en/latest/build/source.html

I haven’t had the CRC error on my PBP & it has various causes. If you want to run Kali on your PBP please follow this guide:
https://www.kali.org/docs/arm/pinebook-pro/

Also, for further assistance with Kali their site is here:
https://forums.kali.org/forum.php
can SD be re-enabled in Kali?


RE: uboot wont boot to SD card after upgrade - wdt - 01-19-2024

The boot rom search order is fixed (spi, emmc, sd), if you have a serial terminal
you can alter uboot priority .... setenv boot_targets mmc1 ; boot
some uboots will look to sd (mmc1) first, check with.... strings u-boot.itb|grep _targets
OR install tow-boot
OR save emmc 1st 16M, save emmc mbr, blank emmc 1st 16M, restore emmc mbr, make a small sd boot card for emmc boot
Since the only uboot is on sd, that is what will boot, if the sd has no boot cfg files will then look to emmc
boot cfg files = boot.scr (or boot/boot.scr), extlinux.conf (in appropriate 2 paths), aarch64.efi