From 657a945b89d7c7a88f07d3b73b47fc61406d14f5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 15 Mar 2015 16:29:09 -0500 Subject: add some useful bits and bytes for rpi2 support --- target/arm/Makefile | 16 ++++++++++++++++ target/arm/kernel/raspberry-pi2 | 2 -- 2 files changed, 16 insertions(+), 2 deletions(-) (limited to 'target/arm') diff --git a/target/arm/Makefile b/target/arm/Makefile index 634bee924..180e02e83 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -52,6 +52,12 @@ ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) @echo "Use following command to install with a writable data partition" @echo "sudo ./scripts/install.sh -d 256 raspberry-pi /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" endif +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y) + @echo "Use following command to install it on SD card:" + @echo "sudo ./scripts/install.sh raspberry-pi2 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" + @echo "Use following command to install with a writable data partition" + @echo "sudo ./scripts/install.sh -d 256 raspberry-pi2 /dev/sdX $(FW_DIR)/$(ROOTFSTARBALL)" +endif ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y) ifeq ($(ADK_APPLIANCE_KODI),y) @echo "Use following command to install with a writable data partition" @@ -102,6 +108,13 @@ ifeq ($(ADK_KERNEL_BCM2708_DT),y) $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE) endif endif +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y) +ifeq ($(ADK_KERNEL_BCM2709_DT),y) + @echo adding DT trailer to kernel $(MAKE_TRACE) + -rm $(BUILD_DIR)/$(TARGET_KERNEL) + $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE) +endif +endif kernel-install: kernel-strip @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) @@ -110,6 +123,9 @@ dtb-install: ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) env $(KERNEL_MAKE_ENV) $(MAKE) $(KERNEL_MAKE_OPTS) dtbs $(MAKE_TRACE) endif +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI2),y) + env $(KERNEL_MAKE_ENV) $(MAKE) $(KERNEL_MAKE_OPTS) dtbs $(MAKE_TRACE) +endif ifeq ($(ADK_TARGET_SYSTEM_SOLIDRUN_IMX6),y) env $(KERNEL_MAKE_ENV) $(MAKE) $(KERNEL_MAKE_OPTS) \ imx6q-cubox-i.dtb imx6dl-cubox-i.dtb imx6dl-hummingboard.dtb imx6q-hummingboard.dtb $(MAKE_TRACE) diff --git a/target/arm/kernel/raspberry-pi2 b/target/arm/kernel/raspberry-pi2 index 592a38201..767a675c3 100644 --- a/target/arm/kernel/raspberry-pi2 +++ b/target/arm/kernel/raspberry-pi2 @@ -2,10 +2,8 @@ CONFIG_ARM=y CONFIG_ARM_PATCH_PHYS_VIRT=y CONFIG_ARCH_MULTI_V7=y CONFIG_ARCH_BCM2709=y -CONFIG_ARCH_BCM2836=y CONFIG_MACH_BCM2709=y CONFIG_HAVE_ARM_ARCH_TIMER=y CONFIG_FIQ=y CONFIG_SERIAL_AMBA_PL011=y CONFIG_SERIAL_AMBA_PL011_CONSOLE=y -CONFIG_CMDLINE_EXTEND=y -- cgit v1.2.3