Hi Fabio, It might work. But why? I mean the imx8mm-evk has already switched to binman on the mainline. So we should do the same. If you can't get into U-boot prompt using binman I can give you more detailed information.
Yours, Paul On Wed, 11 Aug 2021 at 07:13, Fabio Estevam <feste...@gmail.com> wrote: > Hi Paul, > > Thanks for your response. > > On Thu, Jul 1, 2021 at 6:38 PM Paul Liu <paul....@linaro.org> wrote: > > > > Hi Fabio, > > > > We have dfu_alt_info set. So that we can capsule update from UEFI. > > First, "setenv -e -nv -bs -rt -v OsIndications =0x04" > > And then we can "efidebug capsule update -v ${loadaddr}". > > > > To make the capsule binary, we need to create a capsule1.itb with the > following content: > > /dts-v1/; > > > > / { > > description = "Automatic U-Boot environment update"; > > #address-cells = <2>; > > > > images { > > flash-bin { > > description = "U-Boot binary on SPI Flash"; > > data = /incbin/("flash.bin"); > > compression = "none"; > > type = "firmware"; > > arch = "arm64"; > > load = <0>; > > hash-1 { > > algo = "sha1"; > > }; > > }; > > u-boot-itb { > > description = "U-Boot binary"; > > data = /incbin/("u-boot.itb"); > > compression = "none"; > > type = "firmware"; > > arch = "arm64"; > > load = <0>; > > hash-1 { > > algo = "sha1"; > > }; > > }; > > }; > > }; > > > > And then "./tools/mkimage -f capsule1.its capsule1.itb" > > "./tools/mkeficapsule --fit capsule1.itb --index 1 capsule1.bin" > > > > And we can tftp the capsule1.bin to ${loadaddr} and then use the capsule > update. > > In my case, I have the original U-Boot 2020.04 version from Compulab > on the IoT Gateway board. > > Would it be possible to run a patch like this > https://pastebin.com/raw/Rq1Yv6ka > > And then just load flash.bin via TFTP and flash it to offset 33K of the > eMMC? > > Would that work? > > Thanks, > > Fabio Estevam >