MIPS: start.S: add "barebox" label at _start + 8
RFC 1/2 MIPS: start.S: add "barebox" label at _start + 8
--- arch/mips/boot/start.S | 8 ++++++++ 1 file changed, 8 insertions(+)
arch/mips/boot/start.S +8 -0
@@ -52,6 +52,14 @@ _pc: addiu \rd, ra, \label - _pc # label is assumed to be .align 4 EXPORT(_start) + + b __start + nop + + .ascii "barebox" + .byte 0 + +__start: /* disable watchpoints */ mtc0 zero, CP0_WATCHLO mtc0 zero, CP0_WATCHHI
Signature · 7 lines
1.7.10 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
RFC 2/2 MIPS: bootm: add "MIPS barebox" handler
--- arch/mips/lib/Makefile | 1 + arch/mips/lib/bootm.c | 43 +++++++++++++++++++++++++++++++++++++++++++ common/filetype.c | 2 ++ include/filetype.h | 1 + 4 files changed, 47 insertions(+) create mode 100644 arch/mips/lib/bootm.c
arch/mips/lib/Makefile +1 -0
@@ -6,3 +6,4 @@ obj-y += ashrdi3.o obj-y += memory.o obj-$(CONFIG_CMD_MIPS_CPUINFO) += cpuinfo.o +obj-$(CONFIG_CMD_BOOTM) += bootm.o
arch/mips/lib/bootm.c new file +43 -0
43 lines not on this page · raw message
common/filetype.c +2 -0
@@ -78,6 +78,8 @@ enum filetype file_detect_type(void *_buf)return filetype_oftree;if (strncmp (buf8,"ANDROID!" ,8 ) ==0 )return filetype_aimage; +if (strncmp (buf8 +8 ,"barebox" ,8 ) ==0 ) +return filetype_mips_barebox;return filetype_unknown; }
include/filetype.h +1 -0
@@ -17,6 +17,7 @@ enum filetype { filetype_oftree, filetype_aimage, filetype_sh, + filetype_mips_barebox, };const char *file_type_to_string (enum filetype f);
Signature · 7 lines
1.7.10 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 13 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>---
arch/mips/boot/start.S | 8 ++++++++1 file changed, 8 insertions(+)arch/mips/boot/start.S +0
-0@@ -52,6 +52,14 @@ _pc: addiu \rd, ra, \label - _pc # label is assumed to be.align 4
EXPORT(_start)
arch/mips/boot/start.S _pc: addiu \rd, ra, \label - _pc # label is assumed to be · line 59
Quoted 5 lines
arch/mips/boot/start.S +5
-0+ + b __start + nop + + .ascii "barebox"
There is the problem with mips64 (thank to Jean-Christophe). We must set offset for "barebox" string more explicitly.
I will remake the patches.
Quoted 9 lines
+ .byte 0
arch/mips/boot/start.S +2
-0+ +__start:/* disable watchpoints */
mtc0 zero,CP0_WATCHLO
mtc0 zero,CP0_WATCHHI
--
1.7.10
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 23 lines · Antony Pavlov
Quoted 13 lines · Antony Pavlov
Signed-off-by Antony Pavlov <[email protected]>---
arch/mips/boot/start.S | 8 ++++++++1 file changed, 8 insertions(+)arch/mips/boot/start.S +0
-0@@ -52,6 +52,14 @@ _pc: addiu \rd, ra, \label - _pc # label is assumed to be.align 4
EXPORT(_start)
arch/mips/boot/start.S _pc: addiu \rd, ra, \label - _pc # label is assumed to be · line 59
Quoted 5 lines
arch/mips/boot/start.S +5
-0+ + b __start + nop + + .ascii "barebox"There is the problem with mips64 (thank to Jean-Christophe). We must set offset for "barebox" string more explicitly.
Quoted 1 line
I will remake the patches.
I double check by building the malta as 64bit it work but it's true it will be better to specified the offset explecitly
btw we need to discuss with the kernel ML to add a Magic too in the vmlinux.bin and vmlinu.bin to be able to detect there type automatically
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox