高通SG882G平台(移远),Ubuntu22编译:1、下载代码
不要使用Ubuntu24,不稳定。
docker听着美好,其实也有问题。比如你给别人的时候,虚拟机直接给过去,马上就能用。
- 安装工具
sudo apt-get install -y \
diffstat xmlstarlet texinfo chrpath gcc-aarch64-linux-gnu libarchive-dev ssh \
libselinux1-dev fakechroot g++-aarch64-linux-gnu libiberty-dev qemu-user-static \
g++ gawk gcc make libwayland-dev fakeroot libpam0g-dev openjdk-8-jdk-headless \
binutils-dev util-linux uuid-dev zstd liblz4-tool libxml2-utils build-essential \
wget git git-core unzip python-pip python3 python3-pexpect socat \
cpio xz-utils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev \
xterm unzip rsync liblz4-tool zstd// python python3-pip pylint3
- 下载代码
下载代码要权限。没有权限会报错的。
http方便,直接输入用户密码。中间会出错。所以还是不得不使用ssh。
时间较长,注意耐心。
git clone ssh://git@git-master.quectel.com:8407/smart/qcs8550_linux_bl01_r079.git
建议使用断点续传。参考:
git断点续传,中断后继续下载-CSDN博客
- 切换分支
$ git branch -a
SG882G_rl
$ git checkout SG882G_rl