Configuration Guide Configuring PKG_MGMT
kernel: This subsystem exists in a specific partition in the form of files. Therefore, upgrading/degrading this subsystem
is to write the file.
rootfs: Generally, this subsystem exists on the nandflash device in the form of images. Therefore, upgrading/degrading
this subsystem is to write the image into the nandflash device.
Management
Query the subsystem components that are available currently and then load subsystem components as required.
Each subsystem component contains redundancy design. During the upgrade/degradation:
boot: The boot subsystem always contains a master boot subsystem and a slave boot subsystem. Only the master boot
subsystem is involved in the upgrade, and the slave boot subsystem serves as the redundancy backup all along.
kernel: as the kernel subsystem contains at least one redundancy backup. More redundancy backups are allowed if
there is enough space.
rootfs: The rootfs subsystem always contains a redundancy backup.
The boot component is not included in the scope of subsystem management due to its particularity. During upgrade of the
kernel or rootfs subsystem component, the upgrade/degradation module always records the subsystem component in use,
the redundant subsystem component, and management information about various versions.
Relevant Configuration
Upgrade
Store the upgrade file on the local device, and then run the upgrade command for upgrade.
3.2. Upgrading/Degrading and Managing Functional Components
Working Principle
In fact, upgrading a feature is replacing feature files on the device with the feature files in the package.
Managing feature components and hot patches is aimed at recording the information of feature components and hot patches
by using a database. In fact, installing, displaying and uninstalling a component is the result of performing the Add, Query
and Delete operation on the database.
After package upgrade, component upgrade cannot be performed.
Relevant Configuration
Upgrade
Store the upgrade file on the local device, and then run the upgrade command for upgrade.
3.3. Upgrading/Degrading and Managing Hot Patch Packages
Working Principle
In fact, upgrading a feature component is replacing feature files on the device with the feature files in the package.