summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-04-18 17:23:45 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-04-18 17:46:09 +0200
commitf134746c24f1fc8025994a7266eb254c7aec7116 (patch)
tree315caac28813870f47e5c42f533297c8654e78ab
parent1f3d0834e295a5a81a0a2957b7f85e5952651d92 (diff)
rpi3: add defconfig, try with trailer for 64bit kernel
-rw-r--r--package/bcm28xx-bootloader/Makefile2
-rw-r--r--target/aarch64/Makefile5
-rw-r--r--target/config/Config.in.kernelcfg1
3 files changed, 8 insertions, 0 deletions
diff --git a/package/bcm28xx-bootloader/Makefile b/package/bcm28xx-bootloader/Makefile
index a86b8fea8..1186e9dba 100644
--- a/package/bcm28xx-bootloader/Makefile
+++ b/package/bcm28xx-bootloader/Makefile
@@ -92,6 +92,8 @@ endif
ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI3_64),y)
printf "arm_control=0x200\n" >> \
$(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
+ printf "kernel_old=1\n" >> \
+ $(IDIR_BCM28XX_BOOTLOADER)/boot/config.txt
endif
ifeq ($(ADK_PACKAGE_BCM28XX_DEBUGTOOL),y)
$(INSTALL_DIR) $(IDIR_BCM28XX_DEBUGTOOL)/opt/vc/bin
diff --git a/target/aarch64/Makefile b/target/aarch64/Makefile
index c96264c39..ad4c30b31 100644
--- a/target/aarch64/Makefile
+++ b/target/aarch64/Makefile
@@ -56,7 +56,12 @@ endif
endif
kernel-strip:
+ifeq ($(ADK_TARGET_KERNEL_GIT_REPO_NAME),rpi)
+ @echo adding DT trailer to kernel $(MAKE_TRACE)
+ PATH='$(HOST_PATH)' perl $(LINUX_DIR)/scripts/mkknlimg $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE)
+else
@cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL)
+endif
kernel-install: kernel-strip
@cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL)
diff --git a/target/config/Config.in.kernelcfg b/target/config/Config.in.kernelcfg
index da09cc98a..f62e5e47f 100644
--- a/target/config/Config.in.kernelcfg
+++ b/target/config/Config.in.kernelcfg
@@ -24,6 +24,7 @@ config ADK_TARGET_KERNEL_DEFCONFIG
default "bcmrpi_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI
default "bcm2709_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI2
default "bcm2709_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI3
+ default "bcmrpi3_defconfig" if ADK_TARGET_SYSTEM_RASPBERRY_PI3_64
default "twr-k70f120m_defconfig" if ADK_TARGET_SYSTEM_KINETIS_K70
default "imx_v7_cbi_hb_defconfig" if ADK_TARGET_SYSTEM_SOLIDRUN_IMX6
default "mvebu_defconfig" if ADK_TARGET_SYSTEM_SOLIDRUN_CLEARFOG