| | |
| | | ```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编译系统各文件的简单介绍。
|
| | |
|
| | | | 文件/文件夹 | 描述 |
|
| | | | --------------- | ------------------------------------------ |
|
| | |
| | | 在开始编译之前,我们首先确定当前编译系统支持哪些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
|
| | | ```
|
| | |
|
| | |
| | | 在嵌入式BSP系统开发过程中,依赖很多的Linux系统命令及交叉编译器。在该编译系统的 ***tools*** 文件夹下,有一个 ***setup_tools.sh*** 脚本可以用来一键安装它们。
|
| | |
|
| | | ```bash
|
| | | guowenxue@9d57f9229b66:~/build-at91$ ls tools/
|
| | | guowenxue@9d57f9229b66:~/build-at91/bsp$ ls tools/
|
| | | setup_tools.sh
|
| | | ```
|
| | |
|
| | |
| | | 接下来以 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/
|
| | |
| | | 我们可以直接执行顶层的 ***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
|
| | | ```
|
| | |
|