From 04cc4dcb2edd87db6e85539edb0dc2ebca93d898 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Thu, 26 Sep 2024 17:32:23 +0800 Subject: [PATCH] move source code to bsp --- bsp/config.json | 0 .gitignore | 8 ++++---- bsp/images/patches/profile | 0 bsp/bootloader/build.sh | 0 bsp/images/patches/S50sshd | 0 readme.md | 20 ++++++++++---------- bsp/kernel/build.sh | 0 bsp/build.sh | 0 bsp/kernel/patches/gen_patch.sh | 0 bsp/images/build.sh | 0 bsp/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch | 0 bsp/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch | 0 bsp/bootloader/patches/gen_patch.sh | 0 bsp/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch | 0 bsp/tools/setup_tools.sh | 0 15 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.gitignore b/.gitignore index baec987..84e6b4c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,13 @@ # bootloader files -bootloader/at91bootstrap* -bootloader/u-boot-at91* +bsp/bootloader/at91bootstrap* +bsp/bootloader/u-boot-at91* # linux kernel files -kernel/linux-at91* +bsp/kernel/linux-at91* # image files -images/rootfs* +bsp/images/rootfs* # common files tarballs diff --git a/bootloader/build.sh b/bsp/bootloader/build.sh similarity index 100% rename from bootloader/build.sh rename to bsp/bootloader/build.sh diff --git a/bootloader/patches/gen_patch.sh b/bsp/bootloader/patches/gen_patch.sh similarity index 100% rename from bootloader/patches/gen_patch.sh rename to bsp/bootloader/patches/gen_patch.sh diff --git a/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch b/bsp/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch similarity index 100% rename from bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch rename to bsp/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch diff --git a/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch b/bsp/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch similarity index 100% rename from bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch rename to bsp/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch diff --git a/build.sh b/bsp/build.sh similarity index 100% rename from build.sh rename to bsp/build.sh diff --git a/config.json b/bsp/config.json similarity index 100% rename from config.json rename to bsp/config.json diff --git a/images/build.sh b/bsp/images/build.sh similarity index 100% rename from images/build.sh rename to bsp/images/build.sh diff --git a/images/patches/S50sshd b/bsp/images/patches/S50sshd similarity index 100% rename from images/patches/S50sshd rename to bsp/images/patches/S50sshd diff --git a/images/patches/profile b/bsp/images/patches/profile similarity index 100% rename from images/patches/profile rename to bsp/images/patches/profile diff --git a/kernel/build.sh b/bsp/kernel/build.sh similarity index 100% rename from kernel/build.sh rename to bsp/kernel/build.sh diff --git a/kernel/patches/gen_patch.sh b/bsp/kernel/patches/gen_patch.sh similarity index 100% rename from kernel/patches/gen_patch.sh rename to bsp/kernel/patches/gen_patch.sh diff --git a/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch b/bsp/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch similarity index 100% rename from kernel/patches/loragw/linux-at91-linux4sam-6.1.patch rename to bsp/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch diff --git a/tools/setup_tools.sh b/bsp/tools/setup_tools.sh similarity index 100% rename from tools/setup_tools.sh rename to bsp/tools/setup_tools.sh diff --git a/readme.md b/readme.md index 0d0f3c2..9eb4bd7 100644 --- a/readme.md +++ b/readme.md @@ -28,15 +28,15 @@ ```bash guowenxue@9d57f9229b66:~$ git clone http://main.iot-yun.club:8088/r/build-at91.git -guowenxue@9d57f9229b66:~$ cd ~/build-at91 +guowenxue@9d57f9229b66:~$ cd ~/build-at91/bsp/ -guowenxue@9d57f9229b66:~/build-at91$ ls +guowenxue@9d57f9229b66:~/build-at91/bsp$ ls bootloader build.sh config.json images kernel tools ``` -下面是编译系统各文件的简单介绍。 +下面是BSP编译系统各文件的简单介绍。 | 文件/文件夹 | 描述 | | --------------- | ------------------------------------------ | @@ -56,7 +56,7 @@ 在开始编译之前,我们首先确定当前编译系统支持哪些BSP版本,这点可以通过查看相应开发板的补丁文件来获取。如下所示,当前 LoRaWAN Gateway 开发板只支持 linux4sam-6.1 这个版本。 ```bash -guowenxue@9d57f9229b66:~/build-at91$ ls kernel/patches/loragw/ +guowenxue@9d57f9229b66:~/build-at91/bsp$ ls kernel/patches/loragw/ linux-at91-linux4sam-6.1.patch ``` @@ -92,7 +92,7 @@ 在嵌入式BSP系统开发过程中,依赖很多的Linux系统命令及交叉编译器。在该编译系统的 ***tools*** 文件夹下,有一个 ***setup_tools.sh*** 脚本可以用来一键安装它们。 ```bash -guowenxue@9d57f9229b66:~/build-at91$ ls tools/ +guowenxue@9d57f9229b66:~/build-at91/bsp$ ls tools/ setup_tools.sh ``` @@ -101,9 +101,9 @@ 接下来以 root 权限执行 ***tools/setup_tools.sh*** 脚本,来安装BSP源码编译所依赖的系统工具和交叉编译器,如果之前已经安装过则会自动跳过。 ```bash -guowenxue@9d57f9229b66:~/build-at91$ cd tools/ +guowenxue@9d57f9229b66:~/build-at91/bsp$ cd tools/ -guowenxue@9d57f9229b66:~/build-at91/tools$ sudo ./setup_tools.sh +guowenxue@9d57f9229b66:~/build-at91/bsp/tools$ sudo ./setup_tools.sh All system tools already installed, skip it ... ... decompress gcc-armel-5.5-v2019.02.tar.xz => /opt/buildroot/ @@ -124,11 +124,11 @@ 我们可以直接执行顶层的 ***build.sh*** Shell 脚本完成整个 BSP 的源码编译,它将会从凌云实验室的文件服务器上自动下载 ***bootloader、linux kernel、rootfs*** 的源码压缩包,并自动解压缩、编译、安装到 ***images/install/*** 文件夹下。 ```bash -guowenxue@9d57f9229b66:~/build-at91/tools$ cd ~/build-at91/ +guowenxue@9d57f9229b66:~/build-at91/bsp/tools$ cd ~/build-at91/bsp/ -guowenxue@9d57f9229b66:~/build-at91$ ./build.sh +guowenxue@9d57f9229b66:~/build-at91/bsp$ ./build.sh ... ... - install all images to '/home/guowenxue/build-at91/images/install' + install all images to '/home/guowenxue/build-at91/bsp/images/install' bootstrap-loragw.bin linuxrom-loragw.itb rootfs-loragw.ubi-p2k u-boot-loragw.bin ``` -- Gitblit v1.9.1