PINE64
[split] U-Boot with NVMe support, keyboard & display working - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: General Discussion on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=112)
+--- Thread: [split] U-Boot with NVMe support, keyboard & display working (/showthread.php?tid=10694)

Pages: 1 2 3 4 5 6 7 8 9


RE: [split] U-Boot with NVMe support, keyboard & display working - samueldr - 07-18-2020

(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.


RE: U-Boot with direct NVMe boot support for eMMC/SPI Flash - talltxn88030 - 07-20-2020

(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


RE: [split] U-Boot with NVMe support, keyboard & display working - as400 - 07-29-2020

[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.


RE: [split] U-Boot with NVMe support, keyboard & display working - giamma1295 - 07-29-2020

(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)!


RE: [split] U-Boot with NVMe support, keyboard & display working - belfastraven - 07-29-2020

Also eager to test the SPI versions.


RE: [split] U-Boot with NVMe support, keyboard & display working - as400 - 07-29-2020

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 !!!


RE: [split] U-Boot with NVMe support, keyboard & display working - Arwen - 07-29-2020

@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.


RE: [split] U-Boot with NVMe support, keyboard & display working - giamma1295 - 07-29-2020

(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!


RE: [split] U-Boot with NVMe support, keyboard & display working - as400 - 07-29-2020

@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-pro/pull/13#issuecomment-664046551

Strangely I have booting problems just occasionaly. And with this last update from Arnaud it happens very rarely.


RE: [split] U-Boot with NVMe support, keyboard & display working - belfastraven - 07-29-2020

(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-pro/pull/13#issuecomment-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...