From b0a434352ddeaa7e1d9f4bb338bba47a07329902 Mon Sep 17 00:00:00 2001 From: hehaoyang Date: Mon, 13 Nov 2023 22:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0gitea=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E6=90=AD=E5=BB=BA=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 5 ----- GIT/仓库迁移.md | 13 +++++++++++++ RK3568/移远/编译固件.md | 15 +++++++++++---- Ubuntu/gitea搭建.md | 14 ++++++++++++++ 4 files changed, 38 insertions(+), 9 deletions(-) delete mode 100644 .vscode/settings.json create mode 100644 GIT/仓库迁移.md create mode 100644 Ubuntu/gitea搭建.md diff --git a/.vscode/settings.json b/.vscode/settings.json deleted file mode 100644 index b9d5dac..0000000 --- a/.vscode/settings.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "files.associations": { - "DP1363F.C": "cpp" - } -} \ No newline at end of file diff --git a/GIT/仓库迁移.md b/GIT/仓库迁移.md new file mode 100644 index 0000000..efa8d6e --- /dev/null +++ b/GIT/仓库迁移.md @@ -0,0 +1,13 @@ +# 仓库迁移 + +* 从原仓库地址克隆一份裸版本库 + +``` +git clone --bare https://gitee.com/oldxxx/oldxxx.git +``` + +* 原仓库所有分支同步新仓库 + +``` +git push --mirro https://gitee.com/newxxx/newxxx.git +``` \ No newline at end of file diff --git a/RK3568/移远/编译固件.md b/RK3568/移远/编译固件.md index 18adb3b..0e12fbf 100644 --- a/RK3568/移远/编译固件.md +++ b/RK3568/移远/编译固件.md @@ -16,7 +16,12 @@ git clone https://git-master.quectel.com/smart/rk3568_ubuntu_r60_v1.3.2.git ``` --> ``` -git clone http://192.168.1.223:3000/hehaoyang/rk3568_ubuntu_r60_v1.3.2.git +git clone http://192.168.1.223:3000/hehaoyang/quectel_rk3568_ubuntu_r60_v1.3.2.git + +cd quectel_rk3568_ubuntu_r60_v1.3.2 +chmod 777 -R yocto/packages/ +chmod 777 -R buildroot/dl/ + # 切换分支 ``` @@ -32,7 +37,7 @@ sudo dpkg -i qemu-user-static_7.2+dfsg-5ubuntu2.2_amd64.deb ``` docker load -i smartlinux-docker-ubuntu2004_v1.2.tar.gz -docker run --privileged -v /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/:/home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/ -it 0bf5597a5df5 /bin/bash +docker run --privileged -v /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/:/home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/ -it 0bf5597a5df5 /bin/bash ``` ### 编译 @@ -41,7 +46,7 @@ apt-get update apt-get install -y rsyslog curl libxslt1-dev asciidoc cd /home/hehaoyang/works usermod -u 1001 quectel -cd /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/ +cd /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2/yocto/poky/scripts/postinst-intercepts/ chmod 664 ./* chmod 755 postinst_intercept cd ../../../../ @@ -49,9 +54,11 @@ chown -v -R quectel /home/hehaoyang/works/quectel/ su quectel -git config --global --add safe.directory /home/hehaoyang/works/quectel/rk3568_ubuntu_r60_v1.3.2 +git config --global --add safe.directory /home/hehaoyang/works/quectel/quectel_rk3568_ubuntu_r60_v1.3.2 source build-quec.sh +envsetup_yocto +rebake qti-ubuntu-robotics-image build-all-image-yocto # source build-quec.sh diff --git a/Ubuntu/gitea搭建.md b/Ubuntu/gitea搭建.md new file mode 100644 index 0000000..d5b4e4a --- /dev/null +++ b/Ubuntu/gitea搭建.md @@ -0,0 +1,14 @@ +# gitea 搭建 + +## 创建容器 + +``` +docker run --privileged --mount type=bind,source=/home/hehaoyang/works/gitea,target=/home/hehaoyang/workspace --name="gitea" -d -i -t -p 3000:3000 ubuntu_18_04 +docker start gitea +docker attach gitea +sudo apt install git wget -y +cd workspace/gitea +wget -O gitea https://dl.gitea.com/gitea/1.19/gitea-1.19-linux-amd64 +chmod +x gitea +./gitea web +``` \ No newline at end of file