Build Atmel ARM9 board Board Support Packets
guowenxue
2024-09-26 04cc4dcb2edd87db6e85539edb0dc2ebca93d898
move source code to bsp
2 files modified
13 files renamed
28 ■■■■ changed files
.gitignore 8 ●●●● patch | view | raw | blame | history
bsp/bootloader/build.sh patch | view | raw | blame | history
bsp/bootloader/patches/gen_patch.sh patch | view | raw | blame | history
bsp/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch patch | view | raw | blame | history
bsp/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch patch | view | raw | blame | history
bsp/build.sh patch | view | raw | blame | history
bsp/config.json patch | view | raw | blame | history
bsp/images/build.sh patch | view | raw | blame | history
bsp/images/patches/S50sshd patch | view | raw | blame | history
bsp/images/patches/profile patch | view | raw | blame | history
bsp/kernel/build.sh patch | view | raw | blame | history
bsp/kernel/patches/gen_patch.sh patch | view | raw | blame | history
bsp/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch patch | view | raw | blame | history
bsp/tools/setup_tools.sh patch | view | raw | blame | history
readme.md 20 ●●●● patch | view | raw | blame | history
.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
bsp/bootloader/build.sh
bsp/bootloader/patches/gen_patch.sh
bsp/bootloader/patches/loragw/at91bootstrap-linux4sam-6.1.patch
bsp/bootloader/patches/loragw/u-boot-at91-linux4sam-6.1.patch
bsp/build.sh
bsp/config.json
bsp/images/build.sh
bsp/images/patches/S50sshd
bsp/images/patches/profile
bsp/kernel/build.sh
bsp/kernel/patches/gen_patch.sh
bsp/kernel/patches/loragw/linux-at91-linux4sam-6.1.patch
bsp/tools/setup_tools.sh
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
```