* [PATCH 1/3] fixup! Add support for metadata in barebox images
2014-08-02 5:43 [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Antony Pavlov
@ 2014-08-02 5:43 ` Antony Pavlov
2014-08-02 5:43 ` [PATCH 2/3] MIPS: add " Antony Pavlov
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2014-08-02 5:43 UTC (permalink / raw)
To: barebox
---
common/imd-barebox.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/common/imd-barebox.c b/common/imd-barebox.c
index 7122740..e9cd37d 100644
--- a/common/imd-barebox.c
+++ b/common/imd-barebox.c
@@ -13,12 +13,12 @@ void imd_used(const void *used)
struct imd_header imd_start_header
__BAREBOX_IMD_SECTION(.barebox_imd_start) = {
- .type = IMD_TYPE_START,
+ .type = cpu_to_le32(IMD_TYPE_START),
};
struct imd_header imd_end_header
__BAREBOX_IMD_SECTION(.barebox_imd_end) = {
- .type = IMD_TYPE_END,
+ .type = cpu_to_le32(IMD_TYPE_END),
};
BAREBOX_IMD_TAG_STRING(imd_build_tag, IMD_TYPE_BUILD, UTS_VERSION, 1);
--
2.0.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 2/3] MIPS: add support for metadata in barebox images
2014-08-02 5:43 [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Antony Pavlov
2014-08-02 5:43 ` [PATCH 1/3] fixup! Add support for metadata in " Antony Pavlov
@ 2014-08-02 5:43 ` Antony Pavlov
2014-08-02 5:43 ` [PATCH 3/3] MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD) Antony Pavlov
2014-08-04 18:51 ` [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2014-08-02 5:43 UTC (permalink / raw)
To: barebox
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/lib/barebox.lds.S | 2 ++
arch/mips/pbl/zbarebox.lds.S | 2 ++
2 files changed, 4 insertions(+)
diff --git a/arch/mips/lib/barebox.lds.S b/arch/mips/lib/barebox.lds.S
index 4ee4252..c690e71 100644
--- a/arch/mips/lib/barebox.lds.S
+++ b/arch/mips/lib/barebox.lds.S
@@ -49,6 +49,8 @@ SECTIONS
. = ALIGN(4);
.data : { *(.data*) }
+ .barebox_imd : { BAREBOX_IMD }
+
. = ALIGN(4);
.got : { *(.got*) }
diff --git a/arch/mips/pbl/zbarebox.lds.S b/arch/mips/pbl/zbarebox.lds.S
index 3a26942..a883fdb 100644
--- a/arch/mips/pbl/zbarebox.lds.S
+++ b/arch/mips/pbl/zbarebox.lds.S
@@ -44,6 +44,8 @@ SECTIONS
. = ALIGN(4);
.rodata : { *(.rodata*) }
+ .barebox_imd : { BAREBOX_IMD }
+
_etext = .; /* End of text and rodata section */
. = ALIGN(4);
--
2.0.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 3/3] MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD)
2014-08-02 5:43 [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Antony Pavlov
2014-08-02 5:43 ` [PATCH 1/3] fixup! Add support for metadata in " Antony Pavlov
2014-08-02 5:43 ` [PATCH 2/3] MIPS: add " Antony Pavlov
@ 2014-08-02 5:43 ` Antony Pavlov
2014-08-04 18:51 ` [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Antony Pavlov @ 2014-08-02 5:43 UTC (permalink / raw)
To: barebox
Usage:
$ qemu-system-mips -nodefaults -nographic -M malta -m 256 \
-serial stdio -monitor null \
-bios ./barebox-flash-image
...
barebox:/ imd /dev/nor0
release: 2014.07.0-00401-gd863821
build: #148 Sat Aug 2 09:22:16 MSK 2014
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
---
arch/mips/configs/qemu-malta_defconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig
index 6ee302d..5a1ca36 100644
--- a/arch/mips/configs/qemu-malta_defconfig
+++ b/arch/mips/configs/qemu-malta_defconfig
@@ -14,6 +14,7 @@ CONFIG_POLLER=y
CONFIG_DEBUG_INFO=y
CONFIG_LONGHELP=y
CONFIG_CMD_IOMEM=y
+CONFIG_CMD_IMD=y
CONFIG_CMD_MEMINFO=y
CONFIG_CMD_BOOTM_SHOW_TYPE=y
CONFIG_CMD_GO=y
--
2.0.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images
2014-08-02 5:43 [PATCH 0/3] MIPS: add support for metadata in pbl-enabled barebox images Antony Pavlov
` (2 preceding siblings ...)
2014-08-02 5:43 ` [PATCH 3/3] MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD) Antony Pavlov
@ 2014-08-04 18:51 ` Sascha Hauer
3 siblings, 0 replies; 5+ messages in thread
From: Sascha Hauer @ 2014-08-04 18:51 UTC (permalink / raw)
To: Antony Pavlov; +Cc: barebox
On Sat, Aug 02, 2014 at 09:43:20AM +0400, Antony Pavlov wrote:
> This patch series make it possible to use metadata
> in big-endian qemu-malta barebox images.
>
> The first patch fixes up metadata for big-endian targets.
>
> Antony Pavlov (3):
> fixup! Add support for metadata in barebox images
> MIPS: add support for metadata in barebox images
> MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD)
Applied, thanks.
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] 5+ messages in thread