skip to content »

cmykalka.ru

Updating software in linux

Linux Mint / Ubuntu comes with a very convenient package manager that can keep the system up to date.

updating software in linux-84updating software in linux-14

From now on, if there are packages available for updating, they will be processed automatically. Finally, the system launches custom applications stored in the last section of the Flash memory.So obviously, it's necessary to update the memory sections with user applications and the OS kernel. Sections of the Flash Memory of a Linux-Based Device Events for starting the update process include: You can copy update files though plug media or receive them over the network (in case the system is fitted with an Ethernet port or a Wi-Fi module).An important part of the update process is checking the version of the received files and their integrity.You can do this using such algorithms as MD5, CRC32 and so forth.If problems arise, you will be able to go back to the old firmware (via TFTP).

The procedure is as follows: after the device is turned on, a bootloader is launched, which performs initialization of the system, as well as checks and loads the executable code.

This tutorial provides a general description of updating Linux-based firmware and illustrates it with some specific implementations.

First, consider the sections of the memory system (Figure 1) and parts of memory that should be updated while transferring software to a new version.

Usually, this procedure uses the TFTP protocol widely supported by various loaders.

If you perform the update process using a program in the OS, you can copy the necessary files from the server using the wget application or the libcurl library.

If the firmware fails an integrity check, the loader will be considered damaged, and it automatically will go into loader mode until the firmware is loaded over the network.