OK3568 4.19.206 Buildroot Adding User Programs

Document classification: □ Top secret □ Secret □ Internal information ■ Open

Revision History

Date

Version

Revision History

04/08/2022

V1.0

Initial Version

Adding User Programs

This article primarily applies to the Forlinx OKT3568-C platform running Linux 4.19.206. Other platforms may also be used as a reference, but differences between platforms exist, and please make modifications accordingly to suit your own applications.

The compiled file system images are located in OK3568-linux-source/buildroot/output/OK3568/images.

You can use the command mount rootfs.ext2 target/ to mount the filesystem for modifications. After making the changes, use umount to unmount it, and then directly flash the rootfs.ext2 to the SoM using the single-step flashing method.

Flash the root.ext2 file to the board step by step.

Image

If only the filesystem has been modified and an update.img is needed, you can execute ./build.sh updateimg in the OK3568-linux-source directory to generate an update.img based on the current rootfs.ext2. Then, use the update.img for flashing.

Note: This method is a convenient shortcut. If more standardized management of Buildroot is required, please familiarize yourself with the Buildroot filesystem creation process in detail and utilize Buildroot’s management mechanisms for handling.