summaryrefslogtreecommitdiffstats
path: root/flash
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2005-06-21 08:30:23 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2005-06-21 08:30:23 +0000
commita0add0c97fe435d4d51c721a440ded22dc9321ce (patch)
tree832bc45efdf1b3cbe6c12dda1f5b002c40bcfca6 /flash
parent9cfa47a22647a293ea1697456fcdbaddc975830c (diff)
downloadrockbox-a0add0c97fe435d4d51c721a440ded22dc9321ce.tar.gz
rockbox-a0add0c97fe435d4d51c721a440ded22dc9321ce.tar.bz2
rockbox-a0add0c97fe435d4d51c721a440ded22dc9321ce.zip
Rolo problem fixed
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6787 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'flash')
-rw-r--r--flash/bootbox/main.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/flash/bootbox/main.c b/flash/bootbox/main.c
index da9efcf728..3c921fe25d 100644
--- a/flash/bootbox/main.c
+++ b/flash/bootbox/main.c
@@ -33,6 +33,7 @@
#include "panic.h"
#include "power.h"
#include "file.h"
+#include "buffer.h"
#include "rolo.h"
#include "usb.h"
#include "powermgmt.h"
@@ -113,6 +114,7 @@ void main(void)
power_init();
system_init();
kernel_init();
+ buffer_init();
lcd_init();
show_logo();
set_irq_level(0);
@@ -180,14 +182,8 @@ void main(void)
}
{ // rolo the firmware
- int fd;
- static const char filename[] = BOOTFILE;
- fd = open(filename, O_RDONLY);
- if(fd >= 0) /* no complaint if it doesn't exit */
- {
- close(fd);
- rolo_load((char*)filename); /* start if it does */
- }
+ static const char filename[] = "/" BOOTFILE;
+ rolo_load((char*)filename); /* won't return if started */
lcd_clear_display();
lcd_puts(0, 0, "No firmware");