From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerry Van Baren Date: Mon, 21 Apr 2008 20:26:37 -0400 Subject: [U-Boot-Users] [PATCH 1/3] mpc83xx: update the default load address for 837xemds board In-Reply-To: <20080421165751.291605cd.kim.phillips@freescale.com> References: <1208236229.3656.1.camel@localhost.localdomain> <20080421165751.291605cd.kim.phillips@freescale.com> Message-ID: <480D30BD.6010202@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 Kim Phillips wrote: > On Tue, 15 Apr 2008 13:10:29 +0800 > Dave Liu wrote: > >> Update the default load address. if not, the kernel image >> will be overwritten when u-boot boot the latest linux kernel. >> >> Signed-off-by: Dave Liu >> --- >> include/configs/MPC837XEMDS.h | 4 ++-- >> 1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/include/configs/MPC837XEMDS.h b/include/configs/MPC837XEMDS.h >> index 7fc0f7e..b2b4aa1 100644 >> --- a/include/configs/MPC837XEMDS.h >> +++ b/include/configs/MPC837XEMDS.h >> @@ -595,7 +595,7 @@ >> >> #define CONFIG_BAUDRATE 115200 >> >> -#define CONFIG_LOADADDR 200000 /* default location for tftp and bootm */ >> +#define CONFIG_LOADADDR 2000000 /* default location for tftp and bootm */ >> >> #define CONFIG_BOOTDELAY 6 /* -1 disables auto-boot */ >> #undef CONFIG_BOOTARGS /* the boot command will set bootargs */ >> @@ -605,7 +605,7 @@ >> "consoledev=ttyS0\0" \ >> "ramdiskaddr=1000000\0" \ >> "ramdiskfile=ramfs.83xx\0" \ >> - "fdtaddr=400000\0" \ >> + "fdtaddr=3000000\0" \ > > is such a drastic difference really necessary? how about we double > them instead? > > Kim Hi Kim, Dave, The current recommended practice on the denx.de wiki is to have a 12K FDT blob (0x3000). My latest personal convention for memory locations is to put the FDT blob at a semi-arbitrary base address and set the loadaddr 32K higher (could use 64K if we want to be paranoid about blob growth). The advantage is that the kernel can grow or shrink (ha!) fairly often, but the blob should remain fairly small and fairly constant. This is better than dropping pieces all over memory. This is what I've been running lately: setenv fdtaddr 400000 setenv loadaddr 408000 setenv ramdiskaddr 1000000 Best regards, gvb