mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: Barebox List <barebox@lists.infradead.org>
Subject: [PATCH 3/3] ARM: beagleboard: register update handlers for NAND
Date: Thu,  2 Jul 2015 09:19:36 +0200	[thread overview]
Message-ID: <1435821576-18638-3-git-send-email-s.hauer@pengutronix.de> (raw)
In-Reply-To: <1435821576-18638-1-git-send-email-s.hauer@pengutronix.de>

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@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      parent reply	other threads:[~2015-07-02  7:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-02  7:19 [PATCH 1/3] ARM: add a machine number mechanism for boarddata Sascha Hauer
2015-07-02  7:19 ` [PATCH 2/3] ARM: beagleboard: Move to multiimage support Sascha Hauer
2015-07-02  7:19 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435821576-18638-3-git-send-email-s.hauer@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox