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
- SoC: OMAP4430, ROM revision 4, GP (unsigned) device. 512 MiB RAM at
0x80000000, 1888 MiB eMMC user area + two 2 MiB boot partitions. - Boot chain: ROM → x-loader (Windows CE XLDR) → Symbol monitor → OS image. The Linux BSP (wt41n0-buildroot) keeps this chain and only replaces the OS image.
eMMC Layout (User Area)
| Region | Start | Size | Content |
|---|---|---|---|
| BootLoader | 0 | 0.5 MiB | CHSETTINGS header at 0; GP header at 0x200; x-loader |
| Monitor | 1 MiB | 1 MiB | Symbol monitor (~292 KiB); starts fe 03 00 ea |
| Partition table | 3 MiB | — | Monitor's own table |
| Monitor data | 3.5 MiB | 0.5 MiB | Starts Monitor_DataSig; holds factory serial |
| Config block | 4 MiB | 0.5 MiB | Written by monitor |
| Splash screen | 4.5 MiB | 1 MiB | Boot bitmap |
| (unassigned) | 5.5 MiB | to 80 MiB | Zeros |
| OS | 80 MiB | 120 MiB | OS 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):
- Host writes
0xF0030003(LE u32): send ASIC ID. ROM replies with 81 bytes. - 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:
0x000: TOC withCHSETTINGSitem (key0xC0C0C0C1).0x200: GP header — size0x7FF8, load address0x40300000; then the x-loader (ARM, 32,760 bytes). Debug stringxldreMMC.pdbidentifies it as the Windows CE XLDR for eMMC.0x100000: Monitor (strings: Partition table missing, Entering auto download via USB, IPL not loaded).0x300000: Partition table v1.0x380000:Monitor_DataSig.
How the x-loader Finds the Monitor
The x-loader runs from SRAM at 0x40300000 (MMU/caches off). Key addresses (verified by disassembly + emulation):
| Address | Function |
|---|---|
0x403018e8 | main() |
0x403017f0 | Reads eMMC region into RAM (one sector at a time via 0x40303bc8) |
0x403059a8 | Returns start sector (reads table+0x10) |
0x403059b8 | Returns sector count (reads table+0x14) |
0x40301a78..0x40301ab8 | Tail of main(): first attempt reads to 0x80168000 and jumps; fallback reads to 0x80208000 and jumps to 0x80208208 |
0x40301760 | The 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:
| Address | Stock | Patched | Effect |
|---|---|---|---|
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:
- Refuses unless target is the 1888 MiB MMC (3,866,624 sectors) and no partition starts below 5.5 MiB.
- Validates image: x-loader header at
0x200, monitor word at 1 MiB, partition table v1 at 3 MiB,Monitor_DataSigat 3.5 MiB, zeros where expected. - Hard limit: never writes at or past
0x580000(5.5 MiB). - Sends gzip + base64 in 640-char chunks; each ACK'd with byte count, retried on mismatch.
- Checks SHA-256 of compressed + unpacked image before writing anything.
- Requires typing
WRITE; writes withdd conv=notrunc,fsync; reads back and compares SHA-256.
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
- Needs Linux in OS area. Patched x-loader boots the OS image at 80 MiB — recovers units whose boot chain was damaged after Linux was installed.
- Restored unit carries donor identity. Monitor data includes donor's factory serial (UTF-16 at
0x390000). Writing the unit's own serial not yet done. - Not tested: other WT41N0 revisions/bootloader versions; toggle positions other than all-0/all-1.
- No firmware distributed. x-loader/monitor are Zebra's; dump contains donor serial.
Reproduction Checklist
- Confirm ROM:
lsusbshows0451:d00f; read ASIC ID, check device0x4430and zero second word in sub-block0x15. - Obtain donor x-loader (GP header at
0x200, size0x7FF8); apply three edits (Section above). - Send bare payload with ROM protocol.
- Wait for ~120 MiB read, then watch for USB serial port.
- Back up first 6 MiB, run restore script:
--inspect→--no-write→ full run. - Power-cycle; check download mode (Power+1+9, then P2).
Open Questions
- Mapping of the other 14 toggle positions.
- Why ROM rejects GP-header image over USB.
- What the MAC-like field in monitor data is.
- Whether Zebra's BSP bootloader packages (e.g., bootloader 1.06.00) could replace donor dump.
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.