From 7c71cc32dfe3162e5df644f46fc5405128aad885 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Wed, 4 Feb 2015 10:09:24 +0100 Subject: add DT trailer to kernel for raspberry pi with dt The Kernel need a trailer to be recognized as a device-tree kernel. The overlay dir is called /boot/overlays. Now my driver works fine. --- target/Makefile | 2 +- target/arm/Makefile | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'target') diff --git a/target/Makefile b/target/Makefile index 7041ed347..d015d6757 100644 --- a/target/Makefile +++ b/target/Makefile @@ -127,4 +127,4 @@ clean: $(ADK_TARGET_ARCH)-clean $(ADK_TARGET_ARCH)-imageclean %-imageinstall: %-imageprepare $(TRACE) target/$(patsubst %-imageinstall,%,$@)-imageinstall $(MAKE) -C $(patsubst %-imageinstall,%,$@) imageinstall - @echo 'Login as user root with password "$(ADK_RUNTIME_PASSWORD)" via ssh or console.' + @echo "Login as user root via ssh or console." diff --git a/target/arm/Makefile b/target/arm/Makefile index 560ee1e98..2bcd73bc8 100644 --- a/target/arm/Makefile +++ b/target/arm/Makefile @@ -94,7 +94,14 @@ targethelp: endif kernel-strip: +ifeq ($(ADK_TARGET_SYSTEM_RASPBERRY_PI),y) +ifeq ($(ADK_KERNEL_BCM2708_DT),y) + @echo adding DT trailer to kernel $(MAKE_TRACE) + $(ADK_TOPDIR)/scripts/mkknlimg --dtok $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) $(MAKE_TRACE) +endif +else @cp $(KERNEL) $(BUILD_DIR)/$(TARGET_KERNEL) +endif kernel-install: kernel-strip @cp $(BUILD_DIR)/$(TARGET_KERNEL) $(FW_DIR)/$(TARGET_KERNEL) -- cgit v1.2.3