linux-omap.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lukasz Majewski <l.majewski@majess.pl>
To: linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org
Subject: Problem with early debugging (arch/arm/boot/compressed/head.S)
Date: Fri, 16 Dec 2016 07:34:48 +0100	[thread overview]
Message-ID: <20161216073448.1da2d374@jawa> (raw)

[-- Attachment #1: Type: text/plain, Size: 3253 bytes --]

Dear All,

My SoC: Cortex-A15, TI (AM57xx)

My setup: Linux v4.9: tag v4.9-rc8

Toolchain: TI's SDK:
ti-am572x-idk-sdk/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-

I'm trying to get early print messages on UART1 (0x4806a000).

Relevant .config defines:

CONFIG_DEBUG_LL=y
CONFIG_DEBUG_LL_INCLUDE="debug/omap2plus.S"
CONFIG_EARLY_PRINTK=y
CONFIG_DEBUG_OMAP2UART1=y

've enabled debugging in the arch/arm/boot/compressed/head.S file (#define DEBUG).

Unfortunately I do have following errors:

CC arch/arm/boot/compressed/decompress.o
arch/arm/boot/compressed/head.S: Assembler messages:
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `sub ,r3,r1'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `ldr r3,[,#0]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `ldr r1,[,#4]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#0]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#4]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#8]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#0]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#4]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `str r3,[,#8]'
arch/arm/boot/compressed/head.S:1286: Error: ARM register expected -- `ldr ,[,#8]'
arch/arm/boot/compressed/head.S:1286: Error: shift expression expected -- `add r3,r3,'
arch/arm/boot/compressed/head.S:1286: Error: shift expression expected -- `add r1,r1,'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `sub ,r3,r1'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `ldr r3,[,#0]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `ldr r1,[,#4]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#0]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#4]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#8]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#0]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#4]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `str r3,[,#8]'
arch/arm/boot/compressed/head.S:1304: Error: ARM register expected -- `ldr ,[,#8]'
arch/arm/boot/compressed/head.S:1304: Error: shift expression expected -- `add r3,r3,'
arch/arm/boot/compressed/head.S:1304: Error: shift expression expected -- `add r1,r1,'
scripts/Makefile.build:393: recipe for target 'arch/arm/boot/compressed/head.o' failed

Those are related to loadsp macro (also defined in head.S file), which
is very short:

 .macro	loadsp,	rb, tmp
	        push {r7}
	        addruart r7, \rb, \tmp
	        pop {r7}
		.endm

Any ideas how to fix this issue? Any hints?

I initially thought that this is compiler configuration issue - but
those errors are on many compilers (also incliding TI's SDK compiler).

Any ideas or hints how to proceed?

Best regards,

Łukasz Majewski


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

                 reply	other threads:[~2016-12-16  6:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20161216073448.1da2d374@jawa \
    --to=l.majewski@majess.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-omap@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).