Post Last Edited by tony_zhang at 2014-5-4 12:55 |
Post Last Edited by tony_zhang at 2014-5-3 13:30
Post Last Edited by tony_zhang at 2014-5-3 13:29
script.bin is a binary configuration file (lubuntu) used by Allwinner SOC core driver or LiveSuit. And it contains the information that how to set the peripherals, port, and I/O pins of A10/A20 target board.
Because we can not compile the script.bin file directly, we have to modify the corresponding text file whose format is FEX. We can use the sunxi-tools to change binary file into text file or change it back. You can refer to more information as below:
1 Download sunxi-tools tool:
Then go into sunxi-tools menu, and generate fex2bin and bin2fex file through “make” command. Copy the Code
- git clone git://github.com/linux-sunxi/sunxi-tools.git
2 How to get FEX file.
A. Get from AllWinner
Over there, it contains FEX file for different kinds of chipset such as A10 and A20, but currently banana Pi does not put their own FEX file in the Allwinner git, so the FEX file from Allwinner is just for study. So the FEX file from Allwinner can not be used at this stage.
B. Get from image file.
Take the Cubieboard_For_BananaPi_v1.0 image file as an example. When we burn the image into SD card, we can get the script.bin file from the first folder after the system booting, then we can use bin2fex tool to change it into compiled fex file.
3 Compile FEX file.
As we known, the Cubieboard_For_BananaPi_v1.0 can not use the Realtek wireless chipset such as rt5370sta, 8188eu, 8189es, 8192 and so on in default mode. Therefore we need modify script.bin file, then we can use the wifi chipset normally. I will show this process as below.
As shown above, we have used bin2fex tool to get the fex file. We can open this fex file with text tool(such as nano). Actually, we just need add several lines codes as below:
Save the file, then exit.
4 Generate scrip.bin file.
Use fex2bin tool to re-compile the modified fex file into script.bin file, then copy the new scripy.bin file to the first folder.
So far, we can insert the SD card to Banana Pi, and reboot. And you can use 8188eu usb wireless module since we have finished modify script.bin file.