Welcome to the Rockbox Technical Forums!
if (BUTTON_UP) { printf("Loading Landscape Mode"); loadbuffer = (unsigned char*) 0x100; buffer_size = (unsigned char*)0x400000 - loadbuffer; rc=load_firmware(loadbuffer, "/.rockbox_1/rockbox_1.gigabeat", buffer_size); if (rc == EOK) { kernel_entry = (void*) loadbuffer; rc = kernel_entry(); } } else { printf("Loading Portrait Mode"); loadbuffer = (unsigned char*) 0x100; buffer_size = (unsigned char*)0x400000 - loadbuffer; rc = load_firmware(loadbuffer, "/.rockbox/rockbox.gigabeat", buffer_size); if (rc == EOK) { kernel_entry = (void*) loadbuffer; rc = kernel_entry(); }}}
gcc tells me that the in function whatever 'button_was_held' is uninitialized. however, I don't know what this means other than something is wrong, but not critical.To get the exact error, just try to build a bootloader, it makes the .dat but it just loads as usual.
Cool, glad to hear you are making some progress and getting help on IRC, thanks for your interest in this
Index: bootloader/gigabeat.c===================================================================--- bootloader/gigabeat.c (revision 13369)+++ bootloader/gigabeat.c (working copy)@@ -112,13 +112,27 @@ { error(EDISK,rc); }+ + if(button_read_device()) {+ printf("Loading Landscape Mode"); + loadbuffer = (unsigned char*) 0x100;+ buffer_size = (unsigned char*)0x400000 - loadbuffer; + + rc=load_firmware(loadbuffer, "/.rockbox_1/rockbox_1.gigabeat", buffer_size); + + if (rc == EOK)+ {+ kernel_entry = (void*) loadbuffer;+ rc = kernel_entry();+ }+ + } else + printf("Loading Portrait Mode"); - printf("Loading firmware");- loadbuffer = (unsigned char*) 0x100; buffer_size = (unsigned char*)0x400000 - loadbuffer; - rc = load_firmware(loadbuffer, BOOTFILE, buffer_size);+ rc = load_firmware(loadbuffer, "/.rockbox/rockbox.gigabeat", buffer_size); if(rc < 0) error(EBOOTFILE, rc); @@ -128,4 +142,3 @@ rc = kernel_entry(); } }-
Page created in 0.067 seconds with 21 queries.