Hello
I have a RK3399 Firefly and have wiped the eMMC (from offset 0 to the end) using the rkflashtool. Therefore I believe the eMMC is completly empty.
My end goal is to build everything from source, but until then I’m simply trying to get the RK3399 binaries to work.
STEP 1: Wipe everything on the eMMC
sudo rkflashtool e 0 1000000
STEP 2: Download the following files:
wget https://rawgit.com/rockchip-linux/rkbin/master/rk33/rk3399_ddr_666MHz_v1.08.bin
wget https://rawgit.com/rockchip-linux/rkbin/master/rk33/rk3399_miniloader_v1.06.bin
wget https://rawgit.com/rockchip-linux/rkbin/blob/master/img/rk3399/uboot.img
wget https://rawgit.com/rockchip-linux/rkbin/blob/master/img/rk3399/trust.img
STEP 3: Use mkimage tool and merge miniloader to generate idbloader.img
tools/mkimage -n rk3399 -T rksd -d rk3399_ddr_666MHz_v1.08.bin idbloader.img
cat rk3399_miniloader_v1.06.bin >> idbloader.img
STEP 4: Use flashtool to upload idbloader.img
sudo rkflashtool w 0x40 2000 < idbloader.img
STEP 5: Use flashtool to upload uboot.img
sudo rkflashtool w 0x4000 2000 < uboot.img
STEP 6: Use flashtool to upload trust.img
sudo rkflashtool w 0x6000 2000 < trust.img
Unfortunatly when I start restart the board my serial outputs:
DDR Version 1.07 20161103
In
Channel 0: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
Channel 1: DDR3, 666MHz
Bus Width=32 Col=10 Bank=8 Row=15/15 CS=2 Die Bus-Width=16 Size=2048MB
256B stride
ch 0 ddrconfig = 0x101, ddrsize = 0x2020
ch 1 ddrconfig = 0x101, ddrsize = 0x2020
pmugrf_os_reg[2] = 0x3AA17AA1, stride = 0xD
OUT
Boot1: 2016-07-29, version: 1.05
CPUId = 0x0
ChipType = 10 1836
SdmmcInit=2 0
BootCapSize=100000
UserCapSize=119276MB
FwPartOffset=2000 , 100000
SdmmcInit=0 20
StorageInit ok = 63256
LoadTrustBL
LoadTrustBL error:-1
powerOn 476773
I don’t understand what the LoadTrustBL error means. Could it not find the trust img or was it corrupt?
Thanks for any help you can provide.
Mark Wylde