r/hardwarehacking • • 5h ago

How much can you actually be certain of when debugging at the firmware/hardware level?

0 Upvotes

Coming from software, I'm used to well-defined standards and protocols. If a server returns a 404, I can be confident that, almost always, it means exactly what the HTTP spec says it means.

Lately I've been getting more hands-on with my own hardware and tinkering with electronics, and I've noticed there's no equally clear mapping between the signals the hardware gives you (POST codes, a fan that won't spin, and so on) and what they actually mean or what you can safely infer from them.

Where does that certainty come from in the hardware world, if anywhere? How do experienced people decide which signals they can trust besides just trying out a suspcious piece of hardware in a new system?


r/hardwarehacking • • 5h ago

Bricked a Smartlink SL6801 ("Jointbees" / Amazon "Cason" MP3) after an interrupted flash - need the mask-ROM boot strap to reach 301A:2800

1 Upvotes

Generic Amazon "Cason" MP3 player (Smartlink SL6801, 2 MB flash inside the SoC package).

What happened

  1. Dumped the full 2 MB over USB twice (byte-identical), built a .up package and verified it against the dump.
  2. Wanted album art, so I used dbrant/SL6801_player (built for yp3_2.0.43, a different model of the same family) to build an image, and wrote it with smartlink_flash starting at offset 0.
  3. The transfer died at [TODO: how far - bytes or offset, or unknown]. Since then: no USB device of any kind. Pressing Home makes the screen flicker, then it goes black [TODO: confirm].

An interrupted 2 MB write left the app partition corrupt. Now: black screen, nothing enumerates on USB. I need the mask-ROM USB download mode (301A:2800) to restore my backup, but no button combo triggers it. Looking for the boot-strap pin/pad on this board, or anyone who has recovered one.

Hardware

  • Player: Amazon "Cason" 16 GB MP3 player (the 16 GB is the bundled microSD; the brand is a sticker)
  • Board: silkscreen T90198-MP01-V2
  • SoC: marked "Jointbees MP3", QFN-48 [TODO: verify pin count], Smartlink SL6801 family (the string SL6801 is in the bootloader)
  • Flash: 2 MB inside the SoC package. No external SPI flash, so no clip or programmer route
  • Firmware: yp3_2.0.44
  • Other: [TODO: display type, confirm], microSD, USB-C, 5 buttons, small LiPo
  • USB IDs: card reader 301A:2801 "SMTLINK CARDREADER 1.00"; ROM bootloader 301A:2800 "SMTLINK DEVICE 2.00"

Flash layout from my dump:

0x00000   HLKJ header + bootloader (to ~0xC94C)
0x0D000   partition table
0x0E000   FIRM (~1.6 MB)
0x1A3000  TONE
0x1FC000  PSMP

Current state

Observed: nothing enumerates on USB (monitored with [TODO: dmesg -w / other tool], including the first second after plug-in). Screen flickers on Home, then black.

My reading (inferred, I can't read flash back now): the bootloader is still stock and running, and FIRM is corrupt. Basis: [TODO: what you checked, e.g. HLKJ header entry point, code offset, size, CRC16 recomputed and matching; how you know the transfer didn't overwrite 0x0-0xE000]. Please challenge this if you think the boot region could be damaged.

Boot path analysis (Ghidra + Capstone)

  • The bootloader picks its mode from a 3-bit value in the on-chip PMU registers (0x40085000): bit 0 of reg 0 plus bits 7:6 of reg 0x23. 6 = SD update (opens 0:\update.up and rewrites flash), 7 = update from PC over USB, anything else = normal boot.
  • Only software sets that value (the app's "firmware update" routine). With FIRM dead, nothing can set it.
  • I walked every instruction reachable from the reset vector. It never reads a button, GPIO input, or strap. It only touches the PMU, NVIC/SysTick, and GPIO writes for SD pin setup.
  • The SD updater has one call site, inside the mode == 6 branch. There's no "firmware broken, try the card" fallback. When loading FIRM fails, it prints an error over UART only (I can't reach it) and spins with interrupts off.
  • Mask ROM (per [TODO: link to the ROM-dump writeup, or delete this bullet]): it reads GPIO port 3 pin 0 at reset (active low). If low, it briefly waits for a USB host and shows up as 301A:2800. If the flash header/CRC is invalid, it stays in download mode.

