firmadyne模拟运行DIR-850L固件

参考资料

https://blog.csdn.net/Mira_Hu/article/details/103887248
https://github.com/firmadyne/firmadyne#compiling-from-source
https://blog.csdn.net/qq_26093511/article/details/78754574

坑点说明

  • Ubuntu14.04环境
  • apt-get太慢,更新了清华的源之后好多了:https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/
vim /etc/apt/source.list写入
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
  • apt-get update 时太慢,需要清除破损而且陈旧的PPA仓库:``
  • pip install速度也很慢,需要换个豆瓣的源
vim ~/.pip/pip.conf 写入
[global]
index-url = http://pypi.douban.com/simple
trusted-host = pypi.douban.com
disable-pip-version-check = true
timeout = 120
  • 下载firmadyne编译好的二进制文件太慢./download.sh,FQ下载就快了
    编译QEMU时的报错
  • ./configure --target-list="mips-linux-user mipsel-linux-user arm-linux-user" --static时报错ERROR: glib-2.22 gthread-2.0 is required to compile QEMU
    • 解决方法:apt-get install libglib2.0-dev
  • make -j8时会报错flex bison未找到等错误
    • 解决方法,安装相应应用:apt-get install flex bison autoconf automake libtool libffi-dev
  • 解压固件时还需要安装pip install psycopg2,这是python链接postgresql数据库的库,但在安装此库可能报错,还需要安装apt-get install libpq-dev python-dev

弃疗

还是直接下载Attify的虚拟机吧[faceplam]:
https://github.com/adi0x90/attifyos

cd ~/tools/firmadyne
sudo python ./fat.py
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值