[PATCH 3/3] ARM: beagleboard: register update handlers for NAND

Sascha Hauer s.hauer at pengutronix.de
Thu Jul 2 00:19:36 PDT 2015


To make updating barebox to nand easy. To bootstrap from a SD
card:

barebox_update -t nand-xload /boot/MLO
barebox_update -t nand /boot/barebox.bin

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 arch/arm/boards/beagle/board.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/boards/beagle/board.c b/arch/arm/boards/beagle/board.c
index b7efe95..a7ff3a4 100644
--- a/arch/arm/boards/beagle/board.c
+++ b/arch/arm/boards/beagle/board.c
@@ -21,6 +21,7 @@
 #include <driver.h>
 #include <linux/sizes.h>
 #include <io.h>
+#include <bbu.h>
 #include <ns16550.h>
 #include <envfs.h>
 #include <asm/armlinux.h>
@@ -120,6 +121,11 @@ static int beagle_devices_init(void)
 
 	defaultenv_append_directory(defaultenv_beagle);
 
+	bbu_register_std_file_update("nand-xload", 0,
+			"/dev/nand0.xload.bb", filetype_ch_image);
+	bbu_register_std_file_update("nand", 0,
+			"/dev/nand0.barebox.bb", filetype_arm_barebox);
+
 	return 0;
 }
 device_initcall(beagle_devices_init);
-- 
2.1.4




More information about the barebox mailing list