Partial boot after installing Manjaro on emmc
#11
Thumbs Up 
Hi, the problem is solved.

I installed Tow Boot on the emmc which solved the problem.

However, when Tow Boot is installed on the SPI, I have exactly the same problem as with U-Boot: the system does not detect the encrypted partition on the SD card, it does not detect the SD card at all (no /dev/mmcblk1), booting is impossible and I get into an emergency shell.

Procedure:

On another computer, download the latest version of Tow Boot at https://github.com/Tow-Boot/Tow-Boot/releases. Choose the pinebookPro version.

Assume the latest version is pine64-pinebookPro-2021.10-005.tar.xz

Code:
$ wget https://github.com/Tow-Boot/Tow-Boot/releases/download/release-2021.10-005/pine64-pinebookPro-2021.10-005.tar.xz # download archive
$ tar xvf pine64-pinebookPro-2021.10-005.tar.xz # unzip
$ cd pine64-pinebookPro-2021.10-005
$ cp shared.disk-image.img [your-usb-stick-location]
$ sudo -s
# dd if=spi.installer.img of=[your-SDcard-location-in-/dev/] bs=1M status=progress

Then, I plugged the USB key into the faulty computer, and I started it with the encrypted SDcard to arrive at the emergency shell.

Perhaps due to the abnormal boot, I was unable to use dd with the options given in the documentation.

On the emergency shell,

Code:
# dd if=shared.disk-image.img of=/dev/mmcblk2 bs=1M oflag=direct,sync status=progress # /dev/mmcblk2 is internal emmc memory.

returns an error.

So I used the command:

Code:
# dd if=shared.disk-image.img of=/dev/mmcblk2 bs=1M oflag=direct conv=fsync

Source.

What worked.

Then I replaced the encrypted SDcard with the Tow Boot SDcard containing spi.installer.img, rebooted and overwritten the SPI memory.

Finally, I replaced the Tow Boot SDcard with the encrypted SDcard, and when I restarted, everything was working normally.

I tried to install Tow Boot on SPI memory, but as I said, Tow Boot on SPI does not detect the encrypted SDcard.

I haven't tested unencrypted system boot on emmc with Tow Boot on SPI. As Tow Boot works on the emmc, I leave it as is.

Thanks for your help, wdt and KC9UDX!
Pinebook Pro, standard config (Manjaro)
  Reply
#12
FYI (and anyone else) the problem with the command,,,
dd does not work with csv (comma separated values) only <parmeter>=<value>
gotta wonder how (emmc) mbr persisted
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Manjaro versions bad and good gilwood 0 188 02-12-2024, 05:03 PM
Last Post: gilwood
  uboot wont boot to SD card after upgrade jbradley419 7 630 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 233 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 1,999 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 562 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 514 11-22-2023, 11:47 AM
Last Post: fxc
  Happy eMMC and SDcard OS usage for Pinebook Pro Newbies... Paulie420 42 59,133 11-20-2023, 06:22 PM
Last Post: wdt
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,069 09-19-2023, 08:48 AM
Last Post: dachalife
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 1,668 08-03-2023, 03:30 PM
Last Post: tophneal
  Boot into NVME drive, no wifi, sound, buttons... PaulQ 0 751 07-13-2023, 01:50 PM
Last Post: PaulQ

Forum Jump:


Users browsing this thread: 1 Guest(s)