openwrt/target/linux/sunxi
Petr Štetiar 0784d07c11 sunxi: a53: add support for Olimex A64-Olinuxino eMMC
Specifications:

 SoC: Allwinner A64 (1.2 GHz Quad-Core ARM Cortex-A53 64-bit)
 RAM: 1GB or 2GB RAM DDR3L @ 672Mhz
 Flash: 0/4/16GB eMMC flash memory for storage and boot
 MicroSD card connector for cards up to 32GB
 Debug: serial UART debug header with 0.1" pins
 Wired connectivity: 10/100/1000Mbps GbE Ethernet
 Wireless connectivity: on-board RTL8723BS 1T1R 802.11bgn WiFi and
                        Bluetooth 4.0 module with built-in antenna
                        (only available in the A64-OLinuXino-1G4GW)

Flashing instructions:

 Standard sunxi SD card installation procedure - copy eMMC image to SD
 card, insert in into SD card slot on the device and boot. You should see
 something like following if the eMMC is detected correctly:

  mmcblk2: mmc2:0001 P1XXXX 3.60 GiB
  mmcblk2boot0: mmc2:0001 P1XXXX partition 1 16.0 MiB
  mmcblk2boot1: mmc2:0001 P1XXXX partition 2 16.0 MiB

 Then flash SD card eMMC image straight into the mmcblk2 device:

  dd if=/mnt/openwrt...a64-olinuxino-emmc-squashfs-sdcard.img of=/dev/mmcblk2

 It also possible to boot from boot0 partition[1]:

  1. Compile U-Boot with CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x40
     otherwise the U-Boot will get stuck in bootloop
  2. Configure eMMC to boot from boot0 partition inside U-Boot:

     mmc bootbus 1 1 0 0; mmc partconf 1 1 1 0

  3. echo 0 > /sys/block/mmcblk2boot0/force_ro
  4. Write U-Boot from offset 0 (not offset 8k as with SD card) into
     boot0 partition

     dd if=u-boot-sunxi-with-spl.bin of=/dev/mmcblk2boot0

Known issues:

 Wireless doesn't work properly via netifd.

1. https://linux-sunxi.org/index.php?title=Bootable_eMMC

Signed-off-by: Petr Štetiar <ynezz@true.cz>
2020-03-28 13:03:02 +01:00
..
base-files treewide: use new procd sysupgrade $UPGRADE_BACKUP variable 2019-09-05 23:33:19 +02:00
cortexa7 sunxi: move common options from subtargets into target kconfig 2020-03-16 22:21:45 +01:00
cortexa8 sunxi: move common options from subtargets into target kconfig 2020-03-16 22:21:45 +01:00
cortexa53 sunxi: move common options from subtargets into target kconfig 2020-03-16 22:21:45 +01:00
image sunxi: a53: add support for Olimex A64-Olinuxino eMMC 2020-03-28 13:03:02 +01:00
patches-4.19 sunxi: backport increased SATA/AHCI DMA TX/RX FIFOs 2020-02-13 17:45:46 +01:00
patches-5.4 sunxi: make patches apply cleanly on 5.4 2020-03-16 22:21:45 +01:00
profiles kernel: make kmod-ata-core selected by dependent modules 2020-03-11 19:40:03 +01:00
config-4.19 sunxi: remove CONFIG_LEGACY_PTY from kernel config 2019-12-09 20:15:36 +01:00
config-5.4 sunxi: move common options from subtargets into target kconfig 2020-03-16 22:21:45 +01:00
Makefile treewide: remove maintainer variable from targets 2020-03-16 22:21:45 +01:00
modules.mk