From patchwork Tue Jan 27 17:41:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ben Mulvihill X-Patchwork-Id: 433587 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 7071E140216 for ; Wed, 28 Jan 2015 04:42:05 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4C05928BC85; Tue, 27 Jan 2015 18:39:33 +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,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 4B28628BBD5 for ; Tue, 27 Jan 2015 18:39:26 +0100 (CET) X-policyd-weight: using cached result; rate: -8.5 Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Tue, 27 Jan 2015 18:39:26 +0100 (CET) Received: by mail-we0-f169.google.com with SMTP id u56so16318383wes.0 for ; Tue, 27 Jan 2015 09:41:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :content-type:content-transfer-encoding:mime-version; bh=JlV71b1hSt/juF79Mrkef9y7N2rREKONRRQI5lwKauw=; b=MEJiwHP+BWDlwUlyhIGy8Xr/JfD49Tskx3KQnsxjqGjYFNMHw6RPqU++wIYg2GSoWB K5Fjbs1qLphlSr/muabe6WG6pEWTr6oBHK/RwKa7FyqSVU6BeXCe3MBInINicmbGsSbA Y2fXkKk7SKBTjQItIZ8X3ItSYdACs8xN+i9mBhAOzzE2FTMs4CUluSw/eBPugf4qsfRV gYeHzqSWmUS0H3lBSTqOGaVVwPMpr5HlRK/YXU+UJ+EItsLSFJkYs1qT8uFERexbcbST EWcfRXIKliOoUnibiZVtt34qel+Jny3F2ksVNFGYa0ofhrUT8bm+ozWLGFA+xH9AfNhk Lsmg== X-Received: by 10.194.90.143 with SMTP id bw15mr63141wjb.132.1422380511314; Tue, 27 Jan 2015 09:41:51 -0800 (PST) Received: from [10.7.1.191] ([87.112.158.166]) by mx.google.com with ESMTPSA id cm7sm19023150wib.6.2015.01.27.09.41.50 (version=TLSv1.2 cipher=AES128-GCM-SHA256 bits=128/128); Tue, 27 Jan 2015 09:41:50 -0800 (PST) Message-ID: <1422380504.19237.20.camel@merveille.lan> From: Ben Mulvihill To: Antti =?ISO-8859-1?Q?Sepp=E4l=E4?= Date: Tue, 27 Jan 2015 18:41:44 +0100 In-Reply-To: References: <1422190368-31840-1-git-send-email-a.seppala@gmail.com> <54C4FAF8.8050405@gmail.com> X-Mailer: Evolution 3.2.3-0ubuntu6 Mime-Version: 1.0 Cc: openwrt-devel@lists.openwrt.org Subject: Re: [OpenWrt-Devel] [PATCH] uboot-lantiq: fix P-2812HNU-F1/3 package dependency 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: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Hi Antti, (Note that the diffs in this message are for information. They are not patches submitted for merging - not at this stage anyway.) > I tried and it seems the ram version > (openwrt-lantiq-p2812hnufx_ram-u-boot.asc) builds and boots properly. > > The openwrt-lantiq-p2812hnufx_nandspl-u-boot.img indeed does not boot > correctly. Is anyone working on fixing it? (Apparently conversion to > TPL is needed) I am working on the BT Home Hub 3A at the moment (arx100, nand-based board), and have also found that asc images build correctly but nandspl images do not. There seem to a number of problems. For a start some of the make targets seem to be missing. The following fixed that for arx100, and I think that a similar fix is necessary for danube and vrx200 too. Finally the ltq-boot-image tool adds a couple of download header to the final image which I don't think should be there. Daniel, does all the above make sense? That said, even after making those changes my nandspl images still don't work. Ben --- a/arch/mips/cpu/mips32/arx100/config.mk 2015-01-27 12:33:32.000000000 +0100 +++ b/arch/mips/cpu/mips32/arx100/config.mk 2015-01-27 18:07:37.000000000 +0100 @@ -27,4 +27,9 @@ ALL-y += $(obj)u-boot.ltq.norspl ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.norspl ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.norspl endif +ifdef CONFIG_SYS_BOOT_NANDSPL +ALL-y += $(obj)u-boot.ltq.nandspl +ALL-$(CONFIG_SPL_LZO_SUPPORT) += $(obj)u-boot.ltq.lzo.nandspl +ALL-$(CONFIG_SPL_LZMA_SUPPORT) += $(obj)u-boot.ltq.lzma.nandspl +endif endif Then the ebu configuration word needs to be set in the nandspl image, as it is for norspl. Once again, the following fixed that for arx100, and I think something similar will be required for danube and vrx200. --- a/arch/mips/include/asm/arch-arx100/config.h 2015-01-27 18:12:32.000000000 +0100 +++ b/arch/mips/include/asm/arch-arx100/config.h 2015-01-27 18:13:02.000000000 +0100 @@ -174,6 +174,10 @@ #define CONFIG_XWAY_SWAP_BYTES #endif +#if defined(CONFIG_SYS_BOOT_NAND) || defined(CONFIG_SYS_BOOT_NANDSPL) +#define CONFIG_SYS_XWAY_EBU_BOOTCFG 0x688C688C +#endif + #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE #endif /* __ARX100_CONFIG_H__ */