From d945c36677b98a796a6921c338302321ced69457 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Tue, 13 Sep 2011 23:38:08 +0000 Subject: imx233/fuze+: rework linker script to load the bootloader at ram start + 1Mb to leave a load for the firmware git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30521 a1c6a512-1295-4272-9138-f99709370657 --- bootloader/imx233.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'bootloader') diff --git a/bootloader/imx233.c b/bootloader/imx233.c index 548bb36..86edc24 100644 --- a/bootloader/imx233.c +++ b/bootloader/imx233.c @@ -41,7 +41,8 @@ #include "usb.h" #include "usb-target.h" -#include "clkctrl-imx233.h" +extern char loadaddress[]; +extern char loadaddressend[]; #ifdef HAVE_BOOTLOADER_USB_MODE static void usb_mode(int connect_timeout) @@ -151,8 +152,8 @@ void main(uint32_t arg) printf("Loading firmware"); - loadbuffer = (unsigned char*)DRAM_ORIG; /* DRAM */ - buffer_size = (int)(loadbuffer + DRAM_SIZE - TTB_SIZE); + loadbuffer = (unsigned char*)loadaddress; + buffer_size = (int)(loadaddressend - loadaddress); while((ret = load_firmware(loadbuffer, BOOTFILE, buffer_size)) < 0) { @@ -160,8 +161,9 @@ void main(uint32_t arg) } kernel_entry = (void*) loadbuffer; - cpucache_invalidate(); printf("Executing"); + disable_interrupt(IRQ_FIQ_STATUS); + commit_discard_idcache(); kernel_entry(); printf("ERR: Failed to boot"); -- cgit v1.1