[split] U-Boot with NVMe support, keyboard & display working
#11
Thank you for what ? I haven't done anything.

To clarify things - kernel lockups happen only on boot from time to time. Afterwards you're booted, machine runs ok.
  Reply
#12
For the people interested.
Here are the sources :

https://github.com/samueldr/wip-pinebook-pro/

https://github.com/pcm720/u-boot-build-scripts
  Reply
#13

.zip   as400 boot logs.zip (Size: 4.41 KB / Downloads: 103) Re testing:
@as400 ,  I am booting to where I get output on the PBP screen post u-boot,  occasionally.  U-boot output seems to work fine,  and I can use, e.g.  the return key, to interrupt it on the PBP,  but with the menu-version, ctrl-c is not bringing up the menu on the pbp.  It does however bring up the menu on my picocom serial session.  

  I always do get the green light that indicates manjaro is booting,  but often see no output either on the pbp or the serial console.  Often I'll see either nothing or a multicolored "plaid" flash pattern on the entire screen ...   

I'm only testing booting the nvme from spiflash,  since  that's the only device I have in the pbp right now--I never use the emmc  and use the SD card only to test various builds.  

I attached serial logs  (with my comments interspersed) for several tries.

I reinstalled the pcm720   version of spiflash for now,  since that boots for me with no problems.  Once again,  this is on a Manjaro system with 5.7 kernel using  unstable
  Reply
#14
Thanks for testing.
How much success rate did you have booting ?
  Reply
#15
(07-16-2020, 11:29 PM)as400 Wrote: Thanks for testing.
How much success rate did you have booting ?

Probababy got to usable condition once every 3 or 4 tries.    I believe it is actually booting but is then hanging  or it is hanging late in the boot process.   I think the serial logs will show you.   It will end up with the green light on, no display or ability to receive input, no further activity on serial console.  To restart it I will have to force it off (i.e. hold power button for several seconds).   I never see a kernel panic or anything like that.   

I will try to compare in more depth the serial logs with the logs from the pcm720  build to see if I see anything obvious.
  Reply
#16
@as400 I noticed that two days ago additional doc was posted here: https://github.com/samueldr/wip-pinebook...830e725b4b, in which he states in the issues section that kernels above 5.5 are not booting, and mentions a couple of other issues (problematic input, possible interference between screen and serial output)
  Reply
#17
Hello,

I have probably bricked my Pinebook pro.
I flashed the SPI device.
Without the desired result; booting from the builtin M.2 drive
When I put it on I only see the red power LED flash for half a second and then nothing.
The system-board is consuming power because its getting warm.
After a long pres of 15 seconds the board is off again; the board is getting cooler again.
I tried to clear the SPI chip with rkdeveloptool
But I get an error:
./rkdeveloptool db rk3399_loader_spinor_v1.15.114.bin  >>
The device does not support this operation!

Is there someone who knows how to repair this?

Freerk Jongsma
  Reply
#18
(07-16-2020, 05:36 PM)belfastraven Wrote: Re testing:
@as400 ,  I am booting to where I get output on the PBP screen post u-boot,  occasionally.  U-boot output seems to work fine,  and I can use, e.g.  the return key, to interrupt it on the PBP,  but with the menu-version, ctrl-c is not bringing up the menu on the pbp.  It does however bring up the menu on my picocom serial session.  

  I always do get the green light that indicates manjaro is booting,  but often see no output either on the pbp or the serial console.  Often I'll see either nothing or a multicolored "plaid" flash pattern on the entire screen ...   

I'm only testing booting the nvme from spiflash,  since  that's the only device I have in the pbp right now--I never use the emmc  and use the SD card only to test various builds.  

I attached serial logs  (with my comments interspersed) for several tries.

I reinstalled the pcm720   version of spiflash for now,  since that boots for me with no problems.  Once again,  this is on a Manjaro system with 5.7 kernel using  unstable

(07-18-2020, 07:32 AM)freerk Wrote: Hello,

I have probably bricked my Pinebook pro.
I flashed the SPI device.
Without the desired result; booting from the builtin M.2 drive
When I put it on I only see the red power LED flash for half a second and then nothing.
The system-board is consuming power because its getting warm.
After a long pres of 15 seconds the board is off again; the board is getting cooler again.
I tried to clear the SPI chip with rkdeveloptool
But I get an error:
./rkdeveloptool db rk3399_loader_spinor_v1.15.114.bin  >>
The device does not support this operation!

