【问题标题】:Is there a Vagrant box that simulates a Raspberry Pi?是否有模拟 Raspberry Pi 的 Vagrant 盒子?
【发布时间】:2016-03-07 04:49:10
【问题描述】:

我正在考虑评估用于使用 Raspberry Pi 对 ARM 芯片进行编程的工具链,并且我想运行一个模拟 Raspberry 环境的 Vagrant 盒子。

有谁知道这样的东西是否可用? (我已经在网上搜索了解决方案,但我可能向 Google 提出了错误的问题 :)

【问题讨论】:

    标签: raspberry-pi vagrant raspbian


    【解决方案1】:

    没有 Vagant 盒子来模拟 RPi,因为正如 @Cerin 所说,Virtual Box(Vagrant 使用的)不支持 Rapsberry Pi 架构(ARM)。 但是有一个 docker 为在 qemu 上运行的 Raspbian 映像提供了一个 shell。

    在这里快速设置:https://gist.github.com/Manu343726/ca0ceb224ea789415387

    请注意,本指南是为 arch linux 编写的。你可以对 debian/ubuntu 执行相同的操作,将 yaourt -S 调用更改为 sudo apt install

    【讨论】:

      【解决方案2】:

      存在用于 Raspberry Pi 的 rpi-build-and-boot 或更旧的 raspberry-devbox Vagrant 开发盒。

      【讨论】:

      • 我注意到了,但查看它使用的 Vagrant 文件 "box.vm.box = "ubuntu-10.04.3-server-amd64-asq"" 。和 Rasbian 一样吗?
      • 不,不一样。这是一个可用于树莓派开发和交叉编译的图像。另见this issue
      • 或者this one 可以帮助你。它也是最新的。
      • 注意,这些都不是模拟树莓派。它们都使用不支持 ARM 的 Virtualbox,因此无法模拟 Pi 的 ARM 处理器。看起来他们只是建立了一个交叉编译环境,但这与模拟 Pi 不同。
      猜你喜欢
      • 2021-10-02
      • 2017-11-24
      • 1970-01-01
      • 2014-06-25
      • 1970-01-01
      • 2020-09-21
      • 2015-05-06
      • 2016-12-14
      • 2015-10-11
      相关资源
      最近更新 更多