[source] ramips/mt76x8: add initramfs support for tplink 841n v13

LEDE Commits lede-commits at lists.infradead.org
Mon Oct 9 08:35:57 PDT 2017


lynxis pushed a commit to source.git, branch master:
https://git.lede-project.org/b73986a8264016883a8a7d666687a340cb810934

commit b73986a8264016883a8a7d666687a340cb810934
Author: Alexander Couzens <lynxis at fe80.eu>
AuthorDate: Mon Oct 9 13:51:21 2017 +0200

    ramips/mt76x8: add initramfs support for tplink 841n v13
    
    The tplink 841n v13 requires an tplink v2 image header in
    front of an initramfs image.
    
    To boot an initramfs image:
    - break the uboot by holding the '4' key
    - setup your tftp server 192.168.0.255
    - tftp 81000000 lede-ramips-mt76x8-tl-wr841n-v13-initramfs-kernel.bin
    - bootm
    
    Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
 target/linux/ramips/image/mt76x8.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/ramips/image/mt76x8.mk b/target/linux/ramips/image/mt76x8.mk
index db32684..56da7b1 100644
--- a/target/linux/ramips/image/mt76x8.mk
+++ b/target/linux/ramips/image/mt76x8.mk
@@ -91,6 +91,7 @@ define Device/tl-wr840n-v4
   TPLINK_HWREVADD := 0x4
   TPLINK_HVERSION := 3
   KERNEL := $(KERNEL_DTB)
+  KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
   IMAGES += tftp-recovery.bin
   IMAGE/factory.bin := tplink-v2-image -e
   IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)



More information about the lede-commits mailing list