Skip to contentSkip to conversation

MPC83xx: ns16550.c - 'SERIAL_PORT_DFNS' undeclared?

DISCUSSION Russell McGuire 5 participants 7 messages Jan 19, 2007 – Jan 22, 2007

lore
Share & tools
lore
#0 lore raw

All,

Attempting to compile the kernel with that latest DENX-2.6 tree from git.

I have started with the MPC834x_defconfig and added a few options, but now when I compile

arch/ppc/boot/common/ns16550.c error: 'SERIAL_PORT_DFNS' undeclared here ..

I can see clearly this is defined in /include/asm-ppc/serial.h

But why isn't this being included?

I am more inclined to think this is an option I have not included in my .config file, does anyone have idea what this might be?

I do have defined 8250/16550 char/serial devices selected in the menuconfig.

Or is this something that changed with the newest patches?

I don't seem to recall having this problem with 2.6.15 that shipped with ELDK_4.0, but then again I might have had different compile options defined.

Has anyone else seen his error?

-Russ

#1 lore raw

Russell,

Quoted 4 lines · Russell McGuire

arch/ppc/boot/common/ns16550.c error: ‘SERIAL_PORT_DFNS’ undeclared here ……

I don't think you should be building any code there... Are you using ARCH=powerpc (you should be)

regards,
Ben

#2 lore raw

Ben,

That could be the problem

I am building using ARCH=ppc

What is the difference between the two?

-----Original Message-----
From: Ben Warren [mailto:[email protected]]
Sent: Friday, January 19, 2007 11:58 AM
To: Russell McGuire
Cc: [email protected]
Subject: Re: MPC83xx: ns16550.c - 'SERIAL_PORT_DFNS' undeclared?

Russell,

Quoted 4 lines · Russell McGuire

arch/ppc/boot/common/ns16550.c error: 'SERIAL_PORT_DFNS' undeclared here ..

I don't think you should be building any code there... Are you using ARCH=powerpc (you should be)

regards,
Ben

#3 lore raw
Quoted 8 lines · Russell McGuire

Ben,

That could be the problem

I am building using ARCH=ppc

What is the difference between the two?

I'm not by any means the expert, but I believe that ARCH=powerpc is a merge of 32 and 64 bit PowerPC architectures (plus all sorts of relatives like POWER and cell), and is where 'everybody' is moving. Many types of processors (including 83xx) have been fully transitioned to powerpc, while others are in the works. There are a few differences that you'd notice, especially the requirement for passing hardware information via device tree in ARCH=powerpc. I don't know if ARCH=ppc is going away for 83xx, but it isn't being maintained or updated, AFAIK.

With ARCH=powerpc, you will hopefully be able to get your board booting soon, assuming your device tree is correct enough.

regards,
Ben

#4 lore raw
In reply to Russell McGuire
Quoted 7 lines · On Fri, 19 Jan 2007 12:14:04 -0800 Russell McGuire wrote:

Ben,

That could be the problem

I am building using ARCH=ppc

What is the difference between the two?

Newer targets appear within arch/powerpc... Concerning your question, you seem to add new board hence you'll have to do those SERIAL_PORT_DFNS in board-specific header file - grep for them inside arch/ppc for reference (if that code is still there of course).

OTOH, if you are able to replace/update your firmware, I'd follow powerpc way. Difference is FAQ I guess, please look around this list.

Quoted 2 lines

-----Original Message-----

And, uhm, top quoting is not good. I know telling that fact to Lookout DIstress is a challenge but anyway :)

--
Thanks, Vitaly

Quoted 27 lines

From: Ben Warren [mailto:[email protected]]
Sent: Friday, January 19, 2007 11:58 AM
To: Russell McGuire
Cc: [email protected]
Subject: Re: MPC83xx: ns16550.c - 'SERIAL_PORT_DFNS' undeclared?

Russell,

Quoted 4 lines · Russell McGuire

arch/ppc/boot/common/ns16550.c error: 'SERIAL_PORT_DFNS' undeclared here ..

I don't think you should be building any code there... Are you using ARCH=powerpc (you should be)

regards,
Ben

_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

#6 lore raw
In reply to Russell McGuire
Quoted 7 lines · Russell McGuire

Ben,

That could be the problem

I am building using ARCH=ppc

What is the difference between the two?

Short answer: ppc is deprecated in favor of powerpc.

Eventually, ppc will go away altogether.

Signature · 2 lines
Timur Tabi
Linux Kernel Developer @ Freescale
#5 lore raw
In reply to Vitaly Bordug
Quoted 7 lines · Vitaly Bordug
Quoted 4 lines · On Fri, 19 Jan 2007 12:14:04 -0800 Russell McGuire wrote:

Ben,

That could be the problem

Quoted 7 lines
Quoted 3 lines

I am building using ARCH=ppc

What is the difference between the two?

Newer targets appear within arch/powerpc... Concerning your question, you seem to add new board hence you'll have to do those SERIAL_PORT_DFNS in board-specific header file - grep for them inside arch/ppc for reference (if that code is still there of course).

Note that SERIAL_PORT_DFNS are pretty much deprecated too :-) Nobody cared fixing arch/ppc but for arch/powerpc, you should use one of the new mecanisms, if possible using the device-tree / platform devices.

Ben.