rockchip: add NanoPi R2S support
authorDavid Bauer <mail@david-bauer.net>
Thu, 16 Jul 2020 08:08:57 +0000 (10:08 +0200)
committerDavid Bauer <mail@david-bauer.net>
Tue, 28 Jul 2020 13:52:44 +0000 (15:52 +0200)
commitb7a9a183fb44f77d9f95c20bcec1db0edea9e206
treec09ed017d25e760ad1f0f6cb56498e8060528362
parentb72f7c64a4eb4aa14f3b632dd4ff77a4802c0311
rockchip: add NanoPi R2S support

Hardware
--------
RockChip RK3328 ARM64 (4 cores)
1GB DDR4 RAM
2x 1000 Base-T
3 LEDs (LAN / WAN / SYS)
1 Button (Reset)
Micro-SD slot
USB 2.0 Port

Installation
------------
Uncompress the OpenWrt sysupgrade and write it to a micro SD card using
dd.

MAC-address
-----------
The vendor code supports reading a MAC address from an EEPROM connected
via i2c0 of the SoC. The EEPROM (address 0x51) should contain the MAC
address in binary at offset 0xfa. However, my two units didn't come with
such an EEPROM soldered on. The EEPROM should be placed between the SoC
and the GPIO pins on the board. (U10)

Generating rendom MAC addresses works around this issue. Otherwise, all
boards running the same image have identical MAC addresses.

Signed-off-by: David Bauer <mail@david-bauer.net>
target/linux/rockchip/armv8/base-files/etc/board.d/01_leds [new file with mode: 0755]
target/linux/rockchip/armv8/base-files/etc/board.d/02_network
target/linux/rockchip/armv8/config-5.4
target/linux/rockchip/image/armv8.mk
target/linux/rockchip/image/nanopi-r2s.bootscript [new file with mode: 0644]
target/linux/rockchip/patches-5.4/001-rockchip-rk3328-Add-support-for-FriendlyARM-NanoPi-R.patch [new file with mode: 0644]
target/linux/rockchip/patches-5.4/100-rockchip-use-system-LED-for-OpenWrt.patch [new file with mode: 0644]
target/linux/rockchip/patches-5.4/101-dts-rockchip-add-usb3-controller-node-for-RK3328-SoCs.patch [new file with mode: 0644]
target/linux/rockchip/patches-5.4/102-rockchip-enable-LAN-port-on-NanoPi-R2S.patch [new file with mode: 0644]