diff options
| author | Amaury Pouly <pamaury@rockbox.org> | 2011-09-13 23:38:08 +0000 |
|---|---|---|
| committer | Amaury Pouly <pamaury@rockbox.org> | 2011-09-13 23:38:08 +0000 |
| commit | d945c36677b98a796a6921c338302321ced69457 (patch) | |
| tree | 15fad1a43a034643a8c1d5daea9fdd4015ca5c94 /bootloader | |
| parent | dad541a3913856083412b4ca64b1ec09e1a5bf92 (diff) | |
| download | rockbox-d945c36677b98a796a6921c338302321ced69457.zip rockbox-d945c36677b98a796a6921c338302321ced69457.tar.gz rockbox-d945c36677b98a796a6921c338302321ced69457.tar.bz2 rockbox-d945c36677b98a796a6921c338302321ced69457.tar.xz | |
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
Diffstat (limited to 'bootloader')
| -rw-r--r-- | bootloader/imx233.c | 10 |
1 files changed, 6 insertions, 4 deletions
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"); |