统计
  • 文章总数:260 篇
  • 评论总数:0 条
  • 分类总数:14 个
  • 最后更新:2天前
原创开发板

谷歌Coral Dev Board,SD卡boot启动镜像编译:更新5.0系统

本文阅读 2 分钟
首页 开发板 正文

感谢Noli@Coral Support Team、笑幽@QQ群758666982、花开-花落@QQ群758666982

测试编译环境:ubuntu-mate 20.04,保持全程全局翻墙!!!

Prepare预备工具

sudo apt-get install build-essential qemu-user-static bc
#repo可以暂时不安装
sudo apt-get install <span style="color: #ff0000;">repo</span>
sudo apt-get install curl
sudo apt-get install git
#python-minimal这个20.04无,可以编辑/build/prereqs.mk替换为python
sudo apt-get install -y apt-transport-https apt-utils bc binutils-aarch64-linux-gnu build-essential binfmt-support ca-certificates cdbs coreutils curl debhelper debian-archive-keyring device-tree-compiler fakeroot genext2fs git gnome-pkg-tools kpartx libcap-dev libwayland-dev mtools multistrap parted pbuilder pkg-config python-minimal python2.7 python3 python3-apt python3-debian python3-git python3-setuptools qemu-user-static quilt rsync xz-utils zlib1g-dev

Install安装Docker,设置免root

安装

sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker

验证

docker -v

免密钥,$USER 改成你的登录用户名

sudo addgroup --system docker
sudo adduser $USER docker
newgrp docker

1、Sync同步Mendel

参考:https://coral.googlesource.com/docs/+/refs/heads/master/GettingStarted.md

按如下步骤操作:

1.1、设置同步sync cookie

https://www.googlesource.com/new-password

登录,将生成的cookie复制到终端运行

1.2、安装install repo

mkdir -p bin
export PATH=$PATH:$HOME/bin
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo

1.3、设置账号set name,改成你的google用户名、邮箱!!!很重要

git config --global user.name "Your Name"
git config --global user.email "you@example.com"

1.4、repo sync同步

更新:

5.0 Eagle (Jul 2020)

4.0 Day (Nov 2019)

3.0 Chef (Apr 2019)

mkdir ~/coral
cd ~/coral
repo init -u https://coral.googlesource.com/manifest -b release-eagle
repo sync -j$(nproc)

2、设置工作目录set working directory

source build/setup.sh
m prereqs

3、使用docker编译固件build with Docker

FETCH_PACKAGES=true m docker-sdcard

生成的sdcard_armv8.img位于coral/out/target/product/imx8m_phanbell

4、使用rufus将sdcard_armv8.img写入TF卡write img to sd card

Rufus下载:http://rufus.ie/

5、设置主板从TF卡启动boot from sd card

2494131344.png

6、SD卡扩容resize SD card

sudo fdisk /dev/mmcblk1
p   #查看分区状况,注意mmcblk1p2的start数值
d   #输入2,删除mmcblk1p2
n
p   #新建分区,输入2,First输入上面mmcblk1p2的start数值,Last默认数值
w   #保存更改
sudo reboot   #重启系统

7、已编译好固件共享share sdcard_armv8.img

sdcard_armv8_5.0_20200827 by miji.cn.img

sdcard_armv8_4.0_20191202 by miji.cn.img

sdcard_armv8_3.0_20190620 by miji.cn.img

百度网盘:3.0 4.0 5.0 链接:点击下载 提取码:miji

MEGA网盘:5.0 链接:点击下载

原创文章,作者:ERROR204,本文章内容未经书面许可禁止一切形式的转载:https://imnks.com/224.html
谷歌Edge TPU系统编译:Getting Started with Mendel Linux
« 上一篇 12-17
黑群晖6.2.3通用GHOST安装教程 U盘引导+二合一
下一篇 » 12-17