Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  gigabeat screen rotation patch
« previous next »
  • Print
Pages: [1] 2 3

Author Topic: gigabeat screen rotation patch  (Read 14557 times)

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
gigabeat screen rotation patch
« on: April 25, 2007, 02:22:15 AM »
I'm running into some trouble getting this to work, the patch applies fine but I don't understand Takka's instructions very well. AFAIK they go something like this:
patch everything except screen rotate and make an oridinary build
now patch screen rotate.patch and make a second build
---missing a few steps---
hold up on boot to get landscape

he goes on to mention that it's needed to change all instances of ".rockbox" to ".rockbox_1" in the source code, but he's not specific as to which files to edit. there is mention of editing settings.h. I'm not sure what I'm doing wrong/ missing so any help especially from people who've gotten this working would be appreciated.

Somewhere along the lines, I figure that a new bootloader has to be compiled too, so far I've got both builds, ( one patched the rotate patch, and changes to settings.h) After the second build I made a BL which will rotate the BL output but still loads portrait rockbox. Using the regular BL just stays portrait.
Hope I've given enough info. ;)
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #1 on: April 25, 2007, 07:48:46 AM »
I think that you need to make a bootloader patched with the rotate patch, then rename one of the build folders (rotated I think) to .rockbox_1. You then hold a button (Up I think) to boot into .rockbox_1 instead of .rockbox. If you look into the patch code for the bootloader you will see references to the 2 different folder names. Now I've never even tried to use this patch, but this I what I learned from looking over the cod ea bit and reading the instructions.

Why are you making a gigabeat build anyways? Don't  you have an ipod?
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #2 on: April 25, 2007, 11:00:56 AM »
Hey ... don't discourage him.  ;D This is the one patch that I've been hoping someone would work on.

I didn't understand the instructions much either.  I gathered that, like was stated, you have to make two builds.  The rotate patched build needs to be put into a .rockbox_1 folder.  In order to have both on your Gigabeat and boot into either using the up arrow, you have to use Takka's bootloader.  That bootloader is about two revisions old now.
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #3 on: April 25, 2007, 12:38:05 PM »
Quote from: Nate! on April 25, 2007, 11:00:56 AM
Hey ... don't discourage him.  ;D This is the one patch that I've been hoping someone would work on.

I didn't understand the instructions much either.  I gathered that, like was stated, you have to make two builds.  The rotate patched build needs to be put into a .rockbox_1 folder.  In order to have both on your Gigabeat and boot into either using the up arrow, you have to use Takka's bootloader.  That bootloader is about two revisions old now.

Well the bootloader code is in the patch, so compiling one should be no problem.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #4 on: April 25, 2007, 01:59:10 PM »
Thanks for your responses guys. Mad Cow, I just got a gigabeat yesterday I've realized their technical superiority ;) I still like my iPod but a new toy is always fun. Gonna take another shot at this, hope I get further this time; so my plan is to just make a vanilla build, patch with just screen rotate, make a rotate build, then a bootloader and see what happens.
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #5 on: April 25, 2007, 03:49:41 PM »
OK here's what I've accomplished. The method I described has not successfully made a landscape/portrait booting gigabeat. After fiddling with filenames/locations and rotated and non-rotated builds I've come to this:

 - I have built a bootloader that loads rockbox_1.gigabeat from root and looks in .rockbox_1 for the rest
   of the firmware. This happens without needing to hold up.
 - Unpacking a vanilla build to .rockbox and placing rockbox.gigabeat in root does not cause the BL
    to load these by default, it just ignores them.
 - Removing the rotated build and loading just the vanilla as .rockobox and rockbox.gigabeat throws a
   file not  found error, however renaming rockobx.gigabeat (vanilla) to rockbox_1 loads a vanilla build

I think this is telling me that the bootloader only loads the *.gigabeat file, and not the .rockbox folder. So, I think I am missing the code that enables the BL to choose between.
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #6 on: April 25, 2007, 04:01:03 PM »
Have you looked through the bl code? There might be something there that gives it away. I'll see what I can find out later today.

By the way. Will you eventually make a multifont/custimline build for the gigabeat? I've been wanting to do that for a while but I can't seem to get the patches.
« Last Edit: April 25, 2007, 04:02:47 PM by Mad Cow »
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #7 on: April 25, 2007, 04:12:50 PM »
The patches needed for multifont/customline/customlistpos/customdisplaywidth are maintained by pijulius
(he makes the jbuild) and can be found on his website:
http://pijulius.com/julius/rockbox/patches/

