From patchwork Tue Feb 21 16:02:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Reifferscheid X-Patchwork-Id: 730653 X-Patchwork-Delegate: openwrt@kresin.me Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vSQNH5f0Dz9s7R for ; Wed, 22 Feb 2017 03:06:23 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oC2bq+gw"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id:Date:To: From:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ZKGOFU9RYHquNoWn54ECDjcvnoecsxcR/HPu0ztfV68=; b=oC2bq+gwgsyICX HqxqZMNz7vaQrdbLOvVnsJXOOyTDt6kgRhiZ34cj0Q7v47daBUGw1nA7lTeK7L4rstiZvjHbapMdh 9RNTXJYL03EuJWoF1XIcHsl47qZ/S2fzLMfsopqp3H73PCyT9BKsDGn63ZKDod49744QOoaPlvnOq ILuMPbGt2wzuoXA7kf4oWBiKvjxiHrbqUfKouYiidbXgdjjRx+A4gC8GETJ/MZu6Af9okmSI/3GJW uXtLZXaJv8mTd2J6eRT4xbVLC3WZb3zP1nfMBH8JFmSyTPv5K3qrPq5uea5X4hK6UIzcfAs3k+yI1 YVC58XN5ledjss9/B7fQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cgCx6-00011Y-EU; Tue, 21 Feb 2017 16:06:08 +0000 Received: from mail.reifferscheid.org ([176.9.36.208]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgCv8-0007cP-Qo for lede-dev@lists.infradead.org; Tue, 21 Feb 2017 16:04:08 +0000 Received: from pd9f86828.dip0.t-ipconnect.de ([217.248.104.40] helo=debian.local) by reifferscheid.org with esmtpsa (TLSv1.2:AES128-SHA256:128) (Exim 4.80) (envelope-from ) id 1cgCug-000789-Vw for lede-dev@lists.infradead.org; Tue, 21 Feb 2017 17:03:39 +0100 From: Thomas Reifferscheid To: lede-dev@lists.infradead.org Date: Tue, 21 Feb 2017 17:02:49 +0100 Message-Id: <1487692969-88611-1-git-send-email-thomas@reifferscheid.org> X-Mailer: git-send-email 2.1.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170221_080407_046139_EC642EB2 X-CRM114-Status: UNSURE ( 7.52 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RP_MATCHES_RCVD Envelope sender domain matches handover relay domain 0.0 T_SPF_PERMERROR SPF: test of record failed (permerror) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Subject: [LEDE-DEV] [PATCH] ipq806x: fix fakerootfs position X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The fakeroot header is expected by the netgear bootloader in the last 64 bytes of the last block used by the uImage. With the current linux-4.9 uImage being more than 128k smaller than the linux-4.4 uImage the bootloader was unable to locate the rootfs ih_magic and was refusing to load and start the kernel. Fixes: FS#542 Signed-off-by: Thomas Reifferscheid --- target/linux/ipq806x/image/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/linux/ipq806x/image/Makefile b/target/linux/ipq806x/image/Makefile index b00e197..cec26c2 100644 --- a/target/linux/ipq806x/image/Makefile +++ b/target/linux/ipq806x/image/Makefile @@ -58,8 +58,8 @@ define Device/DniImage FILESYSTEMS := squashfs KERNEL_SUFFIX := -uImage KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none - KERNEL = kernel-bin | append-dtb | uImage none | pad-offset $$(KERNEL_SIZE) 64 | \ - append-uImage-fakeroot-hdr + KERNEL = kernel-bin | append-dtb | uImage none | pad-offset $$(BLOCKSIZE) 64 | append-uImage-fakeroot-hdr | \ + pad-to $$(KERNEL_SIZE) KERNEL_NAME := zImage NETGEAR_BOARD_ID := NETGEAR_HW_ID :=