Is there someone who knows how to repair this?

Freerk Jongsma
I do not know about the red flashing light, but I have recovered from a borked spiflash several times.  Note: I had to short the spi as my reset button stopped working.  Can you verify that the Pinebook Pro is in maskrom mode?  Instructions are here:  https://wiki.pine64.org/index.php/Pinebook_Pro_SPI
  Reply
#19
@freerk I'll preface that I have not done any testing that includes any patches or build systems outside of my Nix derivations in the repository. I do not have the hardware to setup NVMe drives, thus I can't test, thus I don't provide such builds.

Now, from the linked repository, in the FAQ:

Quote:My machine does not boot after installing to SPI and is not in maskrom mode

Oof, first of all, sorry. In testing I have never had a flashing render my device unbootable.

Rescuing your device is not specific to this project. You can follow the instructions from the Pine64 forums to recover from a broken SPI flash.

Your machine is unlikely to be fully bricked, but might require some love and care to bypass the SPI boot. Follow the link. I haven't personally had to use this method, but it is rooted in well-known knowledge about the RK3399 boot flow, so it looks totally sane.

You can use the firmware installer image, if you have used that to install, to zero out the SPI. Alternatively you can fish out the proper sf command to do the equivalent.

Any builds other than those produced by my unmodified Nix derivation stand squarely in YMMV territory as far as I'm personally concerned.

(07-17-2020, 06:21 PM)belfastraven Wrote: @as400  I noticed that two days ago additional doc was posted here:  https://github.com/samueldr/wip-pinebook...830e725b4b,  in which he states  in the issues section that kernels above 5.5 are not booting, and mentions a couple of other issues (problematic input, possible interference between screen and serial output)

This particular document was present in the PR from day one. I also made sure to say (on IRC) that there was some caveats and to fully read the added docs to understand possible issues.

Though, some community members (@as400) have had better success with booting a 5.5+ kernel with that U-Boot, while I haven't been able to reproduce consistent or even 75%-successful boot rates.

Now, those caveats are a good chunk of the reason this wasn't simply made the new gold standard Smile. Hopefully soon we'll have had people that deeply know more about the subjects look into the issues and figure out what is actually happening.
  Reply
#20
(07-18-2020, 01:15 PM)samueldr Wrote: @freerk I'll preface that I have not done any testing that includes any patches or build systems outside of my Nix derivations in the repository. I do not have the hardware to setup NVMe drives, thus I can't test, thus I don't provide such builds.

Now, from the linked repository, in the FAQ:

Quote:My machine does not boot after installing to SPI and is not in maskrom mode

Oof, first of all, sorry. In testing I have never had a flashing render my device unbootable.

Rescuing your device is not specific to this project. You can follow the instructions from the Pine64 forums to recover from a broken SPI flash.

Your machine is unlikely to be fully bricked, but might require some love and care to bypass the SPI boot. Follow the link. I haven't personally had to use this method, but it is rooted in well-known knowledge about the RK3399 boot flow, so it looks totally sane.

You can use the firmware installer image, if you have used that to install, to zero out the SPI. Alternatively you can fish out the proper sf command to do the equivalent.

Any builds other than those produced by my unmodified Nix derivation stand squarely in YMMV territory as far as I'm personally concerned.

(07-17-2020, 06:21 PM)belfastraven Wrote: @as400  I noticed that two days ago additional doc was posted here:  https://github.com/samueldr/wip-pinebook...830e725b4b,  in which he states  in the issues section that kernels above 5.5 are not booting, and mentions a couple of other issues (problematic input, possible interference between screen and serial output)

This particular document was present in the PR from day one. I also made sure to say (on IRC) that there was some caveats and to fully read the added docs to understand possible issues.

Though, some community members (@as400) have had better success with booting a 5.5+ kernel with that U-Boot, while I haven't been able to reproduce consistent or even 75%-successful boot rates.

Now, those caveats are a good chunk of the reason this wasn't simply made the new gold standard Smile. Hopefully soon we'll have had people that deeply know more about the subjects look into the issues and figure out what is actually happening.
@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.
  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)