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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Samsung P2
« previous next »
  • Print
Pages: 1 2 [3]

Author Topic: Samsung P2  (Read 64374 times)

Offline Noobtaculus

  • Member
  • *
  • Posts: 7
Re: Samsung P2
« Reply #30 on: February 16, 2009, 09:10:40 PM »
Quote from: kugel. on February 13, 2009, 11:07:16 AM
I don't understand. Have you patched a D2 OF to install Rockbox? Try patching a Samsung OF file, and upload with tcctool.
I would try patching the Samsung OF but I have no clue how. I only used a pre-patched D2 firmware. I got some D2 screens like the update and USB-connection to show but in limited blue colours and only under certain circumstances. I couldn't get it to boot Rockbox though.
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Samsung P2
« Reply #31 on: February 17, 2009, 02:20:44 PM »
Quote from: Noobtaculus on February 16, 2009, 09:10:40 PM
I would try patching the Samsung OF but I have no clue how. I only used a pre-patched D2 firmware. I got some D2 screens like the update and USB-connection to show but in limited blue colours and only under certain circumstances. I couldn't get it to boot Rockbox though.
Don't hesitate to ask the experts. Also, (I haven't looked but) I'm sure the instructions on flashing a D2 OF are written down somewhere (I guess in the wiki), those should pretty much apply to the P2 OF as well.
Logged
 

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Samsung P2
« Reply #32 on: February 17, 2009, 03:06:28 PM »
I really wouldn't advise flashing a D2 build to your P2, whether it's the OF, Rockbox, or otherwise. If you want to try anything like that, tcctool will do the job perfectly well, but without the risk of flashing permanently. You'd be crazy to try anything else.

To progress work on the P2, someone needs to set up a new Samsung P2 build target, as I suggested earlier in this thread. Then you can start making changes like setting the correct LCD height and width, and gradually getting other things to work.

The D2 LCD driver basically needs to be split into two: a common TCC7801 LCD controller driver which can run on both models, and specific things such as the LTV250QV control sequences would stay in a model-specific file. I'll look into making those changes.

Did anything else apart from the LCD work? I'd expect buttons, backlight, sound, power management and many other things to need specific P2 drivers...
Logged

Offline Noobtaculus

  • Member
  • *
  • Posts: 7
Re: Samsung P2
« Reply #33 on: February 17, 2009, 10:03:50 PM »
Quote from: shotofadds on February 17, 2009, 03:06:28 PM
I really wouldn't advise flashing a D2 build to your P2, whether it's the OF, Rockbox, or otherwise. If you want to try anything like that, tcctool will do the job perfectly well, but without the risk of flashing permanently. You'd be crazy to try anything else.

To progress work on the P2, someone needs to set up a new Samsung P2 build target, as I suggested earlier in this thread. Then you can start making changes like setting the correct LCD height and width, and gradually getting other things to work.

The D2 LCD driver basically needs to be split into two: a common TCC7801 LCD controller driver which can run on both models, and specific things such as the LTV250QV control sequences would stay in a model-specific file. I'll look into making those changes.

