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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章