[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: 327) 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
  uboot wont boot to SD card after upgrade jbradley419 7 611 01-19-2024, 02:29 PM
Last Post: wdt
  Video Flashing/adjusting on boot and reboot jbradley419 0 231 01-16-2024, 09:17 AM
Last Post: jbradley419
  Brand new Pinebook Pro doesn't boot after Manjaro update johnboiles 8 1,998 12-15-2023, 02:11 PM
Last Post: wdt
  PBP won't boot after trying to reinstall Manjaro ARM soupgirl 3 560 12-13-2023, 08:17 PM
Last Post: trillobite
  Various freezes during boot & while running several Linux distros - hardware error? donuts 1 510 11-22-2023, 11:47 AM
Last Post: fxc
  Selling my Pinebook Pro with a bootable NVMe WD SSD drive pinemouth 0 705 09-27-2023, 08:53 PM
Last Post: pinemouth
  Cannot boot to Kali SD card after uboot upgrade jbradley419 4 1,055 09-19-2023, 08:48 AM
Last Post: dachalife
  Dead Pinebook Pro Keyboard Keys calinb 2 974 09-02-2023, 12:31 PM
Last Post: calinb
  Does latest Tow-Boot install/work correctly for everyone? tophneal 4 1,658 08-03-2023, 03:30 PM
Last Post: tophneal
  power on Pinebook Pro mainboard without keyboard? papable 0 786 07-20-2023, 11:06 PM
Last Post: papable

Forum Jump:


Users browsing this thread: 1 Guest(s)