Message ID | TYAP286MB0315C957E6E970B1DDA0F8E9BC33A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM |
---|---|
State | Accepted |
Delegated to: | Hauke Mehrtens |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=3DPRr5ag; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=outlook.com header.i=@outlook.com header.a=rsa-sha256 header.s=selector1 header.b=OoebTLZK; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QzThF05Dxz20c2 for <incoming@patchwork.ozlabs.org>; Mon, 10 Jul 2023 00:16:11 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ymeho3UDMLTw2G86xsvt70iAEFG3aetjdji2cnSVMsk=; b=3DPRr5agHwbrjx Ll4JigD3kmgCKsFMEfTAM8DjKT9asMPWRnFllNZho4w2iMwpRDedlwqWMDHPdg7ec95t8RAQJzVQC UMvoNrnJ9S01+TWzsk7YqxpwmWDZrpdSpKBOQ/kPS7HYXI7jZEzkW26ik+/4DW6gewPO9suHWUXzD 5HIGs2ArNelaPbZmnPCUlJJiJc1bcdK90VUczuEeuWPTLEb/gRW4M5R7Apm6xWHznM/Ax6OyQtVvk MJdPmAlaHKdhzhfcARZrNtly85x3WvUnAcOZ8SBziCTc1VSspit+WynAATIeEtQ8nbnMr9yRqRZNB 6OX/A1vupZwXH6FyhCwg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qIVAH-009E9W-05; Sun, 09 Jul 2023 14:13:29 +0000 Received: from mail-os0jpn01olkn20802.outbound.protection.outlook.com ([2a01:111:f403:700c::802] helo=JPN01-OS0-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qIVAD-009E7p-32 for openwrt-devel@lists.openwrt.org; Sun, 09 Jul 2023 14:13:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SWMNAEeixqyPzlB2H9WXuEKnTmC2bIndFytwher13WcQvzBZCMQAnHKeQGb42pCv90d7gwfpzhj7Z5DoZXKrd/w3zp0rSjcdJC0LCeD5dwZI4V2Q3Qx6kq09g/xcAVqphI09nI4bc27/S+j2tu4TZp7tqbRPLA3Jew5E6nrBe2oEG+dw7iWJ9CGQIR+WsND+TySELqTF7RiosmEIH3y/4QIzHvC1Ra63bG3o2Z0XeR36h7CPMA33Kk6Fmf3Sub9sRz5ClyGiYvNTUiUuhOhLweJeX5UqdFjCOJYrb83f9KgBW7igvl3TQZUZq84mBTjjK5l6OYoGIp53FbkKswAFRg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=aEiEvH9WIY0qOkop7URaetBYH3EIEpL2vWZkg3RCdCY=; b=P/wOkAT5zvoDvUhpXOjgG9T3GFi9bhrVH/U5/whA16NDgMQpXoex1O+tifgRUIhEu0IXVcQUQ+gj7wgUJtMe915d2ZLEjcG3+el/tYtGi7KQFkWjVmr3DF76x/M25AAkiOENCP//4Wsf+hFaPnKTBIun3qLcxtgjTHBSy2GAB/SkjBwE05Ez9Ayt2jvDxNBiF/HsAttOvgvVjpFV7lBYC74kxwMszb/gSfpydHQowJVJgYZjeqsRhovGaoZb1D3bJXmH4PuqX8RgU0KY4h3KMk8yXHiKXdnpL+/nWEWGgVXCJJ+at0zl4tVSKfIeVVxPopUbN9ruvua9Nve7o2WDbg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aEiEvH9WIY0qOkop7URaetBYH3EIEpL2vWZkg3RCdCY=; b=OoebTLZKDa8aOU+FD64KNNyVol7t7TQVDy03O/VK429dAfxEw05rITRamvrcj6Sf+XSAkxOWJdUGvYx4AsicrurGJlaXAE+VsdIFskE8tgK0HD83VTenSrWIcXMcjPGkneeDWebMzaK6GumJvcqr/+7hjf3/6jiTTwABnN8I2yExnVZGXrZgANJiqPnMyTJsY05VCMuotdoXxTyopJ6HqJgToFENO20KdVqe4+XL/P5LGTguZb5FNwDOCAxMu7AfsxKHZngML9mKpdl0HAJXHIHRBhaMPksCUtCs+guNs0LfweuhbQaem4FYBfl6D0AJicR+bua/fTfWxi94kYXxPg== Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) by OSZP286MB1848.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:165::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.30; Sun, 9 Jul 2023 14:13:12 +0000 Received: from TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::318f:1f08:7a6c:756e]) by TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM ([fe80::318f:1f08:7a6c:756e%3]) with mapi id 15.20.6565.028; Sun, 9 Jul 2023 14:13:12 +0000 From: Shiji Yang <yangshiji66@outlook.com> To: openwrt-devel@lists.openwrt.org Cc: Shiji Yang <yangshiji66@qq.com>, Yousaf <yousaf465@gmail.com> Subject: [PATCH v2 1/2] ath79: rework Netgear nand devices image recipe Date: Sun, 9 Jul 2023 22:10:53 +0800 Message-ID: <TYAP286MB0315C957E6E970B1DDA0F8E9BC33A@TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230709141054.6111-1-yangshiji66@outlook.com> References: <20230709141054.6111-1-yangshiji66@outlook.com> X-TMN: [azfdtDYuHQYyIudd8FBR7XTXMw7tjehD] X-ClientProxiedBy: TYCP286CA0009.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:26c::11) To TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM (2603:1096:404:8041::8) X-Microsoft-Original-Message-ID: <20230709141054.6111-2-yangshiji66@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYAP286MB0315:EE_|OSZP286MB1848:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c710cf9-d766-43b4-e5cb-08db8086a10d X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LNN5WMbRlKntURLsq+Kd8Srm4omdgWewBeNHjwS8jLcxvRYSPbrfLHF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LXoB2ikExbldT0aeIkQ2Q3qRZe9LPst3vcHU8/2YcSSBddpBvViv5VL7gvQRy+pP5fHF4YliIcvcVLbAdn9SYRjYaoIlKKJdfXpm4EM3Gm/n4jh6ZgLSWV04Q8suGWAL3zy+91Sa+RKV8mj6reXtC8ivcXF1UxS4H47aVDClyJHYGn2Il0MG1U4T2dhnqth3Vd7ICoeIEv4toNTIJbiYAHPDUTo7kEK6/mxTL6IC3t2/B5kUJeu1rc+ZnMnppq+veHvjq3Fyf12/vhrL+CDNmzSZnMrNDIGVFnTPvJsvp7XhRrKVXZ5PqF/TSeJc66mc2FaFIQn3z/dyAgVAXGxLSms5Rv/E3+QQWC3uBjMxzjQVVnN8x/ZfC0GaaKloBfPW5vi9uTC8ImuGv5CmYSYItYq2Mt3wnFxlmSsr/eSgI4zZD0QtKZPJ1QjB4HOWkwbdYfjBjnftclrSigbgQXToqcLkToY8SQuRQWcsy1H7CcS704nbwHXaftfQmriw+AigmsRWcsuACGk/uom0hlxG2rRZESCGxUXR0+VdYAYzHAYSG58ndp+OhNRQBj8zUznEDs+viBOZL+gVWZGk3HcqFh84XGrn6OAjliUhKM9gw5JMK43r+gz1yX2DATKQM5IMoIu/ywAkqltS0UvUsJGsq9a1JoNXHTWIbYafHJFhYSwDlMcITppZoiQUIbjuiOHPGt9bfGldNz5OcLzR72aC1LUUiM5G7OEvr/6B/31yj2482VX/k= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c710cf9-d766-43b4-e5cb-08db8086a10d X-MS-Exchange-CrossTenant-AuthSource: TYAP286MB0315.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2023 14:13:12.2563 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSZP286MB1848 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230709_071325_982630_04A80D76 X-CRM114-Status: UNSURE ( 9.24 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Shiji Yang In Netgear u-boot GPL code, nand devices uses this formula to locate the rootfs offset. offset = (((128 + KERNEL_SIZE) / BLOCK_SIZE) + 1) * BLOCK_SIZE; Content analysis details: (0.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [yangshiji66[at]outlook.com] 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit [yangshiji66[at]outlook.com] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
ath79: fix boot failure on Netgear WNDR4300 v2
|
expand
|
diff --git a/target/linux/ath79/image/nand.mk b/target/linux/ath79/image/nand.mk index 4b0932a100..67690ca1c6 100644 --- a/target/linux/ath79/image/nand.mk +++ b/target/linux/ath79/image/nand.mk @@ -285,7 +285,7 @@ define Device/meraki_mr18 endef TARGET_DEVICES += meraki_mr18 -# fake rootfs is mandatory, pad-offset 64 equals (1 * uimage_header) +# fake rootfs is mandatory, pad-offset 129 equals (2 * uimage_header + '\0') define Device/netgear_ath79_nand DEVICE_VENDOR := NETGEAR DEVICE_PACKAGES := kmod-usb2 kmod-usb-ledtrig-usbport @@ -293,8 +293,9 @@ define Device/netgear_ath79_nand BLOCKSIZE := 128k PAGESIZE := 2048 IMAGE_SIZE := 25600k - KERNEL := kernel-bin | append-dtb | lzma | uImage lzma | \ - pad-offset $$(BLOCKSIZE) 64 | append-uImage-fakehdr filesystem $$(UIMAGE_MAGIC) + KERNEL := kernel-bin | append-dtb | lzma | \ + pad-offset $$(BLOCKSIZE) 129 | uImage lzma | pad-extra 1 | \ + append-uImage-fakehdr filesystem $$(UIMAGE_MAGIC) IMAGES := sysupgrade.bin factory.img IMAGE/factory.img := append-kernel | pad-to $$$$(KERNEL_SIZE) | \ append-ubi | check-size | netgear-dni