[019] IT9919 Hacking - part 4 - Diving into the boot-ROM

  Рет қаралды 19,732

OpenTechLab

OpenTechLab

Күн бұрын

Пікірлер: 83
@mph8759
@mph8759 2 жыл бұрын
Extremely well for forensic reverse engineering. I’m tech savvy but not a programmer or electrical engineer, but this is very interesting and educational. Thank you for putting in the time to create this content!!!
@UpcycleElectronics
@UpcycleElectronics 5 жыл бұрын
Thanks Joel. I can't believe you've documented for months without publishing it. That is some serious commitment. I keep encountering these circumstances where I realize I need to suck it up and learn to code right, and with python. Thanks for giving me the clarity and direction to see where I want to develop my skills, and thanks to everyone that can and chooses to support Joel. Seriously, this series has given me a lot to think about. Supporting Joel means enabling people like me, a dude that is disabled from a car hitting me on a bicycle commute to work in 2014. Joel's content has more value to me right now than anything else I've seen on KZbin in a long time, and I have close to 1k subscriptions. So, seriously, thanks to anyone who can and does choose to support this channel. I would throw in a few bucks if I could get the judge to hurry up and get me on disability already. Thanks again, seriously. -Jake
@OpenTechLab
@OpenTechLab 5 жыл бұрын
What a comment! It's such a privilege to have an audience like this. Most of the time engineering is quite a thankless task, working away in obscurity where nobody can see the details of what you're doing. It's a great encouragement to me to be able to share these projects. As for donations: It's only for a small group of people: people who have all the needs of them and their loved ones met, and are well supplied with gear for their own projects, who feel like they want to chip in to help the production. And you shouldn't worry - I already have a solid day job, and I'd still make videos even if there was no donations or ads whatsoever. Why? Because it's fun, and it's a great way to memorialize and share the projects I enjoy doing.
@edgeeffect
@edgeeffect 2 жыл бұрын
This series was one of the best things I've ever seen on KZbin.... I hope you o some more one day.
@tedvanmatje
@tedvanmatje 5 жыл бұрын
With you, Alistair and velociraptor on it's case, I think that smaz's cloak and dagger days are now finite. This series has hit the nail square on the head Joel! Thankyou for this totally inspiring and motivating series mate....you are a legend :)
@razorr1920
@razorr1920 2 жыл бұрын
Loved it man....absolutely amazing and downright finding a needle in a haystack
@LightningTheGod
@LightningTheGod 5 жыл бұрын
You are doing a great job. You deserve much more views!
@avramitra
@avramitra 5 жыл бұрын
I was eagerly waiting for an update! Thanks for sharing your adventure with us. I'm feeling so thrilled as this is the first time I'm witnessing a reverse engineering/hacking journey in (not so) real time. Can't wait fot the day when you (or, we?) become successful uncovering the mystery of this bad boy..
@userPrehistoricman
@userPrehistoricman 5 жыл бұрын
I love rabbit hole digging like this. Do you know of any other channels that do similar videos? I've spent quite a long time REing the instruction set of an old DSP and I wanted to publish something like this - a multi-part series explaining my steps and progress. The motivation has so far evaded me, but seeing similar videos gives me hope.
@im0b
@im0b 5 жыл бұрын
very good job! exited to see this unfold, especially in the community but in the future as well, this might pave the way for hdmi stuff in the make community :D
@bumelant
@bumelant 5 жыл бұрын
I'm a simple man, I see new OpenTechLab video, I click thumb up :)
@joopterwijn
@joopterwijn 5 жыл бұрын
Before viewing the video! (I assume), same here!
@pabloabraham7284
@pabloabraham7284 4 жыл бұрын
Amazing work!!! Please keep doing these videos!!!
@jekader
@jekader 5 жыл бұрын
Suddenly stumbled upon this channel and it's an amazing reverse-engineering project! It's especially interesting to follow the github issue with all the collaboration happening leading to great results. Subscribed and pretty sure the next episode will connect all remaining dots.
@Graham_Wideman
@Graham_Wideman 5 жыл бұрын
Great detective story! I'm hanging on for the bit where you decide to add the Blue Pill to your 3D printed board frame! :-)
@IljaSara
@IljaSara 5 жыл бұрын
"Detective story". The exact words I also describe this series of videos.
@AndriusJankauskasJankiz
@AndriusJankauskasJankiz 5 жыл бұрын
Just watched through the series and Wow! You gained a new subscriber!! Absolutely fascinating process. I'm more of a hardware design guy but dabble in software, mostly unsuccessfully. The tools used in these videos make absolute sense but I would have no idea on where to even start with them. Congratulations on your progress and I am eagerly waiting for the next installment. Any introductory information on where to get started would be greatly appreciated (baby steps, possibly a completely known processor architecture application disassembled and analyzed from HEX to logical functions would be an amazing resource)
@programorprogrammed
@programorprogrammed 5 жыл бұрын
Fantastic, each video gets more exciting
@laneboysrc
@laneboysrc 5 жыл бұрын
This would sure be a great talk at the next Chaos Computer Congress end of the year!
@Grazfather
@Grazfather 5 жыл бұрын
Great work on this! Well explained. With all the tooling you've written, I'm surprised you haven't written a processor module for IDA or a lifter for Binary Ninja.
@leozendo3500
@leozendo3500 5 жыл бұрын
Amazing. This may become like the rtl-SDR chip.
@daviddouard9294
@daviddouard9294 5 жыл бұрын
Hi, have you considered using radare2 for your disassembling process? That would require adding support for this cpu/arch, but it might have made your work easier.
@samthornley
@samthornley 5 жыл бұрын
Amazing work!
@cjxordi
@cjxordi 5 жыл бұрын
Smart ass. I love it. Keep it up. I wish have a time to do such a project.
@cooker5000
@cooker5000 5 жыл бұрын
great content! keep up the great work.
@pipsqueak2009
@pipsqueak2009 5 жыл бұрын
Fascinating- please keep going , and sharing your progress. Thank you!
@pixelflow
@pixelflow 5 жыл бұрын
I've been tinkering with some STM32 binaries lately, radare2 has a global graph with the command 'agC' just like yours! it can export dot and gml. Gephi has some nice graph layouts for visualizing more complex connected graphs!
@giacomo.delazzari
@giacomo.delazzari 5 жыл бұрын
By what you saw, what do you think the DPU could also be used for besides decompression and (presumably) CRC (or the checksum thing, whatever it is)? Seems like it could be an interesting peripheral for when we'll be able to write our own code here. Maybe it's even a bit programmable?
@OpenTechLab
@OpenTechLab 5 жыл бұрын
When we finally unlock the SMAZ compression, we'll be able to see a complete view of the way that all the different IT9910-based products use the registers in their firmwares. Perhaps we'll see more applications for the DPU - or not; perhaps it's just used for booting. Hard to tell
@giacomo.delazzari
@giacomo.delazzari 5 жыл бұрын
@@OpenTechLab right. Thank you very much for all the work you've been doing and the great videos BTW! It's really great content
@birgermonsen
@birgermonsen 5 жыл бұрын
@@OpenTechLab Since the compression used doesn't seem to be any "logical" choice, could they be reusing algorithms in the DPU that are later used for decompressing the HDMI data streams?
@philippelhaus
@philippelhaus 5 жыл бұрын
Quality Video
@DaveHojo
@DaveHojo 5 жыл бұрын
Just saw the ADC/DAC video from 2018 and you mentioned being in CO but having to move. Where are you presently?
@danielegger6460
@danielegger6460 5 жыл бұрын
Co-operative mode could be bitstream via SPI/UART which would be useful if this chip is used as a companion in a slightly more powerful setup, e.g. a settop-box.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Reading the data-sheet, it appears that the SPI port has direct access to the entire memory space including all the peripherals. In other words, it's possible to completely configure the processor without involving the CPU. Perhaps co-operative means - downloading the firmware through SPI at boot, OR running the chip without any firmware at all.
@giacomo.delazzari
@giacomo.delazzari 5 жыл бұрын
@@OpenTechLab I thought co-operative mode had something to do with the other IC reflashing the FW if the checksum doesn't match. Have you found where's the code that communicates with the other processor and reads back the "right" firmware? I know it's really not important, but just out of curiosity
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Certainly I think it has something to do with it. Though I haven't dug into that part yet. There is one SPI bus between the two processors, but it's not used to transfer firmware just to poll some registers
@danielegger6460
@danielegger6460 5 жыл бұрын
The addresses and terminology used in the memory map descriptions look very ARMish.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Yes - it uses the AHB bus, which is an ARM thing.
@sdjhgfkshfswdfhskljh3360
@sdjhgfkshfswdfhskljh3360 5 жыл бұрын
If you have ability to dump uncompressed firmware, then you can start analyzing it even without complete knowledge of compression algorithm. Maybe inteleaving the uncompressed data with literal control codes and patching of CRC check is enough to make it work. Or am I wrong?
@edgeeffect
@edgeeffect 5 жыл бұрын
I seem to have missed something here.... I thought that only a couple of opcodes for the RISC processor had been worked out, but here you seem to be disassembling the entire boot ROM. Where did I miss "us" finding out what all the opcodes are??????
@OpenTechLab
@OpenTechLab 5 жыл бұрын
In part 3 at 10:19: kzbin.info/www/bejne/iYOaqpt8ntSKrck . After I published it, based on the instructions I'd found someone commented that this appears that this is OpenRISC or1k
@edgeeffect
@edgeeffect 5 жыл бұрын
@@OpenTechLab Riiight! I've missed a whole episode (I've been in hospital :/ ). Not keeping my nose glued to my "subscriptions" box on KZbin. Thanks for the quick response. This has been a fascinating journey so far.
@jaro6985
@jaro6985 5 жыл бұрын
@@edgeeffect Go to your subscriptions feed page, grid view is preferred, scroll to the bottom, once you've watched or don't want to watch a video click the "Hide" button. Then move on to the next oldest video.
@scooserver
@scooserver 5 жыл бұрын
Any progress with this?i love this device it would be great to have custom firmwares :) thanks for your efforts :)
@Graham_Wideman
@Graham_Wideman 5 жыл бұрын
19:20 Makes viewers aware they've been using Intel processors too long when it's so hard to read 4-byte quantities written in "normal" MSB first order! Hahahaha
@SimonCoates
@SimonCoates 5 жыл бұрын
I wonder if the techs at ITE are watching, willing you to progress and crack it, or are just pissed off?
@H12-q7x
@H12-q7x 5 жыл бұрын
they're watching studying how to protect their IP in future products
@SimonCoates
@SimonCoates 5 жыл бұрын
@@H12-q7x - I was thinking the same 👍
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Or studying how to better hide the fact that they used patented or tradmarked technology without paying royalties?
@nicholasroos3627
@nicholasroos3627 5 жыл бұрын
​@@OpenTechLab more likely!
@ghwizz
@ghwizz 5 жыл бұрын
@@OpenTechLab agreed - but the whole patent / IP system is broken - at least in the sense that the way it works isn't what's written on the tin! The fundamentals are that having IP gives you a few years headstart - after that it becomes shared. If it's useful enough ways will be found to deploy it widely.
@goosenp
@goosenp 5 жыл бұрын
Which version of the LKV373A do you have? (I see an version 3 of the device on eBay already) Oh, you mentioned that you managed a 0.2S latency on this device, how were you able to achieve that?
@bxhome
@bxhome 5 жыл бұрын
Amazing skill! it is like breaking enigma code. Good luck!
@lo2740
@lo2740 5 жыл бұрын
Do you have the complete document for ITE9856-9910-9800-9917寄存器定义? it is over 14 pages long..
@matisec3413
@matisec3413 5 жыл бұрын
Excellent piece of reverse engineering! can't wait for the next episode.
@MickeyD2012
@MickeyD2012 5 жыл бұрын
You should get it to run Pong and Doom.
@metaforest
@metaforest 5 жыл бұрын
You are going to need to buy some replacement SPI FLASH chips soon. They aren't designed to get hammered on with 1000's of writes like you are doing. One thing you might look at is building a FLASH emulator. The BluePill could act as your SPI slave emulation. The bluepill maintains a list of patches in RAM and applies them on the fly as the target requests data from the FLASH. FLASHBluePill Target This would speed things up as well. No need to rewrite the Flash image for every test. You would have one Flash image fixture and just change the dynamic patch for every test.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
I'm actually not reflashing the flash chips, just modifying the flash burner routines built into the upgrade package - which gets loaded into RAM through the device web server, so that it runs the test code that I patch into an unused area of the upgrade package. Otherwise, yes I probably would build something like what you're suggesting
@leisergeist
@leisergeist 5 жыл бұрын
Brilliant work as always. Is your intelligence open source too? I need some of that, lol. Wish I had the smarts to help with this kind of stuff.
@nxxxxzn
@nxxxxzn 5 жыл бұрын
is there an offline FLOSS alternative to binvis.io?
@OpenTechLab
@OpenTechLab 5 жыл бұрын
I don't know of one that matches binvis, but I would be very happy if there was. It seems to me that it would be possible to take the binviz concept and extend it in many ways. Would be a nice little project for someone, I think
@userPrehistoricman
@userPrehistoricman 5 жыл бұрын
It's probably all client-sided so you could just save the page and make a couple of mods to make it fully offline.
@Asdayasman
@Asdayasman 5 жыл бұрын
@@OpenTechLab Have you seen that one that xoreaxeaxeax made but never released? That seems like an amazing blueprint to work from.
@kalj7
@kalj7 5 жыл бұрын
In several videos, you've referred to your Rigol Ds1054z as a "200 MHz oscilloscope". Why is that? I know that one can "hack" them to increase their capabilities, but AFAIK that only increases the bandwidth to 100 mhz, no?
@franciscolameira950
@franciscolameira950 5 жыл бұрын
You're right. No DS1054Z can do 200MHz.
@srlorch406
@srlorch406 5 жыл бұрын
So you found out how to pass the checksum with the all ones trick(minute 20) but you havent actually tryed it? You just tryed to understand how the checksum is made. did i understand that correctly?
@DAVIDGREGORYKERR
@DAVIDGREGORYKERR 5 жыл бұрын
Could it be RLE (Run Length Encoding)
@goosenp
@goosenp 5 жыл бұрын
Wow, more amazing progress! I hope someone in the community figures out the rest. What software do you use for editing videos on Linux?
@OpenTechLab
@OpenTechLab 5 жыл бұрын
I've been using kdenlive for every video so far. It does the job, but it's a bit glitchy in places. I'm thinking of trying out the NLE in Blender, now that they've done so much to improve the UI.
@Rooey129
@Rooey129 5 жыл бұрын
Love it!
@superBert1983
@superBert1983 5 жыл бұрын
I love such content, and really am very interested in being able to do such things. Can anybody tell me where I should start to learn this? It is a combination of both electronics and writing code. I have no background in IT or engineering, I only know how to sail with a ship :(
@ghwizz
@ghwizz 5 жыл бұрын
I would say find a simple thing you want to have - to scratch your itch - and research how to make your project. esp32 plus sensor of your choice. Go start making!
@AntiRobotCommittee
@AntiRobotCommittee 5 жыл бұрын
what is the IT9919? I've googled it but no info really. at least nothing that I can understand. Its some sort of chip?
@Tangobaldy
@Tangobaldy 5 жыл бұрын
92 likes 0 dislikes, amazing stats
@H12-q7x
@H12-q7x 5 жыл бұрын
looks like someone disliked it after reading your comment xD
@skipper1st216
@skipper1st216 5 жыл бұрын
I found a thread about SMAZ stackoverflow.com/questions/33331552/how-smaz-compression-library-works
@Goldenkrew3000
@Goldenkrew3000 5 жыл бұрын
Heyyyyyyyy 15th like lol And third comment
@OlivierLatignies
@OlivierLatignies 5 жыл бұрын
Very nice reverse engineering.
@nancyzhang6447
@nancyzhang6447 5 жыл бұрын
We have a 3d printer that we want to promote, are you interested?
[020] LKV373 Update - GCC for the IT9919
40:12
OpenTechLab
Рет қаралды 14 М.
[016] IT9919 Hacking - part 1 - Reading firmware with flashrom
32:55
UFC 287 : Перейра VS Адесанья 2
6:02
Setanta Sports UFC
Рет қаралды 486 М.
Intro to Hardware Reversing: Finding a UART and getting a shell
12:07
Tony Gambacorta
Рет қаралды 906 М.
Samy Kamkar's Crash Course in How to Be a Hardware Hacker
28:07
How We Hacked a TP-Link Router and Took Home $55,000 in Pwn2Own
17:44
Flashback Team
Рет қаралды 384 М.
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 596 М.
[017] IT9919 Hacking - part 2 - Hunting for Checksums
13:07
OpenTechLab
Рет қаралды 18 М.
[008] Prototype Enclosures with FreeCAD & OpenSCAD
43:14
OpenTechLab
Рет қаралды 120 М.
Introduction to Firmware Reversing
11:32
Tony Gambacorta
Рет қаралды 313 М.
Nintendo Switch (NVIDIA Tegra X1) - BootROM Vulnerability
16:08
LiveOverflow
Рет қаралды 173 М.