google-coral - 如何使用 Coral 开发板启动 SD 卡上的 Mendel OS?
问题描述
从这个指令看,谷歌似乎允许引导到 sdcard。然而,他们提供的镜像(recovery.img)只是一个自动启动板到 U-boot 的镜像,之后您仍然需要使用 USB 将 MendelOS 闪存到 eMMC。我想将整个操作系统放在 sdcard 上,这样更容易复制它并保存操作系统的状态。
解决方案
为了创建可以闪存到 SD 卡中的 MendelOS 映像,您需要自己构建映像。执行此操作的步骤:
- 从这里克隆 Mendel repo 的源代码
# Get the repo binary that's necessary to clone Mendel
$ mkdir -p bin
$ export PATH=$PATH:$HOME/bin
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
# Setup your git env
$ git config --global user.name "Your Name"
$ git config --global user.email "you@example.com"
# clone the repo
$ mkdir mendel && cd mendel
$ repo init -u https://coral.googlesource.com/manifest -b release-day
$ repo sync -j$(nproc)
- 确保主机上的构建系统满足以下要求:
# System
A 64-bit CPU
Kernel 4.15 or newer
binfmt-support 2.1.7 or newer
# OS
The suggested OSes are: Ubuntu 18.10+ or Debian Buster or newer.
# Install qemu
$ sudo apt-get install qemu-user-static
# Install docker
$ sudo apt-get install docker.io
$ sudo adduser $USER docker
- 建造:
$ sudo su
$ source build/setup.sh
$ FETCH_PACKAGES=true m docker-sdcard
构建成功后,您将在 out 目录中看到您的 sdcard 映像。您可以使用命令或一些诸如Balena Etcherdd
之类的opensrouce 工具将其安装到您的 sdcard 。
- 通过将引导开关切换到此处描述的 ON OFF ON ON 来启用从 sd 卡引导。
干杯!
推荐阅读
- python - 如何在opencv(python)中制作颜色梯度加权距离图像
- c# - 用 C# 构建康威人生游戏
- sql - SQL Server:使用批量导出实用程序将数据导出到 csv 文件时删除换行符
- maven - Maven 中的版本不适用于名称中带有特殊字符的项目,例如“_”
- java - Thymeleaf - 将变量传递给控制器
- c - c语言中的变长数组替代
- javascript - 使用动态扩展类表达式创建新元素
- java - Java Selenide - 在循环期间进行修改的 For-Looping ElementsCollection
- css - 速记模态内容不适用于 React Semantic UI 中的 HTML 标签
- python-3.x - 我正在尝试在窗口上显示鼠标位置,但无法更新窗口上的文本