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

Offline avh

  • Member
  • *
  • Posts: 4
Samsung P2
« on: February 01, 2008, 04:00:32 PM »
I think that Rockbox could be ported to the P2. Wikipedia has some basic info http://en.wikipedia.org/wiki/Samsung_P2. It uses the same chipset as the Cowon D2 and is also a touch screen based player.

Here are some of the specs:
System-On-Chip: Telechips  TCC7801
 ^^^TCC7801 / OOCX-YNR-UG / NORDBM.06.1 / 0740

32Bit Dual Core
ARM926EJ-S / ARM946ES
(16k/16k Cash, up to 192MHz)

H/W Video Accelerator
MPEG 1/2/3/4, H.264, divx4/5, wmv9, JPEG Support

Support WMA/MP3/ADPCM Encoding

Codec chip says: WM1808G / 79AABCR

Codec Wolfson - WM1806G

Storage (4GB model): Samsung 743 / K9HBG08UIM / PCB0 / CSIG40P1

NEND Flash memory
Samsung - K9 LAG08U0M (8GB Model)
Density 2~16GB(MLC DDP)
VCC 2.7V~3.6V

Bluetooth: BCM 2048 / SKU FBG / CN 0739 P11 / 839757835

Bluetooth 2.0+EDR and FM radio
Broadcom - BCM2048
Blutooth 2.0
Support class 1 and 2 designs
1.65V ~ 5.5V
FM + RDS 76Mhz to 108Mhz

SDRAM http://www.eorex.com/DRAM/SDR-em488m3244LBA.htm : EOREX 0745 / EM488M3244LBA  -75P

EOREX - EM488M3244LBA
256MB (2M*4Bank*32)
Synchronous DRAM
Organization: 8MB * 32
Max Freq: 133MHz @ CL3
Single 1.8V Power supply

The p2 updates it's firmware with YPP2.rom and YPP2.RSC files. There have been two firmware updates and another is planned for march. All firmwares appear to be unencrypted.
I've disassembled it and got some pcb scans. They are low quality though because things sticking out of the board raised it and brought the important parts "out of focus". I can probably take some digital photos of the boards if anyone wants them though. There is also a video disassembly Here: http://www.engadget.com/2007/10/21/live-nude-daps-samsung-p2-and-t10-dissected-on-video/
(T10 also disassembledon this page)
I don't have any C coding experience and I wouldn't know how to port Rockbox to the P2, but I thought I could help by gathering info. Info learned from possible other ports to Samsung devices may help (such as structure of update files) as well as info from D2 port being attempted. I looked at the firmware in a hex editor and compared it to the D2 firmware, they llook sort of similar and both begin with "Ver:0071". Do any developers own a p2?
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Samsung P2
« Reply #1 on: February 01, 2008, 04:36:27 PM »
First, if you're serious about a port you should put static data and info such as this in the wiki, as all other ports are made.

Then, join in the cowon D2 thread here in the forums and try their initial test code to work out how similar they are etc.

Finding existing owners of this target is a good idea, but thinking you'll find many among existing rockboxers is not, Ask around in forums where owners of this device hang out and try getting them to join up here!
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Samsung P2
« Reply #2 on: February 01, 2008, 06:55:23 PM »
Well, the SoC and NAND flash look to be the same as the D2, so that should give this port a good headstart if someone decides to take the plunge. The key information missing from your post is the type of LCD used, and whether this player has a "USB boot mode" similar to other Telechips-based players.

I think there are a whole raft of potential ports now that we have code running on the 7801 (eg. iRiver Clix 2 is another potential target). But somebody who owns the device, with plenty of dedication (and a good ARM disassembler :D) needs to step forward before any porting can begin.
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #3 on: February 04, 2008, 06:50:15 PM »
I have a P2 and a service manual for it as well, with a schematic diagram, a complete electronic parts list, and a Telechips firmware recovery tool that may be useful.    If anyone wants these docs, just PM me and I'd be happy to zip the whole mess up and email it,  but I'm reluctant to post them in the wiki.
« Last Edit: February 04, 2008, 07:49:33 PM by bwbass »
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #4 on: February 04, 2008, 10:50:36 PM »
Better yet, here are links to the docs from Samsung's site:

Cover - YP-P2-e-0-cover.pdf
Product Specifications - YP-P2-e-2-spec.pdf
Disassembly & Reassembly - YP-P2-e-3-disas.pdf
Troubleshooting Guide - YP-P2-e-4-troub.pdf
Exploded View and Electronic Parts List - YP-P2-e-5-eplit(Ver2.0).pdf
PCB Diagram - YP-P2-e-6-pcb.pdf
Schematic Diagram - YP-P2-e-7-sdiag.pdf

Recovery Program and Update Method - YP-P2.zip
« Last Edit: February 04, 2008, 11:10:04 PM by bwbass »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Samsung P2
« Reply #5 on: February 05, 2008, 06:38:49 AM »
The "recovery program" is a copy of FWDN, taken directly from the Telechips SDK. The accompanying .inf file suggests the P2 has the same USB Device Id as the Cowon D2 (140e / b011) when in USB boot mode.

Personally I wouldn't touch FWDN - for uploading code to the device it should be straightfoward to update Tcctool to work with the P2. This allows the device to be booted over USB: no flashing required.

The "Troubleshooting Guide" suggests that USB boot mode can be entered by holding POWER while connecting the USB cable and pressing RESET. If this works, the device will connect as an unknown USB device, with the above Device Id. Can anyone confirm?
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #6 on: February 05, 2008, 09:40:05 AM »
Ok, when I do that in Windows XP, it does connect as an unknown device, and the Device Manager shows a Device Instance ID of: USB\VID_140E&PID_B011\5&A55C780&0&4
« Last Edit: February 05, 2008, 09:47:06 AM by bwbass »
Logged

