Hi Paul,
On 02.03.21 10:34, Paul Guillén wrote:
> Hi.
>
> I hope everybody is well.
>
> I have a question regarding swupdate and uboot. I hope you can help me.
>
> Is there any incompatibility to use swupdate and uboot fw-utils
> (fw_printenv and fw_setenv) on a board with different uboot?
>
> Do I have to compile specific uboot fw-utils for an specific swupdate?
>
http://u-boot.10912.n7.nabble.com/SWUpdate-U-Boot-environment-library-dependency-tt340530.html
You need a specific u-boot-fw-utils for your specific u-boot because
u-boot-fw-utils was not hardware independent. Anyway, u-boot-fw-utils
was replaced since -dunfell with libubootenv, switch to it.
> For instance,
>
> If I have uboot 2013 version
????
I cannot stop myself to get a look at you Company's Website with "Let’s
make it into the history of innovation together.". Be consistent then
and switch to a current U-Boot Version, to libubootenv and current
SWUpdate version.
> installed on an imx6 board. This board
> normally boot from eMMC.
>
> Uboot and its environment are on SPI NOR memory.
>
> The rootfs is on eMMC memory.
>
> Then, I want to update the system on eMMC.
>
> Therefore I’ve compiled swupdate 2016.10 with uboot 2016.01 fw-utils.
????????
No, get SWUpdate 2020.11 - I do not know myself how many fixes were
merged since then. Is it not scary enough to run "git log -p
2016.10..2020.11" ?
>
> I run the system from and SD with swupdate 2016 to update the rootfs on
> emmc and some uboot variables.
You get in big troublt if the emmc boots without a stored environment in
flash and SWUpdate or fw_setenv sets a variable. Board bricked.
>
> But as I said before I have different uboots on SD and eMMC, also the
> fw-utils are from uboot 2016.
>
> Is there any problem to do this?
I think you already know the answer.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone:
+49-8142-66989-53 Fax:
+49-8142-66989-80 Email:
sba...@denx.de
=====================================================================