Flash dhivael's SPI uboot (risky)
#11
I reflashed SD card from the downloaded image, so it should be OK. I just followed this guide in first post, so wiped former SPI flash, reboot, connected PBP to PC and made all the commands and all of them finished OK.

I first see red dot, then green dot and blank screen with backlight.
  Reply
#12
Something is not right. But don't worry - if your pbp still shines with leds than it's alive Smile

Can you comfortably enter maskrom mode ? So you see your pbp on another computer as a usb device ?
  Reply
#13
I am not afraid, cause I already recovered my PBP from worse state Smile but I do not see PBP now in maskrom mode, I guess it is because its SPI flash is not empty. It is not a big deal, but I would really like to know what happened.

I am not sure which device is the first to boot and which is the second.
  Reply
#14
I have no idea what happened.
It might be a myriad of things. But try to recover by entering maskrom mode.
I suspect you didn't erase your flash completely.
One more question - did you disconnect all of the boot devices ?
  Reply
#15
I think its sd -> nvme -> usb -> emmc
  Reply
#16
I erased that flash using the command supplied in the first post. I had not connected any of boot devices except NVMe and eMMC in PBP. Should I disconnect them too?

I tried boot also from USB using SD to USB adapter, but the result was the same. Blank screen with backlight.
  Reply
#17
I'm having a hard time getting through actually flashing the SPI (see attached). I waited roughly 20 minutes for the process to complete, but nothing is happening. I've tried to redo the entire process a few times and am still getting the same result.

The logfile outputs:

Code:
15:01:23 Error: failed to stat config.ini, err=2

Any ideas?


Attached Files
.png   Screen Shot 2020-02-07 at 2.36.55 PM.png (Size: 104.58 KB / Downloads: 130)
  Reply
#18
(02-07-2020, 05:08 PM)pinebro Wrote: I'm having a hard time getting through actually flashing the SPI (see attached). I waited roughly 20 minutes for the process to complete, but nothing is happening. I've tried to redo the entire process a few times and am still getting the same result.

The logfile outputs:

Code:
15:01:23 Error: failed to stat config.ini, err=2

Any ideas?

Not sure. maybe you are missing a dependency?
here is a full like to the wiki: http://opensource.rock-chips.com/wiki_Rkdeveloptool

if you have some issue though, its probably best not to continue. its a pain to recover SPI and this project is in very early, minimally tested stages.
  Reply
#19
Thanks for the wiki link. Just tried from another computer and same issue. All dependencies are installed and up to date, but I'm going to take your advice and hold out for a while. For now, I'm still pretty happy just being able to have my home folder on nvme.
  Reply
#20
(02-07-2020, 04:23 PM)Wizzard Wrote: I erased that flash using the command supplied in the first post. I had not connected any of boot devices except NVMe and eMMC in PBP. Should I disconnect them too?

I tried boot also from USB using SD to USB adapter, but the result was the same. Blank screen with backlight.

As I said before - probably you have not erased the flash completely.

Try this:


Code:
fallocate -l 16M zerospi
dd if=/dev/zero of=zerospi bs=1M count=16


Then flash this file to SPI using rkdeveloptool:

Code:
rkdeveloptool db rk3399_loader_spinor_v1.15.114.bin
rkdeveloptool wl 0 zerospi
rkdeveloptool td
rkdeveloptool rd

That should definitely get rid of any leftovers in SPI. Then reboot pbp and write @dhivael  uboot again.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to rewrite uboot to emmc pineitup 5 1,305 12-27-2020, 10:35 AM
Last Post: nightranger73
  Extracting a copy of SPI NOR flash contents using micro SD card and u-boot hmuller 0 513 09-21-2020, 11:24 AM
Last Post: hmuller
  Program SPI NOR Flash on Pinebook Pro with u-boot on micro SD Card hmuller 0 665 09-21-2020, 10:02 AM
Last Post: hmuller
  In-Circuit Programming of SPI NOR Flash hmuller 13 5,884 09-13-2020, 01:20 PM
Last Post: hmuller
  Installing Ubuntu 20.04 (Focal) with BSP uBoot with deep sleep and sound Syonyk 43 14,517 07-28-2020, 03:18 PM
Last Post: SamWilts
  How to boot Manjaro from NVME with uboot on eMMC as400 47 15,917 06-07-2020, 02:37 AM
Last Post: as400
  (almost) upstream uboot/atf dhivael 27 9,280 02-08-2020, 10:18 PM
Last Post: Natrox
  Widevine-flash on Chromium-SD Card mamboman777 3 1,857 01-20-2020, 04:00 PM
Last Post: tophneal

Forum Jump:


Users browsing this thread: 1 Guest(s)