From patchwork Thu Nov 3 20:47:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Lamparter X-Patchwork-Id: 691011 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3t8xtD6nC1z9tkH for ; Fri, 4 Nov 2016 07:49:56 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=googlemail.com header.i=@googlemail.com header.b=F7FGJotX; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2OvC-0004pI-68; Thu, 03 Nov 2016 20:47:38 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c2Ov8-0004kY-TM for lede-dev@lists.infradead.org; Thu, 03 Nov 2016 20:47:35 +0000 Received: by mail-wm0-x241.google.com with SMTP id p190so817400wmp.1 for ; Thu, 03 Nov 2016 13:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=u+l2XT3ydntIm5UvEM7PYkFviQDyJIRbKD9Q/k5jEcQ=; b=F7FGJotXfQ/KbfW2nrQPhO5abFwv6FvWT7iL5108Exwd66mgjtXG5WF/F1YHiN6JCo z1zeggSpHbp4bUmP5sS52qMzUbi5gA6LjAhx7PhRoyVMpTkrKTQdlXhCsxxdGDdzTMiA IO3JNBsltiMT4Zz0elnGKpbrYaEt9ITIAfb0SyGRTBKnnXcG9r/a00SM0EIZaDyhWQCj ZrZk866oeKnYM8GZKvOsRnk6Mr2xEfhN2RDrpr6+6kxrgRmf62skdH2Rno2L/MwsLwCQ bNQlYZq8/yd0sUFgCLxEwP/202y8GyE1vlX1Q1hrJW+DPghSCg5yFz2yRu5sRzQLp4ke q7rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=u+l2XT3ydntIm5UvEM7PYkFviQDyJIRbKD9Q/k5jEcQ=; b=ipioiFtMRjNYKiuD5v9+FBh4bR+isbOkQLz2zNeAn1EEDM0gBiqO47F0RzLDjKl11C 1bAqV3z7z3p8MVXkq1HrcOLCHgxu0Z8BP1a1ZXEG2XVkYArKfR7vafxEM5ZYikIVzpaX F4aG+seG4DnVtygD0EOPytGHeUwCc+TAzh+hr3VGHx3k8qeKmAJRDqirUR1OnBtpBzIS ldYGsytkQ4T+aCvIb5I/g9wssANEFU7V9INfaBUuMPOdqX3H413NY+MfN8QnFtSi2ZdQ 24HH+s2tx4dBzlXHEmeYNtF/MMDQUqIUtRFCqS1EUnaIdPf+P81ZgCY4CXjAotZlbGU3 Gm0g== X-Gm-Message-State: ABUngvdis0nTly/Ql6dR+3muAvQZGt/EJZJDdZwheuTeb825fnL26/5IY2g+83DSxJEDvw== X-Received: by 10.194.2.198 with SMTP id 6mr10632704wjw.51.1478206029164; Thu, 03 Nov 2016 13:47:09 -0700 (PDT) Received: from debian64.daheim (pD9F8B16E.dip0.t-ipconnect.de. [217.248.177.110]) by smtp.gmail.com with ESMTPSA id f3sm920575wmf.10.2016.11.03.13.47.08 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 03 Nov 2016 13:47:08 -0700 (PDT) From: Christian Lamparter X-Google-Original-From: Christian Lamparter Received: from chuck by debian64.daheim with local (Exim 4.87) (envelope-from ) id 1c2Ouh-0006SV-Qi; Thu, 03 Nov 2016 21:47:07 +0100 To: lede-dev@lists.infradead.org Date: Thu, 3 Nov 2016 21:47:06 +0100 Message-Id: <20161103204706.24782-1-chunkeey@gmail.com> X-Mailer: git-send-email 2.10.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161103_134735_192211_862EEB7E X-CRM114-Status: UNSURE ( 9.45 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:241 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chunkeey[at]googlemail.com) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid Subject: [LEDE-DEV] [PATCH] apm821xx: add back end-of-UBI marker for the WNDR4700 and MR24 X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: chrisrblake93@gmail.com, Christian Lamparter MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The patch "build: drop UBI EOF marker from images by default" (commit d27bce8d28eb129af0abd9c80a7756301b7d588a) removed the end-of-UBI marker. Without this marker, the boards will panic during boot: [ 1.683458] ubi0: attaching mtd4 [ 1.696181] ubi0 warning: scan_peb: valid VID header but corrupted EC header at PEB 31 [ 1.704367] ubi0 error: scan_peb: bad image sequence number 549886691 in PEB 32, expected 184585623 [ 1.713377] Erase counter header dump: [ 1.717110] magic 0x55424923 [ 1.720843] version 1 [ 1.723797] ec 0 [ 1.726752] vid_hdr_offset 512 [ 1.729880] data_offset 2048 [ 1.733094] image_seq 549886691 [ 1.736740] hdr_crc 0x92ba8130 [ 1.740472] erase counter header hexdump: [ 1.744493] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd4, error -22 [ 1.751528] UBI error: cannot attach mtd4 [ 1.755373] hctosys: unable to open rtc device (rtc0) [ 1.761130] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6 [ 1.768604] Please append a correct "root=" boot option; here are the available partitions: [...] [ 1.856992] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 1.866519] Rebooting in 1 seconds..Auto calibration --- Signed-off-by: Christian Lamparter --- target/linux/apm821xx/image/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/linux/apm821xx/image/Makefile b/target/linux/apm821xx/image/Makefile index f8aecdd..c032c54 100644 --- a/target/linux/apm821xx/image/Makefile +++ b/target/linux/apm821xx/image/Makefile @@ -80,6 +80,7 @@ define Device/mr24 MerakiAdd-dtb | pad-to 2047k | MerakiAdd-initramfs | \ MerakiNAND IMAGE/sysupgrade.tar := sysupgrade-tar + UBINIZE_OPTS := -E 5 endef TARGET_DEVICES += mr24 @@ -162,6 +163,7 @@ define Device/WNDR4700 IMAGE/sysupgrade.tar := sysupgrade-tar NETGEAR_BOARD_ID := WNDR4700 NETGEAR_HW_ID := 29763875+128+256 + UBINIZE_OPTS := -E 5 endef TARGET_DEVICES += WNDR4700