aboutsummaryrefslogtreecommitdiff
path: root/board/amarula/a64-relic/readme.txt
blob: f4d29e4597d8318d01318ac05a0fd420fe29fffc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
Amarula A64 Relic
================

Amarula A64-Relic is an Allwinner A64 based IoT device, which supports:
- Allwinner A64 Cortex-A53
- Mali-400MP2 GPU
- AXP803 PMIC
- 1GB DDR3 RAM
- 8GB eMMC
- AP6330 Wifi/BLE
- MIPI-DSI
- CSI: OV5640 sensor
- USB OTG
- 12V DC power supply

Wiki link:
https://openedev.amarulasolutions.com/display/ODWIKI/Amarual+A64-Relic

Build
=====

  $ make amarula_a64_relic_defconfig

  $ make

build files at output/images/:
  - sunxi-spl.bin
  - u-boot.itb
  - Image
  - sun50i-a64-amarula-relic.dtb
  - boot.vfat
  - rootfs.ext4

Write eMMC
=========

The board comes with an operating system preloaded on the eMMC.
To replace it with the Buildroot-built system, take the following
steps

1. Connect the board UART with host and open minicom(ttyUSBx/115200N8)

2. Supply 12V DC for power-on the board.

3. Interrupt U-Boot by pressing enter

4. Create GPT partitions
  => mmc dev 1
  => gpt write mmc 1 $partitions

5. Connect the board USB-OTG with USB slot on the host.

6. Initiate fastboot
  => fastboot 0

7. Write images from host onto eMMC using fastboot
  $ cd output/images
  $ sudo fastboot -i 0x1f3a flash loader1 sunxi-spl.bin
  $ sudo fastboot -i 0x1f3a flash loader2 u-boot.itb
  $ sudo fastboot -i 0x1f3a flash esp boot.vfat
  $ sudo fastboot -i 0x1f3a flash system rootfs.ext4

Update eMMC during Development
==============================

During development, reflashing the entire filesystem image at every
change is time consuming. A useful alternative is to directly access
over USB the filesystem stored on the eMMC, using the USB Mass Storage
capability of U-Boot. To achieve this:

1. Build U-Boot by enabling UMS
   $ make uboot-menuconfig
   (select CONFIG_CMD_USB_MASS_STORAGE=y)

2. Follow all 6 steps from 'Write eMMC' and mount eMMC on host
    => mmc dev 1
    => ums 0 mmc 1

--
Jagan Teki <jagan@amarulasolutions.com>
29-Jun-2018