首页 > 解决方案 > 如何使用 Coral 开发板启动 SD 卡上的 Mendel OS?

问题描述

这个指令看,谷歌似乎允许引导到 sdcard。然而,他们提供的镜像(recovery.img)只是一个自动启动板到 U-boot 的镜像,之后您仍然需要使用 USB 将 MendelOS 闪存到 eMMC。我想将整个操作系统放在 sdcard 上,这样更容易复制它并保存操作系统的状态。

标签: google-coral

解决方案


为了创建可以闪存到 SD 卡中的 MendelOS 映像,您需要自己构建映像。执行此操作的步骤:


    # 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 。

干杯!


推荐阅读