1
0
Fork 0
forked from len0rd/rockbox

This is a big chunk of code necessary to prepare for Gigabeat F flash loading and and implementation of rolo. There should be no noticible changes for the user. A new bootloader is not needed.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17213 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Karl Kurbjun 2008-04-22 04:34:25 +00:00
parent 68afa9dc34
commit 7510335fc4
8 changed files with 563 additions and 349 deletions

View file

@ -54,7 +54,6 @@ void main(void)
int rc;
int(*kernel_entry)(void);
memory_init();
power_init();
system_init();
lcd_init();
@ -98,6 +97,8 @@ void main(void)
printf("Rockbox boot loader");
printf("Version %s", version);
sleep(50); /* ATA seems to error without this pause */
rc = ata_init();
if(rc)
{
@ -115,8 +116,8 @@ void main(void)
printf("Loading firmware");
loadbuffer = (unsigned char*) 0x100;
buffer_size = (unsigned char*)0x400000 - loadbuffer;
loadbuffer = (unsigned char*) 0x31000000;
buffer_size = (unsigned char*)0x31400000 - loadbuffer;
rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);
if(rc < 0)