Difference between revisions of "Kernel Download Note"
(Created page with " ROM-5722 imx8LBVD0029 版本为例子 git clone https://github.com/ADVANTECH-Corp/linux-imx.git cd linux-imx git tag | grep D0029 git checkout imx8LBVD0029 -b kernel_imx8...") |
|||
Line 1: | Line 1: | ||
− | + | ROM-5722 imx8LBVD0029 版本为例子 | |
− | git clone https://github.com/ADVANTECH-Corp/linux-imx.git | + | git clone [https://github.com/ADVANTECH-Corp/linux-imx.git https://github.com/ADVANTECH-Corp/linux-imx.git] |
cd linux-imx | cd linux-imx | ||
+ | |||
git tag | grep D0029 | git tag | grep D0029 | ||
+ | |||
git checkout imx8LBVD0029 -b kernel_imx8LBVD0029 | git checkout imx8LBVD0029 -b kernel_imx8LBVD0029 | ||
+ | |||
git branch | git branch | ||
+ | |||
git describe --tags --abbrev=0 | git describe --tags --abbrev=0 | ||
+ | |||
rm .git .github -rf | rm .git .github -rf | ||
+ | |||
cd ../ | cd ../ | ||
+ | |||
mv linux-imx ROM-5722_imx8LBVD0029_linux | mv linux-imx ROM-5722_imx8LBVD0029_linux | ||
+ | |||
tar czvf ROM-5722_imx8LBVD0029_linux_20240806.tar.gz ROM-5722_imx8LBVD0029_linux | tar czvf ROM-5722_imx8LBVD0029_linux_20240806.tar.gz ROM-5722_imx8LBVD0029_linux | ||
− | git clone https://github.com/ADVANTECH-Corp/uboot-imx.git | + | |
+ | |||
+ | git clone [https://github.com/ADVANTECH-Corp/uboot-imx.git https://github.com/ADVANTECH-Corp/uboot-imx.git] | ||
+ | |||
cd uboot-imx | cd uboot-imx | ||
− | git tag | grep D0029 | + | |
− | git checkout imx8LBVD0029 -b u-boot_imx8LBVD0029 | + | git tag | grep D0029 //打印为 imx8LBVD0029,以确认tag 的名字 |
− | git branch | + | |
− | git describe --tags --abbrev=0 | + | git checkout imx8LBVD0029 -b u-boot_imx8LBVD0029 //把远程仓库tag 为 imx8LBVD0029 的分支 checkout到本地 u-boot_imx8LBVD0029 分支上 |
− | rm .git .github -rf | + | |
+ | git branch //确认当前本地分支为上一步 新建的分支 u-boot_imx8LBVD0029 | ||
+ | |||
+ | git describe --tags --abbrev=0 //确认当前本地分支的tag | ||
+ | |||
+ | rm .git .github -rf //删除仓库,避免客户思维发散,专注在当前分支代码基础上开发 | ||
+ | |||
cd ../ | cd ../ | ||
− | mv uboot-imx ROM-5722_imx8LBVD0029_uboot | + | |
+ | mv uboot-imx ROM-5722_imx8LBVD0029_uboot //文件夹重命名为专用版本 | ||
+ | |||
tar czvf ROM-5722_imx8LBVD0029_uboot_20240806.tar.gz ROM-5722_imx8LBVD0029_uboot | tar czvf ROM-5722_imx8LBVD0029_uboot_20240806.tar.gz ROM-5722_imx8LBVD0029_uboot |
Latest revision as of 01:56, 9 August 2024
ROM-5722 imx8LBVD0029 版本为例子
git clone https://github.com/ADVANTECH-Corp/linux-imx.git
cd linux-imx
git tag | grep D0029
git checkout imx8LBVD0029 -b kernel_imx8LBVD0029
git branch
git describe --tags --abbrev=0
rm .git .github -rf
cd ../
mv linux-imx ROM-5722_imx8LBVD0029_linux
tar czvf ROM-5722_imx8LBVD0029_linux_20240806.tar.gz ROM-5722_imx8LBVD0029_linux
git clone https://github.com/ADVANTECH-Corp/uboot-imx.git
cd uboot-imx
git tag | grep D0029 //打印为 imx8LBVD0029,以确认tag 的名字
git checkout imx8LBVD0029 -b u-boot_imx8LBVD0029 //把远程仓库tag 为 imx8LBVD0029 的分支 checkout到本地 u-boot_imx8LBVD0029 分支上
git branch //确认当前本地分支为上一步 新建的分支 u-boot_imx8LBVD0029
git describe --tags --abbrev=0 //确认当前本地分支的tag
rm .git .github -rf //删除仓库,避免客户思维发散,专注在当前分支代码基础上开发
cd ../
mv uboot-imx ROM-5722_imx8LBVD0029_uboot //文件夹重命名为专用版本
tar czvf ROM-5722_imx8LBVD0029_uboot_20240806.tar.gz ROM-5722_imx8LBVD0029_uboot