Recovering a Bricked Zebra WT41N0 via OMAP4 ROM — 15-Byte x-loader Patch

November 2026 · min read


Summary

A Zebra/Symbol WT41N0 wrist computer (TI OMAP4430) was bricked when the first 5.5 MiB of its eMMC — holding the x-loader, Symbol monitor, partition table, and monitor data — was overwritten with dd while Linux was running. The chip's boot ROM still answered over USB. Using a donor eMMC dump (shared with permission), I found the x-loader, determined how it loads the next stage, patched 15 bytes to redirect it to the Linux OS area at 80 MiB, and sent the patched x-loader through the ROM's USB boot protocol. Linux started, its USB serial console appeared, and a script restored the first 5.5 MiB from the donor image with checksums at every step. The unit boots normally again.

Two findings may help others: the ROM's USB path accepted the bare x-loader payload (not the GP-header version), and the unit has four internal toggle switches that force ROM USB boot when all are set to 1.

Hardware & Boot Chain

eMMC Layout (User Area)

RegionStartSizeContent
BootLoader00.5 MiBCHSETTINGS header at 0; GP header at 0x200; x-loader
Monitor1 MiB1 MiBSymbol monitor (~292 KiB); starts fe 03 00 ea
Partition table3 MiB—Monitor's own table
Monitor data3.5 MiB0.5 MiBStarts Monitor_DataSig; holds factory serial
Config block4 MiB0.5 MiBWritten by monitor
Splash screen4.5 MiB1 MiBBoot bitmap
(unassigned)5.5 MiBto 80 MiBZeros
OS80 MiB120 MiBOS image (Linux)

Both hardware boot partitions (BOOT1, BOOT2) were all zeros — the ROM boots from the user area.

The Failure

The dd write covered 5.5 MiB (not the 3.5 MiB first assumed), destroying the x-loader, monitor, partition table, monitor data, and config block. The OS area at 80 MiB was untouched. With no valid x-loader, the ROM fell back to USB peripheral boot.

Reading the ROM

In this state the unit enumerates as USB 0451:d00f (OMAP4 ROM) with bulk OUT 0x01 and bulk IN 0x81. The protocol (per barebox's omap4_usbboot):

  1. Host writes 0xF0030003 (LE u32): send ASIC ID. ROM replies with 81 bytes.
  2. Host writes 0xF0030002 (boot), then image size (u32), then image.

The ASIC ID confirmed: Device 0x4430 (OMAP4430), CH flag 0x07 (config header enabled from eFuse), ROM version 0x04. The checksum sub-block 0x15 second word was zero — barebox reads this as a GP device (accepts unsigned code).

Source: Donor eMMC Dump

The wt41n0-buildroot author (applefreak) read his unit's eMMC with a programmer and shared the full dump. In the first 6 MiB:

How the x-loader Finds the Monitor

The x-loader runs from SRAM at 0x40300000 (MMU/caches off). Key addresses (verified by disassembly + emulation):

AddressFunction
0x403018e8main()
0x403017f0Reads eMMC region into RAM (one sector at a time via 0x40303bc8)
0x403059a8Returns start sector (reads table+0x10)
0x403059b8Returns sector count (reads table+0x14)
0x40301a78..0x40301ab8Tail of main(): first attempt reads to 0x80168000 and jumps; fallback reads to 0x80208000 and jumps to 0x80208208
0x40301760The jump (mov pc, r0)

Emulating the table-building function gave region 2 = start sector 0x800 (1 MiB), length 0x800 sectors (1 MiB) — exactly the Monitor. Literal pools referenced RAM around 0x8016xxxx, matching its link address.

The Patch (15 Bytes Total)

To boot Linux without the monitor, the x-loader must read the OS area (sector 0x28000, 80 MiB), stage it where the Linux loader expects it (0x80268000), and jump there. Three edits:

AddressStockPatchedEffect
0x403059a8 ldr r3,[pc,#4] / ldr r0,[r3,#0x10] movw r0,#0x8000 / movt r0,#2 (E3080000, E3400002) Start sector 0x28000
0x403059b8 ldr r3,[pc,#4] / ldr r0,[r3,#0x14] movw r0,#0xBFC0 / movt r0,#3 (E30B0FC0, E3400003) Count 0x3BFC0 sectors = 0x77F8000 bytes (120 MiB)
0x40301a7c orr r4,r3,#0x168000 (E383495A) orr r4,r3,#0x268000 (E383499A) Destination + jump target 0x80268000

Emulator confirmed: accessors return 0x28000 and 0x3BFC0; end of main() reads to 0x80268000 and jumps to 0x80268000 (stock: 0x80168000). Reading 120 MiB sector-by-sector takes ~2 minutes on the real unit.

Sending It

omap4_send.py waits for 0451:d00f, reads ASIC ID, sends 0xF0030002, length, and image. Two images built: with GP header (8 bytes: size, load address) and bare 32,760-byte payload. Only the bare payload worked — the ROM rejected the GP-header version. Reason unknown.

After the ROM ran it, Linux booted from the OS area with LCD blank (monitor never ran to set up display) and enumerated as USB serial console.

From Linux Back to Bootable eMMC

The BSP image runs a root shell on USB serial gadget (/dev/ttyACM0, no login). wt41n_restore.py moves the donor image over serial with safeguards:

The First (3.5 MiB) Attempt & The Toggle Switches

The first restore wrote only x-loader + monitor + table. ROM found valid x-loader on eMMC and stopped falling back to USB. Monitor started but failed without its data/config/splash — unit flashed LEDs, center amber flashed, powered off, display never initialized.

Four toggle switches inside the case (all 0 in normal operation). Setting all four to 1 forces ROM USB boot. Very probably the OMAP4 SYSBOOT pins (16 positions, one mapped so far). Flip only with battery out.

This creates a permanent recovery path independent of eMMC: switches at all-1 → ROM USB → patched x-loader → whatever is in OS area.

Limits & Cautions

Reproduction Checklist

  1. Confirm ROM: lsusb shows 0451:d00f; read ASIC ID, check device 0x4430 and zero second word in sub-block 0x15.
  2. Obtain donor x-loader (GP header at 0x200, size 0x7FF8); apply three edits (Section above).
  3. Send bare payload with ROM protocol.
  4. Wait for ~120 MiB read, then watch for USB serial port.
  5. Back up first 6 MiB, run restore script: --inspect → --no-write → full run.
  6. Power-cycle; check download mode (Power+1+9, then P2).

Open Questions


Thanks to the wt41n0-buildroot author for the eMMC dump, BSP docs, and interest. Thanks to barebox omap4_usbboot sources for the ROM protocol. Drafting and digging assisted by Claude.