xref: /OK3568_Linux_fs/buildroot/board/amarula/a64-relic/readme.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Amarula A64 Relic
2================
3
4Amarula A64-Relic is an Allwinner A64 based IoT device, which supports:
5- Allwinner A64 Cortex-A53
6- Mali-400MP2 GPU
7- AXP803 PMIC
8- 1GB DDR3 RAM
9- 8GB eMMC
10- AP6330 Wifi/BLE
11- MIPI-DSI
12- CSI: OV5640 sensor
13- USB OTG
14- 12V DC power supply
15
16Wiki link:
17https://openedev.amarulasolutions.com/display/ODWIKI/Amarual+A64-Relic
18
19Build
20=====
21
22  $ make amarula_a64_relic_defconfig
23
24  $ make
25
26build files at output/images/:
27  - sunxi-spl.bin
28  - u-boot.itb
29  - Image
30  - sun50i-a64-amarula-relic.dtb
31  - boot.vfat
32  - rootfs.ext4
33
34Write eMMC
35=========
36
37The board comes with an operating system preloaded on the eMMC.
38To replace it with the Buildroot-built system, take the following
39steps
40
411. Connect the board UART with host and open minicom(ttyUSBx/115200N8)
42
432. Supply 12V DC for power-on the board.
44
453. Interrupt U-Boot by pressing enter
46
474. Create GPT partitions
48  => mmc dev 1
49  => gpt write mmc 1 $partitions
50
515. Connect the board USB-OTG with USB slot on the host.
52
536. Initiate fastboot
54  => fastboot 0
55
567. Write images from host onto eMMC using fastboot
57  $ cd output/images
58  $ sudo fastboot -i 0x1f3a flash loader1 sunxi-spl.bin
59  $ sudo fastboot -i 0x1f3a flash loader2 u-boot.itb
60  $ sudo fastboot -i 0x1f3a flash esp boot.vfat
61  $ sudo fastboot -i 0x1f3a flash system rootfs.ext4
62
63Update eMMC during Development
64==============================
65
66During development, reflashing the entire filesystem image at every
67change is time consuming. A useful alternative is to directly access
68over USB the filesystem stored on the eMMC, using the USB Mass Storage
69capability of U-Boot. To achieve this:
70
711. Build U-Boot by enabling UMS
72   $ make uboot-menuconfig
73   (select CONFIG_CMD_USB_MASS_STORAGE=y)
74
752. Follow all 6 steps from 'Write eMMC' and mount eMMC on host
76    => mmc dev 1
77    => ums 0 mmc 1
78
79WiFi
80====
81
82 # wpa_passphrase ACCESSPOINTNAME >> /etc/wpa_supplicant.conf
83   (type password and enter)
84 # wpa_supplicant -i wlan0 -c /etc/wpa_supplicant.conf -B
85 # udhcpc -i wlan0
86 # ping google.com
87
88--
89Jagan Teki <jagan@amarulasolutions.com>
9029-Jun-2018
91