The patches are pretty much out of date right now so going about applying them is kind of a waste especially since there are about 2 WPS's right now that use them.

Also, maxwen makes a build for the X5 similar to the jbuild but it uses scrolling margins (a bonus). The build can be found here:
http://rockbox.webhop.org/
however, these patches are also quite outdated, I think they are updated around the same time as julius' patches.maxwen's patches need to be applied in the right order, read the series file.

With regard to the bootloader, I think the file that needs work is /firmware/export/config-gigabeat.h
lines:130 to end.
Code: [Select]
/* Define this if you have adjustable CPU frequency */
/* #define HAVE_ADJUSTABLE_CPU_FREQ */

#define BOOTFILE_EXT "gigabeat"
#define BOOTFILE "rockbox_1." BOOTFILE_EXT
#define BOOTDIR "/.rockbox"

#define HW_SAMPR_CAPS (SAMPR_CAP_96 | SAMPR_CAP_88 | SAMPR_CAP_48 | \
                       SAMPR_CAP_44 | SAMPR_CAP_32 | SAMPR_CAP_24 | \
                       SAMPR_CAP_22 | SAMPR_CAP_16 | SAMPR_CAP_12 | \
                       SAMPR_CAP_11 | SAMPR_CAP_8)

#endif
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #8 on: April 25, 2007, 04:43:03 PM »
After looking at the iPod's bootloader code I'm beginning to think that bootloader/gigabeat.c is the file that needs to be edited. Looking at how the the iPod chooses the firmware (apple os, rockbox, diagnostic) I think that something like this needs to be added to the gigabeat.c
Code: [Select]
if(button_was_held||(btn==BUTTON_UP)){

printf("loading landscape mode ...");

rc=load_firmware(loadbuffer, "rockbox_1.gigabeat", MAX_LOADSIZE)
}

else {
printf("loading portrait mode ...");
rc=load_firmware(loadbuffer, "rockbox.gigabeat", MAX_LOADSIZE)}

I get the feeling that takka once made a custom bootloader for the patch, but I can't seem to find it on his website as it's in japanese,
the link from the FS tracker to his website is broken.
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #9 on: April 25, 2007, 06:59:19 PM »
I think that I'm getting in a bit deep here, I figured that the process for the bootloader must be similar to the iPod's mechanism for loading the original firmware. So I took a look at the ipod's bootloader code and attempted to mimic it in the gigabeat's bootloader. I haven't managed to break the bootloader, but I don't get the intended result of up for landscape, no button for portrait. If you want to take a look at the code
http://paste.uni.cc/14821
Logged

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #10 on: April 25, 2007, 07:06:37 PM »
I have Takka's bootloader.  I just looked at the zip and it has a build inside also.  Do you guys want me to take that out and just upload the bootloader?

***Edit***
Here it is.

http://rapidshare.com/files/27936244/rotate-bootloader-byTakka.rar.html 
« Last Edit: April 25, 2007, 07:13:15 PM by Nate! »
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #11 on: April 25, 2007, 07:08:58 PM »
Quote from: Nate! on April 25, 2007, 07:06:37 PM
I have Takka's bootloader.  I just looked at the zip and it has a build inside also.  Do you guys want me to take that out and just upload the bootloader?  

Yes please
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #12 on: April 25, 2007, 11:48:10 PM »
Thanks for the upload Nate, but this seems to just be the .gigabeat file, there is no bootloader in the archive. Using this firmware doesn't do anything, I get a "bad checksum" error, so I used the older rockbox bootloader, and I get portrait rockbox. Am I missing something?
Logged

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #13 on: April 26, 2007, 05:13:21 PM »
Sorry, I clicked on the wrong thing when I added it to the archive.

Here is the "real" bootloader:
http://rapidshare.com/files/28096805/Rotate-Bootloader-byTakka.rar.html

Let me know if this works.
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #14 on: April 26, 2007, 07:12:04 PM »
Thanks Nate, I'm working on it now. I would prefer a copy of the code so I could see what Takka did with it, it would be nice to have a new BL so we could use the latest code. I'll see if a msg on the FS tracker helps.
Logged

  • Print
Pages: [1] 2 3
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  gigabeat screen rotation patch
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.076 seconds with 14 queries.