TrustedSec Part II: Firmware analysis and custom ROM modding of My Arcade Contra Pocket Player (Rockchip RK3128)
This is a hardware-hacking write-up by Rob Simon (TrustedSec). It covers the My Arcade Contra Pocket Player, a handheld built on a Rockchip RK3128 SoC with Winbond SPI NAND flash. It continues Part I, which dumped the 128MB flash over RockUSB. The article describes the GPT layout, the extraction and repacking of the SquashFS rootfs, and how to swap in custom arcade ROMs. It is hobbyist modding research, not a vulnerability or an attack. It names no CVEs, no exploitation and no victims, so the direct threat is minimal.
Detalhes técnicos
- The dump has a protective MBR and a GPT with five partitions: uboot, trust, boot, rootfs and userdata. A ~4 MiB gap before the first partition holds redundant Rockchip IDB loader copies.
- The boot chain is U-Boot, then ARM Trusted Firmware, then a Linux kernel packaged as an Android boot image, then BusyBox init. The
S50uiscript launches the proprietary MiniGUI binary/usr/bin/game, which callsstart.sh,startp1.shorstartp2.sh. - The rootfs is a 65 MiB SquashFS image. It is rebuilt with mksquashfs (gzip, 128K blocks) and flashed with
rkflashtool. No signature or secure-boot check is mentioned on the flashed image. - The stock single-player MAME2016 core has only the contra, thunderx and segas32 drivers. The FBAlpha core supports thousands of titles.
- Redirecting
startp1.shwith a case block runs TMNT II and 1941 through FBAlpha. - macOS caveat: the case-colliding symlinks
libMali.soandlibmali.sobreak the repack. - The author published a modding toolkit on GitHub (Kc57/contra-pocket-mod).
Remediação
None applicable; the article describes no vulnerability. The modification needs physical USB access to the device in RockUSB mode.
Linha do tempo
-
TrustedSec Part II: Firmware analysis and custom ROM modding of My Arcade Contra Pocket Player (Rockchip RK3128)
ler a análise desta fonte ocultar
This is a hardware-hacking write-up by Rob Simon (TrustedSec). It covers the My Arcade Contra Pocket Player, a handheld built on a Rockchip RK3128 SoC with Winbond SPI NAND flash. It continues Part I, which dumped the 128MB flash over RockUSB. The article describes the GPT layout, the extraction and repacking of the SquashFS rootfs, and how to swap in custom arcade ROMs. It is hobbyist modding research, not a vulnerability or an attack. It names no CVEs, no exploitation and no victims, so the direct threat is minimal.
Technical Details
- The dump has a protective MBR and a GPT with five partitions: uboot, trust, boot, rootfs and userdata. A ~4 MiB gap before the first partition holds redundant Rockchip IDB loader copies.
- The boot chain is U-Boot, then ARM Trusted Firmware, then a Linux kernel packaged as an Android boot image, then BusyBox init. The
S50uiscript launches the proprietary MiniGUI binary/usr/bin/game, which callsstart.sh,startp1.shorstartp2.sh. - The rootfs is a 65 MiB SquashFS image. It is rebuilt with mksquashfs (gzip, 128K blocks) and flashed with
rkflashtool. No signature or secure-boot check is mentioned on the flashed image. - The stock single-player MAME2016 core has only the contra, thunderx and segas32 drivers. The FBAlpha core supports thousands of titles.
- Redirecting
startp1.shwith a case block runs TMNT II and 1941 through FBAlpha. - macOS caveat: the case-colliding symlinks
libMali.soandlibmali.sobreak the repack. - The author published a modding toolkit on GitHub (Kc57/contra-pocket-mod).
Remediation
None applicable; the article describes no vulnerability. The modification needs physical USB access to the device in RockUSB mode.