aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bcm4908/image
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2021-01-08 13:32:37 +0100
committerRafał Miłecki <rafal@milecki.pl>2021-01-12 21:10:51 +0100
commitc578fdfc293aaf67b504a17956f5b0e4413426f3 (patch)
treeb9b03b9e3b4b7bb0ab01cf21549d12cf014c6a3d /target/linux/bcm4908/image
parenta1a7f3274e0ed27511d45f62ee20281d8d57c7af (diff)
downloadupstream-c578fdfc293aaf67b504a17956f5b0e4413426f3.tar.gz
upstream-c578fdfc293aaf67b504a17956f5b0e4413426f3.tar.bz2
upstream-c578fdfc293aaf67b504a17956f5b0e4413426f3.zip
bcm4908: initial work on the Broadcom BCM4908 target
BCM4906, BCM4908 and BCM49408 are SoCs with 64 bit ARMv8 B53 CPUs. Upstream Linux is slowly getting support for that SoCs family so it makes sense to add target for it. This prepares initial support for: 1. Asus GT-AC5300 BCM4908 based device (4 CPUs) with 1024 MiB RAM, NAND, 8 LAN ports. 2. Netgear R8000P BCM4906 based device (2 CPUs) with 512 MiB RAM, NAND, 4 LAN ports. Flashing info will come later as we learn how to generate proper images. It isn't usable yet (it only produces a bootable kernel) so "source-only" is used. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm4908/image')
-rw-r--r--target/linux/bcm4908/image/Makefile39
1 files changed, 39 insertions, 0 deletions
diff --git a/target/linux/bcm4908/image/Makefile b/target/linux/bcm4908/image/Makefile
new file mode 100644
index 0000000000..7eaafd583c
--- /dev/null
+++ b/target/linux/bcm4908/image/Makefile
@@ -0,0 +1,39 @@
+# SPDX-License-Identifier: GPL-2.0-only
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/image.mk
+
+define Build/bcm4908lzma
+ $(STAGING_DIR_HOST)/bin/lzma e -lc1 -lp2 -pb2 -d22 $@ $@.new
+ mv $@.new $@
+endef
+
+define Device/Default
+ KERNEL := kernel-bin | bcm4908lzma
+ KERNEL_DEPENDS = $$(wildcard $(DTS_DIR)/$$(DEVICE_DTS).dts)
+ KERNEL_INITRAMFS_SUFFIX := .bin
+ KERNEL_INITRAMFS := kernel-bin | bcm4908lzma
+ FILESYSTEMS := squashfs
+ KERNEL_NAME := Image
+ IMAGE_NAME = $$(IMAGE_PREFIX)-$$(1).$$(2)
+ BLOCKSIZE := 128k
+ PAGESIZE := 2048
+endef
+
+define Device/asus_gt-ac5300
+ DEVICE_VENDOR := Asus
+ DEVICE_MODEL := GT-AC5300
+ DEVICE_DTS := broadcom/bcm4908/bcm4908-asus-gt-ac5300
+ IMAGES := bin
+endef
+TARGET_DEVICES += asus_gt-ac5300
+
+define Device/netgear_r8000p
+ DEVICE_VENDOR := Netgear
+ DEVICE_MODEL := R8000P
+ DEVICE_DTS := broadcom/bcm4908/bcm4906-netgear-r8000p
+ IMAGES := bin
+endef
+TARGET_DEVICES += netgear_r8000p
+
+$(eval $(call BuildImage))