MIPS: add support for metadata in pbl-enabled barebox images
cover MIPS: add support for metadata in pbl-enabled barebox images
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)
arch/mips/configs/qemu-malta_defconfig | 1 + arch/mips/lib/barebox.lds.S | 2 ++ arch/mips/pbl/zbarebox.lds.S | 2 ++ common/imd-barebox.c | 4 ++-- 4 files changed, 7 insertions(+), 2 deletions(-)
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/3 MIPS: qemu-malta_defconfig: enable metadata in barebox image (IMD)
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
--- arch/mips/configs/qemu-malta_defconfig | 1 + 1 file changed, 1 insertion(+)
arch/mips/configs/qemu-malta_defconfig +1 -0
@@ -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
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/3 fixup! Add support for metadata in barebox images
In reply to Antony Pavlov--- common/imd-barebox.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
common/imd-barebox.c +2 -2
@@ -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 );
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/3 MIPS: add support for metadata in barebox images
In reply to Antony Pavlov--- arch/mips/lib/barebox.lds.S | 2 ++ arch/mips/pbl/zbarebox.lds.S | 2 ++ 2 files changed, 4 insertions(+)
arch/mips/lib/barebox.lds.S +2 -0
@@ -49,6 +49,8 @@ SECTIONS . = ALIGN(4); .data : { *(.data*) } + .barebox_imd : { BAREBOX_IMD } + . = ALIGN(4); .got : { *(.got*) }
arch/mips/pbl/zbarebox.lds.S +2 -0
@@ -44,6 +44,8 @@ SECTIONS . = ALIGN(4); .rodata : { *(.rodata*) } + .barebox_imd : { BAREBOX_IMD } + _etext = .; /* End of text and rodata section */ . = ALIGN(4);
Signature · 7 lines
2.0.1 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 9 lines · Antony Pavlov
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
Signature · 9 lines
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 [email protected] http://lists.infradead.org/mailman/listinfo/barebox