12-03-2019, 03:08 PM
FWIW
http://opensource.rock-chips.com/wiki_Rockusb
Maskrom mode
If there is no bootable firmware found on board, the SoC will run Rockusb driver automatically, we call it Bootrom mode or Maskrom mode.
If firmware is at somewhere of the board, in order to get into this mode, we can do something to prevent cpu read the firmware successful:
for SD-card, unplug the SD-card;
for eMMC, short the eMMC clock to GND;
for NAND, short the data line or clock line;
for SPI, short the spi signal to GND;
By "reboot bootrom" command in U-Boot and Kernel, WIP.
erase bootable region with non-bootable data in eMMC or other media devices
ayufan has some descrition for rock64
https://github.com/ayufan-rock64/linux-b...ash-spi.md
should be (almost ?) same with pinebookpro not tested and not wrapped my mind around this
currently reading/following/whatever the whole thread
anyway of this
u-boot supports boot script, so it's possible to check for a bootable device/partition/network
I don't know if u-boot can use/supports a watchdog as barebox does
It's a nice feature
You should check the partition size first
http://opensource.rock-chips.com/wiki_Rockusb
Maskrom mode
If there is no bootable firmware found on board, the SoC will run Rockusb driver automatically, we call it Bootrom mode or Maskrom mode.
If firmware is at somewhere of the board, in order to get into this mode, we can do something to prevent cpu read the firmware successful:
for SD-card, unplug the SD-card;
for eMMC, short the eMMC clock to GND;
for NAND, short the data line or clock line;
for SPI, short the spi signal to GND;
By "reboot bootrom" command in U-Boot and Kernel, WIP.
erase bootable region with non-bootable data in eMMC or other media devices
ayufan has some descrition for rock64
https://github.com/ayufan-rock64/linux-b...ash-spi.md
should be (almost ?) same with pinebookpro not tested and not wrapped my mind around this
currently reading/following/whatever the whole thread
anyway of this
u-boot supports boot script, so it's possible to check for a bootable device/partition/network
I don't know if u-boot can use/supports a watchdog as barebox does
It's a nice feature
You should check the partition size first