• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

faf0/macos-qemu-rpi: Bash scripts to run Raspbian (ARM architecture) on macOS Ca ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

faf0/macos-qemu-rpi

开源软件地址(OpenSource Url):

https://github.com/faf0/macos-qemu-rpi

开源编程语言(OpenSource Language):

Shell 100.0%

开源软件介绍(OpenSource Introduction):

macos-qemu-rpi

Bash scripts to run Raspbian (ARM architecture) on macOS Catalina using QEMU

Note on Native Emulation Alternative

As of October 2020, consider leveraging QEMU's native emulation of the Raspi2/3 that became available instead of running the scripts in this directory. Navigate to the native-emulation/ directory to try native emulation. QEMU version 5.1 or higher is required.

See https://github.com/dhruvvyas90/qemu-rpi-kernel/tree/master/native-emuation for background information on the use of QEMU's native emulation.

Installation

Install homebrew, if you haven't already. Next, run the following script:

./install.sh

Running Raspbian in QEMU

./run.sh

This script doesn't require macOS, but the Raspbian image/kernel and QEMU are required.

Note that this scripts forwards port TCP/5022 on the host (e.g., macOS) to port TCP/22 on the Raspbian guest where Raspbian's SSH server is listening. To run Raspbian in QEMU, no other application including Raspbian may listen on port TCP/5022 on the host.

Logging into Raspbian

Either log in via the QEMU console or use SSH:

ssh -F /dev/null -o "PreferredAuthentications password" -o "PasswordAuthentication yes" -p 5022 [email protected]

If you can't connect, sshd probably failed to start in QEMU. In this case, log in via the QEMU console, and then run sudo service ssh restart to restart sshd in QEMU.

To get a root shell, run the following:

sudo bash

Note that no desktop manager is running, as the "Lite" image is used. See https://www.raspberrypi.org/software/operating-systems/ for pointers to other images.

Shutting Down Raspbian

Log into Raspbian, and then execute sudo halt in the Raspbian shell.

Tutorials

Advanced configuration instructions under Raspbian are provided at https://azeria-labs.com/emulate-raspberry-pi-with-qemu/

Acknowledgements

Scripts in this repository are based on https://gist.github.com/hfreire/5846b7aa4ac9209699ba#gistcomment-3075728 . Credit goes to @janwillemCA, @tinjaw, and the other contributors to that GitHub gist.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
blacktop/lporg: Organize Your macOS Launchpad Apps发布时间:2022-08-18
下一篇:
leogitpro/Hackintosh-DeskMini310: MacOS on ASRock DeskMini 310/com发布时间:2022-08-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap