qemu运行firmware

binwalk -e firmware 对固件进行提取,得到的目录下有squashfs-root(分析的固件为squash文件系统)
进入到该目录下,可以看到该firmware的文件,如下
root:~/IoT/firmware/adm5120/_openwrt-adm5120-p-334wt-squashfs-webui.bin.extracted/squashfs-root# ls
bin etc lib64 overlay qemu-mips root sys usr www
dev lib mnt proc rom sbin tmp var

ldd查看qemu-mips的依赖,并解决依赖问题
qemu-mips -L ./bin/busywork
执行chroot ./ ./qemu-mips ./bin/busybox ash

BusyBox v1.15.3 (2010-04-06 03:13:32 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/ # help
Built-in commands:


. : [ [[ alias bg break cd chdir command continue echo eval exec
exit export false fg getopts hash help jobs kill let local printf
pwd read readonly return set shift source test times trap true
type ulimit umask unalias unset wait

/ # exit

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • mean to add the formatted="false" attribute?.[ 46% 47325/...
    ProZoom阅读 2,731评论 0 3
  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,486评论 0 10
  • 3.操作系统设计 3.1.Linux内核配置 ONIE提供了一个网络操作系统(NOS)安装镜像可以运行的环境。因此...
    半天妖阅读 2,612评论 0 0
  • 两只蝴蝶落青莲 籽香花艳舞翩翩 风吹池塘动荷叶 花开富贵有余年
    007008阅读 648评论 6 11
  • 20.我们今天这期节目的主题词是生命,说到生命,你会想到什么呢?四季轮回,生命交替,一个你爱他如生命一般的人,还是...
    行走的蚂蚁yqb阅读 296评论 0 0