O'Reilly logo

Getting Started with Cubieboard by Olliver M. Schinagl

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Compiling and decompiling the FEX file

The script.bin file is, as its file extension suggests, a binary file. However, it is not possible to directly modify this file. The linux-sunxi community has created a set of tools to convert this binary file into a text file and vice versa. They can be found in their GitHub repository at https://github.com/linux-sunxi/sunxi-tools.

After cloning this repository, the make fex2bin command is run to build the fexc, the fex decompiler. Compiling and running this tool is probably best on a system that has a comfortable text editor available.

Running fexc to decompile the binary file will look like this:

[packt@packt:~]$ fexc -I bin -O fex script.bin script.fex

There are two shorthands in the form of symlinks to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required