From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Andreas_Bie=DFmann?= Date: Mon, 02 Jul 2012 15:07:55 +0200 Subject: [U-Boot] [PATCH v6] AT91SAM9*: Change kernel address in dataflash to match u-boot's size In-Reply-To: <20120702125500.GA16118@piout.net> References: <4FF027B2.8010507@googlemail.com> <1341229079-5281-1-git-send-email-alexandre.belloni@piout.net> <4FF18D7C.9040207@gmail.com> <20120702125500.GA16118@piout.net> Message-ID: <4FF19D2B.4030300@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexandre Belloni, On 02.07.2012 14:55, Alexandre Belloni wrote: > On Mon, Jul 02, 2012 at 02:01:00PM +0200, Andreas Bie?mann wrote : >>> diff --git a/include/configs/at91sam9260ek.h b/include/configs/at91sam9260ek.h >>> index 07b1968..ef25fa5 100644 >>> --- a/include/configs/at91sam9260ek.h >>> +++ b/include/configs/at91sam9260ek.h >>> @@ -187,7 +187,7 @@ >>> #define CONFIG_ENV_OFFSET 0x4200 >>> #define CONFIG_ENV_ADDR (CONFIG_SYS_DATAFLASH_LOGIC_ADDR_CS0 + CONFIG_ENV_OFFSET) >>> #define CONFIG_ENV_SIZE 0x4200 >>> -#define CONFIG_BOOTCOMMAND "cp.b 0xC0042000 0x22000000 0x210000; bootm" >>> +#define CONFIG_BOOTCOMMAND "cp.b 0xC0084000 0x22000000 0x210000; bootm" >> >> also sorry, but size is wrong here! We reduced the partition to >> 0x1CE000, it is about 1.8 MiB now and not 2 MiB as before. >> > > Right, I didn't really care about the end of the kernel partition as the > 9261ek has an 8MiB dataflash and my rootfs is in NAND. The kernel is > around 1.7MiB using the default configuration. Maybe, we should also > extend its partition ? well, I don't care about that too cause we usually don't have a dataflash in our devices. I think for the eval kits it would be nice to have a board support package which can be loaded from different media. Unfortunately I used to work with bare UBoot, vanilla kernel a.s.o. Therefore I have not such deep insight into the atmel provided bsp's. In short words: I tend to say we should increase the space for kernel partition but I fear to break some special bsp's. As I can see the kernel do not provide a special mapping here. If you are not aware of some other source (e.g. linux4sam), let us increase the space for kernel a bit. Best regards Andreas Bie?mann