Skip to contentSkip to conversation

package/rauc: select fw_printenv for uboot based systems

RFC PATCH New Titouan Christophe 3 participants 3 messages Dec 5, 2019 – Dec 7, 2019

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 package/rauc: select fw_printenv for uboot based systems

When operating on a uboot based system, rauc interacts with the bootloader environment using fw_printenv and fw_setenv [1].

These commands should therefore be present on the target if the system being built uses uboot.

[1] See:
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L21-L22
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L644-L645

---
Note: we should maybe do the same for EFI, Grub and Barebox, but
I'm not familiar with these ones.

---
 package/rauc/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/rauc/Config.in +2 -0
index 4a1516a595..676ff42b51 100644
@@ -7,6 +7,8 @@ config BR2_PACKAGE_RAUC
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_DBUS
 	select BR2_PACKAGE_SQUASHFS # run-time dependency
+	select BR2_PACKAGE_UBOOT_TOOLS if BR2_TARGET_UBOOT # run-time dependency
+	select BR2_PACKAGE_UBOOT_TOOLS_FWPRINTENV if BR2_TARGET_UBOOT
 	help
 	  RAUC is the Robust Auto-Update Controller developed by
 	  Pengutronix. It supports updating embedded Linux
Signature · 1 line
2.21.0
#1 lore raw

RFC PATCH 1/1 package/rauc: select fw_printenv for uboot based systems

Quoted 10 lines · On Thu, 5 Dec 2019 10:42:38 +0100 Titouan Christophe…

When operating on a uboot based system, rauc interacts with the bootloader environment using fw_printenv and fw_setenv [1].

These commands should therefore be present on the target if the system being built uses uboot.

[1] See:
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L21-L22
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L644-L645

Quoted 7 lines

---
Note: we should maybe do the same for EFI, Grub and Barebox, but
I'm not familiar with these ones.

---
 package/rauc/Config.in | 2 ++
 1 file changed, 2 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#2 lore raw

RFC PATCH 1/1 package/rauc: select fw_printenv for uboot based systems

In reply to Titouan Christophe
Quoted 5 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Titouan" == Titouan Christophe <[email protected]> writes:

When operating on a uboot based system, rauc interacts with the bootloader environment using fw_printenv and fw_setenv [1].

Quoted 8 lines

These commands should therefore be present on the target if the system being built uses uboot.

[1] See:
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L21-L22
https://github.com/rauc/rauc/blob/v1.2/src/bootchooser.c#L644-L645

Committed to 2019.02.x, 2019.08.x and 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard