odroid-c2.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .. SPDX-License-Identifier: GPL-2.0+
  2. U-Boot for ODROID-C2 (S905)
  3. ===========================
  4. ODROID-C2 is a single board computer manufactured by Hardkernel with the following
  5. specifications:
  6. - Amlogic S905 ARM Cortex-A53 quad-core SoC @ 1.5GHz
  7. - ARM Mali 450 GPU
  8. - 2GB DDR3 SDRAM
  9. - Gigabit Ethernet
  10. - HDMI 2.0 4K/60Hz display
  11. - 40-pin GPIO header
  12. - 4 x USB 2.0 Host, 1 x USB OTG
  13. - eMMC, microSD
  14. - Infrared receiver
  15. Schematics are available on the manufacturer website: https://wiki.odroid.com
  16. U-Boot Compilation
  17. ------------------
  18. .. code-block:: bash
  19. $ export CROSS_COMPILE=aarch64-none-elf-
  20. $ make odroid-c2_defconfig
  21. $ make
  22. U-Boot Signing with Pre-Built FIP repo
  23. --------------------------------------
  24. .. code-block:: bash
  25. $ git clone https://github.com/LibreELEC/amlogic-boot-fip --depth=1
  26. $ cd amlogic-boot-fip
  27. $ mkdir my-output-dir
  28. $ ./build-fip.sh odroid-c2 /path/to/u-boot/u-boot.bin my-output-dir
  29. U-Boot Manual Signing
  30. ---------------------
  31. Amlogic does not provide sources for the firmware and tools needed to create a bootloader
  32. image so it is necessary to obtain binaries from sources published by the board vendor:
  33. .. code-block:: bash
  34. $ DIR=odroid-c2
  35. $ git clone --depth 1 https://github.com/hardkernel/u-boot.git -b odroidc2-v2015.01 $DIR
  36. $ $DIR/fip/fip_create --bl30 $DIR/fip/gxb/bl30.bin \
  37. --bl301 $DIR/fip/gxb/bl301.bin \
  38. --bl31 $DIR/fip/gxb/bl31.bin \
  39. --bl33 u-boot.bin \
  40. $DIR/fip.bin
  41. $ $DIR/fip/fip_create --dump $DIR/fip.bin
  42. $ cat $DIR/fip/gxb/bl2.package $DIR/fip.bin > $DIR/boot_new.bin
  43. $ $DIR/fip/gxb/aml_encrypt_gxb --bootsig \
  44. --input $DIR/boot_new.bin \
  45. --output $DIR/u-boot.img
  46. $ dd if=$DIR/u-boot.img of=$DIR/u-boot.gxbb bs=512 skip=96
  47. Then write U-Boot to SD or eMMC with:
  48. .. code-block:: bash
  49. $ DEV=/dev/your_boot_device
  50. $ BL1=$DIR/sd_fuse/bl1.bin.hardkernel
  51. $ dd if=$BL1 of=$DEV conv=fsync bs=1 count=442
  52. $ dd if=$BL1 of=$DEV conv=fsync bs=512 skip=1 seek=1
  53. $ dd if=$DIR/u-boot.gxbb of=$DEV conv=fsync bs=512 seek=97