Pinebook Pro Boot Issues - Booting needs multiple attempts
#14
> on my x86 based desktop and laptop and booting has always just "worked".
bios firmware has been around 40 years now, even now as the "csm" module in UEFI firmware
U-boot has existed ~20 years, but it is a lot more work supporting dozens of devices and several architectures
Both mrfixit and manjaro's bsp uboot are patched rockchip bsp uboot, slightly different patches?
Right now, my emmc uboot area is blank, using manjaro 19.10 uboot on SD, unaltered
all I can say is sleep is OK, suggests that it is bsp (19.10)
While I have used "strings" to "dig thru" various uboots, it's hard to get an idea of version numbers,

About dd, a little background first
default bs is 512 bytes, 1 sector,,, DON'T use this when writing more than a very few megs
(quite slow, 1/4 speed or slower, a little hard on nand). I try to use bs=1M, don't have to think much
& when writing an image, don't have to use count=, it will stop at end of if= (input file)
Because different distros have different mmcblkX number, you have to check,, X HAS to be right
lsblk,,, boot0,boot1 always on emmc,,, / will be what you booted from
When I use /dev/SD & /dev/emmc replace with right /dev/mmcblkX
All of uboot is in 1st 16M ,, none of this is mounted
The mbr is 1st sector, or if gpt partitioned first 34 sectors (gpt is not very common, only Ayufan?)
run gdisk /dev/emmc to check,, then q (quit)
If you copy 1st 16M the mbr will almost certainly be wrong, so save original, restore at very end
cd ; mkdir uboot-sav ; cd uboot-sav (shell interprets ";" as <enter>,, a blank directory to work in)
become root/use sudo
dd if=/dev/emmc of=emmc.mbr count=1 (save emmc mbr, 512B)
??? save original emmc uboot???
dd if=/dev/emmc of=1st-16.distro.orig bs=1M count=16
dd if=/dev/SD of=/dev/emmc bs=1M count=16 (to blank,, use if=/dev/zero)
dd if=emmc.mbr of=/dev/emmc (since emmc.mbr is only 512 bytes no need for count or bs)
You will notice, no need for seek or skip or complicated calculations, hardly could be simpler
Just be SURE that X,,mmcblkX is right
BTW, seek is for output, skip for input,,,, man dd (and konqueror is best man pg viewer,, #dd)
One last thought,writing images,, do use xzcat OR zcat (for gz files)... so... xzcat xz-image |dd (no if=)
dd is smart enough to NOT need dd if=- ,,, "-" equals standard input
Also xzcat won't erase original once file is extracted


Messages In This Thread
RE: Pinebook Pro Boot Issues - Booting needs multiple attempts - by wdt - 10-04-2020, 08:55 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  PineBook Pro revision 2.2: Wishlist for the hardware issue fixes dsimic 62 15,364 06-12-2021, 04:05 AM
Last Post: KC9UDX
  Touchpad notchy on new 2021 pinebook pro Neilcob 18 1,072 06-11-2021, 02:48 AM
Last Post: dsimic
  Pinebook Pro Revised Keyboard Firmware jackhumbert 72 57,765 06-05-2021, 09:48 AM
Last Post: dsimic
  Pinebook Pro Docking Deck Ethernet Port MickTheGeek 0 147 05-23-2021, 03:24 AM
Last Post: MickTheGeek
  pinebook pro trackpad randomly stops working chewie 3 345 05-08-2021, 06:53 AM
Last Post: KC9UDX
Question Disassembling PineBook Pro Docking Deck (due to disappeared microSD card) gritibaenz 4 1,204 04-02-2021, 06:45 PM
Last Post: tkudog
  Microphone not working on Pinebook Pro vfr400racer 2 853 03-21-2021, 02:56 AM
Last Post: vfr400racer
  Minimum daughter boards/peripherals required for main board to boot cmicallef 5 914 03-12-2021, 10:10 PM
Last Post: cmicallef
Photo PineBook Docking Deck charging port? ColoBill 3 1,251 02-26-2021, 10:07 PM
Last Post: Paull
  Anyone have a microphone working on a Pinebook Pro? Rachel Stone 5 1,267 02-20-2021, 05:21 AM
Last Post: dsimic

Forum Jump:


Users browsing this thread: 2 Guest(s)