How To Install u-boot-tools on Ubuntu 20.04

In this tutorial we learn how to install u-boot-tools on Ubuntu 20.04. u-boot-tools is companion tools for Das U-Boot bootloader companion tools for Das U-Boot bootloader

Introduction

In this tutorial we learn how to install u-boot-tools on Ubuntu 20.04.

What is u-boot-tools

u-boot-tools is:

This package includes programs for generating and listing U-Boot images in various formats:

  • mkimage
  • dumpimage
  • mksunxiboot
  • mkenvimage

Package: u-boot-tools Architecture: amd64 Version: 2019.07+dfsg-1ubuntu6 Multi-Arch: foreign Priority: optional Section: admin Source: u-boot Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Vagrant Cascadian [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 705 Depends: libc6 (>= 2.15), libssl1.1 (>= 1.1.1), binutils Recommends: device-tree-compiler Breaks: u-boot (« 2010.12-2), uboot-envtools (« 20081215-3~), uboot-mkimage (<= 0.4build1) Replaces: u-boot (« 2010.12-2), uboot-envtools (« 20081215-3~), uboot-mkimage (<= 0.4build1) Filename: pool/main/u/u-boot/u-boot-tools_2019.07+dfsg-1ubuntu6_amd64.deb Size: 166840 MD5sum: 99b4f72858cb83ec22b0b9fa8b18f2eb SHA1: ba22c9d27bd1001dfe95dc83106e505286651a6c SHA256: b732d3f1ebc3d7f1f7bf8b9cc2d7d6a7a8c23e49d14d248d2ed956b610a5e803 Homepage: http://www.denx.de/wiki/U-Boot/ Description-en: companion tools for Das U-Boot bootloader This package includes the mkimage program, which allows generation of U-Boot images in various formats, and the fw_printenv and fw_setenv programs to read and modify U-Boot’s environment.

There are three methods to install u-boot-tools on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install u-boot-tools Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install u-boot-tools using apt-get by running the following command:

sudo apt-get -y install u-boot-tools

Install u-boot-tools Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install u-boot-tools using apt by running the following command:

sudo apt -y install u-boot-tools

Install u-boot-tools Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install u-boot-tools using aptitude by running the following command:

sudo aptitude -y install u-boot-tools

How To Uninstall u-boot-tools on Ubuntu 20.04

To uninstall only the u-boot-tools package we can use the following command:

sudo apt-get remove u-boot-tools

Uninstall u-boot-tools And Its Dependencies

To uninstall u-boot-tools and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove u-boot-tools

Remove u-boot-tools Configurations and Data

To remove u-boot-tools configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge u-boot-tools

Remove u-boot-tools configuration, data, and all of its dependencies

We can use the following command to remove u-boot-tools configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge u-boot-tools

References

Summary

In this tutorial we learn how to install u-boot-tools package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.