Skip to content

Restore to stock

Use the smallest tier that solves the problem. The documented root paths do not write to flash, so most experiments need only a cold boot.

The hook names below were tested on 55PUS8000/12. Other models may use different hooks; check the live run.sh and run_custom_impl.sh before you remove anything.

Tier 1: Remove the USB autorun

  1. Pull the USB stick.
  2. Unplug AC for 10 seconds.
  3. Plug in.

The shell, /tmp/busybox, and the iptables rule are gone. The TV boots normally. Nothing was written to flash.

Tier 2: Remove the persistence hook

From any root shell (USB or persistent), remove the hook that the installer selected:

# customer_env.sh variant:
sed -i '/root_boot.sh/d' /mtd_rwarea/apdat/customer_env.sh

# /swdl/telnet/telnetd variant:
rm -f /swdl/telnet/telnetd
rmdir /swdl/telnet 2>/dev/null || true

Then remove the shared apdat payload:

rm -f /mtd_rwarea/apdat/root_boot.sh /mtd_rwarea/apdat/busybox \
      /mtd_rwarea/apdat/root_boot.log /mtd_rwarea/apdat/root_boot.ready \
      /mtd_rwarea/apdat/root_boot.ready.failed

Inspect the files first if you want to be sure:

cat /mtd_rwarea/apdat/customer_env.sh
cat /swdl/telnet/telnetd

If /swdl/telnet/telnetd.bak exists, the installer saved a pre-existing vendor file there before replacing it. Inspect it and restore it if needed:

ls -l /swdl/telnet/telnetd.bak
# mv /swdl/telnet/telnetd.bak /swdl/telnet/telnetd

If this project created customer_env.sh and the file contains nothing else, you can remove it entirely:

rm -f /mtd_rwarea/apdat/customer_env.sh

Then cold boot. The TV should no longer listen on :2323.

Tier 3: SAM NVM/EDID restore

Only needed if you wrote NVM/EDID data and want the factory values back.

  1. Copy your pristine SAM/nvm_ubootdat.data and SAM/nvm_edid.data to an MBR/FAT32 stick labelled PHILIPS.
  2. Enter SAM: 123 -> 062596 -> 123 -> Info.
  3. Download from USB -> NVM copy (or EDID copy).
  4. Wait for "Done", then cold boot.
  5. Verify by exporting again and running:
python3 tools/uboot_nvm_tool.py verify SAM/nvm_ubootdat.data
python3 tools/edid_tool.py verify SAM/nvm_edid.data

The factory sample in samples/nvm/ is a sanity check, not a substitute for your own backup.

Tier 4: Factory reset / virgin mode

Inside SAM, Dealer Options -> Set Virgin Mode forces the initial installation wizard on the next boot and erases user data. It does not restore a modified rootfs or bootloader.

What not to do

  • Do not flash a modified rootfs or an init= parameter. There is no serial recovery on this build; a kernel panic before the UI means SAM is unavailable.
  • Do not write to the eMMC boot partitions (mmcblk0boot0/boot1) or the vendor boot0 (mmcblk0p1) without a proven recovery path.
  • Do not use a firmware package for a different chassis or Main SW ID.