uboot-envtools: Fix format of autogenerated sectors
authorSven Eckelmann <sven@narfation.org>
Thu, 29 Sep 2022 10:10:32 +0000 (12:10 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 5 Nov 2022 21:45:46 +0000 (22:45 +0100)
commit7a77aacb316deefe300c30e4352dea096e45a924
treea0e4f26b628ce5b9283b001935e7aedce6e0e6c3
parentb3b3428a0e5d50eaddabd80100eb23ab04899293
uboot-envtools: Fix format of autogenerated sectors

The sector number must be stored in hex. Otherwise, the number (like 16)
will be parsed as hex and any write to the partition will end up with an
error like:

  MTD erase error on /dev/mtd5: Invalid argument

Fixes: 9adfeccd8415 ("uboot-envtools: Add support for IPQ806x AP148 and DB149")
Fixes: 54b275c8ed3a ("ipq40xx: add target")
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@fungible.com>
(cherry picked from commit 8d3e932b65b59ab7231cb5440866eb975bd150ea)
package/boot/uboot-envtools/files/ipq40xx
package/boot/uboot-envtools/files/ipq806x