base-files: fix nand_upgrade_ubinized()
authorRafał Miłecki <rafal@milecki.pl>
Mon, 10 Apr 2023 17:01:35 +0000 (19:01 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 11 Apr 2023 12:42:47 +0000 (13:42 +0100)
commitc798adad6b439e5144a67884c67f9f56acc5cf4c
tree73583047a486093a2bc8232e5dc193181b76ab14
parentff91a12c8db4e09105d06448a8114bd52ae17425
base-files: fix nand_upgrade_ubinized()

When using "ubiformat" with stdin it requires passing image size using
the -S argument. Provide it just like we do for "ubiupdatevol".

This fixes:
ubiformat: error!: must use '-S' with non-zero value when reading from stdin

This change fixes sysupgrade for bcm53xx and bcm4908 NAND devices
possibly some other targets too.

Cc: Rodrigo Balerdi <lanchon@gmail.com>
Cc: Daniel Golle <daniel@makrotopia.org>
Fixes: 971071212052 ("base-files: accept gzipped nand sysupgrade images")
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Daniel Golle <daniel@makrotopia.org>
Tested-by: Koen Vandeputte <koen.vandeputte@citymesh.com>
package/base-files/files/lib/upgrade/nand.sh