summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafał Miłecki2024-07-12 09:36:46 +0000
committerRafał Miłecki2024-07-19 06:48:51 +0000
commit4565699ebeff39f0e4ace9da42df219a0faf181c (patch)
tree6de26ef8e1cdcc791dbec686290adff1f5e04cd7
parent39c824f846ceca5281ee5f3ddbf92627076bdb5e (diff)
downloadopenwrt-4565699ebeff39f0e4ace9da42df219a0faf181c.tar.gz
base-files: upgrade: nand: document nand_do_upgrade()
Describe what firmware files are supported. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
-rw-r--r--package/base-files/files/lib/upgrade/nand.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/package/base-files/files/lib/upgrade/nand.sh b/package/base-files/files/lib/upgrade/nand.sh
index 0a6fd8432d..b2b6dcf5e8 100644
--- a/package/base-files/files/lib/upgrade/nand.sh
+++ b/package/base-files/files/lib/upgrade/nand.sh
@@ -419,6 +419,16 @@ nand_do_restore_config() {
}
# Recognize type of passed file and start the upgrade process
+#
+# Supported firmware containers:
+# 1. Raw file
+# 2. Gzip
+#
+# Supported data formats:
+# 1. Tar with kernel/rootfs
+# 2. UBI image (built using "ubinized")
+# 3. UBIFS image (to update UBI volume with)
+# 4. FIT image (to update UBI volume with)
nand_do_upgrade() {
local file="$1"