|
Build everything from scratch
Posted at 3/14/2018 22:13:10
View:13024
|
Replies:15
Print
Only Author
[Copy Link]
1#
Last edited by markwylde In 3/14/2018 22:15 Editor
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
Copy the code
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
Copy the code
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
Copy the code
STEP 4: Use flashtool to upload idbloader.img
- sudo rkflashtool w 0x40 2000 < idbloader.img
Copy the code
STEP 5: Use flashtool to upload uboot.img
- sudo rkflashtool w 0x4000 2000 < uboot.img
Copy the code
STEP 6: Use flashtool to upload trust.img
- sudo rkflashtool w 0x6000 2000 < trust.img
Copy the code
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
Copy the code
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
|
|