layerscape: fix sd-card sysupgrade
authorPawel Dembicki <paweldembicki@gmail.com>
Thu, 20 Aug 2020 07:28:01 +0000 (09:28 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Sun, 25 Oct 2020 23:40:12 +0000 (00:40 +0100)
commit6180005debe3f2502e5c2e1839f05682338990b4
tree7ae8333c5b7b5b4b88b9fdeef32ea1ddce941ca5
parent2a0d08d8270f0a299c3ea341019272faa157d427
layerscape: fix sd-card sysupgrade

So far, kernel has not been written correctly to SD card during
sysupgrade, as both target path and offset were wrong.

This patch fixes it, and adds some descriptive output on the way.

Fixes: 0841b68c91d3 ("layerscape: support sysupgrade for SD card ext4
rootfs")

Reviewed-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[alter/extend commit message]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/layerscape/base-files/lib/upgrade/platform.sh