[split] U-Boot with NVMe support, keyboard & display working
#21
(07-18-2020, 02:44 PM)belfastraven Wrote: @samueldr, Just to clarify,  I wasn't complaining--I have been able to occasionally boot a 5.7 Manjaro kernel, (probably 25% of the time)  and I really appreciate what you have done.  I just wasn't sure that as400 had seen the comment.

Good, I was just saying Smile. as400 was aware because I talked about the issues on IRC, but good to make sure here too.
  Reply
#22
(07-15-2020, 12:59 PM)as400 Wrote: OK, so I finally was able to build working (sort of) uboot with nvme boot, display and keyboard thanks to Arnaud and @samueldr work.

It boots my 5.8-rc5 but inconsistently. In 15 tries I have 5 failed boots.

If someone is brave enough to test it - I can share SPI image or images for SD/eMMC.
I'll do it! I've successfully bricked and unbricked my PBP already I'm ready for anything let's do thisBig Grin
  Reply
#23
[Image: KPtc7sf.jpg]


This is what's possible with display enabled uboot. Finally we can have multiple kernel choices and multiple OS'es on one drive without too much of a hassle.

@samueldr has posted some new code from Arnaud in his repo so if somebody is interested I can post new binaries for further testing.
For me it works quite well.
  Reply
#24
(07-29-2020, 03:26 AM)as400 Wrote: [Image: KPtc7sf.jpg]


This is what's possible with display enabled uboot. Finally we can have multiple kernel choices and multiple OS'es on one drive without too much of a hassle.

@samueldr has posted some new code from Arnaud in his repo so if somebody is interested I can post new binaries for further testing.
For me it works quite well.



Yes if you can post new binaries i'll test them(especially the spi one w/ gfx)!
  Reply
#25
Also eager to test the SPI versions.
  Reply
#26
I removed previous versions. So this is the only one in this thread currently ---> SPI image

If you want to have uboot menu with kernels your extlinux.conf has to look like this template:

Code:
Timeout 50
DEFAULT Manjaro

MENU TITLE Pinebook Pro boot menu

LABEL Manjaro
KERNEL /Image1
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-linux1.img console=tty1 rootwait root=/dev/sda2 rootflags=noatime video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60

LABEL Arch
KERNEL /Image2
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-linux2.img console=tty1 rootwait root=/dev/sda3 rootflags=noatime video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60

It would be nice to know how did it go for you Smile


PLEASE DO NOT FLASH THIS IF YOU DON'T KNOW HOW TO RECOVER FROM BORKED SPI !!!
  Reply
#27
@as400, does that new SPI image have;

- Trouble with kernel 5.5 or later?
- Support booting eMMC & SD card?
- Support booting USB?

I really want alternate boot environments, and normally implement it with new Grub entries. This looks like it would be just the same, selectable kernel, InitRD and boot device.
--
Arwen Evenstar
Princess of Rivendale
  Reply
#28
(07-29-2020, 01:35 PM)as400 Wrote: I removed previous versions. So this is the only one in this thread currently ---> SPI image

If you want to have uboot menu with kernels your extlinux.conf has to look like this template:

Code:
Timeout 50
DEFAULT Manjaro

MENU TITLE Pinebook Pro boot menu

LABEL Manjaro
KERNEL /Image1
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-linux1.img console=tty1 rootwait root=/dev/sda2 rootflags=noatime video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60

LABEL Arch
KERNEL /Image2
FDT /dtbs/rockchip/rk3399-pinebook-pro.dtb
APPEND initrd=/initramfs-linux2.img console=tty1 rootwait root=/dev/sda3 rootflags=noatime video=eDP-1:1920x1080@60 video=HDMI-A-1:1920x1080@60

It would be nice to know how did it go for you Smile


PLEASE DO NOT FLASH THIS IF YOU DON'T KNOW HOW TO RECOVER FROM BORKED SPI !!!
Successfully flashed!!!

I have Manjaro xfce on NVME drive, i got a successfully boot every 5 attempt.

I will try tomorrow other stuff and log serial output!

Thanks a lot!

EDIT: i will edit extlinux.conf to test the kernel menu too!
  Reply
#29
@Arwen to answer your questions:

- Problems with 5.5 and later - very plausible.
- It has booting from everything possible - eMMC, SD, USB and NVME

Let's wait and see how it goes for others.

@samueldr has identified the problem with booting later kernels. You can find details here --> https://github.com/samueldr/wip-pinebook...-664046551

Strangely I have booting problems just occasionaly. And with this last update from Arnaud it happens very rarely.
  Reply
#30
(07-29-2020, 02:40 PM)as400 Wrote: @Arwen to answer your questions:

- Problems with 5.5 and later - very plausible.
- It has booting from everything possible - eMMC, SD, USB and NVME

Let's wait and see how it goes for others.

@samueldr has identified the problem with booting later kernels. You can find details here --> https://github.com/samueldr/wip-pinebook...-664046551

Strangely I have booting problems just occasionaly. And with this last update from Arnaud it happens very rarely.
I am also having problems booting Manjaro with 5.7 kernel.  (on my NVME) but never  a MRfixit image ( from sd )with an earlier kernel.  When I can't boot, the system starts booting but gets stuck in the same place as it did before the latest changes.  The screen get a weird multi-color pattern and then nothing.  The serial console will also hang at that point. 

The booting of different kernels on same device seems to be working fine (I faked it out by pointing to the same kernel with different menu names,  since I have only one on the device...)    I have noticed that when using CTRL-c to interrupt u-boot to boot from a different device,  there is no entry for the NVME  ,  so that if there is an SD card installed one will boot from that,  since it is specified before NVME in the u-boot code.boot order...
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinebook Pro for sale - ISO keyboard - UK only c6Q$! 0 115 02-21-2021, 09:19 AM
Last Post: c6Q$!
  Built-in Webcam Not Working fozzedout 36 10,736 02-01-2021, 08:59 AM
Last Post: lemaurien19
  Novice question: Pinebook Pro does boot (does it?) but black screen Gert V. 21 2,161 01-27-2021, 10:48 PM
Last Post: rimaille
  Sudden Pinebook Pro boot problems ndp 3 497 01-21-2021, 09:51 AM
Last Post: ndp
  How to determine which U-boot I am using edandjeanmcknight@gmail.com 0 211 01-15-2021, 08:25 AM
Last Post: edandjeanmcknight@gmail.com
  U-Boot with direct NVMe boot support for eMMC/SPI Flash pcm720 115 72,701 01-04-2021, 09:57 AM
Last Post: wdt
  Booting to sdcard stopped working after emmc flash techiedog 3 725 12-31-2020, 06:30 PM
Last Post: Anarethos
  No keyboard & trackpad leads to no display. RMA from the US. Free parts in Seattle BitterPine 4 1,178 12-30-2020, 06:14 AM
Last Post: BetteHoward
  Pinebook Pro refuses to boot from eMMC pivic 23 2,679 12-14-2020, 05:08 PM
Last Post: KC9UDX
  Keyboard settings not saved on reboot motezart 6 1,226 11-26-2020, 12:11 PM
Last Post: creaverse

Forum Jump:


Users browsing this thread: 1 Guest(s)