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 * ...
随机推荐
- k8s使用ceph作为后端存储挂载
一.在ceph集群上操作: 1.创建池(主要使用存储类来进行持久卷的挂载,其他的挂载方式不好使也太麻烦):ceph osd pool create k8s 64 二.在k8s上操作: 1.安装客户端( ...
- HackerRank - journey-to-the-moon 【并查集】
HackerRank - journey-to-the-moon [并查集] 题意 有很多不同的宇航员,有些宇航员来自同一个国家,有些宇航员来自不同的国家,然后美国航天局想要选出两名来自不同国家的宇航 ...
- gc摘要
1. Sun JDK 1.6 GC(Garbage Collector) http://bluedavy.com2010-05-13 V0.2 2010-05-19 V0.52010-06-01 V0 ...
- mysql中int(M) tinyint(M)中M的作用
原先对mysql不太理解,但也没有报错.但理解的不够深入.这次补上. 原来以为int(11)是指11个字节,int(10)就是10个字节.我错了. http://zhidao.baidu.com/li ...
- GPU:并行计算利器
http://blog.jobbole.com/87849/ 首页 最新文章 IT 职场 前端 后端 移动端 数据库 运维 其他技术 - 导航条 - 首页 最新文章 IT 职场 前端 - Ja ...
- Spring 之高级装配
[环境与Profile] 暂略 [条件化的bean] 暂略 [处理自动装配歧义性] 暂略 [ bean 的作用域] 在 @Componen . @Bean 下以及 XML 中的声明方式如下所示, @C ...
- 项目中使用better-scroll实现移动端滚动,报错:Cannot read property 'children' of undefined better-scroll
就是外面的盒子和要滚动的元素之间要有一层div, 插件挂载的元素是menuWrapper,可以滚动的元素是ul,在这两个元素之间加一个div元素即可解决问题.
- 做Webservice时报错java.util.List是接口, 而 JAXB 无法处理接口。
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExc ...
- 【bzoj5427】最长上升子序列(贪心+LIS)
题目传送门:https://www.lydsy.com/JudgeOnline/problem.php?id=5427 因为noip,博客咕了好久,这几天集中填一下坑. 这题我们可以假设往不确定的空位 ...
- 使用ConcurrentLinkedQueue惨痛的教训
服务端原本有个定时任务对一个集合ArrayList 中的消息做处理. 因为考虑到处理消息是先进先出原则,所以优化的时候考虑改用ConcurrentLinkedQueue 当时没仔细深入研究过这个集合就 ...