From patchwork Fri Apr 3 21:46:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 458100 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7F4C614010F for ; Sat, 4 Apr 2015 08:46:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 42BDEB37B4; Fri, 3 Apr 2015 23:46:14 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HKbDE3eRLjXu; Fri, 3 Apr 2015 23:46:14 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C0B7FB37B1; Fri, 3 Apr 2015 23:46:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 305AAB37B1 for ; Fri, 3 Apr 2015 23:46:11 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id W2lXdJo0tZIA for ; Fri, 3 Apr 2015 23:46:11 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from cascadia.aikidev.net (cascadia.aikidev.net [173.255.214.101]) by theia.denx.de (Postfix) with ESMTP id C27364A03B for ; Fri, 3 Apr 2015 23:46:07 +0200 (CEST) Received: from localhost (unknown [IPv6:2601:7:780:9bc:221a:6ff:fe04:64bd]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id BE1761AAF6; Fri, 3 Apr 2015 14:46:05 -0700 (PDT) From: Vagrant Cascadian To: drEagle , debian-arm@lists.debian.org In-Reply-To: <5513759B.9040606@doukki.net> References: <878ueqbdwg.fsf@aikidev.net> <5513759B.9040606@doukki.net> User-Agent: Notmuch/0.18.2 (http://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) X-Hashcash: 1:20:150403:dreagle@doukki.net::kGgumk/pL5+c0duB:00000000000000000000000000000000000000000001cJH X-Hashcash: 1:20:150403:debian-arm@lists.debian.org::8k18ECp5Ch67IG93:00000000000000000000000000000000005UQd X-Hashcash: 1:20:150403:u-boot@lists.denx.de::dFbjh9AtZdXCWVd0:00000000000000000000000000000000000000000FnNm Date: Fri, 03 Apr 2015 14:46:02 -0700 Message-ID: <87sicgc2cl.fsf@aikidev.net> MIME-Version: 1.0 Cc: u-boot@lists.denx.de Subject: Re: [U-Boot] u-boot: OpenRD Ultimate fails to build X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" On 2015-03-25, drEagle wrote: > Le 21/03/2015 15:53, Vagrant Cascadian a écrit : >> It seems that OpenRD Ultimate with u-boot 2015.04-rc3 and newer no >> longer builds from source, both in Debian and with mainline git. It >> appears to have overgrown the size limits set for it: > > Looks like the NAND partition map had to be changed to give more space for u-boot. The following patch gets it to build by moving the env addr and offset later. This might cause problems with new or existing u-boot installations on openrd if the environment needs to be at a specific location. I have no hardware to test, so no way of confirming this directly: I'll likely remove openrd_ultimate from future uploads to Debian if I can't get confirmation about how to fix this properly. live well, vagrant diff --git a/include/configs/openrd.h b/include/configs/openrd.h index b6f80af..2f1e174 100644 --- a/include/configs/openrd.h +++ b/include/configs/openrd.h @@ -72,12 +72,12 @@ /* * max 4k env size is enough, but in case of nand * it has to be rounded to sector size */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ -#define CONFIG_ENV_ADDR 0x60000 -#define CONFIG_ENV_OFFSET 0x60000 /* env starts here */ +#define CONFIG_ENV_ADDR 0x80000 +#define CONFIG_ENV_OFFSET 0x80000 /* env starts here */ /* * Environment is right behind U-Boot in flash. Make sure U-Boot * doesn't grow into the environment area. */ #define CONFIG_BOARD_SIZE_LIMIT CONFIG_ENV_OFFSET