-
Notifications
You must be signed in to change notification settings - Fork 11
Poking at the Tesla Model 3 MCU and a closer look at its eMMC #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
A fresh eMMC chip is the way to go. Excited to see updates. |
reballing emmc chip is easy-peasy if you have the right tools. unfortunately I am not aware ofthe right tools for this particular size. For different sizes - this is great: https://www.aliexpress.com/item/32848783273.html?spm=2114.12010608.0.0.60c223f29ykGr5 |
Also, now do the MCU2 ;) |
Interesting, waiting for your update |
If you can find the Intel SOC reset pin then you will be able to do in-circuit access. |
Nice excited here :) |
Wow! exciting! great work and looking forward to the next bits! Have you already extracted the eMMC dump? |
No. There is a longer answer to it, I should flush my brain into another post... 😅 |
Please do! |
Did you manage to trigger it in-circuit? |
Apparently there is an easier way to access the ethernet port: https://teslaownersonline.com/threads/ethernet-port-in-driver-footwell.15045/ |
Did anyone connect the hw3.0 mcu to the display yet? |
yes |
I've just plugged my laptop into the ethernet port on the cid/ice, and set my network adapter's IP with |
unfortunately only port 8080 is open |
Can enter factory mode ? |
Hi,could you please tell me where is the vccq in PCB? |
Hi @lemuellew, it is my understanding that the SPI flash is also encrypted as of 2020.40, but I need to confirm this with another source. If you plan to change the configuration of the car, things are getting more and more complicated, specially for the Intel MCU. The nVidia MCU is still accessible, but not for long: Tesla is quite determined to close the holes. Good luck in your endeavours. |
what do you want to do in this way? |
starting from 2020.36, all firmware is encrypted, including tegra. starting from 2020.48, gateway has received additional "internal.dat" protection. |
Tegra never crypt anything, daont have enough power to make that. |
There is a cryptographic lock in some entries of the gw configuration, even in tegra. Rooting with full access to the gw is possible up to 2020.36 on tegra. From that on you might no be able to modify all the options in the gw.
The filesystem in the eMMC is not encrypted in tegra, as far as I know.
… El ene. 28, 2021, a las 01:56, zrachwal84 ***@***.***> escribió:
Tegra never crypt anything, daont have enough power to make that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I think you should be able to do that. I don't know where in the board you need to pit your probes.
Maybe you could find an update and extract from there the gw firmware. I'm feeling that would be easier.
… El ene. 28, 2021, a las 02:24, Lemuel Lew ***@***.***> escribió:
Thank for your reply.
I tried to find where the SPI flash on PCB, and I found the chip(RW229) on the right of eMMC. I know it is MT25QU128ABA8E12-0AAT via micron FBGA decoder.
Because MT25QU128ABA8E12-0AAT matches MT25QXXXXXXX8E12-XXXX, I found the pinout of SPI flash in datasheet. According to the data pins, you can use flashrom or other flash programmers to read the SPI Flash. Could you please tell me where are the data pins on pcb? @jeankalud @lewurm
what do you want to do in this way?
Hi, I want to read the firmware of SPI Flash.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
@lewurm do you remember whether you were able to make outbound requests to the internet via LTE modem while connected to the car's ethernet port, and properly configured the local gateway and subnet? |
@7752669 enter "service" into the access code box at a service center (or anywhere in europe) |
Service not working in my Tesla m3 21y |
It does not depend on the model year of the car It's all about what version of the firmware is currently installed on your car At the moment, the most open version of firmware 2021.24.4 on it, it is possible to enter the diagnostic mode through Dyno Mode look here: https://www.youtube.com/watch?v=_25PEiSkHl4 |
I have sw 2020.48.35.5 and it's not working ( |
Yes, you need to wait for 2021.24.4 and not update anymore |
@lemuellew were you the one who asked where the SPI pins were exposed on the PCB (but then deleted it, so it now only shows up in @stiffler-m 's quote above)? If so, did you ever find this out? And if not, @jeankalud, you seem highly capable :), any chance you could post it? |
@Igor251263 I'm on 2022.12.3.5 and neither "service", "dynotest", or "wormhole" (if that's what you were implying) seem to work anymore. Is there any new magic commands? |
@jsssssssssss You need to be on exactly 2021.24.4, when you enter "dynotest" on that SW version, QtCar glitches (maybe intentional idk) into Developer Mode and you can access all those options.
|
Would anyone happen to have an eMMC & matching NOR Flash dump of an older MCU2 and/or M3 MCU |
Previous related posts: #1 and #3.
As I mentioned in the last post I got some LEDs blinking. Before I present the findings, I should first outline some parts on the MCU board:
CID
and the ethernet portJ15
of the MCU board (justification see below).CID
: Intel Atom E3950 with some RAM chips (4GB?).gateway
: SPC5748GSMMJ6, a smaller chip with a PowerPC e200 core. It bridges the CAN interfaces to the ethernet world.J21
"FTDI USB DEBUG"Enter the serial console to the CID
Connecting the FT4232HQ to a computer will yield four serial devices. It looks like only the first device is hooked up with the Intel SoC, the others seem disconnected. Why Tesla hasn't chosen a cheaper FT232R is beyond my understanding (maybe the other three are connected?!). Anyway, here's the first stuff I saw:
WOOT!
And also: Amazingly I get a Google hit for it: https://pastebin.com/DbPAunKV Unfortunately I don't know the CID credentials. That would have been too easy, right? 😉
Wiring up the Ethernet port
I connected the ethernet port to a PC; the last time (see #1) I did that on my actual car, I wasn't aware of the apparently common network scheme used by Tesla vehicles:
Since I'm dealing with a Model 3 board, I set the IP of my ethernet adapter to
192.168.90.101
. I was a bit surprised, something is happening:Okay, there is an open SSH open which doesn't even prompt for a password. That's a dead end for now. BUT WAIT, WHAT IS HAPPENING ON 8080?!
That is interesting. Unfortunately each item fails and doesn't do anything interesting. On the developer network tab I see this JSON response:
Still, that could be an attack vector, although it's probably hard even when having the server side Python program available. I wonder why Tesla left that port open. Maybe the MCU was put into some kind of reset after the car crash happened?
Anyway, here is the client side source code if anyone is interested: https://gist.github.com/lewurm/63fc5bd4e2591a677b298e2bc277d28a
Circling back to my actual car
With that gathered knowledge I went back. Remember this post #1? I have an ethernet port conveniently exposed on the passenger side. Again, I configured my ethernet adapter to
192.168.90.101/24
, and here we go:The same test menu is available there too! (Software version
2019.24.4 73fb1ab
)WOAH. So now I really wonder what this is all about.
Obviously I tried clicking something; as you can see something harmless like "Calibrate Camera". Nothing happened: A look at the developer network tab gave me this::
{error: "Token 2.0 not found."}
That is weird. Why is the response different here to what we have seen on the salvaged MCU? The excited part in me want the following to be true: There was an vulnerability that has been fixed in newer software versions. (Meh, but why would they still leave that port open?!).
Here is a port scan (alas only as a picture 😴 ):

There is a slight difference: The car has one hostkey less. Wut?
No idea, moving on for now.
Poking at the gatway (unsuccessfully)
I remembered reading this instruction at https://github.com/Lunars/tesla/wiki/Gateway-Shell
Unfortunately this didn't work on the both MCUs. There was however some weird behavior: If I would do this
socat
command right after the reset of the MCU it would wait for some timeout. After the MCU was up, thesocat
command was immediately rejected; maybe some rules on the ethernet switch have been set up by this point? Does that make sense?No idea, but it was worth a try.
Where do I go from here?
Initially I didn't want to dump the eMMC, but having this login prompt on the serial console only a
/etc/shadow
-crack away it is really intruding now.One way to attempt an eMMC dump would be to figure out the pins (see datasheet too):
There are eight data pins (
D0
would be sufficient. Slower, but who cares for a one-time dump?).CMD
,CLK
andVcc
. Figuring out those pins is not exactly straight forward, and as I already said, I'm kind of a hardware noob.At the same time I was following a thread in the German "TFF" forum about replacing the eMMC on the Model S/X MCU. As commonly known Tesla's software does not treat them nicely and they can wear out after some years leading to corrupted blocks. The problem as of today is that the service center won't replace just the eMMC but the whole MCU and that's expensive. Bottom line: People successfully attempted to swap the eMMC on their own.
So it cannot be that hard, right? After googling around I found a shop not far away from my place who are happily dealing with BGA soldering. I gave them a call and they were up for it; cool folks!
😬
My plan now:
That said, there is still a slight change that the eMMC is encrypted, so better not getting too excited yet (although rumors say it's not). In the meanwhile I will practice my patience until the eMMC reader arrives from China.
Bonus: Pinmapping for eMMC storage
With the eMMC storage removed I was able to trace the pin layout. Maybe it's useful for someone out there.
The text was updated successfully, but these errors were encountered: