sunxi: add support for Banana Pi M2 Berry
authorZoltan HERPAI <wigyori@uid0.hu>
Mon, 18 Jan 2021 08:00:42 +0000 (09:00 +0100)
committerZoltan HERPAI <wigyori@uid0.hu>
Mon, 12 Apr 2021 12:02:02 +0000 (14:02 +0200)
CPU: Allwinner V40 quad-core Cortex A7 @ 1.2GHz
Memory: 1GB DDR3
Storage: SDcard, native SATA
Network: 10/100/1000M ethernet, Ampak AP6212 wifi + BT
USB: 4x USB 2.0

Installation:
Use the standard sunxi installation to an SD-card.

While the board is very similar to the M2 Ultra board
(the V40 is the automotive version of the R40), as both
the u-boot and kernel supports them separately, and some
pins are different, let's add a separate device spec.

Signed-off-by: Zoltan HERPAI <wigyori@uid0.hu>
package/boot/uboot-sunxi/Makefile
target/linux/sunxi/image/cortexa7.mk

index 17f1c0d15804742444d515c15d5ece2940d51c54..66ca07fa12f69039242e9f01258c9b9f67e0892a 100644 (file)
@@ -319,6 +319,12 @@ define U-Boot/Bananapi_M2_Ultra
   BUILD_DEVICES:=sinovoip_bananapi-m2-ultra
 endef
 
+define U-Boot/bananapi_m2_berry
+  BUILD_SUBTARGET:=cortexa7
+  NAME:=Bananapi M2 Berry
+  BUILD_DEVICES:=sinovoip_bananapi-m2-berry
+endef
+
 UBOOT_TARGETS := \
        a64-olinuxino \
        a64-olinuxino-emmc \
@@ -330,6 +336,7 @@ UBOOT_TARGETS := \
        A20-OLinuXino_MICRO \
        bananapi_m2_plus_h3 \
        Bananapi \
+       bananapi_m2_berry \
        Bananapi_M2_Ultra \
        Bananapro \
        Cubieboard \
index b55e93b7fb55536a69670e313e2f2aff53475d94..01474a20cb352e3f5f7b23718e90c1277f5c9499 100644 (file)
@@ -77,6 +77,16 @@ define Device/lemaker_bananapi
 endef
 TARGET_DEVICES += lemaker_bananapi
 
+define Device/sinovoip_bananapi-m2-berry
+  DEVICE_VENDOR := Sinovoip
+  DEVICE_MODEL := Banana Pi M2 Berry
+  DEVICE_PACKAGES:=kmod-rtc-sunxi kmod-ata-sunxi kmod-brcmfmac \
+       brcmfmac-firmware-43430-sdio wpad-basic-wolfssl
+  SUPPORTED_DEVICES:=lemaker,bananapi-m2-berry
+  SOC := sun8i-v40
+endef
+TARGET_DEVICES += sinovoip_bananapi-m2-berry
+
 define Device/sinovoip_bananapi-m2-ultra
   DEVICE_VENDOR := Sinovoip
   DEVICE_MODEL := Banana Pi M2 Ultra