README 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. Here is the step-by-step to boot to U-Boot on RK3368-uQ7
  2. Get the Source and build ATF
  3. ============================
  4. > git clone git://git.theobroma-systems.com/arm-trusted-firmware.git
  5. > cd arm-trusted-firmware
  6. > make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3368 bl31
  7. > cp build/rk3368/release/bl31.bin ../u-boot/bl31-rk3368.bin
  8. Configure U-Boot
  9. ================
  10. > cd ../u-boot
  11. > make lion-rk3368_defconfig
  12. Build the TPL/SPL stage
  13. =======================
  14. > make CROSS_COMPILE=aarch64-unknown-elf-
  15. Build the full U-Boot and a FIT image including the ATF
  16. =======================================================
  17. > make CROSS_COMPILE=aarch64-unknown-elf- u-boot.itb
  18. Flash the image
  19. ===============
  20. Copy the SPL to offset 32k and the FIT image containing the payloads
  21. (U-Boot proper, ATF, devicetree) to offset 256k card.
  22. SD-Card
  23. -------
  24. > dd if=idbloader.img of=/dev/sdb seek=64
  25. > dd if=u-boot.itb of=/dev/sdb seek=512
  26. eMMC
  27. ----
  28. rkdeveloptool allows to flash the on-board eMMC via the USB OTG interface with
  29. help of the Rockchip loader binary.
  30. > git clone https://github.com/rockchip-linux/rkdeveloptool
  31. > cd rkdeveloptool
  32. > autoreconf -i && && ./configure && make
  33. > git clone https://github.com/rockchip-linux/rkbin.git
  34. > ./rkdeveloptool db rkbin/rk33/rk3368_loader_v2.00.256.bin
  35. > ./rkdeveloptool wl 64 ../spl.img
  36. > ./rkdeveloptool wl 512 ../u-boot.itb
  37. If everything went according to plan, you should see the following
  38. output on UART0:
  39. <debug_uart> U-Boot TPL board init
  40. Trying to boot from BOOTROM
  41. Returning to boot ROM...
  42. Trying to boot from MMC1
  43. NOTICE: BL31: v1.3(release):v1.2-1320-gbf43a443
  44. NOTICE: BL31: Built : 18:04:47, Jul 5 2017
  45. U-Boot 2017.07-00158-g2395e99858 (Jul 18 2017 - 21:03:31 +0200)
  46. Model: Theobroma Systems RK3368-uQ7 SoM
  47. DRAM: 2 GiB
  48. MMC: dwmmc@ff0c0000: 1, dwmmc@ff0f0000: 0
  49. Using default environment
  50. In: serial@ff180000
  51. Out: serial@ff180000
  52. Err: serial@ff180000
  53. Net:
  54. Warning: ethernet@ff290000 (eth0) using random MAC address - d2:69:35:7e:d0:1e
  55. eth0: ethernet@ff290000
  56. Hit any key to stop autoboot: 2