* I always encouter this simple error message compiling 2.6 for ML403 UART 16550
@ 2007-04-30 6:43 Mohammad Sadegh Sadri
2007-04-30 7:32 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-30 6:43 UTC (permalink / raw)
To: Linux PPC Linux PPC
Well
Don't know if any change should occure in the source files but when I compi=
le any version of 2.6 kernel for ml403/405 with UART 16550 support , I enco=
unter this error message :
arch/ppc/syslib/virtex_devices.c: In function 'virtex_early_serial_init':
arch/ppc/syslib/virtex_devices.c:309: warning: implicit declaration of func=
tion 'gen550_init'
CC arch/ppc/syslib/ppc4xx_setup.o
CC arch/ppc/syslib/gen550_dbg.o
arch/ppc/syslib/gen550_dbg.c:34: error: 'RS_TABLE_SIZE' undeclared here (no=
t in a function)
arch/ppc/syslib/gen550_dbg.c:36: error: empty scalar initializer
arch/ppc/syslib/gen550_dbg.c:36: error: (near initialization for 'rs_table'=
)
make[1]: *** [arch/ppc/syslib/gen550_dbg.o] Error 1
make: *** [arch/ppc/syslib] Error 2
And for the solution I simply add the following line to the header of gen55=
0_dbg.c :
#include=20
Is there any thing I have missed? or this include line should be added to t=
he source codes?
thanks.
_________________________________________________________________
Connect to the next generation of MSN Messenger=A0
http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc=
e=3Dwlmailtagline=
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I always encouter this simple error message compiling 2.6 for ML403 UART 16550
2007-04-30 6:43 I always encouter this simple error message compiling 2.6 for ML403 UART 16550 Mohammad Sadegh Sadri
@ 2007-04-30 7:32 ` Grant Likely
2007-04-30 8:22 ` Grant Likely
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2007-04-30 7:32 UTC (permalink / raw)
To: Mohammad Sadegh Sadri; +Cc: Linux PPC Linux PPC
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
On 4/30/07, Mohammad Sadegh Sadri <mamsadegh@hotmail.com> wrote:
>
> Well
>
> Don't know if any change should occure in the source files but when I compile any version of 2.6 kernel for ml403/405 with UART 16550 support , I encounter this error message :
Hmm, yes. That looks busted. Try the attached patch and see if it
works for you.
Cheers,
g.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
[-- Attachment #2: 0001-POWERPC-Enable-Virtex-support-for-early-serial.patch --]
[-- Type: application/x-patch, Size: 2594 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I always encouter this simple error message compiling 2.6 for ML403 UART 16550
2007-04-30 7:32 ` Grant Likely
@ 2007-04-30 8:22 ` Grant Likely
2007-05-01 4:44 ` David H. Lynch Jr.
0 siblings, 1 reply; 4+ messages in thread
From: Grant Likely @ 2007-04-30 8:22 UTC (permalink / raw)
To: Mohammad Sadegh Sadri; +Cc: Linux PPC Linux PPC
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
On 4/30/07, Grant Likely <grant.likely@secretlab.ca> wrote:
> On 4/30/07, Mohammad Sadegh Sadri <mamsadegh@hotmail.com> wrote:
> >
> > Well
> >
> > Don't know if any change should occure in the source files but when I compile any version of 2.6 kernel for ml403/405 with UART 16550 support , I encounter this error message :
>
> Hmm, yes. That looks busted. Try the attached patch and see if it
> works for you.
Oops; that patch won't work. Try this one instead.
--
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
[-- Attachment #2: 0001-POWERPC-Fix-gen550-early-serial-support-on-Xilinx.patch --]
[-- Type: application/x-patch, Size: 2653 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: I always encouter this simple error message compiling 2.6 for ML403 UART 16550
2007-04-30 8:22 ` Grant Likely
@ 2007-05-01 4:44 ` David H. Lynch Jr.
0 siblings, 0 replies; 4+ messages in thread
From: David H. Lynch Jr. @ 2007-05-01 4:44 UTC (permalink / raw)
To: linuxppc-embedded
Grant Likely wrote:
>
> Oops; that patch won't work. Try this one instead.
What really needs to be done is to create some kind of mini-driver
architecture for the boot and debug serial drivers.
There are only something like 4 or 5 simple functions, and in many
cases only putchar() needs implimented.
The whole boot/debug early serial stuff is highly and unescesarily
8250 specific. While there are several alternatives,
these typically involve numerous #ifdef's and then end up being
board specific.
Being able to output data, before linux has loaded, or before the
standard serial drivers have initialized is probably not important for
working systems, but is incredibly useful when trying to bring up a
new board - particularly if you are trying to do so with
silly scopes, logic analyzers, and other electronic gizmo's
"give me an output bit and an LED to hang on it, and I can flash the
world"
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-01 4:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-30 6:43 I always encouter this simple error message compiling 2.6 for ML403 UART 16550 Mohammad Sadegh Sadri
2007-04-30 7:32 ` Grant Likely
2007-04-30 8:22 ` Grant Likely
2007-05-01 4:44 ` David H. Lynch Jr.
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).