guowenxue
2024-09-26 2b179f80693db10cb5a93ee649917ae6988feaf2
BSP:IGKBoard-All: Move BSP scripts to bsp folder

Signed-off-by: guowenxue <guowenxue@gmail.com>
88 files renamed
2 files modified
112 ■■■■ changed files
.gitignore 26 ●●●● patch | view | raw | blame | history
bsp/bootloader/build.sh patch | view | raw | blame | history
bsp/bootloader/patches/alientek-imx6ull-v20/uboot-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/bootloader/patches/alientek-imx6ull-v24/uboot-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/bootloader/patches/gauguin-imx8mp/uboot-imx-lf-5.15.71-2.2.0.patch patch | view | raw | blame | history
bsp/bootloader/patches/gen_patch.sh patch | view | raw | blame | history
bsp/bootloader/patches/igkboard-imx6ull/uboot-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/config.json patch | view | raw | blame | history
bsp/debian/build.sh patch | view | raw | blame | history
bsp/drivers/igkboard-imx6ull/build.sh patch | view | raw | blame | history
bsp/drivers/igkboard-imx6ull/user/Makefile patch | view | raw | blame | history
bsp/drivers/igkboard-imx6ull/user/hello.c patch | view | raw | blame | history
bsp/drivers/igkboard-imx8mp/build.sh patch | view | raw | blame | history
bsp/drivers/igkboard-imx8mp/user/Makefile patch | view | raw | blame | history
bsp/drivers/igkboard-imx8mp/user/hello.c patch | view | raw | blame | history
bsp/drivers/test-apps/can_test.c patch | view | raw | blame | history
bsp/drivers/test-apps/ds18b20.c patch | view | raw | blame | history
bsp/drivers/test-apps/hello.c patch | view | raw | blame | history
bsp/drivers/test-apps/keypad.c patch | view | raw | blame | history
bsp/drivers/test-apps/leds.c patch | view | raw | blame | history
bsp/drivers/test-apps/libgpiod/build.sh patch | view | raw | blame | history
bsp/drivers/test-apps/libgpiod/makefile patch | view | raw | blame | history
bsp/drivers/test-apps/makefile patch | view | raw | blame | history
bsp/drivers/test-apps/pwm.c patch | view | raw | blame | history
bsp/drivers/test-apps/pwm_play.c patch | view | raw | blame | history
bsp/drivers/test-apps/sht20_fops.c patch | view | raw | blame | history
bsp/drivers/test-apps/sht20_ioctl.c patch | view | raw | blame | history
bsp/drivers/test-apps/spi_test.c patch | view | raw | blame | history
bsp/drivers/test-apps/ttyS_test.c patch | view | raw | blame | history
bsp/drivers/x86_64/Makefile patch | view | raw | blame | history
bsp/drivers/x86_64/ldd1_hello.c patch | view | raw | blame | history
bsp/drivers/x86_64/ldd2_chrdev.c patch | view | raw | blame | history
bsp/drivers/x86_64/ldd3_ioctl.c patch | view | raw | blame | history
bsp/drivers/x86_64/testapp/app2_chrdev.c patch | view | raw | blame | history
bsp/drivers/x86_64/testapp/app3_ioctl.c patch | view | raw | blame | history
bsp/drivers/x86_64/testapp/makefile patch | view | raw | blame | history
bsp/images/build.sh patch | view | raw | blame | history
bsp/images/patches/config-igkboard-imx6ull.txt patch | view | raw | blame | history
bsp/images/patches/config-igkboard-imx8mp.txt patch | view | raw | blame | history
bsp/kernel/build.sh patch | view | raw | blame | history
bsp/kernel/patches/alientek-imx6ull-v20/linux-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/kernel/patches/alientek-imx6ull-v24/linux-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/kernel/patches/gauguin-imx8mp/linux-imx-lf-5.15.71-2.2.0.patch patch | view | raw | blame | history
bsp/kernel/patches/gen_patch.sh patch | view | raw | blame | history
bsp/kernel/patches/igkboard-imx6ull/linux-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch patch | view | raw | blame | history
bsp/tools/imgmnt patch | view | raw | blame | history
bsp/tools/setup_tools.sh patch | view | raw | blame | history
bsp/yocto/build.sh patch | view | raw | blame | history
bsp/yocto/meta-igkboard/README.md patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/bblayers.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/layer.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/machine/igkboard-imx6ull.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf patch | view | raw | blame | history
bsp/yocto/meta-igkboard/images/yocto-image-full.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/images/yocto-image-ml.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/readme patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/uboot-logo-igkboard-imx6ull.bmp patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/uboot-logo-igkboard-imx8mp.bmp patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/u-boot-imx_%.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/uenv_1.0.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-core/base-files/base-files_%.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-core/systemd/systemd_%.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-fsl/packagegroup/packagegroup-fsl-tools-gpu.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-hello/hello-app/files/Makefile patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-hello/hello-app/files/hello-app.c patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/files/Makefile patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/files/hello.c patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/hello-mod.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/linux/files/readme patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/linux/linux-imx_%.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/rtl8188fu/rtl8188fu.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-kernel/rtl8723du/rtl8723du.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/expand-rootfs/expand-rootfs_1.0.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/expand-rootfs/files/expand_rootfs patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/files/gprs-chat patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/files/ifup-ppp patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/ifup-ppp_1.0.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/packagegroups/packagegroup-misc-utils.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/10-eth0.network patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/20-wlan0.network patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/wpa-conf.service patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb patch | view | raw | blame | history
bsp/yocto/meta-igkboard/recipes-qt/packagegroups/packagegroup-qt6-addons.bbappend patch | view | raw | blame | history
bsp/yocto/meta-igkboard/tools/igkboard-setup.sh patch | view | raw | blame | history
readme.md 86 ●●●● patch | view | raw | blame | history
.gitignore
@@ -1,26 +1,26 @@
# bootloader files
bootloader/firmware*
bootloader/imx-atf*
bootloader/imx-mkimage*
bootloader/uboot-imx*
bsp/bootloader/firmware*
bsp/bootloader/imx-atf*
bsp/bootloader/imx-mkimage*
bsp/bootloader/uboot-imx*
# linux kernel files
kernel/linux-imx*
bsp/kernel/linux-imx*
# yocto files
yocto/**/*.patch
yocto/mickledore-*/
yocto/**/config-*.txt
bsp/yocto/**/*.patch
bsp/yocto/mickledore-*/
bsp/yocto/**/config-*.txt
# driver files
drivers/**/rtl8188fu
drivers/**/rtl8723du
bsp/drivers/**/rtl8188fu
bsp/drivers/**/rtl8723du
# image files
images/rootfs-*
images/yocto-*.img
images/yocto-*.wic
bsp/images/rootfs-*
bsp/images/yocto-*.img
bsp/images/yocto-*.wic
# common files
tarballs
bsp/bootloader/build.sh
bsp/bootloader/patches/alientek-imx6ull-v20/uboot-imx-lf-6.1.36-2.1.0.patch
bsp/bootloader/patches/alientek-imx6ull-v24/uboot-imx-lf-6.1.36-2.1.0.patch
bsp/bootloader/patches/gauguin-imx8mp/uboot-imx-lf-5.15.71-2.2.0.patch
bsp/bootloader/patches/gen_patch.sh
bsp/bootloader/patches/igkboard-imx6ull/uboot-imx-lf-6.1.36-2.1.0.patch
bsp/bootloader/patches/igkboard-imx8mp/uboot-imx-lf-6.1.36-2.1.0.patch
bsp/config.json
bsp/debian/build.sh
bsp/drivers/igkboard-imx6ull/build.sh
bsp/drivers/igkboard-imx6ull/user/Makefile
bsp/drivers/igkboard-imx6ull/user/hello.c
bsp/drivers/igkboard-imx8mp/build.sh
bsp/drivers/igkboard-imx8mp/user/Makefile
bsp/drivers/igkboard-imx8mp/user/hello.c
bsp/drivers/test-apps/can_test.c
bsp/drivers/test-apps/ds18b20.c
bsp/drivers/test-apps/hello.c
bsp/drivers/test-apps/keypad.c
bsp/drivers/test-apps/leds.c
bsp/drivers/test-apps/libgpiod/build.sh
bsp/drivers/test-apps/libgpiod/makefile
bsp/drivers/test-apps/makefile
bsp/drivers/test-apps/pwm.c
bsp/drivers/test-apps/pwm_play.c
bsp/drivers/test-apps/sht20_fops.c
bsp/drivers/test-apps/sht20_ioctl.c
bsp/drivers/test-apps/spi_test.c
bsp/drivers/test-apps/ttyS_test.c
bsp/drivers/x86_64/Makefile
bsp/drivers/x86_64/ldd1_hello.c
bsp/drivers/x86_64/ldd2_chrdev.c
bsp/drivers/x86_64/ldd3_ioctl.c
bsp/drivers/x86_64/testapp/app2_chrdev.c
bsp/drivers/x86_64/testapp/app3_ioctl.c
bsp/drivers/x86_64/testapp/makefile
bsp/images/build.sh
bsp/images/patches/config-igkboard-imx6ull.txt
bsp/images/patches/config-igkboard-imx8mp.txt
bsp/kernel/build.sh
bsp/kernel/patches/alientek-imx6ull-v20/linux-imx-lf-6.1.36-2.1.0.patch
bsp/kernel/patches/alientek-imx6ull-v24/linux-imx-lf-6.1.36-2.1.0.patch
bsp/kernel/patches/gauguin-imx8mp/linux-imx-lf-5.15.71-2.2.0.patch
bsp/kernel/patches/gen_patch.sh
bsp/kernel/patches/igkboard-imx6ull/linux-imx-lf-6.1.36-2.1.0.patch
bsp/kernel/patches/igkboard-imx8mp/linux-imx-lf-6.1.36-2.1.0.patch
bsp/tools/imgmnt
bsp/tools/setup_tools.sh
bsp/yocto/build.sh
bsp/yocto/meta-igkboard/README.md
bsp/yocto/meta-igkboard/conf/bblayers.conf
bsp/yocto/meta-igkboard/conf/igkboard-imx6ull_local.conf
bsp/yocto/meta-igkboard/conf/igkboard-imx8mp_local.conf
bsp/yocto/meta-igkboard/conf/layer.conf
bsp/yocto/meta-igkboard/conf/machine/igkboard-imx6ull.conf
bsp/yocto/meta-igkboard/conf/machine/igkboard-imx8mp.conf
bsp/yocto/meta-igkboard/images/yocto-image-full.bb
bsp/yocto/meta-igkboard/images/yocto-image-ml.bb
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/readme
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/uboot-logo-igkboard-imx6ull.bmp

