Intermittent Boot Issues
#1
Greetings

My girlfriend and I both got our PBPs in last week. Out of the box I had issues with mine not booting properly.

I got the Manjaro setup process then on reboot, I got the orange to green led sequence but no back light on the screen. After a few power cycles I was able to boot into Manjaro. Every other power cycle the issue returns though. I can do a hard poweroff and power back up and it fixes the issue; though, it sometimes takes 3 or 4 power cycles to fix the issue. There seems to be no relation between power connectivity across boots as I have read in other posts on this forum. I have also tried switching ttys and trying to reboot through the serial console, as if the screen were just blanked, which was also fruitless.

I'm running the PBP as shipped from the factory; though I did allow Manjaro to do a system update once it finally booted.

My girlfriend's PBP, on the other hand, is behaving quite nicely. 

I'm not sure where to start with debugging this. It looks like a hardware issue given that its not happening on both PBPs; but, I don't want to rule out the possibility that the Manjaro setup script botched something. Does anyone have any ideas?

Thanks in advance.

[Solution]

The solution as mentioned by @khanku is that there are bugs in Manjaro's build of UBoot.

There is a uboot build in this git repo: https://github.com/mrfixit2001/updates_repo/tree/v2.0 The v2.0 branch targets PBP. There is a script in the directory pinebook/filesystem called mrfixit_update.sh. The script is smart enough to determine the target drive for writing the uboot image. I didn't want to install the kernel and other stuff, so I borrowed the script and made some redactions to fit my needs.

This may not be the best way to handle it; but, its what I did to get moving:

Code:
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
SYSPART=$(findmnt -n -o SOURCE /)
       
if echo $SYSPART | grep -qE 'p[0-9]$' ; then
  DEVID=$(echo $SYSPART | sed -e s+'p[0-9]$'+''+)
else
  DEVID=$(echo $SYSPART | sed -e s+'[0-9]$'++)
fi
       
if [ -f $DIR/idbloader.img ] ; then
  dd if=$DIR/idbloader.img of=$DEVID bs=32k seek=1 conv=fsync
fi

if [ -f $DIR/uboot.img ] ; then
  dd if=$DIR/uboot.img of=$DEVID bs=64k seek=128 conv=fsync
fi
       
if [ -f $DIR/trust.img ] ; then
  dd if=$DIR/trust.img of=$DEVID bs=64k seek=192 conv=fsync
fi

I ran these commands one at a time; but, some return value checks on dd and better placement of file existence would help automation.
  Reply
#2
I have also been encountering almost exactly this same problem with my brand new Pinebook Pro; unfortunately I have no idea what's causing it.
  Reply
#3
My first guess would be to open the PBP and check if the eMMC is properly seated.
Be careful with static electricity.
  Reply
#4
(06-02-2020, 12:46 AM)MrRoosevelt Wrote: I got the Manjaro setup process then on reboot, I got the orange to green led sequence but no back light on the screen. After a few power cycles I was able to boot into Manjaro. Every other power cycle the issue returns though. I can do a hard poweroff and power back up and it fixes the issue; though, it sometimes takes 3 or 4 power cycles to fix the issue. There seems to be no relation between power connectivity across boots as I have read in other posts on this forum. I have also tried switching ttys and trying to reboot through the serial console, as if the screen were just blanked, which was also fruitless.

I had the same issue: Manjaro would boot every third of fourth try. I fixed this by writing u-boot files from mrfixit2001 updates_repo to the eMMC. While this worked for me I cannot tell you why and could not find the sources for those files Sad
  Reply
#5
I too have had serious Manjaro boot problems. Miy PBP was from an earlier batch, so I had loaded Manjaro myself. Seemed to work a bit. Then it would not. Initially I could do the Control-Alt-Delete and then it would boot.

But in the end, I think I have to try something different. Since it appears to be a U-Boot issue, I'll give @khanku fix a try.
--
Arwen Evenstar
Princess of Rivendale
  Reply
