| | |
| | |
|
| | |
|
| | |
|
| | | 凌云实验室 IMX 系列开发板一键编译脚本托管在 [凌云实验室的 git 服务器上](http://main.iot-yun.club:8088/summary/build-imxboard.git), 我们可以从该站点上下载最新的编译系统。这里以 IGKBoard-IMX6ULL 开发板为例,使用 git 命令下载该项目源码并重命名为 igkboard-imx6ull(也可以命名为其它开发板的名字)。
|
| | | 凌云实验室 AT91 系列开发板一键编译脚本托管在 [凌云实验室的 git 服务器上](http://main.iot-yun.club:8088/summary/build-at91.git), 我们可以从该站点上下载最新的编译系统。
|
| | |
|
| | | ```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版本,这点可以通过查看相应开发板的补丁文件来获取。如下所示,当前 IGKBoard-IMX6ULL 只支持 lf-6.1.36-2.1.0 这个版本。
|
| | | 在开始编译之前,我们首先确定当前编译系统支持哪些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
|
| | | All system tools already installed, skip it |
| | | 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/ |
| | | decompress gcc-armel-5.5-v2019.02.tar.xz => /opt/buildroot/
|
| | | ... ...
|
| | | gcc version 5.5.0 (Buildroot 2019.02.11) |
| | | gcc version 5.5.0 (Buildroot 2019.02.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
|
| | | ```
|
| | |
|