[PATCH 5/9] ARM: zynq: zed: add Barebox update handler
Lucas Stach
dev at lynxeye.de
Fri Dec 13 13:00:11 PST 2024
Add a BBU handler for easy updating.
Signed-off-by: Lucas Stach <dev at lynxeye.de>
---
arch/arm/boards/avnet-zedboard/board.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/arch/arm/boards/avnet-zedboard/board.c b/arch/arm/boards/avnet-zedboard/board.c
index faa0bacf0ce1..b19b26bfb307 100644
--- a/arch/arm/boards/avnet-zedboard/board.c
+++ b/arch/arm/boards/avnet-zedboard/board.c
@@ -2,6 +2,7 @@
// SPDX-FileCopyrightText: 2013 Steffen Trumtrar <s.trumtrar at pengutronix.de>
#include <asm/armlinux.h>
+#include <bbu.h>
#include <common.h>
#include <environment.h>
#include <asm/mach-types.h>
@@ -17,6 +18,9 @@ static int zedboard_console_init(void)
barebox_set_hostname("zedboard");
+ bbu_register_std_file_update("SD", BBU_HANDLER_FLAG_DEFAULT,
+ "/boot/BOOT.bin", filetype_zynq_image);
+
return 0;
}
console_initcall(zedboard_console_init);
--
2.47.1
More information about the barebox
mailing list