bsp/yocto/meta-igkboard/recipes-bsp/u-boot/files/uboot-logo-igkboard-imx8mp.bmp

bsp/yocto/meta-igkboard/recipes-bsp/u-boot/u-boot-imx_%.bbappend
bsp/yocto/meta-igkboard/recipes-bsp/u-boot/uenv_1.0.bb
bsp/yocto/meta-igkboard/recipes-core/base-files/base-files_%.bbappend
bsp/yocto/meta-igkboard/recipes-core/systemd/systemd_%.bbappend
bsp/yocto/meta-igkboard/recipes-fsl/packagegroup/packagegroup-fsl-tools-gpu.bbappend
bsp/yocto/meta-igkboard/recipes-hello/hello-app/files/Makefile
bsp/yocto/meta-igkboard/recipes-hello/hello-app/files/hello-app.c
bsp/yocto/meta-igkboard/recipes-hello/hello-app/hello-app_1.0.bb
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/files/Makefile
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/files/hello.c
bsp/yocto/meta-igkboard/recipes-kernel/hello-mod/hello-mod.bb
bsp/yocto/meta-igkboard/recipes-kernel/linux/files/readme
bsp/yocto/meta-igkboard/recipes-kernel/linux/linux-imx_%.bbappend
bsp/yocto/meta-igkboard/recipes-kernel/rtl8188fu/rtl8188fu.bb
bsp/yocto/meta-igkboard/recipes-kernel/rtl8723du/rtl8723du.bb
bsp/yocto/meta-igkboard/recipes-misc/expand-rootfs/expand-rootfs_1.0.bb
bsp/yocto/meta-igkboard/recipes-misc/expand-rootfs/files/expand_rootfs
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/files/gprs-chat
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/files/ifup-ppp
bsp/yocto/meta-igkboard/recipes-misc/ifup-ppp/ifup-ppp_1.0.bb
bsp/yocto/meta-igkboard/recipes-misc/packagegroups/packagegroup-misc-utils.bb
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/10-eth0.network
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/20-wlan0.network
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/files/wpa-conf.service
bsp/yocto/meta-igkboard/recipes-misc/wpa-conf/wpa-conf_1.0.bb
bsp/yocto/meta-igkboard/recipes-qt/packagegroups/packagegroup-qt6-addons.bbappend
bsp/yocto/meta-igkboard/tools/igkboard-setup.sh
readme.md
@@ -24,13 +24,13 @@
guowenxue@9d57f9229b66:~$ cd ~/igkboard-imx6ull/
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls bsp
bootloader  config.json  debian  drivers  images  kernel  tools  yocto
```
下面是编译系统各文件的简单介绍。
下面是BSP编译系统各文件的简单介绍。
| 文件/文件夹     | 描述                                       |
| --------------- | ------------------------------------------ |
@@ -52,7 +52,7 @@
下面是顶层编译系统的配置文件,默认为 ***IGKBoard-IMX6ULL*** 开发板的配置。
```json
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cat config.json
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cat config.json
{
    "bsp":
    {
@@ -81,7 +81,7 @@
* ***bsp.board***   该选项指定要编译的目标开发板,具体支持哪些可以查看 `kernel/patches/` 文件夹下有哪些开发板文件夹.
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls kernel/patches/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ ls kernel/patches/
alientek-imx6ull-v20  alientek-imx6ull-v24  gauguin-imx8mp  gen_patch.sh  igkboard-imx6ull  igkboard-imx8mp
```
@@ -94,7 +94,7 @@
* ***bsp.version***   该选项指定要编译的Linux BSP版本,具体支持哪些可以查看 `kernel/patches/` 相应开发板下支持哪些补丁.
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls kernel/patches/igkboard-imx6ull/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ ls kernel/patches/igkboard-imx6ull/
linux-imx-lf-6.1.36-2.1.0.patch
```
@@ -140,7 +140,7 @@
在开始编译之前,我们首先确定当前编译系统支持哪些BSP版本,这点可以通过查看相应开发板的补丁文件来获取。如下所示,当前 IGKBoard-IMX6ULL 只支持 lf-6.1.36-2.1.0 这个版本。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls kernel/patches/igkboard-imx6ull/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ ls kernel/patches/igkboard-imx6ull/
linux-imx-lf-6.1.36-2.1.0.patch
```
@@ -196,9 +196,9 @@
下面是我配置的代理命令 **proxy** 用来代理访问 github,设置好后可以使用 **curl** 命令访问 google.com 来测试代理是否生效。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ proxy
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ proxy
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ curl google.com
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ curl google.com
<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
@@ -212,7 +212,7 @@
另外,也可以使用 **unproxy** 命令来取消命令行代理。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ unproxy
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ unproxy
```
@@ -250,7 +250,7 @@
在嵌入式BSP系统开发过程中,依赖很多的Linux系统命令及交叉编译器。在该编译系统的 ***tools*** 文件夹下,有一个 ***setup_tools.sh*** 脚本可以用来一键安装它们。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ ls tools/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ ls tools/
imgmnt  setup_tools.sh
```
@@ -259,9 +259,9 @@
接下来以 root 权限执行 ***tools/setup_tools.sh*** 脚本,来安装BSP源码编译所依赖的系统工具和交叉编译器,如果之前已经安装过则会自动跳过。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cd tools/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cd tools/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/tools$ sudo ./setup_tools.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/tools$ sudo ./setup_tools.sh
 All system tools already installed, skip it 
 All development tools already installed, skip it 
 start download cross compiler from ARM Developer for Cortex-A core 
@@ -284,12 +284,12 @@
在做好前面的配置后,编译 bootloader 的工作就非常简单了,我们只需要切换到 ***bootloader*** 文件夹下,执行 `build.sh` 脚本即可。它将会自动从配置的源码服务器上下载源码,并打上相应的补丁文件,开始漫长的编译工作。
``` bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cd bootloader/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cd bootloader/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ls
build.sh  patches
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ./build.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ./build.sh
 start build bootloader for igkboard-imx6ull 
 start fetch uboot-imx source code 
 ... ...
@@ -299,10 +299,10 @@
 ... ...
  MKIMAGE u-boot-dtb.imx
  OFCHK   .config
+ cp u-boot-igkboard-imx6ull.imx /home/guowenxue/igkboard-imx6ull/bootloader/install
+ cp u-boot-igkboard-imx6ull.imx /home/guowenxue/igkboard-imx6ull/bsp/bootloader/install
+ set +x
 bootloader installed to '/home/guowenxue/igkboard-imx6ull/bootloader/install'
 bootloader installed to '/home/guowenxue/igkboard-imx6ull/bsp/bootloader/install'
u-boot-igkboard-imx6ull.imx 
```
@@ -311,7 +311,7 @@
编译完成后,生成的 bootloader 文件将会存放到自动创建的 ***install*** 文件夹下。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ls install/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ls install/
u-boot-igkboard-imx6ull.imx
```
@@ -320,13 +320,13 @@
如果对 bootloader 源码有新的修改,我们可以使用 `./patches/gen_patch.sh` 脚本生成新的 patch 补丁文件。如果想保存该补丁文件,则可以替换 ***patches*** 文件夹下的相应文件。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ./patches/gen_patch.sh uboot-imx/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ./patches/gen_patch.sh uboot-imx/
 generate patch file 
 
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ls
build.sh  install  patches  tarballs  uboot-imx  uboot-imx-lf-6.1.36-2.1.0.patch
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ mv uboot-imx-lf-6.1.36-2.1.0.patch patches/igkboard-imx6ull/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ mv uboot-imx-lf-6.1.36-2.1.0.patch patches/igkboard-imx6ull/
```
@@ -334,10 +334,10 @@
另外使用  `build.sh -c` 命令可以一键清除所有编译产生的文件和源码。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ./build.sh -c
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ./build.sh -c
 start clean bootloader 
 
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bootloader$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/bootloader$ ls
build.sh  patches
```
@@ -350,12 +350,12 @@
同样地,编译 Linux内核源码的工作也非常简单,我们只需要切换到 ***kernel*** 文件夹下,执行 `build.sh` 脚本即可。它将会自动从配置的源码服务器上下载源码,并打上相应的补丁文件,开始漫长的编译工作。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cd kernel/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cd kernel/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ls
build.sh  patches
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ./build.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ./build.sh
 start build linux kernel for igkboard-imx6ull 
 start fetch linux kernel source code 
... ...
@@ -363,7 +363,7 @@
 ... ...
 start build linux-imx 
 ... ...
 linux kernel installed to '/home/guowenxue/igkboard-imx6ull/kernel/install'
 linux kernel installed to '/home/guowenxue/igkboard-imx6ull/bsp/kernel/install'
igkboard-imx6ull.dtb  lib  overlays  zImage
```
@@ -372,7 +372,7 @@
同样地,编译完成后生成的 linux内核文件将会存放到自动创建的 ***install*** 文件夹下。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ls install/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ls install/
igkboard-imx6ull.dtb  lib  overlays  zImage
```
@@ -381,13 +381,13 @@
如果对 Linux内核源码有新的修改,我们可以使用 `./patches/gen_patch.sh` 脚本生成新的 patch 补丁文件。如果想保存该补丁文件,则可以替换 ***patches*** 文件夹下的相应文件。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ./patches/gen_patch.sh linux-imx/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ./patches/gen_patch.sh linux-imx/
 generate patch file 
 
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ls
build.sh  install  linux-imx  linux-imx-lf-6.1.36-2.1.0.patch  patches  tarballs
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ mv linux-imx-lf-6.1.36-2.1.0.patch patches/igkboard-imx6ull/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ mv linux-imx-lf-6.1.36-2.1.0.patch patches/igkboard-imx6ull/
```
@@ -395,10 +395,10 @@
另外使用  `build.sh -c` 命令可以一键清除所有编译产生的文件和源码。
```
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ./build.sh -c
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ./build.sh -c
 start clean linux kernel 
 
guowenxue@9d57f9229b66:~/igkboard-imx6ull/kernel$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/kernel$ ls
build.sh  patches
```
@@ -415,12 +415,12 @@
因为 Linux 系统镜像需要使用 **sudo** 和 **loop** 设备,所以这个需要在自己的虚拟机或实验室的编译服务器具有相应权限的账号下工作。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cd images/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cd images/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/images$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/images$ ls
build.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/images$ sudo ./build.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/images$ sudo ./build.sh
 Build system image yocto-mickledore-lf-6.1.36-2.1.0.img 
 INFO: download rootfs-yocto-mickledore.tar.zst form http://studio.xxx.com:2211 
 ... ...
@@ -452,7 +452,7 @@
编译完成后,系统镜像和烧录所需要的文件将会存放到自动创建的 ***install*** 文件夹下。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/images$ ls install/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/images$ ls install/
u-boot-igkboard-imx6ull.imx  yocto-mickledore-lf-6.1.36-2.1.0.img.bz2
```
@@ -485,17 +485,17 @@
下面是 Yocto 源码编译的过程。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull$ cd yocto/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp$ cd yocto/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/yocto$ ls
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/yocto$ ls
build.sh  meta-igkboard
guowenxue@9d57f9229b66:~/igkboard-imx6ull/yocto$ ./build.sh
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/yocto$ ./build.sh
 start build Yocto mickledore for igkboard-imx6ull 
 start download fetch Yocto mickledore source code 
 ... ...
  Build directory is  igkboard-imx6ull
/home/guowenxue/igkboard-imx6ull/yocto/mickledore-lf-6.1.36-2.1.0
/home/guowenxue/igkboard-imx6ull/bsp/yocto/mickledore-lf-6.1.36-2.1.0
    Welcome LingYun IoT Gateway Kit Board Yocto BSP
    The Yocto Project has extensive documentation about OE including a
@@ -510,7 +510,7 @@
        imx-image-full
 ... ...
 
  Yocto(mickledore) installed to '/home/guowenxue/igkboard-imx6ull/yocto/install'
  Yocto(mickledore) installed to '/home/guowenxue/igkboard-imx6ull/bsp/yocto/install'
 Start bzip2 compress yocto-mickledore-lf-6.1.36-2.1.0.wic 
rootfs-yocto-mickledore.tar.zst  u-boot-igkboard-imx6ull.imx  yocto-mickledore-lf-6.1.36-2.1.0.wic.bz2
```
@@ -520,7 +520,7 @@
编译完成后,系统镜像和烧录所需要的文件将会存放到自动创建的 ***install*** 文件夹下。
```bash
guowenxue@9d57f9229b66:~/igkboard-imx6ull/yocto$ ls install/
guowenxue@9d57f9229b66:~/igkboard-imx6ull/bsp/yocto$ ls install/
rootfs-yocto-mickledore.tar.zst  u-boot-igkboard-imx6ull.imx  yocto-mickledore-lf-6.1.36-2.1.0.wic.bz2
```