RPi 2B QEMU 模拟树莓派
/********************************************************************************
* RPi 2B QEMU 模拟树莓派
* 说明:
* 网络上又找到一些资料,不过在我的电脑上运行会出一些问题,经验证,需要提前
* 修改文件系统中的链接库和分区挂载表。
*
* 2017-5-21 台湾 中和区 曾剑锋
*******************************************************************************/ 一、参考文档:
. Emulating Jessie image with .x.xx kernel
https://github.com/dhruvvyas90/qemu-rpi-kernel/wiki/Emulating-Jessie-image-with-4.x.xx-kernel
. Change Screen Resolution?
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=136280
. CONFIG.TXT
https://www.raspberrypi.org/documentation/configuration/config-txt/README.md 二、下载内核:
https://github.com/dhruvvyas90/qemu-rpi-kernel 三、下载树莓派系统:
. https://downloads.raspberrypi.org/raspbian_lite_latest
. https://downloads.raspberrypi.org/raspbian_latest 四、操作流程:
. 文件系统修改:
. fdisk -l <树莓派系统镜像>
zengjf@zengjf:~/rpi$ sudo fdisk -l ---raspbian-jessie-lite.img
[sudo] password for zengjf:
Disk ---raspbian-jessie-lite.img: 1.3 GiB, bytes, sectors
Units: sectors of * = bytes
Sector size (logical/physical): bytes / bytes
I/O size (minimum/optimal): bytes / bytes
Disklabel type: dos
Disk identifier: 0xb2455b06 Device Boot Start End Sectors Size Id Type
---raspbian-jessie-lite.img1 63M c W95 FAT
---raspbian-jessie-lite.img2 .2G Linux . 磁盘偏移计算: * =
. mount -v -o offset= -t ext4 your-image-file.img /mnt
. cd /mnt
. sudo vim ./etc/ld.so.preload
注释掉所有的内容就可以了,一般里面只有一行,直接注释掉就OK了。
. sudo vim ./etc/fstab
看到和/dev/mmcblk有关的都可以注释掉。
. cd ~
. sudo umount /mnt
. 参考运行命令:
. lite版参考执行命令
qemu-system-arm -kernel kernel-qemu-4.4.-jessie -cpu arm1176 -m -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ---raspbian-jessie-lite.img
. desktop版参考执行命令
qemu-system-arm -kernel kernel-qemu-4.4.-jessie -cpu arm1176 -m -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -hda ---raspbian-jessie.img


RPi 2B QEMU 模拟树莓派的更多相关文章
- 使用QEMU模拟树莓派
QEMU上的树莓派 我们开始设置一个Lab VM.我们将使用Ubuntu并在其中模拟我们所需的ARM版本. 首先,获取最新的Ubuntu版本并在VM中运行它: https://www.ubuntu.c ...
- RPi 2B USB 远程桌面
/******************************************************************** * RPi 2B USB 远程桌面 * 说明: * 用作废的 ...
- Android telnet RPi 2B
/************************************************************************* * Android telnet RPi 2B * ...
- RPi 2B Android telnet ssh
/*********************************************************************** * RPi 2B Android telnet ssh ...
- RPi 2B Documentation
/********************************************************************** * RPi 2B Documentation * 声明: ...
- RPi 2B Raspbian system install
/***************************************************************************** * RPi 2B Raspbian系统安装 ...
- RPi 2B SD read-only filesytem
/**************************************************************************** * RPi 2B SD read-only ...
- RPi 2B apache2 mysql php5 and vsftp
/************************************************************************* * RPi 2B apache2 mysql ph ...
- windows 远程桌面连接 RPi 2B
/************************************************************************* * windows 远程桌面连接 RPi 2B * ...
随机推荐
- html 基础 超链接
***设置超链接的样式示例 a:link 超链接被点前状态 a:visited 超链接点击后状态 a:hover 悬停在超链接时 a:active 点击超链接时 在定义这些状态时,有一个顺序l v ...
- 20145201《Java程序设计》第九周学习总结
20145201 <Java程序设计>第九周学习总结 教材学习内容总结 JDBC是用于执行SQL的解决方案,开发人员使用JDBC的标准接口,数据库厂商则对接口进行操作,开发人员无须接触底层 ...
- Spring boot + jdbc学习笔记
pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www. ...
- 用树状数组求逆序对数(poj2299)
Ultra-QuickSort Time Limit: 7000MS Memory Limit: 65536K Total Submissions: 46995 Accepted: 17168 ...
- git 强制放弃本地修改(新增、删除文件)【转】
本文转载自:https://blog.csdn.net/u012672646/article/details/56676804 本地修改了一些文件,其中包含修改.新增.删除的,不需要了想要丢弃,于是做 ...
- Intellij IDear关闭页面浏览器显示图标
如在xml页面或html页面,右上角老显示 看着特别不爽,可以如此关闭 第一步 File->setting 第二步
- geoserver源码maven编译相关问题
1.登陆失败跳转404错误 登陆失败后指向的路径为: http://192.168.15.97:8080/hgisserver/web/wicket/bookmarkable/org.geoserve ...
- ASP.NET动态生成GridView的使用
根据DataTable动态生成包含checkbox的GridView,其中DataTable中对应checkbox那一列的值必须为bool值. public static GridView Dynam ...
- hdu 5777 domino 贪心
domino Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others) Problem ...
- apue.3e源码下载及编译
下载地址:http://www.apuebook.com/code3e.html 编译方法:http://blog.sina.com.cn/s/blog_94977c890102vdms.html