Rockbox Development > Starting Development and Compiling

gigabeat screen rotation patch

<< < (5/9) > >>

lights0ut:
I've uploaded the builds: http://forums.rockbox.org/index.php?topic=10163.0

Mad Cow:
You need to first define button mappings, which means you need to find the GPIO data for the UP button, the rest seems pretty self-explanatory. I'm trying it out right now.

EDIT: It oads the rotated binary by default, which is really strange. This is the whole loading part of the bootlaoder:
--- Code: ---    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();
    }
}
}


--- End code ---

Why does does it not work?

lights0ut:
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.

Mad Cow:

--- Quote from: evilg123 on May 03, 2007, 07:38:33 PM ---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.

--- End quote ---

There's no "button_was_held" function in the bootloader. You have to define the UP button manually and use that. That's what I did, but it loads the rotated build no matter what, even after some help on IRC.

EDIT: I modified you code a bit, it loads the normal rockbox fine, but only loads the rotated buld halfway before going back to normal. I'll try to fix it later today.

Never mind, it automatically loads to rotated build no matter what, I had the path wrong.

lights0ut:
Cool, glad to hear you are making some progress and getting help on IRC, thanks for your interest in this :D

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version