Rockbox Development > New Ports
Samsung P2
Soaa-:
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
AndrewJohnson:
--- 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
--- End quote ---
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.
Soaa-:
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. (:
abe16to∞:
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
saratoga:
--- 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
--- End quote ---
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.
Navigation
[0] Message Index
[*] Previous page
Go to full version