#6
Having similar issues. Manjaro crashed while copying some non essential files and has since been unable to boot. I can get the orange and sometimes green light but nothing on the screen. I guess I'll need to check the emmc?
  Reply
#7
This might be worth bringing up to the Manjaro devs on their forums. Sounds like a bad update to U-Boot went out if it's resolved by writing a BSP U-Boot. (one the up side, BSP U-Boot makes suspend possible in Manjaro.)
  Reply
#8
(06-03-2020, 02:55 AM)khanku Wrote:
(06-02-2020, 12:46 AM)MrRoosevelt Wrote: I got the Manjaro setup process then on reboot, I got the orange to green led sequence but no back light on the screen. After a few power cycles I was able to boot into Manjaro. Every other power cycle the issue returns though. I can do a hard poweroff and power back up and it fixes the issue; though, it sometimes takes 3 or 4 power cycles to fix the issue. There seems to be no relation between power connectivity across boots as I have read in other posts on this forum. I have also tried switching ttys and trying to reboot through the serial console, as if the screen were just blanked, which was also fruitless.

I had the same issue: Manjaro would boot every third of fourth try. I fixed this by writing u-boot files from mrfixit2001 updates_repo to the eMMC. While this worked for me I cannot tell you why and could not find the sources for those files Sad

Same thing here. Is there an F key that lets me choose what device to boot to? I want to install Ubuntu Mate via a usb thumb drive.
  Reply
#9
The installation of the default Debian U-Boot helped.

I've updated the Manjaro packages, which included some new U-Boot files. Those seem to work for the moment.
But, I am keeping the default Debian U-Boot files just in case.

I wish I had more skills in software development. But, that is so last century for me :-).
If time & brain power permit, I may dig into U-Boot on our Pinebook Pros. I really want more modern features.

Edit: That did not last long, had to go back to the default Debian U-Boot files.
--
Arwen Evenstar
Princess of Rivendale
  Reply
#10
I  get denied when cloning or downloading the mrfixit repo.

[EDIT]: Nevermind, that was user error...

I'm trying to make sure that I write the images to the correct device. It looks like the script wants to do this (omitting long file path):

Code:
dd if=...updates_repo/pinebook/filesystem/idbloader.img of=/dev/mmcblk2 bs=32k seek=1 conv=fsync &>/dev/null
dd if=...updates_repo/pinebook/filesystem/uboot.img of=/dev/mmcblk2 bs=64k seek=128 conv=fsync &>/dev/null
dd if=...updates_repo/pinebook/filesystem/trust.img of=/dev/mmcblk2 bs=64k seek=192 conv=fsync &>/dev/null

It looks sane to me; but, I'm still looking for documentation on the wiki to confirm (I don't want to overwrite the wrong device).
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Sudden Pinebook Pro boot problems ndp 3 244 01-21-2021, 09:51 AM
Last Post: ndp
  [split] U-Boot with NVMe support, keyboard & display working as400 81 21,043 01-21-2021, 02:19 AM
Last Post: as400
  How to determine which U-boot I am using edandjeanmcknight@gmail.com 0 110 01-15-2021, 08:25 AM
Last Post: edandjeanmcknight@gmail.com
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 115 65,431 01-04-2021, 09:57 AM
Last Post: wdt
  Novice question: Pinebook Pro does boot (does it?) but black screen Gert V. 18 1,031 12-24-2020, 08:50 AM
Last Post: wdt
  Issues with chromium-docker PVD 4 1,259 12-17-2020, 10:11 PM
Last Post: warehouses
  Pinebook Pro refuses to boot from eMMC pivic 23 1,671 12-14-2020, 05:08 PM
Last Post: KC9UDX
  Booting - User device selection in U-Boot? Arwen 10 2,513 11-21-2020, 01:22 PM
Last Post: Arwen
  Pinebook Pro won´t boot either from eMMC or microSD robieguarneros 40 4,815 11-16-2020, 10:48 AM
Last Post: axel
  Boot issue (red light) pineitup 10 1,449 11-01-2020, 11:26 PM
Last Post: wdt

Forum Jump:


Users browsing this thread: 1 Guest(s)