0.环境配置
sudo apt-get install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python python3 python3-pip schroot xz-utils gawk debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 libssl-dev libncurses5-dev python3-subunit mesa-common-dev make android-tools-fsutils
sudo pip3 install sphinx sphinx_rtd_theme pyyaml ply
sudo apt install -y vim sbuild debhelper ubuntu-dev-tools piuparts schroot qemu qemu-user-static binfmt-support qemu-kvm qemu-utils android-sdk-libsparse-utils openssh-server
apt install network-manager bluez libbluetooth-dev
sudo ln -s /usr/bin/python3 /usr/bin/python
export PATH=/data/se1000-sdk/toolchain/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin:$PATH #自行修改路径
1.运行
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
来设置账号的缺省身份标识。
2.在运行代码
repo init -u https://gitlab.com/siengine-ubuntu-sdk/manifests.git -b main -m se1000-ubuntu-ser1.1.xml
的时候卡在Downloading Repo source from
https://gerrit.googlesource.com/git-repo
使用tuna的镜像源进行更新,修改repo文件:
REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/'
3.可能是下载太久黑屏导致的 正在更新文件: 100% (72002/72002), 完成.
git-lfs filter-process --skip: 1: git-lfs: not found
fatal: 远端意外挂断了
error.GitError: Cannot checkout toolchain: Cannot initialize work tree for toolchain
error: Cannot checkout toolchain
Checking out: 100% (13/13), done in 7.974s
error: Unable to fully sync the tree
error: Checking out local projects failed.
Failing repos:
toolchain
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
Cannot initialize work tree for toolchain
使用 -j1 --fail-fast 选项:如错误消息建议的那样,尝试使用 -j1 --fail-fast 选项来重新运行 repo sync。
repo sync -j1 --fail-fast
Fetching: 100% (13/13), done in 47.608s
repo sync has finished successfully.
一下子好了。
4.运行
git lfs pull
git:'lfs' 不是一个 git 命令。参见 'git --help'。
最相似的命令是
log
安装Git Large File Storage (LFS) 扩展
sudo apt-get update
sudo apt-get install git-lfs
安装验证:
git lfs install
Error: Failed to call git rev-parse --git-dir: exit status 128
Git LFS initialized.
git lfs --version
git-lfs/2.9.2 (GitHub; linux amd64; go 1.13.5)
5.在sebuilder all一直卡在The following packages will be upgraded:
libudev1
慢慢等着
6.rootfs编译错误
scripts/tools/build\_ubuntu\_overlayfs.sh文件删除
schroot_send_cmd "$NONINTERACTIVE_INSTALL dialog python3-tk python3.9 iperf3 git can-utils gpiod"
中的can-utils
7.ssh编译报错
scripts/tools/build\_ubuntu\_overlayfs.sh文件中ssh相关行注释掉
8.烧录
$ ./burn.sh all # 烧录所有LUN
$ ./burn.sh lun0 # 烧录单个LUN
deploy文件下编译出的文件放到downloader同一文件夹
建议加个success提示。
进入板子,可以看到已经恢复正常的环境了。
期待进行下一步的开发。
安装了v4l2框架,仍然不能使用树莓派摄像头,对这个的支持存疑。
也希望radxa尽快完善手册,并重新测试SDK的编译。期待国产开发板越来越好。