The PanGu board uses Linux 4.19.9 version. By building the Linux kernel code, you can get the kernel file uImage and the device tree description file dtb. There is the config file in the provided Linux code:
| File Name | Description |
|---|---|
| i2som_panguboard_defconfig | Used to build kernel for the PanGu board, includes onboard functions |
Compile kernel image and dtb files
Next, we use that config file to compile it. Before you compile the kernel source code, you need load the toolchain environmtne file.
$ tar xvf linux-st.tar.gz$ cd linux-st$ make i2som_panguboard_defconfig$ make uImage vmlinux LOADADDR=0xC2000040$ make dtbs |
After compilation, the kernel image file uImage is store in linux-st/arch/arm/boot/ directory. The dtb files store in linux-st/arch/arm/boot/dts directory.
| DTB files | Description |
|---|---|
| DTB files | Description |
| :-- | |
| stm32mp157a-panguboard.dtb | Support display on HDMI interface |
| stm32mp157a-panguboard-mipi.dtb | Support display on MIPI interface |
| stm32mp157a-panguboard-lcd070p1024c.dtb | Support display on i2M-LCD070P1024C module |
| stm32mp157a-panguboard-lcd043p800c.dtb | Support display on i2M-LCD043P800C module |
Compile and install the kernel modules
The Linux kernel support load driver on module way.
$ make modules$ mkdir ../target-kernel$ make INSTALL_MOD_PATH=../target-kernel modules_install |
Below commands to install kernel module into "../target-kernel" directory. You can copy this directory into "/lib/module" directory of board.