Offline shotofadds

  • Developer
  • Member
  • *
  • Posts: 368
Re: Samsung P2
« Reply #7 on: February 05, 2008, 10:40:33 AM »
You'll need to find out what the LCD panel is, and how to power it on/off (ie. datasheet and/or disassembly of the Samsung firmware). Apart from that, I would think much of the D2 code so far should be re-usable.
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #8 on: February 05, 2008, 11:08:25 AM »
The parts list identifies the LCD like this:
  • AH07-00213A
  • LCD;A030FL01,YP-P2,##,113.12X43.8X
  • LCD
.  
I take it from the way the list is formatted that the model of the LCD is A030FL01

Update: The Samsung part number is AH0700213A
Here's a link to this part for sale: http://www.partstore.com/Part/Samsung/Samsung/YPP2JABY/Samsung/Samsung/AH0700213A/New.aspx

Google has nothing to say about that - seeing as this is Samsung, I wonder if this is their part, built just for this player.  I'll dig some more, and have a look at the firmware.  If anyone else has info about the LCD please chime in!
« Last Edit: February 05, 2008, 02:17:02 PM by bwbass »
Logged

Offline avh

  • Member
  • *
  • Posts: 4
Re: Samsung P2
« Reply #9 on: February 06, 2008, 09:31:00 AM »
In response to your PM bwbass, here is what I found on the LCD:
     ICA ichia <->3
     94V-0 0727
     54.20015.111
This was on the cable connector going from the LCD to the board, and i googled the company "ichia" and it seems they may have just made the connector.

On the metal housing of the LCD:
40S07103C000XX0050354
59.03A12.003 070929

I don't know if these help, I looked on the LCD for other information and there really wasn't much there. If you think it will help or can tell me what to look for I can look again.
« Last Edit: February 06, 2008, 09:33:21 AM by avh »
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #10 on: February 06, 2008, 01:01:21 PM »
Yep, looks like that's the kind of thing Ichia makes: http://www.ichia.com/eng/products/products_3.2.1.htm

At least publicly, Samsung doesn't market a 6-bit 3" LCD panel.  The docs say the interface is 18-bit RGB with a 3-wire register setting and that the panel is rated for 300 nits, but that's about all I know.

There's a section of the firmware with strings that say "LCD Gamma", "LCD Brightness", "LCD Test", etc. that suggest display utility functions exist, but I'm not not much use at disassembly...
Logged

Offline avh

  • Member
  • *
  • Posts: 4
Re: Samsung P2
« Reply #11 on: February 06, 2008, 07:14:45 PM »
I'm trying to get tcctool working with the p2. I added the correct "magic value" from the FWDN recovery program posted by bwbass to the source code and compiled, then plugged in the p2 and put it in usb boot mode and ran lsusb to confirm it was in usb boot mode. I then ran tcctool and load the p2 firmware,  here is the output:

     [INFO] Using device "Samsung YP P2"
     [INFO] Searching for TCC device...
     [INFO] Found TCC device, uploading application.
     [INFO] Patching application uploaded successfully!

tcctool says it has uploaded successfully, but the p2 is unresponsive, looks like it is off, and does not show up in lsusb. Here is what I added to the tcctool source code:

    {"samsungp2",  "Samsung YP P2", 0xb011, 0x20000000, 0x52E92410 },

Am I doing something wrong?

EDIT: I should have said "the p2 is unresponsive, looks like it is off, and does not show up in lsusb" until I unplug or reset it (i.e. my p2 is not bricked, tcctool just isn't doing what it is supposed to).
« Last Edit: February 07, 2008, 10:08:09 AM by avh »
Logged

Offline bwbass

  • Member
  • *
  • Posts: 16
Re: Samsung P2
« Reply #12 on: February 07, 2008, 09:02:48 AM »
Can you re-enter firmware update mode with power+reset and use FWDN to recover?
Logged

Offline linuxstb

  • Developer
  • Member
  • *
  • Posts: 1163
Re: Samsung P2
« Reply #13 on: February 07, 2008, 01:42:16 PM »
Quote from: avh on February 06, 2008, 07:14:45 PM
   {"samsungp2",  "Samsung YP P2", 0xb011, 0x20000000, 0x52E92410 },

Where did you get the 0x52E92410 from?  That's the SDRAM CFG register value, and you've taken the same as my Logik DAX MP3 player - which has 2MB of RAM.  I'm guessing the P2 has more than that...

Looking at the PDF file 20080124141056359_YP-P2-e-4-troub.pdf, this has some screenshots of FWDN.exe running - and displays an SDCFG value of 0x13E92028 (page 19).  Try that.

Dave.

EDIT: Those screen shots also contain the value 0x30000000 - so if the above doesn't work, then you could also try changing the SDRAM address in tcctool from 0x20000000 to 0x30000000.
« Last Edit: February 07, 2008, 01:45:20 PM by linuxstb »
Logged

Offline avh

  • Member
  • *
  • Posts: 4
Re: Samsung P2
« Reply #14 on: February 07, 2008, 03:32:45 PM »
Yes! I got it!

Linuxstb, the number I used before was from FWDN (under wine). After seeing the screenshot you mentioned, I decided to look around more, and in the options menu you can change the target SDRAM size; I changed it to 32M-32bit 0x20000000, which gave me the number: 0x22E92010. and it worked.

So here is the entire line:

    {"samsungp2",  "Samsung YP P2",              0xb011, 0x20000000, 0x22E92010 },

This works, but if someone is going to try this you have to unplug the usb right after tcctool says:
[INFO] Patching application uploaded successfully!
Otherwise the firmware detects the usb and just goes into file transfer mode.
Logged

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

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

Page created in 0.202 seconds with 22 queries.