From a0add0c97fe435d4d51c721a440ded22dc9321ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Hohensohn?= Date: Tue, 21 Jun 2005 08:30:23 +0000 Subject: [PATCH] Rolo problem fixed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6787 a1c6a512-1295-4272-9138-f99709370657 --- flash/bootbox/main.c | 12 ++++-------- 1 file 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");