forked from len0rd/rockbox
xduoox3: More minor bootloader tweaks
Change-Id: I16b5ada06842822e14c0e4fc262f2cb8067aff72
This commit is contained in:
parent
d1653bc4d8
commit
97b0e5b5a1
1 changed files with 6 additions and 5 deletions
|
@ -136,7 +136,7 @@ static int boot_rockbox(void)
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
printf("Mounting disk...\n");
|
printf("Mounting disk...");
|
||||||
|
|
||||||
while((rc = disk_mount_all()) <= 0) {
|
while((rc = disk_mount_all()) <= 0) {
|
||||||
verbose = true;
|
verbose = true;
|
||||||
|
@ -148,12 +148,13 @@ static int boot_rockbox(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("Loading firmware...\n");
|
printf("Loading firmware...");
|
||||||
rc = load_firmware((unsigned char *)CONFIG_SDRAM_START, BOOTFILE, 0x400000);
|
rc = load_firmware((unsigned char *)CONFIG_SDRAM_START, BOOTFILE, 0x400000);
|
||||||
if(rc <= EFILE_EMPTY) {
|
if(rc <= EFILE_EMPTY) {
|
||||||
|
printf("!! " BOOTFILE);
|
||||||
return rc;
|
return rc;
|
||||||
} else {
|
} else {
|
||||||
printf("Starting Rockbox...\n");
|
printf("Starting Rockbox...");
|
||||||
adc_close(); /* Disable SADC, seems to fix the re-init Rockbox does */
|
adc_close(); /* Disable SADC, seems to fix the re-init Rockbox does */
|
||||||
disable_interrupt();
|
disable_interrupt();
|
||||||
exec((void*) CONFIG_SDRAM_START);
|
exec((void*) CONFIG_SDRAM_START);
|
||||||
|
@ -223,8 +224,8 @@ int main(void)
|
||||||
reset_screen();
|
reset_screen();
|
||||||
|
|
||||||
#ifndef SHOW_LOGO
|
#ifndef SHOW_LOGO
|
||||||
printf(MODEL_NAME" Rockbox Bootloader\n");
|
printf(MODEL_NAME" Rockbox Bootloader");
|
||||||
printf("Version %s\n", rbversion);
|
printf("Version %s", rbversion);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = boot_rockbox();
|
rc = boot_rockbox();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue