[Gta04-owner] Linux 3.x

Dr. H. Nikolaus Schaller hns at goldelico.com
Wed Aug 24 11:37:37 CEST 2011


Am 24.08.2011 um 01:10 schrieb David Lanzendörfer:

> Oke!
> I need help.
> I can't get this damn serial line working.
> It looks just fine so far, just that the code doesn't work...
> early_printk()s work just fine.
> But normal printks don't.
> Could someone check out the code I pushed so far and help me?
> Thx :-)

I have pulled the branch and tried to compile but I get

  CC      kernel/profile.o - due to target missing
  CC      kernel/events/core.o - due to target missing
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s: Assembler messages:
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:1981: Error: even register required -- `ldrexd r5,r6,[r3]'
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:1992: Error: even register required -- `ldrexd r5,r6,[r3]'
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:1995: Error: even register required -- `strexd ip,r5,r6,[r3]'
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:2114: Error: even register required -- `ldrexd r1,r2,[r3]'
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:2118: Error: even register required -- `ldrexd r5,r6,[r3]'
/var/folders/Q-/Q-r6LiEpG+S3E54UanorqU+++TM/-Tmp-//ccskUwn9.s:2158: Error: even register required -- `ldrexd r5,r6,[r3]'

I think my cross-compiler appears to be too old or I need some other gcc arguments.

One more idea for making printk work: afaik, printk writes into a ring
buffer and flushes it from time to time to the console and to the dmesg
file. If the kernel hangs before it can flush, you won't see any messages.

So you may make printk() to directly flush to console. Or (temporarily)
patch a call to early_printk into the printk function so that it prints using
a working path.

Nikolaus



More information about the Gta04-owner mailing list