The linux partition contains the following elements:
-
The kernel binary.
-
Several device tree blobs for each SOM and carrier board variant.
-
A U-Boot bootscript to boot the system.
The main purpose of the bootscript is to select the appropriate device tree blob and overlays depending on the detected SOM variant and carrier board. This element is provided by the bootloader Digi Embedded Yocto recipe, not the kernel.
The linux partition is formatted in FAT file system.
Update files from U-Boot
To list the contents of the linux partition on MMC media, run ls mmc x:y in the U-Boot console where x is the device index (starting at 0) and y is the partition index (starting at 1). For example:
=> ls mmc 0:1 5727600 zimage-ccimx6qpsbc.bin 54314 zimage-imx6qp-ccimx6qpsbc.dtb 54425 zimage-imx6qp-ccimx6qpsbc-id160.dtb 54425 zimage-imx6qp-ccimx6qpsbc-wb.dtb 1045 boot.scr 5 file(s), 0 dir(s)
To update the files from U-Boot console, run updatefile command. See Update files within partition.
Update files from Linux
The linux partition is automatically mounted to /mnt/linux, but as a read-only filesystem.
To list the contents of the linux partition:
~# ls -l /mnt/linux/ -rwxr-xr-x 1 root root 1516 Nov 2 22:07 boot.scr -rwxr-xr-x 1 root root 73474 Nov 2 22:07 imx6qp-ccimx6qpsbc-id160.dtb -rwxr-xr-x 1 root root 73474 Nov 2 22:07 imx6qp-ccimx6qpsbc-wb.dtb -rwxr-xr-x 1 root root 73313 Nov 2 22:07 imx6qp-ccimx6qpsbc.dtb -rwxr-xr-x 1 root root 6896168 Nov 2 22:07 zImage-ccimx6qpsbc.bin
To update the files from user space, remount the linux partition with read/write permissions:
~$ mount -o remount,rw /dev/mmcblk0p1 /mnt/linux
From your development machine, you can now copy the files to the target via ssh. For example:
~$ scp zImage root@<cc6plus-ip>:/mnt/linux/zImage-ccimx6qpsbc.bin
When building from Digi Embedded Yocto, all the elements are packaged together in a single file:
-
dey-image-qt-xwayland-ccimx6qpsbc.boot.vfat or similar on the ConnectCore 6 Plus SBC.
To update the entire linux partition from U-Boot console, save the image file to your TFTP server and use the update command in U-Boot:
=> update linux tftp <filename>