01-27-2020, 07:28 PM
Eureka! I've found it!
I have successfully flashed an image to my SPI device. I was not able to do this from within Linux.
Here are the steps required to flash an image to the SPI Flash on the PBP. You will need a USB C to A cable and second PC to do this. This is the same cable that many newer phones use to recharge. If you need to open the device, please follow the proper disassembly instructions on the wiki.
1) On your other Computer install the "rkdeveloptool" Click here for institutions on how to do this.
2) With the PBP powered off, remove all bootable media from the device. This includes all SD cards as well as the eMMC. If you have an eMMC installed you will need to open the case and flip the eMMC switch down towards the trackpad. With nothing to boot from, the SoC will default to Maskrom mode.
3) Connect your other Computer to the PBP with the USB cable, attaching the USB C connector to the PBP. Then press and hold the power key for 10 seconds.
4) Run the following comand on your PC - "rkdeveloptool ld". Your PBP should now show up, if it does not, verify the last few steps. ld means "list device"
5) In order to flash, "rkdeveloptool" needs a db file for the product you want to work with. For the PBP this file worked well for me. Download the DB and run this command:
6) With all that out of the way, we can finally flash our image of choice to the SPI Flash chip. "wl" means wright to, the 0 tells it to start at the beginning of the memory.
7) With that done, we can now test the device.
8) If the last step was successful, you may now reboot, and test your new bootloader.
This is the only reliable way that I know of to access maskrom. If anyone was able to do this from a booted OS, I would love to know how you did it.
Have fun!
I have successfully flashed an image to my SPI device. I was not able to do this from within Linux.
Here are the steps required to flash an image to the SPI Flash on the PBP. You will need a USB C to A cable and second PC to do this. This is the same cable that many newer phones use to recharge. If you need to open the device, please follow the proper disassembly instructions on the wiki.
1) On your other Computer install the "rkdeveloptool" Click here for institutions on how to do this.
2) With the PBP powered off, remove all bootable media from the device. This includes all SD cards as well as the eMMC. If you have an eMMC installed you will need to open the case and flip the eMMC switch down towards the trackpad. With nothing to boot from, the SoC will default to Maskrom mode.
3) Connect your other Computer to the PBP with the USB cable, attaching the USB C connector to the PBP. Then press and hold the power key for 10 seconds.
4) Run the following comand on your PC - "rkdeveloptool ld". Your PBP should now show up, if it does not, verify the last few steps. ld means "list device"
5) In order to flash, "rkdeveloptool" needs a db file for the product you want to work with. For the PBP this file worked well for me. Download the DB and run this command:
Code:
# rkdeveloptool db /path/to/rk3399_*.bin
6) With all that out of the way, we can finally flash our image of choice to the SPI Flash chip. "wl" means wright to, the 0 tells it to start at the beginning of the memory.
Code:
# rkdeveloptool wl 0 /path/to/spi*.img
7) With that done, we can now test the device.
Code:
# rkdeveloptool td
8) If the last step was successful, you may now reboot, and test your new bootloader.
Code:
# rkdeveloptool rd
This is the only reliable way that I know of to access maskrom. If anyone was able to do this from a booted OS, I would love to know how you did it.
Have fun!