CubieBoard中文论坛

 找回密码
 立即注册
搜索
热搜: unable
查看: 35654|回复: 29

Edit script.bin or script.fex for Android

[复制链接]
发表于 2013-5-20 21:27:09 | 显示全部楼层 |阅读模式
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

评分

参与人数 3威望 +21 金钱 +22 贡献 +22 收起 理由
jamesliang + 8 + 8 + 8 刚好就需要这东西
醉月 + 8 + 9 + 9 很给力!
yzbx + 5 + 5 + 5

查看全部评分

回复

使用道具 举报

发表于 2013-6-22 16:23:03 | 显示全部楼层
没人玩android么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2013-6-22 19:55:30 | 显示全部楼层
醉月 发表于 2013-6-22 16:23
没人玩android么?

做底层的会少一些吧。。。
回复 支持 反对

使用道具 举报

发表于 2013-7-29 20:00:36 | 显示全部楼层
醉月 发表于 2013-6-22 16:23
没人玩android么?

最近开始学习android.
回复 支持 反对

使用道具 举报

发表于 2013-8-27 19:45:00 | 显示全部楼层
请问在Android怎样把script.bin添加到该系统镜象中。l
主要为了方便烧录系统镜象,请大虾提供修改方法,不胜感谢!!!
回复 支持 反对

使用道具 举报

发表于 2013-9-11 12:50:09 | 显示全部楼层
我按这种设定就失败了,有线网卡的MAC依然会变,
不知道有没有其它的办法?
回复 支持 反对

使用道具 举报

发表于 2013-9-11 17:48:23 | 显示全部楼层
freechinaren 发表于 2013-8-27 19:45
请问在Android怎样把script.bin添加到该系统镜象中。l
主要为了方便烧录系统镜象,请大虾提供修改方法,不 ...

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

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

使用道具 举报

发表于 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系统上如何操作这一步? 能详细介绍一下吗?
回复 支持 反对

使用道具 举报

发表于 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
回复 支持 反对

使用道具 举报

发表于 2013-9-17 23:58:27 | 显示全部楼层
linux下也可以使用dragon,使用以下命令生成nand镜像
dragon image.cfg sys_partition.fex
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|粤ICP备13051116号|cubie.cc---深刻的嵌入式技术讨论社区

GMT+8, 2024-3-29 12:40 , Processed in 0.044806 second(s), 19 queries .

Powered by Discuz! X3.4

© 2001-2012 Comsenz Inc. | Style by Coxxs

返回顶部