Skip to contentSkip to conversation

Build error while adding debug LL support for new board

PATCH Afzal Mohammed 3 participants 7 messages Oct 17, 2011 – Oct 20, 2011 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

Regards
Afzal

From: Afzal Mohammed <[email protected]>
Date: Fri, 14 Oct 2011 12:56:16 +0530
Subject: [PATCH] ARM: Fix error upon adding LL debug

Upon adding new board LL debug support, if the resultant code addition would not cause PC relative offset of "hexbuf" from "adr r2, hexbuf" (+2) instruction to be representable in a shifted 8-bit value (hence indirectly putting higher aligment requirement on larger offsets), following error occurs,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Fix it by bringing "hexbuf" closer so that "adr"
can have the offset.

---
 arch/arm/kernel/debug.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/kernel/debug.S +2 -2
index bcd66e0..0f852d0 100644
@@ -151,6 +151,8 @@ printhex:   adr     r2, hexbuf
                b       printascii
 ENDPROC(printhex2)
 
+hexbuf:                .space 16
+
                .ltorg
 
 ENTRY(printascii)
@@ -175,5 +177,3 @@ ENTRY(printch)
                mov     r0, #0
                b       1b
 ENDPROC(printch)
-
-hexbuf:                .space 16

--
1.6.2.4

#1 lore raw

Hi Russell,

Quoted 10 lines · Afzal

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

ping

Regards
Afzal

Quoted 45 lines

From: Afzal Mohammed <[email protected]>
Date: Fri, 14 Oct 2011 12:56:16 +0530
Subject: [PATCH] ARM: Fix error upon adding LL debug

Upon adding new board LL debug support, if the resultant code addition would not cause PC relative offset of "hexbuf" from "adr r2, hexbuf" (+2) instruction to be representable in a shifted 8-bit value (hence indirectly putting higher aligment requirement on larger offsets), following error occurs,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Fix it by bringing "hexbuf" closer so that "adr"
can have the offset.

---
 arch/arm/kernel/debug.S |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/arm/kernel/debug.S +2 -3
index bcd66e0..0f852d0 100644
@@ -151,6 +151,8 @@ printhex:   adr     r2, hexbuf
                b       printascii
 ENDPROC(printhex2)
 
+hexbuf:                .space 16
+
                .ltorg
 
 ENTRY(printascii)
@@ -175,5 +177,3 @@ ENTRY(printch)
                mov     r0, #0
                b       1b
 ENDPROC(printch)
-
-hexbuf:                .space 16
--

1.6.2.4

#2 lore raw
Quoted 8 lines · Afzal

Hi Russell,

Quoted 5 lines · Afzal

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

Quoted 7 lines
Quoted 5 lines

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

ping

The patch looks fine. Who's merging it?

Acked-by
#3 lore raw
Quoted 12 lines · Russell King - ARM Linux
Quoted 11 lines · Afzal

Hi Russell,

Quoted 8 lines · Afzal

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

ping

The patch looks fine. Who's merging it?

Can you please take it?

#4 lore raw
Quoted 16 lines · Tony Lindgren
Quoted 15 lines · Russell King - ARM Linux
Quoted 14 lines · Afzal

Hi Russell,

Quoted 10 lines · Afzal

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

ping

The patch looks fine. Who's merging it?

Can you please take it?

If it finds its way into the patch system. Note that I'm not applying patches after end of today until after the kernel summit.

#5 lore raw
Quoted 19 lines · Russell King - ARM Linux
Quoted 18 lines · Tony Lindgren
Quoted 17 lines · Russell King - ARM Linux
Quoted 15 lines · Afzal

Hi Russell,

Quoted 10 lines · Afzal

Hi, Russell,

While adding low level debug support for new board in OMAP2+ family, we came across following error,

arch/arm/kernel/debug.S: Assembler messages:
arch/arm/kernel/debug.S:138: Error: invalid constant (428) after fixup

Following patch fixes it, I am not sure whether this is the right fix, please let us know your comments.

ping

Quoted 8 lines
Quoted 5 lines
Quoted 1 line

The patch looks fine. Who's merging it?

Can you please take it?

If it finds its way into the patch system. Note that I'm not applying patches after end of today until after the kernel summit.

Afzal, can you please put this into Russell's patch system? Sounds like this could be applied after the merge window too.

Regards,

Tony

#6 lore raw

Hi Tony, Russell,

Quoted 2 lines · Tony Lindgren
Quoted 1 line · Russell King - ARM Linux

:
:

Quoted 6 lines
Quoted 2 lines

If it finds its way into the patch system. Note that I'm not applying patches after end of today until after the kernel summit.

Afzal, can you please put this into Russell's patch system? Sounds like this could be applied after the merge window too.

Thanks, this has been put into Russell's patch system,

http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7137/1

Regards
Afzal