eMMC flash reading/writing

Samsung's BluRay player related hacks.
Post Reply

sbav1
Official SamyGO Developer
Posts: 374
Joined: Fri Jan 15, 2010 10:20 am

eMMC flash reading/writing

Post by sbav1 »

I wonder if it may be in fact possible to access eMMC flash chip contents (Samsung is using eMMC flash, instead of OneNAND, more and more often in their recent devices) without desoldering it from the mainboard.
Using 1-bit eMMC mode, it should (in theory) require just 4 wires (CLK, CMD, DATA and GND). Of course the main problem is to find where exactly connect three of those wires ;). So far I'm unable to identify any obvious places/test pads/etc. for that in eMMC closest neighbourhood. There are some suspiciously-looking small solder points (five in a row) just below eMMC chip, but they seem to be not connected to anything else.. Any thoughts?
You do not have the required permissions to view the files attached to this post.
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: eMMC flash reading/writing

Post by oga83 »

I have already looked at these pads with a magnifier, and they don't seem connected.
It might be fiducial patterns (to calibrate SMD pick&place machines) altougth I've never seen such ones before.
As the eMMC chips seem to be BGA packaging, it requires very accurate positionning that could explain these fiducial patterns close to them.

[EDIT]Anyway, there must be a mean to read/write the eMMC one they are in place. I would be surprised if these chips were programmed before pick&place...
AFAIK, they are not jtag compliant, so if jtag is used for this, it must be through the SoC.
fiducials.jpg
You do not have the required permissions to view the files attached to this post.
E3V3A
Posts: 247
Joined: Wed Oct 31, 2012 2:31 am
Location: /dev/zero

Re: eMMC flash reading/writing

Post by E3V3A »

There's no telling what those 5 solder points are connected to, because of the multilayer PCB. You'll just have to measure on them.

Reading/writing eMMC's can be very tricky, especially if they have enabled read protection or other on-device security features. In this case I doubt it. However, there are software tools for this, but I have never used them. (But we need them for Mobile phone bootloader unlocking!)

Check these:
http://patches.linaro.org/project/linux-mmc/
http://git.kernel.org/?p=linux/kernel/g ... ;a=summary
https://kernel.googlesource.com/pub/scm ... mmc-utils/

It would be nice to include these into out ARM hacking-toolkit!
HW: UE40ES5700SXXH
FW: T-MST10PDEUC-1029.0 Onboot: 1003
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: eMMC flash reading/writing

Post by oga83 »

E3V3A wrote:There's no telling what those 5 solder points are connected to, because of the multilayer PCB
Even on a multilayer PCB, you need vias to go from one layer to another one. They can be buried for internal layers but not for external ones.
No vias and no tracks in this case, so no connection.
These are definitely fiducial marks.
E3V3A
Posts: 247
Joined: Wed Oct 31, 2012 2:31 am
Location: /dev/zero

Re: eMMC flash reading/writing

Post by E3V3A »

oga83 wrote:...Anyway, there must be a mean to read/write the eMMC one they are in place. I would be surprised if these chips were programmed before pick&place...
They are programmed with the mmc-tools mentioned above, AFAIK. If you wanna directly hack into the eMMC communications from PCB, you'd have to:
1. find the schematics of the same chip you're interested in, or derive the signals in some other way.
2. find the driver sources related to that chip so that you know what signal to inject / expect...
3. It may be hard to inject signals while being connected to other components, for obvious reasons.

PS: Most high-end ARM SoC's have secure JTAG implementation through TZ, so that is not a guarantee...although very unlikely to be implemented on a TV set.
HW: UE40ES5700SXXH
FW: T-MST10PDEUC-1029.0 Onboot: 1003
oga83
Posts: 268
Joined: Sun Mar 18, 2012 10:11 pm
Location: France

Re: eMMC flash reading/writing

Post by oga83 »

E3V3A wrote: Most high-end ARM SoC's have secure JTAG implementation through TZ, so that is not a guarantee...although very unlikely to be implemented on a TV set.
JTAG is implemented on BD-E :
Image
AFAIK, eMMC does not support JTAG. So if memory can be accessed with JTAG, it is only through SoC.
I made a few tests, all of them unsuccefull :(
E3V3A
Posts: 247
Joined: Wed Oct 31, 2012 2:31 am
Location: /dev/zero

Re: eMMC flash reading/writing

Post by E3V3A »

Sorry, I was not being clear. What I meant was that secure JTAG is probably not implemented. Of course nearly all modern ARM based electronic contain JTAG functionality, since it's built-in to the ARM processor.
HW: UE40ES5700SXXH
FW: T-MST10PDEUC-1029.0 Onboot: 1003
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: eMMC flash reading/writing

Post by juusso »

We still miss report about successful jtag`ing on samsung tv mainboards.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE

Post Reply

Return to “BluRay Players”