This topic shows how to deploy a customized kernel and/or device tree to your target device.
After customizing the kernel source code, you may either have built a full Digi Embedded Yocto image recipe or just the kernel recipe.
Program image files (full partition update)
If you built a full image recipe (core-image-base, for example), Digi Embedded Yocto generates an image file for the linux partition, such as:
-
core-image-base-ccmp13-dvk.boot.ubifs
or similar on the ConnectCore MP13 Development Kit.
The most straightforward way to program image files is from U-Boot console, using the update
command.
For example, to program via Ethernet:
-
Save the image file to your TFTP exposed folder.
-
Boot the target and press any key to stop the automatic U-Boot boot process.
-
Run the
update
command to update the entire linux partition:=> update linux tftp <image-filename>
See Program images from U-Boot for additional information on updating from U-Boot.
Program single files
If you built only the kernel recipe, you can find the kernel binary and device tree blobs in the tmp/deploy/images/
folder of your project.
You can deploy these single files to your linux partition, which is formatted in UBIFS file system.
Update files from Linux
The linux partition is automatically mounted to /mnt/linux
, but as a read-only file system.
-
Remount the linux partition with read/write permissions:
$ mount -o remount,rw /dev/ubi0_0 /mnt/linux
-
List the contents of the linux partition:
# ls -l /mnt/linux/ -rw-r--r-- 1 1000 1000 415 Nov 7 09:31 _ov_board_mikroe-accel2-click_ccmp13-dvk.dtbo -rw-r--r-- 1 1000 1000 415 Nov 7 09:31 _ov_board_mikroe-gyro-click_ccmp13-dvk.dtbo -rw-r--r-- 1 1000 1000 415 Nov 7 09:31 _ov_board_mikroe-i2c-to-spi-click_ccmp13-dvk.dtbo -rw-r--r-- 1 1000 1000 468 Nov 7 09:31 _ov_board_pwm8_ccmp13-dvk.dtbo -rw-r--r-- 1 1000 1000 2731 Nov 7 09:31 _ov_board_v2_ccmp13-dvk.dtbo -rw-r--r-- 1 1000 1000 930 Nov 7 09:31 _ov_som_bt_ccmp13.dtbo -rw-r--r-- 1 1000 1000 938 Nov 7 09:31 _ov_som_bt_test_ccmp13.dtbo -rw-r--r-- 1 1000 1000 928 Nov 7 09:31 _ov_som_wifi_ccmp13.dtbo -rw-r--r-- 1 1000 1000 2532 Nov 7 09:29 boot.scr -rw-r--r-- 1 1000 1000 65811 Nov 7 09:31 ccmp133-dvk.dtb -rw-r--r-- 1 1000 1000 6847544 Nov 7 09:31 zImage-ccmp13-dvk.bin
-
Copy the file you want to the target, for example via SSH:
$ scp zImage root@<ccmp13-ip>:/mnt/linux/zImage-ccmp13-dvk.bin