From patchwork Wed Feb 4 14:37:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Ripard X-Patchwork-Id: 436356 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id B3B57140172 for ; Thu, 5 Feb 2015 01:45:45 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 757FA28BFD9; Wed, 4 Feb 2015 15:40:04 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 29B4828BF4A for ; Wed, 4 Feb 2015 15:39:03 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -4.2 Received: from mail.free-electrons.com (down.free-electrons.com [37.187.137.238]) by arrakis.dune.hu (Postfix) with ESMTP for ; Wed, 4 Feb 2015 15:39:03 +0100 (CET) Received: by mail.free-electrons.com (Postfix, from userid 106) id 52D8275D; Wed, 4 Feb 2015 15:41:41 +0100 (CET) Received: from localhost (col31-4-88-188-83-94.fbx.proxad.net [88.188.83.94]) by mail.free-electrons.com (Postfix) with ESMTPSA id 8B4AC732; Wed, 4 Feb 2015 15:40:13 +0100 (CET) From: Maxime Ripard To: Florian Fainelli , =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Luka Perkov , Imre Kaloz Date: Wed, 4 Feb 2015 15:37:04 +0100 Message-Id: <1423060626-17088-7-git-send-email-maxime.ripard@free-electrons.com> X-Mailer: git-send-email 2.2.2 In-Reply-To: <1423060626-17088-1-git-send-email-maxime.ripard@free-electrons.com> References: <1423060626-17088-1-git-send-email-maxime.ripard@free-electrons.com> Cc: Thomas Petazzoni , openwrt-devel@lists.openwrt.org, Sudhakar Gundubogula Subject: [OpenWrt-Devel] [PATCH v2 6/8] mvebu: Fix NAND and NOR options X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" All the boards but Mamba had wrong UBI options so far, making it impossible to flash the built image on their respective storage medium. Fix all of the supported boards in order to make the generated images useful. Tested on a Mirabox, an Armada XP GP and an Openblocks AX3, and used the NAND chip datasheet for the others. Signed-off-by: Maxime Ripard --- target/linux/mvebu/image/Makefile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/target/linux/mvebu/image/Makefile b/target/linux/mvebu/image/Makefile index a8fc4de134f8..c8ec72e87ce3 100644 --- a/target/linux/mvebu/image/Makefile +++ b/target/linux/mvebu/image/Makefile @@ -125,14 +125,18 @@ define MultiProfile endef endef +# Boards with NAND, without subpages +$(eval $(call NANDProfile,370-DB,armada-370-db,512KiB,4096)) +$(eval $(call NANDProfile,370-RD,armada-370-rd,512KiB,4096)) +$(eval $(call NANDProfile,Mirabox,armada-370-mirabox,512KiB,4096)) +$(eval $(call NANDProfile,XP-DB,armada-xp-db,512KiB,4096)) +$(eval $(call NANDProfile,XP-GP,armada-xp-gp,512KiB,4096)) + # Boards with NAND, with subpages -$(eval $(call NANDProfile,370-DB,armada-370-db,128KiB,2048,512)) -$(eval $(call NANDProfile,370-RD,armada-370-rd,128KiB,2048,512)) $(eval $(call NANDProfile,Mamba,armada-xp-mamba,128KiB,2048,512)) -$(eval $(call NANDProfile,Mirabox,armada-370-mirabox,128KiB,2048,512)) -$(eval $(call NANDProfile,OpenBlocks-AX-3-4,armada-xp-openblocks-ax3-4,128KiB,2048,512)) -$(eval $(call NANDProfile,XP-DB,armada-xp-db,128KiB,2048,512)) -$(eval $(call NANDProfile,XP-GP,armada-xp-gp,128KiB,2048,512)) + +# Boards with large NOR, where we want to use UBI +$(eval $(call UBINORProfile,OpenBlocks-AX-3-4,armada-xp-openblocks-ax3-4,128KiB)) define Image/Build/Profile/Mamba/squashfs $(call Image/Build/UbinizeImage,armada-xp-mamba,,squashfs, -p 128KiB -m 2048 -s 512)