2 Star 4 Fork 2

David-dwd / QEMU_BSP

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

1. 简介

1.1 基于QEMU_v4.2版本,参考百问网的修改移植百问网对QEMU的改动

添加了更多的GUI显示,
添加了更多的设备模拟,
让用户可以更有真实感地使用QEMU来模拟IMX6ULL板子。
百问网公开所有的源码,发起一个开源项目: qemu_imx6ull
官方主页是: > http://wiki.100ask.org/100ask_imx6ul_qemu

1.2 修改相关内容使其支持编译生成windows版本的qemu

在windows下运行qemu可使qemu的运行效率变快,
添加内存申请mmam.c解决代码中对mmap和munmap函数的使用,
增加宏定义区分Linux编译和Windows(MINGW)编译。

2. 体验QEMU

2.1 下载qemu

https://gitee.com/DAI_David/QEMU_BSP/repository/archive/master.zip

2.2 解压

下载完成后解压到本地硬盘得到QEMU_BSP

2.3 搭建MINGW环境

2.3.1 安装msys2

打开msys2官网http://www.msys2.org/下载x64版的msys2, 安装到目录d:\msys64
打开python官网https://www.python.org/下载python2的版本,安装Python2到目录D:\Python27

2.3.2 增加国内源

进入目录D:\msys64\etc\pacman.d
在mirrorlist.msys的前面插入
    Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch/
    Server = http://mirrors.ustc.edu.cn/msys2/msys/$arch/
    Server = http://mirror.bit.edu.cn/msys2/msys/$arch/
在mirrorlist.mingw32的前面插入
    Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686/
    Server = http://mirrors.ustc.edu.cn/msys2/mingw/i686/
    Server = http://mirror.bit.edu.cn/msys2/mingw/i686/
在mirrorlist.mingw64的前面插入
    Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64/
    Server = http://mirrors.ustc.edu.cn/msys2/mingw/x86_64/
    Server = http://mirror.bit.edu.cn/msys2/mingw/x86_64/

2.3.3 更新源

双击运行D:\msys64\msys2.exe
1. 若你的网络需要代理,不需要的请忽略以下信息
$ export http_proxy=xxx.xxx.xxx.xxx:xxxx
$ export https_proxy=xxx.xxx.xxx.xxx:xxxx
2. 更新源
$ pacman -Syu //(更新完毕后需要用资源管理器结束MSYS2 terminal进程)
重新运行msys2
$ pacman -Su

2.3.4 安装MINGW64

在D:\msys64\home\用户 修改.bashrc增加如下命令:
    export PATH=/d/Python27:/d/Python27/DLLs:/d/msys64/mingw64/bin:$PATH
重新运行msys2
$ pacman -S base-devel git
$ pacman -S mingw-w64-x86_64-binutils mingw-w64-x86_64-crt-git
$ pacman -S mingw-w64-x86_64-headers-git mingw-w64-x86_64-gcc-libs
$ pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-gdb mingw-w64-x86_64-make
$ pacman -S mingw-w64-x86_64-tools-git mingw-w64-x86_64-pkg-config
$ pacman -S mingw-w64-x86_64-winpthreads-git mingw-w64-x86_64-libwinpthread-git
$ pacman -S mingw-w64-x86_64-winstorecompat-git mingw-w64-x86_64-libmangle-git
$ pacman -S mingw-w64-x86_64-pixman mingw-w64-x86_64-SDL2 mingw-w64-x86_64-glib2
$ pacman -S mingw-w64-x86_64-capstone

2.3.5 编译qemu源码

运行msys2进入到QEMU源码路径(建议源码解压到D:\msys64\home\用户)
$ cd QEMU_BSP
$ mkdir build
$ cd build
$ ../configure --prefix=$PWD/exe/ --target-list="arm-softmmu" --disable-debug-info --enable-sdl --enable-tools --disable-curl --disable-werror
$ make -j4 //(看你CPU处理器个数,处理器多的可以给多点)
//看到"  GEN     arm-softmmu/qemu-system-arm.exe"就代表编译完成了
$ make intsall
$ cd exe
$ ls -l qemu-system-arm.exe //就代表已经成功编译生产qemu-system-arm.exe

2.3.6 搭建IMX6ULL环境

将编译好的build\exe\qemu-system-arm.exe替换qemu_imx6ull_windows\qemu\bin下的qemu-system-arm.exe文件
请跳转 > https://gitee.com/DAI_David/qemu_imx6ull_windows/tree/master

Comments ( 0 )

Sign in for post a comment

About

No description spread retract
C
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
C
1
https://gitee.com/DAI_David/QEMU_BSP.git
git@gitee.com:DAI_David/QEMU_BSP.git
DAI_David
QEMU_BSP
QEMU_BSP
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542