Embedded Linux tips and tricks

From DAVE Developer's Wiki
Revision as of 08:13, 14 March 2022 by U0001 (talk | contribs) (Setting up a Yocto prebuilt package repository for apt)

Jump to: navigation, search


Introduction[edit | edit source]

This page provides examples and usage notes for common tasks/issues related to typical embedded Linux systems.

How to write .wic image files to SD cards[edit | edit source]

Yocto build system can generate .wic image files. These files are usually written to SD cards to create bootable devices.

The simplest way to write such images to SD cards is to use the Balena Etcher tool, which is available for Linux, macOS, and Windows hosts. Using Etcher is straightforward, nonetheless many tutorials and examples are available on the Internet.

Advanced users can also use the well-known dd utility. This tool should be avoided unless the user knows what they are doing. If the target device is not specified properly, dd can wipe out all the data on a host's disk drive! For more details, see for instance this article.

Setting up a Yocto prebuilt package repository for apt[edit | edit source]

Occasionally, it is convenient to set up the target for installing .deb packages retrieved from a Yocto repository. The following example shows how to do that on an ORCA_SOM-based target. The repository used is located at http://yocto.dave.eu/imx-5.4.70-2.3.0/. The prebuilt packages were generated by Yocto.