cubieboard7.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. .. Copyright (C) 2020 Amit Singh Tomar <amittomer25@gmail.com>
  3. CUBIEBOARD7
  4. ===========
  5. About this
  6. ----------
  7. This document describes build and flash steps for Actions S700 SoC based Cubieboard7
  8. board.
  9. Cubieboard7 initial configuration
  10. ---------------------------------
  11. Default Cubieboard7 comes with pre-installed Android where U-Boot is configured with
  12. a bootdelay of 0, entering a prompt by pressing keys does not seem to work.
  13. Though, one can enter ADFU mode and flash debian image(from host machine) where
  14. getting into u-boot prompt is easy.
  15. Enter ADFU Mode
  16. ----------------
  17. Before write the firmware, let the development board entering the ADFU mode: insert
  18. one end of the USB cable to the PC, press and hold the ADFU button, and then connect
  19. the other end of the USB cable to the Mini USB port of the development board, release
  20. the ADFU button, after connecting it will enter the ADFU mode.
  21. Check whether entered ADFU Mode
  22. --------------------------------
  23. The user needs to run the following command on the PC side to check if the ADFU
  24. device is detected. ID realted to "Actions Semiconductor Co., Ltd" means that
  25. the PC side has been correctly detected ADFU device, the development board
  26. also enter into the ADFU mode.
  27. .. code-block:: none
  28. $ lsusb
  29. Bus 001 Device 005: ID 04f2:b2eb Chicony Electronics Co., Ltd
  30. Bus 001 Device 004: ID 0a5c:21e6 Broadcom Corp. BCM20702 Bluetooth 4.0 [ThinkPad]
  31. Bus 001 Device 003: ID 046d:c534 Logitech, Inc. Unifying Receiver
  32. Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
  33. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  34. Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
  35. Bus 003 Device 013: ID 10d6:10d6 Actions Semiconductor Co., Ltd
  36. Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  37. Flashing debian image
  38. ---------------------
  39. .. code-block:: none
  40. $ sudo ./ActionsFWU.py --fw=debian-stretch-desktop-cb7-emmc-v2.0.fw
  41. ActionsFWU.py : 1.0.150828.0830
  42. libScript.so : 2.3.150825.0951
  43. libFileSystem.so: 2.3.150825.0952
  44. libProduction.so: 2.3.150915.1527
  45. =====burn all partition====
  46. FW_VER: 3.10.37.180608
  47. 3% DOWNLOAD ADFUDEC ...
  48. 5% DOWNLOAD BOOT PARA ...
  49. 7% SWITCH ADFUDEC ...
  50. 12% DOWNLOAD BL31 ...
  51. 13% DOWNLOAD BL32 ...
  52. 15% DOWNLOAD VMLINUX ...
  53. 20% DOWNLOAD INITRD ...
  54. 24% DOWNLOAD FDT ...
  55. 27% DOWNLOAD ADFUS ...
  56. 30% SWITCH ADFUS ...
  57. 32% DOWNLOAD MBR ...
  58. 35% DOWNLOAD PARTITIONS ...
  59. WRITE_MBRC_PARTITION
  60. 35% write p0 size = 2048 : ok
  61. WRITE_BOOT_PARTITION
  62. 35% write p1 size = 2048 : ok
  63. WRITE_MISC_PARTITION
  64. 36% write p2 size = 98304 : ok
  65. WRITE_SYSTEM_PARTITION
  66. 94% write p3 size = 4608000 : ok
  67. FORMAT_SWAP_PARTITION
  68. 94% write p4 size = 20480 : ok
  69. 95% TRANSFER OVER ...
  70. Firmware upgrade successfully!
  71. Debian image can be downloaded from here[1].
  72. Once debian image is flashed, one can get into u-boot prompt by pressing any key and from
  73. there run ums command(make sure, usb cable is connected between host and target):
  74. .. code-block:: none
  75. owl> ums 0 mmc 1
  76. Above command would mount debian image partition on host machine.
  77. Building U-BOOT proper image
  78. ----------------------------
  79. .. code-block:: none
  80. $ make clean
  81. $ export CROSS_COMPILE=aarch64-linux-gnu-
  82. $ make cubieboard7_defconfig
  83. $ make u-boot-dtb.img -j16
  84. u-boot-dtb.img can now be flashed to debian image partition mounted on host machine.
  85. .. code-block:: none
  86. $ sudo dd if=u-boot-dtb.img of=/dev/sdb bs=1024 seek=3072
  87. [1]: https://pan.baidu.com/s/1uawPr0Jao2HgWFLZCLzHAg#list/path=%2FCubieBoard_Download%2FBoard%2FCubieBoard7%2F%E6%96%B9%E7%B3%96%E6%96%B9%E6%A1%88%E5%BC%80%E5%8F%91%E8%B5%84%E6%96%99%2FImage%2FDebian%2FV2.1-test&parentPath=%2F