Difference between revisions of "Embedded Linux tips and tricks"

From DAVE Developer's Wiki
Jump to: navigation, search
m (U0001 moved page Embedded Linux FAQs to Embedded Linux tips & tricks without leaving a redirect)
(How to write .wic image files to SD cards)
Line 3: Line 3:
  
 
==How to write <code>.wic</code> image files to SD cards==
 
==How to write <code>.wic</code> image files to SD cards==
Yocto build system can generate [https://www.yoctoproject.org/docs/2.4.2/dev-manual/dev-manual.html#creating-partitioned-images-using-wic <code>.wic</code> image files]. These files are usually written to SD cards to create bootable devices.
+
[https://www.yoctoproject.org/ Yocto] build system can generate [https://www.yoctoproject.org/docs/2.4.2/dev-manual/dev-manual.html#creating-partitioned-images-using-wic <code>.wic</code> image files]. These files are usually written to SD cards to create bootable devices.
  
The simplest way to write such images is to use [https://www.balena.io/etcher/ 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.
+
The simplest way to write such images to SD cards is to use the [https://www.balena.io/etcher/ 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 [https://en.wikipedia.org/wiki/Dd_(Unix) <code>dd</code>] utility. This tool should be avoided unless the user knows what they are doing. If the target device is not specified properly, <code>dd</code> can wipe out all the data on host's disk drive! For more details, see for instance [https://opensource.com/article/18/7/how-use-dd-linux this article].
+
Advanced users can also use the well-known [https://en.wikipedia.org/wiki/Dd_(Unix) <code>dd</code>] utility. This tool should be avoided unless the user knows what they are doing. If the target device is not specified properly, <code>dd</code> can wipe out all the data on a host's disk drive! For more details, see for instance [https://opensource.com/article/18/7/how-use-dd-linux this article].

Revision as of 17:45, 23 February 2022

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.