What I tried

  1. update.up on the SD card (correct name and size). Nothing, which makes sense since the mode flag is never set.
  2. Each of the 5 buttons held on its own from a fully unpowered state (battery disconnected, USB out), then USB plugged in while still holding. Nothing.
  3. A few button pairs. Nothing.
  4. USB enumeration watched throughout. No device appears, not even briefly.
  5. Button wiring check: 4 of the 5 buttons share one analog ADC key ladder (there's a labelled ADC test pad), and only the center/power button is a plain GPIO line.

Questions

  1. Which button or pad is wired to the boot-strap pin (P3.0?) on SL6801 / "Jointbees" / T90198-MP01-V2 boards? Is it the center/power key, and does it have to be low at power-on reset rather than at USB insertion? My battery is disconnected during tests, so reset = USB plug.
  2. Is there a dedicated test pad on the back? The front has labelled pads for 5V, DM, DP, GND, ADC only. I haven't mapped the back yet.
  3. Does anyone know the UART TX pad? The bootloader prints its failure message there.
  4. Any other way to force ROM download mode (VBUS/D+ timing, a short-while-plugging trick)?
  5. Has anyone actually recovered one after a bad write? Even "it was button X" helps.

What I can share

Full 2 MB stock dump with checksums and layout, my annotated disassembly notes for the boot decision and the SD updater, the .up package, photos of both sides of the board. I also have an ESP32 and basic bench tools, so I can drive pins, sniff UART, or power-cycle under software control.

The mistake was mine: I flashed from offset 0 without first confirming how to reach ROM mode. I'm not after a lecture, just a way back to stock. Thanks!


r/hardwarehacking • • 20h ago

Need help booting into recovery mode on a automotive board without recovery button

Post image
34 Upvotes

This is a headunit board of mercedes i can’t find any resources on how to boot into recovery mode RCM.

These are better higher quality picture of the front and back

https://imgur.com/gallery/hu6-board-x0pHj9l


r/hardwarehacking • • 1d ago

I emulated a Realtek Smart TV SoC in QEMU and booted full Android TV 9

Thumbnail
github.com
39 Upvotes

I reversed a TCL Smart TV board (Realtek RTD2841 / RTK284x SoC, AArch32) with no public datasheets and wrote a custom QEMU machine model to boot its commercial Android 9 Pie firmware.

I just reached the milestone where the full 1080p launcher boots and can be navigated with a host mouse and IR remote.

The big hurdles I had to solve:

  1. Hardware Timer Reversal Realtek's timer registers count down, breaking Linux's monotonic sched_clock. I patched the QEMU model to expose limit - count
  2. Freestanding PID 1: Built mini_init in pure ARM32 syscalls without glibc to manage Android cgroups, permissions, and bypass crashing OEM telemetry daemons.
  3. Mali GPU Replacement**: With no proprietary GPU drivers, I debloated the ROM and bound ARM32 Google SwiftShader so SurfaceFlinger could render the entire desktop on the CPU.
  4. Native Input: Added a virtual USB OHCI controller and mapped Venus IR scancodes for direct mouse and keyboard navigation in the host window.

Demo video is in the repo:


r/hardwarehacking • • 1d ago

I turned a 2007 Nokia N810 (128 MB RAM) into an off-grid APRS, CW, and Reticulum/LXMF field terminal with a reverse-engineered GPU driver

Thumbnail reddit.com
0 Upvotes

r/hardwarehacking • • 1d ago

Fixing an impact-damaged Samsung QD-OLED from inside its panel controller: per-lane skip flags and scan-time sensing gains over the TCON's internal USB service link

Post image
2 Upvotes

r/hardwarehacking • • 1d ago

Fixing an impact-damaged Samsung QD-OLED from inside its panel controller: per-lane skip flags and scan-time sensing gains over the TCON's internal USB service link

Thumbnail
gallery
3 Upvotes

TL;DR: Impact damage on my Samsung S95F 77" QD-OLED caused (1) a blackout / controller-reset loop, every 46–51 s at worst, and (2) a dark 6-column line. Both are fixed from the TV's own Linux side by talking to the panel controller (TCON) over its internal USB service link. RAM writes only, nothing flashed by me. Blackouts: set the controller's own per-lane skip bit for lanes 540–661, re-applied on every controller boot (24/24 boots clean). Line: lower the damaged columns' sensing gain at the moment the controller wakes for the standby compensation scan, so the TV's own scan computes and saves a proper boost. Code (Python on a server + C# helpers run on the TV's .NET) and docs on GitHub. Before/after: images 1–2.

Prerequisite: root access. Both TV-side fixes require a working root shell on your own TV. Use the S95F rooting toolkit and its root setup guide, then verify your TV root session. Firmware decryption is not required for either fix.

Hobby project on my own TV, nothing for sale. Writing to the panel controller can brick a TV and voids the warranty.


The access path (image 3)

  • The TCON hangs off the main SoC on an internal USB link: 04e8:2001, interface 2, bulk OUT 0x02 / IN 0x82. As root on the TV it opens through usbfs. No extra hardware, no firmware mods.
  • Each request is a 12-byte little-endian header (op, address, length), plus data for a write:
OpDoes
0x101read RAM / registers
0x1read the ID block
0x103read storage (flash); read-only for us
0x102write one 32-bit word to RAM
  • The link isn't clean: under long bulk write runs it lost ~1 write in 3,600. So every write is one word, in five steps: status block 0x47012400 must be Clean (stop 0, fault 0, gate 1, limit 40) → read and compare the old value → bounds compiled into the helper → write → read back (mismatch = restore). The first write on any setup is an identity write.
  • Tooling: Python on a home server reaches a root shell on the TV and stages a small C# helper that runs on the TV's own .NET runtime. The helper does the USB transactions and returns a receipt.

Bug 1: the blackout loop (image 4)

  • While the picture is on, the controller runs a per-lane sensing consistency check (RT Protect). 24 lanes failed, all within ~554–649, which is the damaged area.
  • Failing lanes push a fault score: 0 → 38 → 44 against a limit of 40. Over the limit the controller stops the picture and raises its error line; the main board's monitor resets the controller, it re-enumerates on USB, and fails again.
  • The primary lane table has a per-lane skip flag (bit 0). Lanes 540–661 = 122 halfwords at 0x47010438–0x4701052A, RAM only.
  • RAM clears on every controller power-up, so a watcher service tracks boot id and USB devnum, reads and classifies the controller (Clean, Quiescent, Faulted, first scan after power-on), writes the 122 bits and requires an exact read-back. A separate first-scan writer ignores six free-running scan-counter bytes when it compares two reads. 24/24 boots clean.
  • Optional recovery for an already-faulted controller: switch the TV to its own Apps home (stock input_keyevent, focus checked after every key), then one stock controller power cycle through the TV driver (/dev/tztv_tcon, ioctl 0xc010749f, payload 41, 2, 0, 0). Budget: 3 per hour, 6 per day.
  • Trade-off: that one check is off for those lanes. Current monitoring and panel power control are untouched.

Bug 2: the dark line (image 5)

  • In standby the TV runs a sensing scan and builds per-column compensation from it. The firmware only ever adds drive, and only to columns that read weak. The damaged columns' stored sensing result read far too high, so they got nothing.
  • Fix: lower the per-column sensing gain (a per-lane 32-bit word holding two 16-bit column halves) just for the scan. A scan-arm helper waits for the controller's USB device to appear when it powers up for the scan, waits until the gain table is loaded and the controller is Clean, writes, reads back, then logs the scan stage every 50 ms. Hard bounds: lanes 600–660 only, halves 8000–26000, at most 8000 change per write, ×0.65-of-stock floor.
  • The scan then stores a result that reads those columns as weak, the TV's own save writes it to storage, and the live compensation is built from it at every power-on. The next stock scan would overwrite it, which is the rollback path.
  • 11 calibration runs to converge. Two runtime trims on top (a second gain stage on lanes 627–630, and the blue compensation weight 205 → 820), re-applied after each controller boot.
  • Dead ends: the blue curve tables (panel-wide only; one write faulted the controller) and editing raw blue samples mid-scan (worked, but with 1 write in 3,600 lost it isn't reliable).

Results

Links

Ask away about the protocol or the controller internals.


r/hardwarehacking • • 1d ago

Please help to crack this jio stb jsmd200a.

Thumbnail
reddit.com
1 Upvotes

r/hardwarehacking • • 1d ago

Copying Garage Button Fob

Thumbnail reddit.com
1 Upvotes

r/hardwarehacking • • 2d ago

My digital photo frame keeps trying to access this website and xfinity is stopping it. Any concern?

Post image
77 Upvotes

Too scared to go to the website to see what it is. Any advice? I will link the frame in the comments.


r/hardwarehacking • • 2d ago

reverse engineer phone

0 Upvotes

Hi, so i don't know too much about this, but i wanted to ask, how hard is it to reverse engineer a blackberry z10 stl-100 1 in it's entirety so i can put some different os like linux on it? it's got some omap4470 processor i think

take care yall


r/hardwarehacking • • 2d ago

What fun thing can I do with this?

Thumbnail
gallery
12 Upvotes

A family member gave me 2 of these cheap smartwatchs, I don't really use them, but I also don't want to throw them away, so I want to know what kind of fun projects I can do with them.


r/hardwarehacking • • 2d ago

Esp32c3 supermini

1 Upvotes

Esp32c3 usb aygıtı tanınmadı hatası alıyorum bunu nasıl kullanılabilir hale getirebilirim yardım edim


r/hardwarehacking • • 3d ago

Selling cyber deck uconsole

Thumbnail gallery
10 Upvotes

r/hardwarehacking • • 3d ago

DVR8302 Gate driver simulation

Thumbnail reddit.com
0 Upvotes

I'm working on 3 phase inverter , and i have problem with simulation because TI don't add a spice file so i need method to add dvr8302 ic into my simulation


r/hardwarehacking • • 3d ago

Attempting to emulate Microsoft Mediaroom from an AT&T Uverse box

Thumbnail reddit.com
0 Upvotes

So I've been at this since 2024. It all started with Dish and DirecTV, but I quickly grew bored, what can i say, beyond recovering the recordings there’s not much exciting about satellite boxes beyond the fact that they run on MIPS, Linux, and VxWorks.

The whole "install a desktop os the boxes and make the worlds most cursed file server!" idea quickly backfired because i realized the bootloader is almost certainly locked, the nand is ancient, the hdd's are even older, and it runs at the speed of smell with the RTOS's or linux distro that's on it already. (interestingly enough directv and dish appear to use GPT, as you can slap in 2TB + drive and it'll happily format on the fly (this is an assumption based off of observed behavior)

Regardless,

You might be wondering, why bother with a middleware platform that’s been sold and sunset twice? The honest answer: curiosity and boredom. I wanted to tackle something completely absurd. Seeing the Sonic POS and McDonald’s POS systems running on consumer hardware was both fascinating and hilarious. I boldly assumed, “Sure, just recreate the processor in C# how hard could it be?” After all, VMware, VirtualBox, QEMU, and Bochs do similar things.

What began as a simple shim to run the software on Windows led me to discover MIPS... specifically the R4000 and BCM MIPS 5000 (If its not mips it wont flips 😂). And now, here I am, asking for help on something utterly cursed, certain that many of you have encountered even stranger projects, like running Doom on a light bulb or a receipt printer. Either way, I’ve hit a wall.

(I got another one, if its MIPS it Ships!.)

If you made it this far, congrats and welcome aboard to the "Why, why ,why, WHY?!" ship.


r/hardwarehacking • • 3d ago

I reverse-engineered a cheap AI badge so you can put any AI in it

Thumbnail
github.com
0 Upvotes

r/hardwarehacking • • 3d ago

I built an open-source tool that turns a USB capture of a Windows-only gadget into a protocol report and a Linux driver

3 Upvotes

I kept buying hardware (case LCDs, RGB controllers, fan hubs) that only works with a Windows vendor app, and doing the same reverse engineering by hand every time: capture with USBPcap or usbmon, stare at hex, diff packets, guess which byte is the fan speed and which one is a counter or CRC.

So I built usb-rea to automate the boring part. You capture traffic while you use the vendor app, mark what you did ("set fan to 40%", "set color red"), and it infers the command structure: constant headers, counters, value fields, lookup tables and checksums (it brute-forces common CRC variants). The output is a Markdown protocol report plus a standalone pyusb driver you can run on Linux.

How I checked it without guessing: I run it on public captures of devices whose protocol is already documented. On NZXT Kraken X captures it recovers the same fan command liquidctl sends, byte for byte, and the generated driver builds correct packets for values that never appeared in the capture. There is also a lookup command that checks a VID:PID against about 270 devices that already have an open-source Linux implementation, so you don't redo work someone already did.

It is MIT licensed, pip install usb-rea. It also runs as an MCP server if you want an LLM client to drive the analysis, but the CLI works on its own.

Repo: https://github.com/emirmrkaljevic/usb-rea

Limits, honestly: it is alpha. Linear value fits have to survive a leave-one-out cross-check, otherwise it falls back to a lookup table and says so, and a matching USB ID alone does not prove your unit speaks the same protocol. I would love captures or feedback from devices where it gets things wrong.


r/hardwarehacking • • 4d ago

TapHook & CrewTalk — two Android utilities we just shipped on Google Play (NFC webhooks + zero-account push-to-talk)

Thumbnail
reddit.com
1 Upvotes

r/hardwarehacking • • 4d ago

I bricked my smart ceiling fan, then reverse-engineered it back to life

Thumbnail
ahmedmassoud.me
0 Upvotes

r/hardwarehacking • • 4d ago

Is this latitude 5300 WWAN capable of being converted into a SSD input

Thumbnail
gallery
6 Upvotes

I am on a dell latitude 5300 and did not have this option from the factory. Ai told me that theres no power because its not detectable etc. im running linuxmint btw. In my bios there is the option to enable it. Not sure what to do.

I was told there’s a severe hardware limitation, but it communicates with the computer and nevertheless it should be able to be repurposed.

I’m not opposed to taking it to a shop and having them add something I just don’t know where to start

“Slapped an M.2 2230 NVMe drive into the WWAN slot on a Latitude 5300.
Bullet Checked the BIOS: AHCI was already on, both SATA-2 and M.2 PCIe SSD-0 were enabled, and tested toggling WWAN/GPS on and off with cold boots.
Bullet Ran lspci -nnk, lsblk, nvme list, and checked dmesg on Linux—only the main NVMe drive (nvme0n1) shows up, and zero PCIe lanes or controllers initialize for the WWAN slot.
Bullet Popped the bottom cover and looked at the board around the WWAN slot—the SMD components and PCIe traces needed for storage were left unpopulated from the factory.”


r/hardwarehacking • • 4d ago

Beginner guides?

1 Upvotes

Ive seen IoTGoat but that isnt necessarily for tv firmware. Still a good start no? My goal is to get root on a streaming box without using publicly known exploits for that device. But i want to learn how to do it online before buying any actual hardware.

Recommendations?


r/hardwarehacking • • 4d ago

I used the UART-Bridge to extract the firmware of this cheap ip camera. And got codex to reverse engineer the firmware and remove the cloud functionality.

Thumbnail gallery
123 Upvotes

r/hardwarehacking • • 4d ago

Cheat sheet for nuclei

Thumbnail
reddit.com
0 Upvotes