# igkboard-imx6ull **Repository Path**: deng-yonghao/igkboard-imx6ull ## Basic Information - **Project Name**: igkboard-imx6ull - **Description**: 阿里云MQTT物联网监控系统 igkboard-imx6ull BSP开发 - **Primary Language**: Shell - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2023-07-15 - **Last Updated**: 2024-01-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: C语言, shell, bsp ## README # igkboard-imx6ull #### 仓库介绍 阿里云MQTT物联网监控系统 igkboard-imx6ull BSP开发 U-Boot版本:2022.04 内核版本:6.1.1 NXP源码:[下载路径](http://https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applications-processors:IMXLINUX) #### 仓库架构说明 下面是仓库文件的说明: ```c dengyonghao@9d57f9229b66:~/BSP/igkboard-imx6ull$ tree . ├── bootloader Bootloader源码编译的工作目录 │   ├── build.sh Bootloader的编译脚本 │   └── uboot-imx-lf-6.1.1-1.0.0.patch Bootloader的补丁文件 ├── images 制作系统镜像的工作目录 │   └── build.sh 系统镜像编译脚本 ├── kernel Linux内核源码编译的工作目录 │   ├── build.sh Linux内核源码的编译脚本 │   └── linux-imx-lf-6.1.1-1.0.0.patch Linux内核源码补丁 └── README.md 仓库介绍与使用手册 ``` 测试系统: ```c dengyonghao@9d57f9229b66:~/BSP$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: focal ``` #### 初始化教程 1. 下载lf-6.1.1-1.0.0源码 2. 解压uboot-imx源码到bootloder目录下 3. 解压linux-imx源码到kernel目录下 4. 拷贝自制的根文件系统到images下 ```c dengyonghao@9d57f9229b66:~/BSP/igkboard-imx6ull$ tree -L 2 . ├── bootloader │   ├── build.sh │   ├── uboot-imx │   └── uboot-imx-lf-6.1.1-1.0.0.patch ├── images │   ├── build.sh │   └── rootfs_kirkstone.tar.bz2 ├── kernel │   ├── build.sh │   ├── linux-imx │   └── linux-imx-lf-6.1.1-1.0.0.patch └── README.md ``` #### 使用说明 1. 如果文件名与上面内容不同,请修改对应build.sh中的变量 2. bootloader: ./build -h 查看使用信息并对照使用 ```c Usage: ./build.sh [-b] [-c] [-h] bootloader -b :Patch and install to images -c :Clean build files and unpatch -h :Show this help message Build Example: ./build.sh -b ``` 3. kernel: ./build -h 查看使用信息并对照使用 ```c Usage: ./build.sh [-b] [-c] [-h] kernel -b :Patch amd install to images -c :Clean build files and unpatch -h :Show this help message Build Example: ./build.sh -b ``` 4. images: 通过bootloader与kernel中的编译后,将会自动安装镜像所需文件到images目录下: ```c dengyonghao@9d57f9229b66:~/BSP/igkboard-imx6ull/images$ tree . ├── build.sh ├── igkboard-6ull.dtb ├── rootfs_kirkstone.tar.bz2 ├── u-boot-dtb.imx └── zImage ``` ./build -h 查看使用信息,获取可用循环设备loopX后制作 ```c Usage: ./build.sh [-s] [-m] [-h] -s :Search for available loop devices -m :Make image and do bzip2 -h : show this help message WARNNING: need run as sudo Search loopX: ./build.sh -s Build Example: sudo ./build.sh -m loopX ``` 最终得到镜像: ```c dengyonghao@9d57f9229b66:~/BSP/igkboard-imx6ull/images$ tree . ├── build.sh ├── igkboard-6ull.dtb ├── linuxsys_igkboard-6ull_dyh.img.bz2 ├── rootfs_kirkstone.tar.bz2 ├── u-boot-dtb.imx └── zImage ```