Did anything else apart from the LCD work? I'd expect buttons, backlight, sound, power management and many other things to need specific P2 drivers...
I didn't pick up any sound from the P2 when it was running any of these D2 firmwares. If I could get the P2 to even boot Rockbox, I would have tried editing the screen sizes etc., although I'm not very knowledgeable on how I would go about all this Rockbox stuff. I have been using tcctool for this (as well as FWDN). What"works" is just the display (some quick pics I took: http://cid-9221f81e10b78ee2.skydrive.live.com/browse.aspx/P2%20Dev?uc=3&nl=1) and this is only when the P2 is connected via USB; once unplugged it just powers off. If you drop in the correct OF D2 update files, an update screen (or multiple ones?) of the same flavor show up and the light turns red (from the yellow/green); this is easily doable because the device is recognized as a Cwowon D2 USB device with an extra removable drive for the imaginary SD card reader. I know I'm not being very helpful; the short of it is that the Cowon OF runs -- very flaky on the P2, let alone not even having RB boot. I dunno what more help I can be but I'm always open to testing :)
« Last Edit: February 17, 2009, 10:07:28 PM by Noobtaculus »
Logged

Offline kugel.

  • Developer
  • Member
  • *
  • Posts: 271
Re: Samsung P2
« Reply #34 on: February 19, 2009, 12:42:00 PM »
Let me search the IRC logs.
edit: here, http://www.rockbox.org/irc/log-20090125, slyyf was the guy who tried it out. I talked with him over a few days.
« Last Edit: February 19, 2009, 12:52:23 PM by kugel. »
Logged
 

Offline Soaa-

  • Member
  • *
  • Posts: 50
    • Soaa.me
Re: Samsung P2
« Reply #35 on: June 03, 2009, 05:50:06 PM »
Alright so, I'm picking this port back up again. I'll need lots of help though, since I don't have a lot of C experience; not to mention this is some pretty low-level stuff...

So right now I'm just working with the D2 as target, but I'll be splitting my changes off and creating a P2 target once I get some more stuff sorted out. I made some changes to the D2 config file, notably the LCD size. That seems to have changed some things on screen...

I also set the GPIO configuration like the P2 OF does, but that doesn't seem to have changed anything. Changing some flags on the LCD controller did change the picture though, but it's still distorted. The LCD controller H and V clocks should be set correctly, but... everything still seems to be pushed to the blue channel and the picture is stretched horizontally three-fold. It's like it's ignoring the R and G channels. Probably some major difference between the P2 and the D2 panels...

Oh, another thing to note, the subpixels go across the 480 pixels of the screen, not the 272, and Rockbox runs in landscape at the moment.

I couldn't test anything else, as it tells me the battery is empty as soon as it loads up.

Could anyone help me figure out the proper LCD configurations? I've looked through the datasheets for the LCD and the TCC7801 SoC, but I've already changed everything I know, and everything I don't know, well, I left it as-is. :P
Logged
Samsung P2 - port in slow progress (:

Offline AndrewJohnson

  • Member
  • *
  • Posts: 2
Re: Samsung P2
« Reply #36 on: June 05, 2009, 08:11:59 PM »
Quote from: Soaa- on June 03, 2009, 05:50:06 PM
Alright so, I'm picking this port back up again. I'll need lots of help though, since I don't have a lot of C experience; not to mention this is some pretty low-level stuff...

So right now I'm just working with the D2 as target, but I'll be splitting my changes off and creating a P2 target once I get some more stuff sorted out. I made some changes to the D2 config file, notably the LCD size. That seems to have changed some things on screen...

I also set the GPIO configuration like the P2 OF does, but that doesn't seem to have changed anything. Changing some flags on the LCD controller did change the picture though, but it's still distorted. The LCD controller H and V clocks should be set correctly, but... everything still seems to be pushed to the blue channel and the picture is stretched horizontally three-fold. It's like it's ignoring the R and G channels. Probably some major difference between the P2 and the D2 panels...

Oh, another thing to note, the subpixels go across the 480 pixels of the screen, not the 272, and Rockbox runs in landscape at the moment.

I couldn't test anything else, as it tells me the battery is empty as soon as it loads up.

Could anyone help me figure out the proper LCD configurations? I've looked through the datasheets for the LCD and the TCC7801 SoC, but I've already changed everything I know, and everything I don't know, well, I left it as-is. :P

Sounds like you have gotten further then I have...never managed to get the lcd to start properly...Got it started..just not well...I will make a point to be on irc if you want.

EDIT: Oh, actually, sounds like you and I are on the same page.
« Last Edit: June 05, 2009, 08:20:27 PM by AndrewJohnson »
Logged

Offline Soaa-

  • Member
  • *
  • Posts: 50
    • Soaa.me
Re: Samsung P2
« Reply #37 on: June 05, 2009, 10:21:57 PM »
Update, well, not really, 'cause I'll just repeat what I've said on IRC anyway.

I got the LCD timings and settings to work. The picture now shows up undistorted, but is greenish, due to the red and blue channels being interpreted as 6 bits each instead of 5. I'm not entirely sure how I can fix this.

Looking through the OF's disassembly, I found some settings to be modified, but I think I'm still missing quite a bit.

From what I get, the LCD works in rgb666, which is what the LCD controller outputs, but somehow it fails to translate the framebuffer's rgb565 into rgb666 properly. If anyone can investigate that, it'd be real chill. I'll do some looking of my own too.

I'll keep y'all updated. (:
Logged
Samsung P2 - port in slow progress (:

Offline abe16to∞

  • Member
  • *
  • Posts: 1
Re: Samsung P2
« Reply #38 on: November 10, 2009, 07:39:30 PM »
hey every one i think this is the sdk to make it easy to port rockbox into the p2. this link will take you to the download place were the sdk was uploaded for TCC7801 chips
http://thep2zone.com/forum/viewtopic.php?f=9&p=12467#p12467
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 9140
Re: Samsung P2
« Reply #39 on: November 10, 2009, 08:13:52 PM »
Quote from: abe16to∞ on November 10, 2009, 07:39:30 PM
hey every one i think this is the sdk to make it easy to port rockbox into the p2. this link will take you to the download place were the sdk was uploaded for TCC7801 chips
http://thep2zone.com/forum/viewtopic.php?f=9&p=12467#p12467

I think most of that has already been posted to the wiki, but if theres something new in there feel free to add it to the wiki.
Logged

  • Print
Pages: 1 2 [3]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Samsung P2
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.035 seconds with 19 queries.