rockchip.rst 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. .. Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
  3. ROCKCHIP
  4. ========
  5. About this
  6. ----------
  7. This document describes the information about Rockchip supported boards
  8. and it's usage steps.
  9. Rockchip boards
  10. ---------------
  11. Rockchip is SoC solutions provider for tablets & PCs, streaming media
  12. TV boxes, AI audio & vision, IoT hardware.
  13. A wide range of Rockchip SoCs with associated boardsare supported in
  14. mainline U-Boot.
  15. List of mainline supported rockchip boards:
  16. * rk3036
  17. - Rockchip Evb-RK3036 (evb-rk3036)
  18. - Kylin (kylin_rk3036)
  19. * rk3128
  20. - Rockchip Evb-RK3128 (evb-rk3128)
  21. * rk3229
  22. - Rockchip Evb-RK3229 (evb-rk3229)
  23. * rk3288
  24. - Rockchip Evb-RK3288 (evb-rk3288)
  25. - Firefly-RK3288 (firefly-rk3288)
  26. - MQmaker MiQi (miqi-rk3288)
  27. - Phytec RK3288 PCM-947 (phycore-rk3288)
  28. - PopMetal-RK3288 (popmetal-rk3288)
  29. - Radxa Rock 2 Square (rock2)
  30. - Tinker-RK3288 (tinker-rk3288)
  31. - Google Jerry (chromebook_jerry)
  32. - Google Mickey (chromebook_mickey)
  33. - Google Minnie (chromebook_minnie)
  34. - Google Speedy (chromebook_speedy)
  35. - Amarula Vyasa-RK3288 (vyasa-rk3288)
  36. * rk3308
  37. - Rockchip Evb-RK3308 (evb-rk3308)
  38. - Roc-cc-RK3308 (roc-cc-rk3308)
  39. * rk3328
  40. - Rockchip Evb-RK3328 (evb-rk3328)
  41. - Pine64 Rock64 (rock64-rk3328)
  42. - Firefly-RK3328 (roc-cc-rk3328)
  43. * rk3368
  44. - GeekBox (geekbox)
  45. - PX5 EVB (evb-px5)
  46. - Rockchip Sheep (sheep-rk3368)
  47. - Theobroma Systems RK3368-uQ7 SoM - Lion (lion-rk3368)
  48. * rk3399
  49. - 96boards RK3399 Ficus (ficus-rk3399)
  50. - 96boards Rock960 (rock960-rk3399)
  51. - Firefly-RK3399 (firefly_rk3399)
  52. - Firefly ROC-RK3399-PC
  53. - FriendlyElec NanoPC-T4 (nanopc-t4-rk3399)
  54. - FriendlyElec NanoPi M4 (nanopi-m4-rk3399)
  55. - FriendlyARM NanoPi NEO4 (nanopi-neo4-rk3399)
  56. - Google Bob (chromebook_bob)
  57. - Khadas Edge (khadas-edge-rk3399)
  58. - Khadas Edge-Captain (khadas-edge-captain-rk3399)
  59. - Khadas Edge-V (hadas-edge-v-rk3399)
  60. - Orange Pi RK3399 (orangepi-rk3399)
  61. - Pine64 RockPro64 (rockpro64-rk3399)
  62. - Radxa ROCK Pi 4 (rock-pi-4-rk3399)
  63. - Rockchip Evb-RK3399 (evb_rk3399)
  64. - Theobroma Systems RK3399-Q7 SoM - Puma (puma_rk3399)
  65. * rv1108
  66. - Rockchip Evb-rv1108 (evb-rv1108)
  67. - Elgin-R1 (elgin-rv1108)
  68. * rv3188
  69. - Radxa Rock (rock)
  70. Building
  71. --------
  72. TF-A
  73. ^^^^
  74. TF-A would require to build for ARM64 Rockchip SoCs platforms.
  75. To build TF-A::
  76. git clone https://github.com/ARM-software/arm-trusted-firmware.git
  77. cd arm-trusted-firmware
  78. make realclean
  79. make CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399
  80. Specify the PLAT= with desired rockchip platform to build TF-A for.
  81. U-Boot
  82. ^^^^^^
  83. To build rk3328 boards::
  84. export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
  85. make evb-rk3328_defconfig
  86. make
  87. To build rk3288 boards::
  88. make evb-rk3288_defconfig
  89. make
  90. To build rk3368 boards::
  91. export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
  92. make evb-px5_defconfig
  93. make
  94. To build rk3399 boards::
  95. export BL31=/path/to/arm-trusted-firmware/to/bl31.elf
  96. make evb-rk3399_defconfig
  97. make
  98. Flashing
  99. --------
  100. SD Card
  101. ^^^^^^^
  102. All rockchip platforms, except rk3128 (which doesn't use SPL) are now
  103. supporting single boot image using binman and pad_cat.
  104. To write an image that boots from an SD card (assumed to be /dev/sda)::
  105. sudo dd if=u-boot-rockchip.bin of=/dev/sda seek=64
  106. sync
  107. eMMC
  108. ^^^^
  109. eMMC flash would probe on mmc0 in most of the rockchip platforms.
  110. Create GPT partition layout as defined in configurations::
  111. mmc dev 0
  112. gpt write mmc 0 $partitions
  113. Connect the USB-OTG cable between host and target device.
  114. Launch fastboot at target::
  115. fastboot 0
  116. Upon successful gadget connection,host show the USB device like::
  117. lsusb
  118. Bus 001 Device 020: ID 2207:330c Fuzhou Rockchip Electronics Company RK3399 in Mask ROM mode
  119. Program the flash::
  120. sudo fastboot -i 0x2207 flash loader1 idbloader.img
  121. sudo fastboot -i 0x2207 flash loader2 u-boot.itb
  122. Note: for rockchip 32-bit platforms the U-Boot proper image
  123. is u-boot-dtb.img
  124. TODO
  125. ----
  126. - Add rockchip idbloader image building
  127. - Add rockchip TPL image building
  128. - Document SPI flash boot
  129. - Add missing SoC's with it boards list
  130. .. Jagan Teki <jagan@amarulasolutions.com>
  131. .. Sunday 24 May 2020 10:08:41 PM IST