1. 秘技数码首页
  2. 开发板

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

感谢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 repo

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_arm64.img位于coral/out/target/product/imx8m_phanbell

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

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

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

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

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_arm64.img

sdcard_arm64_5.0_20200827 by miji.cn.img

sdcard_arm64_4.0_20191202 by miji.cn.img

sdcard_arm64_3.0_20190620 by miji.cn.img

百度云:3.0 4.0 5.0 链接:https://pan.baidu.com/s/1BJ_a9_SQirOv29zUhTYtyw 提取码:miji

MEGA:5.0 https://mega.nz/folder/yHQARIjK#6lxGHtit_iuVIyWnCxuNJw

原创文章,作者:MIJI.CN,如若转载,请注明出处:https://miji.cn/2381,站长联系QQ:656020080

发表评论

登录后才能评论