mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
To: s.hauer@pengutronix.de, barebox@lists.infradead.org
Subject: [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update
Date: Sat, 31 Oct 2015 14:25:08 +0100	[thread overview]
Message-ID: <1446297909-2001-3-git-send-email-anton.bondarenko.sama@gmail.com> (raw)
In-Reply-To: <1446297909-2001-1-git-send-email-anton.bondarenko.sama@gmail.com>

Simplify booter update with barebox_update command.
NOTE: current MBR partition table will be overwritten.

Signed-off-by: Anton Bondarenko <anton.bondarenko.sama@gmail.com>
---
 arch/arm/boards/embedsky-e9/board.c    | 6 ++++++
 arch/arm/configs/embedsky-e9_defconfig | 1 +
 2 files changed, 7 insertions(+)

diff --git a/arch/arm/boards/embedsky-e9/board.c b/arch/arm/boards/embedsky-e9/board.c
index e8aac0c..3730985 100644
--- a/arch/arm/boards/embedsky-e9/board.c
+++ b/arch/arm/boards/embedsky-e9/board.c
@@ -41,6 +41,7 @@
 #include <mach/usb.h>
 #include <envfs.h>
 #include <bootsource.h>
+#include <bbu.h>
 
 #define PHY_ID_RTL8211E	0x001cc915
 #define PHY_ID_MASK	0xffffffff
@@ -81,6 +82,11 @@ static int e9_devices_init(void)
 
 	defaultenv_append_directory(defaultenv_e9);
 
+	bbu_register_std_file_update("sdcard.barebox", 0, "/dev/mmc1.barebox",
+				     filetype_arm_barebox);
+	bbu_register_std_file_update("emmc.barebox", 0, "/dev/mmc3.barebox",
+				     filetype_arm_barebox);
+
 	return 0;
 }
 device_initcall(e9_devices_init);
diff --git a/arch/arm/configs/embedsky-e9_defconfig b/arch/arm/configs/embedsky-e9_defconfig
index 3dc0f3b..ed82563 100644
--- a/arch/arm/configs/embedsky-e9_defconfig
+++ b/arch/arm/configs/embedsky-e9_defconfig
@@ -83,6 +83,7 @@ CONFIG_CMD_FLASH=y
 CONFIG_CMD_GPIO=y
 CONFIG_CMD_I2C=y
 CONFIG_CMD_SPI=y
+CONFIG_CMD_BAREBOX_UPDATE=y
 CONFIG_CMD_OF_NODE=y
 CONFIG_CMD_OF_PROPERTY=y
 CONFIG_CMD_OFTREE=y
-- 
2.6.2


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

  parent reply	other threads:[~2015-10-31 13:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-31 13:25 [PATCH 0/3] ARM: i.MX6Q: Add support for Embedsky E9 board, part 2 Anton Bondarenko
2015-10-31 13:25 ` [PATCH 1/3] embedsky-e9: defconfig for Embedsky E9 Anton Bondarenko
2015-10-31 13:25 ` Anton Bondarenko [this message]
2015-11-02  8:17   ` [PATCH 2/3] embedsky-e9: enable barebox_update command for booter update Sascha Hauer
2015-10-31 13:25 ` [PATCH 3/3] embedsky-e9: cleanup and reorder DTS nodes Anton Bondarenko
2015-11-02  8:23   ` Sascha Hauer

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=1446297909-2001-3-git-send-email-anton.bondarenko.sama@gmail.com \
    --to=anton.bondarenko.sama@gmail.com \
    --cc=barebox@lists.infradead.org \
    --cc=s.hauer@pengutronix.de \
    /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