Recovery engineering for the 8000 lab¶
Status: PLAN. No boot-area writes until a restore has been proven.
The deepest jailbreak (Level 4) is a boot-chain project. Build a recovery path before changing the boot chain. This page defines the recovery gate.
What recovery must cover¶
| Layer | Failure | Recovery |
|---|---|---|
| Userspace root hook | Bad hook or service | USB autoroot + cold boot |
| Kernel module payload | Panic or hang | Cold boot; USB root |
| Kernel/ATF/boot-area write | No boot | eMMC ISP/JTAG or a proven boot slot |
| eMMC corruption | No boot | External eMMC programmer / ISP |
| Secure-boot rejection | No boot | Stock image restore only |
A cold boot is not a recovery for a corrupted bootloader.
Current boot geometry¶
From docs/research/02 and the live unit:
mmcblk0boot0andmmcblk0boot1are 4 MiB eMMC boot areas; both contain XBoot on the tested unit.- Vendor
p1/p2are normal user-area partitions with theUMFGmarker at0x1A0200(p1=0,p2=1on the tested unit). p9ismisc;p11isnvm_dat;p13–p18andp21have U-Boot legacy magic;p19/p20/p32–p35are NFSB images;p36is pstore.- The XBoot log reports
boot_area: 1, but the exact boot-ROM/EXT_CSD selection rules are not mapped. The 2026-11-22 A/B test mapped the p9 DBFG and the boot-part switch; slot 0 failslnikauth; see the A/B failure.
Boot-selection recovery (2026-11-22)¶
The A/B switch to the update slot 0 failed the XBoot lnikauth check. The old
slot 1/boot1 is the licensed pair. The recovery is p9 misc offset 0x10 = 2
and eMMC EXT_CSD PARTITION_CONFIG = 0x50. The eMMC is a BGA-153 under the
front heatsink; the write needs a programmer or a shop. The corrupted boot-area
restore remains untested.
Recovery research order¶
- Read-only inventory of the boot geometry.
tools/bootchain_dump.pyon the 8000.sha256sumand size checks for every item; keep raw output underdist/.- Do not write any partition.
- eMMC boot-area switch research.
- Read
EXT_CSDfields through a controlled read-only ioctl or a small helper; identifyPARTITION_CONFIG, boot-bus width, boot-partition enables, and write-protect bits. - Determine which boot area the SoC selects and whether both are valid.
- Determine whether
force_rocan be cleared and later restored. - A redundant boot slot.
- If the hardware can boot either boot area, preserve one stock area and use the other only after a tested restore.
- If it cannot, the eMMC ISP path becomes mandatory.
- External eMMC recovery.
- Identify eMMC test points/package; determine whether an ISP/JTAG programmer can read and write the full device.
- Capture a full image and verify a restore before any boot write.
- UART RX.
- Revisit the
SERV.URX path and the three UART MMIO windows. - Determine whether
uart_mode:0is an ADC strap, a boot-partition field, or a hardware mux; do not assume the NVM variable is the source. - Vendor update path.
- Determine whether SAM/USB update accepts raw
xboot, ATF, kernel, or FDT components without an NFSB signature. - Map
UMFG,lnikauth,NVHC, and any rollback check before testing.
Full eMMC backup (do this first)¶
From the live root shell, with a USB filesystem large enough for the 7.3 GiB user area plus the two 4 MiB boot areas:
mount -t ext4 /dev/sda1 /media/sda1
sh /media/sda1/emmc_backup.sh /media/sda1
payloads/emmc_backup.sh reads /dev/mmcblk0, mmcblk0boot0 and
mmcblk0boot1, writes the images to the target, and writes a SHA256SUMS
file. It refuses an internal target, a non-USB target, a FAT32 target (4 GiB
limit), and insufficient free space. It does not write the eMMC.
If the TV cannot mount the target filesystem, for example an exFAT media drive, pull the same images over SSH to a workstation filesystem. The 2026-11-14 backup used that path; see the recovery gate guide.
Keep the USB copy and a second independent copy off the TV. This backup is the recovery gate for the update-environment and boot-chain work.
The restore test¶
Before a boot-chain write, prove the restore on the same unit:
- Read the full boot area and the selected metadata partitions.
- Compute hashes and keep two independent copies.
- Write the same bytes back to the same area.
- Cold boot and verify the stock boot log and root shell.
- Only then consider a modified payload.
Do not use a modified image for the first restore test.
2026-11-14 result: same-byte writes to mmcblk0boot0 and mmcblk0boot1,
read-back hashes, and cold boots succeeded. A deliberately corrupted boot area
is still untested; the boot-area selection and ISP/JTAG path remain open.
Stop conditions¶
- No full backup.
- No verified restore.
- No way to select or recover the boot area.
- Any uncertainty about the partition's role.
- Secure-boot rejection with no stock-image restore.
What this unlocks¶
A proven restore turns the 8000 into a lab where a bad boot stage is recoverable. That is the gate to Phase D (dual-boot) and Level 4.
It does not unlock DRM or secure-world keys. Those are separate trust boundaries and remain out of scope.