README 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. Here is the step-by-step to boot to U-Boot on rk3368.
  2. Get miniloader and trust.img form rockchip vendor u-boot source code
  3. ==============================================================================
  4. > git clone https://github.com/rockchip-linux/u-boot.git rockchip-uboot
  5. > cd rockchip-uboot
  6. > make rk3368_defconfig /*chose px5_defconfig if you run a px5 platform here*/
  7. > ./mkv8.sh
  8. Compile the upstream U-Boot
  9. ===========================
  10. > cd u-boot
  11. > make CROSS_COMPILE=aarch64-linux-gnu- sheep-rk3368_defconfig all
  12. Package u-boot for miniloader
  13. ================================
  14. > ../rockchip-uboot/tools/loaderimage --pack --uboot u-boot.bin u-boot.img
  15. Flash the image by rkdeveloptool
  16. ================================
  17. rkdeveloptool can get from https://github.com/rockchip-linux/rkdeveloptool.git
  18. Power on(or reset with RESET KEY) with MASKROM KEY preesed, and then:
  19. > rkdeveloptool db ./rockchip-uboot/rk3368_loader_v2.00.256.bin
  20. > rkdeveloptool wl 0x6000 ./rockchip-uboot/trust.img
  21. > rkdeveloptool wl 0x4000 ./u-boot/u-boot.img
  22. > rkdeveloptool RD
  23. You should be able to get U-Boot log message from boot console:
  24. U-Boot 2017.05-rc3-01094-g9ddd1e8-dirty (May 15 2017 - 15:57:23 +0800)
  25. Model: Rockchip sheep board
  26. DRAM: 2 GiB
  27. MMC: dwmmc@ff0f0000: 0
  28. Using default environment
  29. In: serial@ff690000
  30. Out: serial@ff690000
  31. Err: serial@ff690000
  32. Net: Net Initialization Skipped
  33. No ethernet found.
  34. Hit any key to stop autoboot: 0
  35. =>