From patchwork Fri Aug 21 11:17:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jonas Gorski X-Patchwork-Id: 509468 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id F38D71402C8 for ; Fri, 21 Aug 2015 21:25:09 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id DD1EA28C600; Fri, 21 Aug 2015 13:18:52 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=unavailable version=3.3.2 Received: from localhost (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 00BF828C16E; Fri, 21 Aug 2015 13:17:52 +0200 (CEST) X-Virus-Scanned: at arrakis.dune.hu Received: from localhost.localdomain (dslb-088-073-024-154.088.073.pools.vodafone-ip.de [88.73.24.154]) by arrakis.dune.hu (Postfix) with ESMTPSA id 716C628C16A; Fri, 21 Aug 2015 13:17:06 +0200 (CEST) From: Jonas Gorski To: openwrt-devel@lists.openwrt.org Date: Fri, 21 Aug 2015 13:17:39 +0200 Message-Id: <1440155859-910-11-git-send-email-jogo@openwrt.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1440155859-910-1-git-send-email-jogo@openwrt.org> References: <1440155859-910-1-git-send-email-jogo@openwrt.org> Subject: [OpenWrt-Devel] [PATCH RFC 10/10] ipq806x: wrap ubi in itb 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" The stock QSDK expects the ubi to be wrapped in an itb image, so provide one for easy sysupgrade from QSDK. FIXME: currently does not work? Seems to flash fine, but ubi cannot be mounted by OpenWrt and needs to be flashed a second time. Signed-off-by: Jonas Gorski --- 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 ac0fc84..2fdaab5 100644 --- a/target/linux/ipq806x/image/Makefile +++ b/target/linux/ipq806x/image/Makefile @@ -53,8 +53,8 @@ endef define Device/UbiFit KERNEL_IN_UBI := 1 - IMAGES := nand-factory.ubi nand-sysupgrade.tar - IMAGE/nand-factory.ubi := append-ubi + IMAGES := nand-factory.itb nand-sysupgrade.tar + IMAGE/nand-factory.itb := append-ubi | ubi-fit IMAGE/nand-sysupgrade.tar := sysupgrade-nand endef