[016] IT9919 Hacking - part 1 - Reading firmware with flashrom

  Рет қаралды 76,095

OpenTechLab

OpenTechLab

Күн бұрын

In this series I will be hacking around with the IT9919 media processor that powers the Lenkeng LKV373 HDMI Extender Device and the EZCAP 283S which were reviewed in previous videos.
In this video I will show some tools and techniques for reading and writing to flash chips with the flashrom open-source flash-reader software and “Blue Pill” STM32F103 board
Show Notes: opentechlab.org.uk/videos:016...
Twitter: @OpenTechLabChan
Mastadon: @opentechlab@mstdn.io
SubscribeStar: www.subscribestar.com/opentec...
PayPal: www.paypal.me/opentechlab
Bitcoin: 18CU9LxwRuiLHy9HsuMj2vzobbW4J3QVC2

Пікірлер: 131
@ariedemuijnck
@ariedemuijnck 5 жыл бұрын
Thanks for this good tutorial! On the STM32 bluepill you do not need to first remove the 10K resistor - just solder a 1K8 resistor on top of it. The parallel resistance then comes to 1K5. This gives less risk of damaging the board.
@alusiamilkowska
@alusiamilkowska 5 жыл бұрын
One trick you can use to read flash in circuit is to keep on board processor in reset state. When in reset most of the pins are in high impedance state, and obviously application processor will not interfere.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
That's a good idea. I never tried that before
@vupham5745
@vupham5745 3 ай бұрын
Can you please tell me how to do it? a tutorial for example. Thanks
@ghesil
@ghesil 5 жыл бұрын
YEY! welcome back. At work now but can't wait to see it!
@SteveMHN
@SteveMHN 5 жыл бұрын
I'm so pleased you're back, I really love your channel and was worried you had given up on YT. Another interesting video btw, like the rest.
@NumosG
@NumosG 5 жыл бұрын
I really enjoy your videos. So well presented and clear structure. And also so many Open Source ideas and lots of tools for our toolbox. Didn't know about that serial firmware, never thought something like that would even exist. Looking forward to any progress on this very cool project.
@leisergeist
@leisergeist 5 жыл бұрын
ooh, fascinating! can't wait to see how this goes also, welcome back
@tedvanmatje
@tedvanmatje 4 жыл бұрын
Great stuff man! It'll be interesting to see what the outcome will be - especially when you introduce a fpga into the mix (that's worth a whole mini-series on it's own,btw) Thanks for posting this brainfood mate!
@TheAnilmaddala
@TheAnilmaddala 5 жыл бұрын
Welcome Back! I am learning a lot. Keep up your good work.
@RemcoStoutjesdijk
@RemcoStoutjesdijk 5 жыл бұрын
Have to love it when you talk for 30 minutes about a device and 5 boards all of which I have lying around. Instead of a hoarder I now feel 1337 :)
@ligius3
@ligius3 5 жыл бұрын
The only thing that's missing from mine is the mod wire. Don't know which one to buy, I assume there must be something like 32AWG single-strand, but there are just so many to choose from. Would love a link or a description from some AliExpress item.
@adithyayuri
@adithyayuri 5 жыл бұрын
Good to have you back. Waiting to see how this goes.
@pandarojodronero2919
@pandarojodronero2919 5 жыл бұрын
you are alive. i found your channel a few weeks ago. its really interesing
@chrisleech1565
@chrisleech1565 5 жыл бұрын
Very interesting project. Love the separation of the Winbond. Code is a little bit of a hurtle for me but taking it like a hot bath. Your interpretation is key! Regards.
@yrath5034
@yrath5034 5 жыл бұрын
I never clicked so quick! Where have you been?? How dare you have a real life! ;-)
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Thanks! Yeah real life has been busy. And as you will see in the coming videos, this project turned into a massive tar-pit.
@jacksat2252
@jacksat2252 5 жыл бұрын
Nice to see you back , last week i went thru my subscriptions to see if i not accidently deleted you.
@laneboysrc
@laneboysrc 5 жыл бұрын
As always great tips and links to interesting firmware! Blue Pills rock!
@MessedUpHare
@MessedUpHare 5 жыл бұрын
Exited to see this, one of my favorite channels.
@edgeeffect
@edgeeffect 4 ай бұрын
I still think that this series had some of the most lucid reverse engineering information I've ever seen on KZbin.
@iwbnwif
@iwbnwif 5 жыл бұрын
So glad you’re back :)
@zcavaleiro
@zcavaleiro 5 жыл бұрын
Hi, nice to see your work again! Cheers.
@mklengel
@mklengel 5 жыл бұрын
You are back. That’s great!
@devplayer0
@devplayer0 5 жыл бұрын
Great to have a new OpenTechLab video! Interestingly I was able to make a dump (and later restore this after a brick with a dodgy upgrade file!) of the LKV373's flash chip using `flashrom`via the Raspberry Pi's SPI interface without having to extract the flash chip.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Yeah with no series resistors it becomes a battle of drive-strengths. It's sometimes worth trying just to see if it will work - even if it's very marginal. But there's always a risk of damaging the board.
@robertwielewicki1249
@robertwielewicki1249 5 жыл бұрын
Great! Next upload. We've spoken some time ago, nice to see you again
@GaMa998
@GaMa998 5 жыл бұрын
Yes! You're back!
@edgeeffect
@edgeeffect 5 жыл бұрын
Oooh... tweezer soldering iron, A? I've been putting off an appointment with some evil 0402 links for rather too long now.... maybe a tweezer iron could help me out. That was great stuff... I'm not that interested in HDMI capture meself... but you covered SO many other subjects on the way there had to be something for all of us. And I learned a new and very useful technical term today: "spew". Welcome back!!!! ........ Your cat's a lovely colour.
@IljaSara
@IljaSara 5 жыл бұрын
I *KNEW* I was in for a treat when OpenTechLab rose from the grave*. Didn't disappoint! *) Altered Beast reference.
@gelecopter
@gelecopter 4 жыл бұрын
Thank you for interesting video. Keep your board in the vise.
@edgeeffect
@edgeeffect 4 жыл бұрын
I've just come back for a re-watching.... I was looking for you flashing a blue pill over serial.... found the right vid first guess... But it's also interesting, having seen the whole series, realising how little you and "the blogs" knew at this early stage and where you got to from there....
@pefclic
@pefclic 5 жыл бұрын
Welcome back !
@ihatenumberinemail
@ihatenumberinemail 5 жыл бұрын
11:19 Just FYI, most computers don't care about that 10K resistor and work just fine with a vanilla blue pill. I'd recommend trying it out and only swapping the resistor if you really need to.
@tin2001
@tin2001 4 жыл бұрын
Or try sticking a USB hub in between too.
@talhaakram
@talhaakram 5 жыл бұрын
OMG he is back!
@pixelflow
@pixelflow 5 жыл бұрын
Great spelunking! btw you should totally make the inverse of the soic adapter for soldering in place of the chip on the original board, similar those game console easy-solder mod boards! Where there are little solder cups/U shaped cutouts.
@vincei4252
@vincei4252 5 жыл бұрын
Hey, welcome back!
@evghenim1955
@evghenim1955 5 жыл бұрын
WELCOME BACK!!!
@vincei4252
@vincei4252 5 жыл бұрын
I'm 8 minutes in and I'm still gobsmacked that a company (ITE) believes that making their product/chips 100% opaque to anyone that is not a customer is a good way of interfacing with the world. Who cares if non customers know what your ISA is? Why be this secretive? It's even more amazing that a customer would signup to this kind of secrecy. But what do I know? Fascinating video for sure!
@evghenim1955
@evghenim1955 5 жыл бұрын
They are probably using a lot of someone else's IP in their silicon so they have to be secretive about it in order to not get sued.
@vincei4252
@vincei4252 5 жыл бұрын
@@evghenim1955 Yes, that did occur to me. You're probably 100% correct. I could go as far as guessing that "their" risc core could be something from opencores.org which are under a GPL license. RISC V maybe ?
@evghenim1955
@evghenim1955 5 жыл бұрын
@@vincei4252 Isnt RISC-V a relatevely new thing? In the firmware, I see datecodes going back to 2009. I would guess its something more like MicroBlaze of sorts in there.
@vincei4252
@vincei4252 5 жыл бұрын
@@evghenim1955 ok
@tmichiels
@tmichiels 4 жыл бұрын
Maybe the chip is used in for example settop boxes and thereby contractually kept secret to make it harder to reverse engineer. I saw there is also a security processor...
@SDWNJ
@SDWNJ 5 жыл бұрын
Yayyyyy OpenTechLab is back!!!
@lmaoroflcopter
@lmaoroflcopter 5 жыл бұрын
Woop! Welcome back!!
@rokasbarasa1
@rokasbarasa1 4 ай бұрын
This channel is a gold mine
@we-are-electric1445
@we-are-electric1445 4 жыл бұрын
Quality soldering tip !
@felixrichard5433
@felixrichard5433 4 жыл бұрын
@OpenTechLab: The compression algorithm could be the "Softdisk Library Format" seems to be used from time to time in firmware
@electronic7979
@electronic7979 4 жыл бұрын
Helpful video 👍 I like it
4 жыл бұрын
Good Video! You made a working board :)
@markokikinda
@markokikinda 5 жыл бұрын
1. Welcome back! This video a quintessence of hacking and a hacker mindset and it makes me think how far we can go with a bit of curiosity and some knowledge, also, it shows how vast the value of free software and open hardware is. 2. Is there a specific reason why you avoided using a flash/SPI programmer based on CH341A (there are compatibility patchwork for flashrom)? It might have been much easier to read from the soldered SPI chips using something like that along with the alligator clip.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Nothing against the CH341A's - though I didn't have any at the time. Overall they're not bad chips, though I would like them more if they were a bit more capable and flexible. The price is good though. I like the Blue Pills - although it took me a while to explain how to program them in this video, in reality it's a 30-minute job to bring one into service if you do it regularly, and they're a lot more flexible. They can serve as any USB 2.0 Full Speed USB device: JTAG adaptor, GPIO controller, stepper motor controller, Arduino etc. etc., so I think it's worth spreading awareness about them.
@user-ir2fu4cx6p
@user-ir2fu4cx6p 5 жыл бұрын
this first time I watch your videos and I sub from first 10s
@williambarrett7108
@williambarrett7108 4 жыл бұрын
this is awsome. Thank you!
@ikocheratcr
@ikocheratcr 5 жыл бұрын
I think that the location in the SMAZ for those strings is the dictionary table. Basically all lossless compression algorithms use a dictionary, that is created on the fly as the compressor compresses. The compressed output will have the dictionary and the references (the compressed data) to dictionary. It is quite probably the hash/crc check do not pass on the edited data you uploaded, and it is very interesting that the board has a secondary storage for known last firmware, pretty cool. It avoids the problem of converting the device into a paper weight if upgrade does not go thru as expected. The w25q32 chips has a write protect pin. I wonder, if you re upload modified code, then disable write via pin, and boot it? Maybe the code will just try to write, and assume it went thru, and reload, and then maybe it will apply? maybe it will go into a loop? no idea, but will give more details on how it works.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
In regard to the WP pin - you are correct it would reboot loop. In regard to the SMAZ structure... we'll get to that
@diegolucassilva5994
@diegolucassilva5994 Жыл бұрын
Amazing!!👍👍
@Rooey129
@Rooey129 5 жыл бұрын
You are my hero!
@the_socompsp
@the_socompsp 3 жыл бұрын
you can desolder the ground leg and raise it off the pad, then hook everything else up normally and since the ground is only connected on the ROM but not the board, you should be able to get a better signal.
@ligius3
@ligius3 5 жыл бұрын
The FT232R can also be used with OpenGDB, for example for in-circuit debugging of the ESP32. Maybe that's part of a future video.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Do you mean OpenOCD? It got some expose in video [011]
@ligius3
@ligius3 5 жыл бұрын
@@OpenTechLab Yes :)
@chriswesley594
@chriswesley594 5 жыл бұрын
Great video - the first I've sen from you but not the last. I had a thought about reading the SPI Flash more conveniently than removing it from the system. Could you just isolate the power pin? That way when you drive it from your external setup none of the rest of the host board is powered and so might be less intrusive, and when you power it from the host board it's back home. You could have a 2-way switch to select. Just a thought.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
If the SPI pins are high impedence when the reset of the board is unpowered, this would work well. If not there's it's possible to end up feeding power in through the SPI lines going into the clamp diodes of the processor.
@thesilentcitadel
@thesilentcitadel 5 жыл бұрын
Can you load a bad checksum image into the main eeprom, then monitor the addresses being accessed from the eeprom and the on board backup. I feel that at some point the main processor will need to make a decision that the checksum was bad and then reach out to the backup to do a re-image of the eeprom. This could tell you which bytes of the main eeprom are related to the decision the processor needs to make for the checksum and potentially give you a subset of the whole eeprom that would be interesting, and which would contain the checksum byte, even its location.
@petealiendnatronics6152
@petealiendnatronics6152 Жыл бұрын
just noticed at 21.50 left bottom corner chip, two pins are soldered together, is that common practice ..... ? great clip informative thanks
@lasersbee
@lasersbee 5 жыл бұрын
32:54... Perhaps it's time for a Tip Cleaning Solder Sponge and perhaps a new Tip....:/
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Yup - I ordered a new tip straight after filming that sequence. The new one is so much better.
@seanvinsick5271
@seanvinsick5271 4 жыл бұрын
The dump clearly shows a crc. All compression algorithms have a dictionary. Most if not all compilers afaik, make a constants table to all constants in the source and then links to them. It's not just strings but ints, floats, books, or any base data type. Crocs have a broken 2nd order resistance collision, and I believe a pre image collision. Find the crc.
@crayzeape2230
@crayzeape2230 5 жыл бұрын
I wonder if holding the main ASIC in reset at power up would tri-state the SPI bus, allowing you to read out the firmware without desoldering.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Yes - you're not the first to point that out. I didn't think to try that, but I'll keep it in mind for next time.
@TakeMeOffYourMailingList
@TakeMeOffYourMailingList 4 жыл бұрын
What shell are you using/what is your configuration? I've just broken away from the standard unchanged bash, and I'm weighing up my options. Yours looks cool, especially with the knowledge of git branches, etc.
@OpenTechLab
@OpenTechLab 4 жыл бұрын
I'm using zsh, with oh-my-zsh, which support many themes. I use the agnoster theme. You will need Powerline Fonts installed.
@TakeMeOffYourMailingList
@TakeMeOffYourMailingList 4 жыл бұрын
@@OpenTechLab Thanks! I
@danielegger6460
@danielegger6460 5 жыл бұрын
Why not simply stack a resistor on top, i.e. in parallel? That's usually an easier operation than removing a resistor...
@user-zo6nn2ih2f
@user-zo6nn2ih2f 4 жыл бұрын
SOIC or SOP which one is it now or does it work for both?
@pixelflow
@pixelflow 5 жыл бұрын
Can you link to the blogs mentioned in the description? Thanks!
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Sorry I forgot to add the link to the description. Here it is: opentechlab.org.uk/videos:016:notes
@rickysuave4801
@rickysuave4801 4 жыл бұрын
Awesome video but please improve your audio feed. You have allot of noise maybe ground loop or radiation.
@bumelant
@bumelant 5 жыл бұрын
Great video! You should get some proper chisel type soldering tip. It's way better than this one you are using.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
The main issue is that that tip was very badly corroded. It was the first outing of a rather nice OKi soldering station I rescued from being scrapped. After filming this video I ordered a new tip, and I've been very happy with it since.
@SDWNJ
@SDWNJ 5 жыл бұрын
Is that a duct tape band-aid?
@mikeconnor3602
@mikeconnor3602 4 жыл бұрын
In the video you mention, danman? Is this correct and is a KZbin channel? Excuse me if 'danman' is the wrong spelling
@juri14111996
@juri14111996 4 жыл бұрын
use bmd Capture Card for SDI, and BMD UpDownCross if you have HDMI Signal. work fine without any Problem. feel free to ask.
@ATXpert
@ATXpert 4 жыл бұрын
what can i do if i cant order from amazon bause the delivery is more than the product in price. also im totally new to this how can i understand the video better?
@ghwizz
@ghwizz 4 жыл бұрын
ATXpert - this is fairly advanced stuff and so you will need to build up your knowledge before it will make much sense. Good news is that lots of other videos on KZbin will get you started. Good luck!
@ATXpert
@ATXpert 4 жыл бұрын
@@ghwizz I have no idea where to start
@misonimisoni7818
@misonimisoni7818 3 жыл бұрын
Need firmware for hard disk ST350413AS JC66 firmware as bios ic is corrupted
@rickysuave4801
@rickysuave4801 4 жыл бұрын
I am interested at reverse engineering my marantz sr5600 home theater receiver. To reduce noise. To increase amplifier output. To modify speaker impedance on the multiroom channels. Add hdmi 2.2 ports. Add usb 3.2 input, bluetooth input, 1.5mm. Adding the newest dolby digital encoding, adding 4k encoding and upscaling. What about modifying an older Asus wifi router running opensource firmware and upgrading it to 802.11ax and any newer security features/ programming? How about reverse engineering a Roku or Firestick 4k to run solely off of Linux?
@dreggory82
@dreggory82 4 жыл бұрын
Couldn't you hot air desolder the ram and get a read on it then? Edit: should have watched the whole video before asking.
@the_perigoso
@the_perigoso 5 жыл бұрын
that soldering iron
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Yup... it's actually quite a nice OKi soldering station. I inherited free when my old company closed its office. It got its first outing while I was filming the video, and it became clear how bad the tip was. So I ordered a new one, and it's been perfect ever since.
@Dust599
@Dust599 5 жыл бұрын
Disable writing to the eeprom from the controller... perhaps it will just drop through after it thinks it has re written it.
@OpenTechLab
@OpenTechLab 5 жыл бұрын
As I discovered later, that would send it into a reboot loop.
@Dust599
@Dust599 5 жыл бұрын
@@OpenTechLab Darn!
@Dust599
@Dust599 5 жыл бұрын
@@OpenTechLab Bate and switch then? Have two eeproms or emulated and swap eeprom after initial check? (timing will be very important)
@shafi.j
@shafi.j 4 ай бұрын
I need some answers
@pandarojodronero2919
@pandarojodronero2919 5 жыл бұрын
how you make your terminal look like that at 14:24 ? edit: not only on 14:24, all the video. how you make the prompt look like a blue arrow?
@jope4009
@jope4009 5 жыл бұрын
Google for "powerline fonts".
@OpenTechLab
@OpenTechLab 5 жыл бұрын
I'm using zsh as my shell with oh-my-zsh to control the theming
@crazyphil7782
@crazyphil7782 4 жыл бұрын
Stahp eet it's illeeeeghul
@johnoneil9150
@johnoneil9150 5 жыл бұрын
Using duck tape as a band aid 28:44
@vincei4252
@vincei4252 5 жыл бұрын
"This would be easier if I had this in a vise" *AvE wants to know your location.*
@OpenTechLab
@OpenTechLab 5 жыл бұрын
What's that about? Does he do merch with vices?
@vincei4252
@vincei4252 5 жыл бұрын
@@OpenTechLab Lol. No, it's an AvE meme. He usually ends his videos with "don't stick your dick in a vise" :)
@OpenTechLab
@OpenTechLab 5 жыл бұрын
Words to live by
@edgeeffect
@edgeeffect 5 жыл бұрын
It's from the Canadian saying "keep your stick on the ice" (with reference to paying due attention during an ice hockey game) which he translates into "keep your dick in a vice".
@UNSCPILOT
@UNSCPILOT 4 жыл бұрын
@@edgeeffect As a Canadian, couldn't be more proud XD
@boltactionpiano7365
@boltactionpiano7365 5 жыл бұрын
Why not use a black pill?
@OpenTechLab
@OpenTechLab 5 жыл бұрын
No reason other than that the Blue Pills are more well known, and I happen to have a bag full of them
@edgeeffect
@edgeeffect 5 жыл бұрын
Best answer I hear for "why do you use XYZ"..... "'cus I've got a sackfull of 'em"
@cdyoutoob
@cdyoutoob 4 жыл бұрын
SMAZ - github.com/antirez/smaz
@jessishandsome
@jessishandsome 3 жыл бұрын
I can help you dissolve some chinese problems in the future, if you like to.
@kanguruster
@kanguruster 4 жыл бұрын
I wonder if this is the same SMAZ? github.com/antirez/smaz
@AtulSohan
@AtulSohan 4 жыл бұрын
imagine for a moment that that Chip was sentient(as in high sentient)...... we are the aliens who has no abducted it and is probing it up the arse...... to understand how it ticks am i the only one with these weird imaginations ? i need to have a word with my weed guy!!!!
@morgannelson9834
@morgannelson9834 4 жыл бұрын
Could this be the SMAZ you are looking for? github.com/antirez/smaz
@linztube
@linztube 5 жыл бұрын
Surely yourself and others have seen this, but I was doing some random googling and found: github.com/antirez/smaz Is this related at all?
@CyReVolt
@CyReVolt 4 жыл бұрын
You might be interested in qspimux: felixheld.de/projects/qspimux/
@waylandsmithers2815
@waylandsmithers2815 Жыл бұрын
flux, flux flux.....
@dacealksne
@dacealksne 5 жыл бұрын
#ShamefulSoldering
@OpenTechLab
@OpenTechLab 5 жыл бұрын
So shameful. But... as the saying goes "it's not stupid if it works"
@jobaptist
@jobaptist 4 жыл бұрын
absolutely zero soldering skills...0603 piece of cake for me... i could do it with my eyes closed!
[017] IT9919 Hacking - part 2 - Hunting for Checksums
13:07
OpenTechLab
Рет қаралды 18 М.
Extracting and Modifying Firmware with JTAG
21:03
Matt Brown
Рет қаралды 37 М.
Задержи дыхание дольше всех!
00:42
Аришнев
Рет қаралды 3,3 МЛН
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 22 МЛН
Stay on your way 🛤️✨
00:34
A4
Рет қаралды 13 МЛН
#04 - How To Get The Firmware - Hardware Hacking Tutorial
34:08
Make Me Hack
Рет қаралды 160 М.
Recover Bricked BIOS using FlashRom on a Raspberry Pi
14:07
rdagger68
Рет қаралды 62 М.
Extracting Firmware from Embedded Devices (SPI NOR Flash) ⚡
18:41
Flashback Team
Рет қаралды 559 М.
Hack everything: re-purposing everyday devices - Matt Evans
50:39
Linux.conf.au 2012 -- Ballarat, Australia
Рет қаралды 800 М.
#68 [GUIDE] Reverse engineering 🖥 firmware 📃
33:29
Tim's Electronics Lab
Рет қаралды 20 М.
Op-Amps  - Using Operational Amplifiers
44:21
DroneBot Workshop
Рет қаралды 275 М.
How to program a PIC microchip?
6:55
ezContents
Рет қаралды 11 М.
Intro to Hardware Reversing: Finding a UART and getting a shell
12:07
Tony Gambacorta
Рет қаралды 885 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 8 МЛН
1$ vs 500$ ВИРТУАЛЬНАЯ РЕАЛЬНОСТЬ !
23:20
GoldenBurst
Рет қаралды 1,9 МЛН
iPhone 16 с инновационным аккумулятором
0:45
ÉЖИ АКСЁНОВ
Рет қаралды 9 МЛН
S24 Ultra and IPhone 14 Pro Max telephoto shooting comparison #shorts
0:15
Photographer Army
Рет қаралды 9 МЛН