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 14558 times)

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #30 on: May 10, 2007, 03:49:55 PM »
Quote from: Nate! on May 10, 2007, 12:19:00 PM
Haven't tried it yet, but SWEET!  Thanks for your work!  And again, thanks to MadCow and EvilG for reviving this effort.

*** EDIT ***
Just tried your bootloader:
* patched, and loaded patched build.  
   * I have .rockbox and .rockbox_1 directories.  
   * Made sure I copied the fonts directory over to the .rockbox_1 dir.
* Powered down.
* Turned the battery off and on
* Powered on.
*Hit/held the up "button."

I received some print out of text that I can't really see because it flashes too quickly.  I believe it looks like the info you get when you don't have the bootloader correctly installed or something.  Is there anyway to capture that message?

After error, it loads in portrait mode.  Everything works fine in portrait mode.

First of all, you don't need to hold the "up" button, just hold any button on the touchpad, preferably the middle, and start holding it while you're still in Toshiba's bootloader with the loading bar. Also, make sure there's a "rockbox_1.gigabeat" in your ".rockbox_1" dir. The best way to capture that message would probably to take a video of it loading and find the frame(s) with the error message.
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #31 on: May 10, 2007, 06:58:38 PM »
AaaHaa!  I needed to rename the gigabeat.rockbox in the .rockbox_1 dir.  Thanks.  You guys are the greatest.  For Real!
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #32 on: May 10, 2007, 07:03:47 PM »
Quote from: Nate! on May 10, 2007, 06:58:38 PM
AaaHaa!  I needed to rename the gigabeat.rockbox in the .rockbox_1 dir.  Thanks.  You guys are the greatest.  For Real!

Why did you have to rename it? Did you download my rotated build?
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #33 on: May 10, 2007, 07:24:34 PM »
Oh no, I didn't download your build.  I only really use the Album Art patch.  Maybe I'll add scrolling margins occasionally when it syncs.  Aside from those two and the  Rotate patch, I don't really use any other patches.  And as far as games, I don't really play anything in the airport or where ever except what comes with Rockbox.  (Mostly just Bubbles, Brickmania, and Xobox.)

So that's why I had to rename.  Everything works great now.  I had to of course update a couple WPSs and config files, but everything is great!

I do appreciate you finally getting this to work.  Again, my sincerest thanks!
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #34 on: May 10, 2007, 07:29:09 PM »
Mad Cow, this is awesome news. Thanks for taking the time to get this code to work, I'm glad that all my headaches were worth someting :D. Guess this means I can make a build for that can be used on the X series, and with all the fancy code improvements like those neet button lights.
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #35 on: May 17, 2007, 04:50:13 PM »
Nate has let me know that this patch needs a resync due to recent commits for LCD optimizations.
We no longer use DMA for the LCD so the code has been changed a bit. I've been unsuccessfully trying to sync this, so I thought I'd just get the word out.
The file that is out of sync is:
/firmware/target/arm/s3c2440/gigabeat-fx/lcd-meg-fx.c
which has 3 hunks fail. I think what needs to be done is modify the variables in the new functions (LCD_WIDTH changes to R_LCD_WIDTH) but it may be more.
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #36 on: May 17, 2007, 06:33:37 PM »
I've managed to sync this patch so no worries, but thanks to anyone who even considered lending a hand ;)
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #37 on: May 17, 2007, 07:07:23 PM »
Quote from: evilg123 on May 17, 2007, 06:33:37 PM
I've managed to sync this patch so no worries, but thanks to anyone who even considered lending a hand

What did you do? I'm glad to hear that though, because I'm terrible with patches and I didn't really want to do it. ;)
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #38 on: May 17, 2007, 07:53:41 PM »
I'll attach the .rej so you can see what wasn't patching, and try to explain as best I can:
-the first hunk I needed to just copy and paste, as well as the second.
-The next hunk dealt with DMA, which was removed from SVN as we do not usDMA to access the
  Gigabeat's LCD. By looking at the diffs from the recent SVN commits I figured that this stuff was
  unneccessary, so I continued to the next hunk
-the hunk after that deals with the memcpy function (which I assume is used to draw the LCD) and appears to
  be the same, so again i just copied the the intended code and replaced it.

At first, I thought I had to find all instances of LCD_WIDTH and replace them with R_LCD_WIDTH etc. but after running into problems I decided to take some closer looks at the patch file, the .orig, the .rej, and the SVN diffs (the SVN diffs were the real key to this). After reading them, I came up with the solution I just explained, and after some 'massaging' it worked. I didn't quite copy and paste as I was supposed to, an extra } character here or there, and I think one of the parts I needed I forgot to paste in the first time. That stuff I figured out from gcc's error messages.

[attachment deleted by admin for age]
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #39 on: May 17, 2007, 08:05:00 PM »
Quote from: evilg123 on May 17, 2007, 07:53:41 PM
I'll attach the .rej so you can see what wasn't patching, and try to explain as best I can:
-the first hunk I needed to just copy and paste, as well as the second.
-The next hunk dealt with DMA, which was removed from SVN as we do not usDMA to access the
  Gigabeat's LCD. By looking at the diffs from the recent SVN commits I figured that this stuff was
  unneccessary, so I continued to the next hunk
-the hunk after that deals with the memcpy function (which I assume is used to draw the LCD) and appears to
  be the same, so again i just copied the the intended code and replaced it.

At first, I thought I had to find all instances of LCD_WIDTH and replace them with R_LCD_WIDTH etc. but after running into problems I decided to take some closer looks at the patch file, the .orig, the .rej, and the SVN diffs (the SVN diffs were the real key to this). After reading them, I came up with the solution I just explained, and after some 'massaging' it worked. I didn't quite copy and paste as I was supposed to, an extra } character here or there, and I think one of the parts I needed I forgot to paste in the first time. That stuff I figured out from gcc's error messages.

I have no idea what you just said, but good job. :D
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

Offline Nate!

  • Member
  • *
  • Posts: 235
Re: gigabeat screen rotation patch
« Reply #40 on: May 17, 2007, 09:55:28 PM »
Quote from: Mad Cow
I have no idea what you just said, but good job.
I thought it was just me.  Thanks again EvilG for the work.  :D
Logged

Offline lights0ut

  • Artist
  • Member
  • *
  • Posts: 382
Re: gigabeat screen rotation patch
« Reply #41 on: May 17, 2007, 11:16:18 PM »
I'm not joking, this makes complete sense to me the way I've explained it.
Logged

Offline Mad Cow

  • Member
  • *
  • Posts: 445
Re: gigabeat screen rotation patch
« Reply #42 on: May 17, 2007, 11:26:32 PM »
Quote from: evilg123 on May 17, 2007, 11:16:18 PM
I'm not joking, this makes complete sense to me the way I've explained it.

Maybe it's because I'm tired. I'll check it out tomorrow, maybe then I'll get it. :P
Logged
iRiver H10 5GB, Gigabeat F40, Gigabeat S60, all rockboxed. :P

  • 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.079 seconds with 16 queries.