Once you have the MstarUpgrade.bin file (either downloaded or dumped), the unpack tool parses the master header script. It reads the specific byte offsets, strips out the padding, and separates individual partition images (e.g., system.img , boot.img , tvconfig.img ). 3. Repacking (Rebuilding the Firmware)
It can save the header script ( ~header_script ) that the TV uses to initialize partitions and flash the payload.
: Crucial for newer builds, this script extracts AES and RSA public keys from the MBOOT binary to handle encrypted partitions. Dump Mstar Unpack Repack Tool
: For firmware with Secure Boot (common in newer devices, especially for the boot and recovery partitions). First, navigate to your unpacked folder. Then extract encryption keys from the MBOOT binary with extract_keys.py MBOOT.img keys . You can then decrypt an image using the aescrypt2 tool. An example command is: aescrypt2 1 recovery.img recovery.img.dec hex:0007FF4154534D92FC55AA0FFF0110E0 , using the default key as shown. Use your extracted key if the default fails.
Originally for routers, the community added Mstar support. It automatically runs binwalk to carve out the SquashFS partition, then unsquashfs it. Once you have the MstarUpgrade
If your TV stops turning on entirely, you may need a USB-to-TTL serial adapter (connected to the TV's VGA or earphone service port) to access the Mboot terminal environment and manually force a recovery command.
Use an image mounting tool (like OSFMount on Windows or standard loop mounting on Linux) to open system.img . Navigate to /app or /priv-app to delete unwanted factory applications. Repacking (Rebuilding the Firmware) It can save the
Modifying the unpacked files is easy (swap a PNG in /usr/share/logo/ ). The hard part is rebuilding the image so the Mstar bootloader accepts it.
Flashing custom Mstar firmware carries risks. Follow this standard recovery procedure:
Ensure that any changes to file sizes are reflected in the configuration scripts if your tool requires manual offset inputs. Most modern automated tools handle this dynamically. Step 2: Run the Repack Command Execute the repack script via your terminal:
Automatically detects partition sizes and boundaries.