siriux 发表于 2013-5-20 21:27:09

Edit script.bin or script.fex for Android

1. You may need fex2bin and bin2fex:
    git clone git://github.com/linux-sunxi/sunxi-tools.git
    cd sunxi-tools
   make
   With the using of ls, you can find the fex2bin and bin2fex.

2. Copy the script.bin from Android.
$adb shell
    $mkdir /mnt/tmp
    $mount -t vfat /dev/block/nanda /mnt/tmp
   (Attention it's different from Linux.)
    $exit
    $adb pull /mnt/tmp/script.bin

3.Convert the script.bin to script.fex.
    $chmod 777 script.bin
    $./bin2fex script.bin > ./script.fex
    $gedit script.fex
Now, you can edit the script.fex.
    Don't forget saving the file when you leave it.

4. Convert the script.fex to script.bin and push it back to the CB.
    $./fex2bin script.fex > ./script.bin
    $adb push script.bin /mnt/tmp
    $adb shell
    $umount /mnt/tmp
    $reboot
    It will restart the CB. The new script.bin will come into effect.

Reference:
1. [教程]如何修改script.bin/script.fex   

At last,thanks for WindLand

醉月 发表于 2013-6-22 16:23:03

没人玩android么?

siriux 发表于 2013-6-22 19:55:30

醉月 发表于 2013-6-22 16:23 static/image/common/back.gif
没人玩android么?

做底层的会少一些吧。。。

yzbx 发表于 2013-7-29 20:00:36

醉月 发表于 2013-6-22 16:23 static/image/common/back.gif
没人玩android么?

最近开始学习android.

freechinaren 发表于 2013-8-27 19:45:00

请问在Android怎样把script.bin添加到该系统镜象中。l:)
主要为了方便烧录系统镜象,请大虾提供修改方法,不胜感谢!!!
:(:)

mkylg 发表于 2013-9-11 12:50:09

我按这种设定就失败了,有线网卡的MAC依然会变,
不知道有没有其它的办法?

f839903061 发表于 2013-9-11 17:48:23

freechinaren 发表于 2013-8-27 19:45 static/image/common/back.gif
请问在Android怎样把script.bin添加到该系统镜象中。l
主要为了方便烧录系统镜象,请大虾提供修改方法,不 ...

帖主提供的方法是已经把固件烧录到开发板里面了

如果你有固件,那么你可以通过windows软件:DragonFace.exe
选择高级设置,然后修改系统配置,这个文件就是sys_config1.fex文件烧录到系统自动变为script.bin文件

cbandroid 发表于 2013-9-17 17:17:21

1. You may need fex2bin and bin2fex:
    git clone git://github.com/linux-sunxi/sunxi-tools.git
    cd sunxi-tools
   make
   With the using of ls, you can find the fex2bin and bin2fex.

android系统上如何操作这一步? 能详细介绍一下吗?

lzg666456 发表于 2013-9-17 23:55:19

安卓上有git吗?git这个工具win/linux系统都有。
我遇到了script.bin错误导致启动不了
Starting kernel ...

aw_clkevt_init: sun7i_timer0_clockevent mult 6442450, max_delta_ns 170000, min_delta_ns 1000, cpumask 0xc045a80c, irq 54
不知道怎么去找官方的script.bin

lzg666456 发表于 2013-9-17 23:58:27

linux下也可以使用dragon,使用以下命令生成nand镜像
dragon image.cfg sys_partition.fex
页: [1] 2 3
查看完整版本: Edit script.bin or script.fex for Android