Skip to content

Instantly share code, notes, and snippets.

@CodeZombie
Created September 28, 2026 02:13
Show Gist options
  • Select an option

  • Save CodeZombie/db01684d349159f1391edb7bc37720fb to your computer and use it in GitHub Desktop.

Select an option

Save CodeZombie/db01684d349159f1391edb7bc37720fb to your computer and use it in GitHub Desktop.
GA36-MB extract FEX

How to extract the .fex file from the SD card dump of a GA36-MB firmware.

  1. Install bin2fex via sunxi-tools: https://linux-sunxi.org/Sunxi-tools
  2. Find the offset of script.bin: grep -obUaP "product\x00" sdcard.img | awk -F: '$1>20000000 && $1<20400000'
  3. That will give you some offsets. Try them in reverse order, subtracting 16.
  4. dd if=sdcard.img of=script.bin bs=1 skip=<the offset you just found - 16> count=131072 status=progress
  5. Attempt to convert it: bin2fex script.bin > hardware.fex
  6. If it gives you an error, try the other offset(s) you found.

NOTE: script.bin will exist in the first 128mb of the sdcard, so you can cut that out first before step 2 if you want to save time.

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