* 8260ADS Ethernet compilation
@ 2005-11-24 8:50 pritha.bhattacharya
2005-11-24 11:28 ` Wolfgang Denk
0 siblings, 1 reply; 2+ messages in thread
From: pritha.bhattacharya @ 2005-11-24 8:50 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 3244 bytes --]
Hi,
I have a custom board built around MPC8260ADS. I am trying to cross
compile linux 2.4.25 for ethernet on FCC1 connected to LXT971 for the
board.
Installed the toolchains from Denx site. Built linux for ppc architecture.
Then for ethernet, after selecting the proper options from the menuconfig,
while compiling the source code gives the following error:
m8260_setup.c:62: error: `bd_t' undeclared here (not in a function)
m8260_setup.c:106: warning: `abort' was declared `extern' and later
`static'
m8260_setup.c: In function `m8260_calibrate_decr':
m8260_setup.c:120: error: `bd_t' undeclared (first use in this function)
m8260_setup.c:120: error: (Each undeclared identifier is reported only
once
m8260_setup.c:120: error: for each function it appears in.)
m8260_setup.c:120: error: `binfo' undeclared (first use in this function)
m8260_setup.c:120: error: parse error before ')' token
m8260_setup.c: In function `m8260_restart':
m8260_setup.c:163: error: parse error before '*' token
m8260_setup.c:163: warning: function declaration isn't a prototype
m8260_setup.c: In function `m8260_show_percpuinfo':
m8260_setup.c:201: error: `bd_t' undeclared (first use in this function)
m8260_setup.c:201: error: `bp' undeclared (first use in this function)
m8260_setup.c:203: error: parse error before ')' token
m8260_setup.c: In function `m8260_init_IRQ':
m8260_setup.c:229: error: `NR_SIU_INTS' undeclared (first use in this
function)
m8260_setup.c: In function `m8260_find_end_of_memory':
m8260_setup.c:261: error: `bd_t' undeclared (first use in this function)
m8260_setup.c:261: error: `binfo' undeclared (first use in this function)
m8260_setup.c:264: error: parse error before ')' token
m8260_setup.c:262: warning: unused variable `__res'
m8260_setup.c: In function `platform_init':
m8260_setup.c:288: error: `bd_t' undeclared (first use in this function)
m8260_setup.c: At top level:
m8260_setup.c:106: warning: `abort' defined but not used
make[1]: *** [m8260_setup.o] Error 1
make: *** [_dir_arch/ppc/kernel] Error 2
1.I understand that bd_t is a board information structure. Which is
defined in linux/include/asm-ppc/ppcboot.h. Somehow it is not visible to
the linux/arch/kernel/m8260_setup.c I dont know what I may be doing
wrong.
2.Similarly NR_SIU_INTS, which is defined in linux/include/asm/irq.h is
also not visible.
the third query is not on compilation errors:
3.I did not understand what __res[ ] is. I came across somewhere that it
is the residual information which the bootloader is supposed to hand over
to the linux. How would that be done. I could not identify in the code
where __res is populated.
Would be of great help to get your suggestions.
Thanks & Regards
Pritha
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
[-- Attachment #2: Type: text/html, Size: 4917 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 8260ADS Ethernet compilation
2005-11-24 8:50 8260ADS Ethernet compilation pritha.bhattacharya
@ 2005-11-24 11:28 ` Wolfgang Denk
0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Denk @ 2005-11-24 11:28 UTC (permalink / raw)
To: pritha.bhattacharya; +Cc: linuxppc-embedded
In message <OF8DE1E835.620AF9B1-ON652570C3.001D9C79-652570C3.003087C6@tcs.com> you wrote:
>
> I have a custom board built around MPC8260ADS. I am trying to cross
I understand that this means you also use a custom board
configuration, right?
> m8260_setup.c:62: error: `bd_t' undeclared here (not in a function)
...
> m8260_setup.c:120: error: `binfo' undeclared (first use in this function)
...
> m8260_setup.c:229: error: `NR_SIU_INTS' undeclared (first use in this
> function)
Seems your port and/or board configuration is incomplete / broken.
> 1.I understand that bd_t is a board information structure. Which is
> defined in linux/include/asm-ppc/ppcboot.h. Somehow it is not visible to
> the linux/arch/kernel/m8260_setup.c I dont know what I may be doing
> wrong.
Bad configuration...
> 2.Similarly NR_SIU_INTS, which is defined in linux/include/asm/irq.h is
> also not visible.
Bad configuration...
> 3.I did not understand what __res[ ] is. I came across somewhere that it
> is the residual information which the bootloader is supposed to hand over
> to the linux. How would that be done. I could not identify in the code
> where __res is populated.
Use "grep"; __res points to the board information structure.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"The more data I punch in this card, the lighter it becomes, and the
lower the mailing cost."
- Stan Kelly-Bootle, "The Devil's DP Dictionary"
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-24 11:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-24 8:50 8260ADS Ethernet compilation pritha.bhattacharya
2005-11-24 11:28 ` Wolfgang Denk
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).