Partial boot after installing Manjaro on emmc
#8
On the U-Boot splash screen it says:

Quote:Loading environment from SPIFlash...

I deduce that U-Boot is loaded from the SPIFlash memory, and not from the emmc.

On the pinebook pro wiki it says:

Quote:The Pinebook Pro comes with a 128Mbit, (16MByte), flash device suitable for initial boot target, to store the bootloader. The SoC used on the Pinebook Pro boots from this SPI flash device first, before eMMC or SD card. At present, April 19, 2020, the Pinebook Pros ship without anything programmed in the SPI flash device. So the SoC moves on to the next potential boot device, the eMMC. ARM/ARM64 computers do not have a standardized BIOS, yet.

[...]

Even if you need to recover from a defective bootloader written to the SPI flash, you can simply short pin 6 of the SPI flash to GND and boot. This will render the SoC bootrom unable to read from the SPI flash and have it fall back to reading the bootloader from other boot media like the eMMC or Micro SD card.

The procedures described above are a lot less risky than attaching an external SPI flasher and do not require any additional hardware. At present, April 19th, 2020, there is no good bootloader image to flash into the SPI flash device. This is expected to change, as there are people working on issue.

https://wiki.pine64.org/wiki/Pinebook_Pr...ash_device

I deduce that:
  • manjaro-arm-installer presumably installed U-Boot on SPIFlash when installing Manjaro on the emmc.
  • This version of U-Boot is unsuitable for SPIFlash.
  • I can disable the SPIFlash to try to start U-Boot on the emmc or on the SD card (hardware deactivation).

On the wiki it is also written:

Quote:Zeroing out the SPI
In case, you wrote something bad to your SPI, it's helpful to wipe away that data with zeros. To do that, you follow the same steps above to enter maskrom mode and then write a binary file that consists of all zeros.

  1. Create the binary file dd if=/dev/zero of=zero.bin bs=1M count=16
  2. Flash the flash helper db file: rkdeveloptool db rk3399_loader_spinor_v1.15.114.bin. If successful, the output should read Downloading bootloader succeeded.
  3. Flash the new SPI binary: rkdeveloptool wl 0 zero.bin. If successful, the output should read: Write LBA from file (100%).
  4. Test the installation: rkdeveloptool td. If successful, output should read Reset Device OK.
  5. Run rkdeveloptool rd to reboot your Pinebook Pro.

https://wiki.pine64.org/index.php/Pinebo...ut_the_SPI

It is therefore possible to deactivate SPIFlash by overwriting the memory (software deactivation)

However, it is necessary to check on U-Boot is installed on the emmc or SD card, before overwriting the SPIFlash memory, otherwise the Pinebook pro will not restart.

For this I can, "short pin 6 of the SPI flash to GND and boot" and see if the pinebook pro reboots.

Do you think this is the right solution?
Pinebook Pro, standard config (Manjaro)
  Reply


Messages In This Thread
RE: Partial boot after installing Manjaro on emmc - by regivanx - 02-04-2023, 01:41 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  upgrading u-boot--what version? where to get it? bsammon 11 732 05-22-2024, 09:33 AM
Last Post: wdt
  Manjaro versions bad and good gilwood 0 404 02-12-2024, 05:03 PM
Last Post: gilwood
  uboot wont boot to SD card after upgrade jbradley419 7 1,260 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 420 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 2,692 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 953 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 753 11-22-2023, 11:47 AM
Last Post: fxc
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 62,043 11-20-2023, 06:22 PM
Last Post: wdt
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,436 09-19-2023, 08:48 AM
Last Post: dachalife
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 2,214 08-03-2023, 03:30 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 2 Guest(s)