Skip to content

Instantly share code, notes, and snippets.

@RandomInsano
Last active June 16, 2018 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RandomInsano/6408a2cd6ce3ef5d07c8abab53bca23e to your computer and use it in GitHub Desktop.
Save RandomInsano/6408a2cd6ce3ef5d07c8abab53bca23e to your computer and use it in GitHub Desktop.
Trying to reverse engineer NTC's CHIP image files

The first 4MB of the file is a mystery, but the UBIFS seems to be stored uncompressed in the file and the UBIFS system is also uncompressed. You can find config files and others in the dump

UBIFS header starts with hex 31 18 10 06. I found this at offset 0x6593A, but I'm having trouble because the chip doesn't come with the nandsim kernel module.

I'm trying to follow these tutorials to mount and extract the root file system:

The partitions for UBIFS on the CHIP are the following:

# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00400000 00400000 "SPL"
mtd1: 00400000 00400000 "SPL.backup"
mtd2: 00400000 00400000 "U-Boot"
mtd3: 00400000 00400000 "env"
mtd4: ff000000 00400000 "rootfs"

Built the Chip kernel to get nandsim module...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment