2009-02-27 18:11:59     PPI BF537 wont compile

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-02-27 18:11:59     PPI BF537 wont compile

raghu mulagada (UNITED STATES)

Message: 70119   

 

Hi all

 

I am trying to compile abd use the PPI for BF537 ... but when I  make the distribution file, i get the following error in the terminal:

 

drivers/built-in.o: In function `ppifcd_reg_reset':

(.text+0xcf52): undefined reference to `bfin_clear_PPI_STATUS'

drivers/built-in.o: In function `ppifcd_irq_error':

drivers/char/bfin_ppifcd.c:(.text+0xcfe4): undefined reference to `bfin_clear_PPI_STATUS'

 

 

can anyone suggest a solution or a work around for this problem?

 

Thank you in anticipatio of help.

QuoteReplyEditDelete

 

 

2009-02-27 18:15:35     Re: PPI BF537 wont compile

Mike Frysinger (UNITED STATES)

Message: 70120   

 

what version of the kernel exactly are you using ?

QuoteReplyEditDelete

 

 

2009-02-27 18:34:49     Re: PPI BF537 wont compile

raghu mulagada (UNITED STATES)

Message: 70121   

 

hi

 

thank you for the prompt reply, the following is the information regarding the kernel version i am using:

 

kernel:    Linux release 2.6.22.19-ADI-2008R1.5-svn, build #3 Fri Feb 6 15:21:44 EST 2009

toolchain: bfin-uclinux-gcc release gcc version 4.1.2 (ADI svn)

user-dist: release 2008R1.5, build #10 Fri Feb 6 15:19:25 EST 2009

 

any suggestions?

 

thank you

QuoteReplyEditDelete

 

 

2009-02-27 18:45:52     Re: PPI BF537 wont compile

Mike Frysinger (UNITED STATES)

Message: 70122   

 

something looks fishy as it builds fine for me for the BF537 target

 

make sure you have the macro defined:

$ grep bfin_clear_PPI_STATUS include/asm-blackfin/mach-bf537/*

include/asm-blackfin/mach-bf537/cdefBF534.h:#define bfin_clear_PPI_STATUS()              bfin_write_PPI_STATUS(0xFFFF)

QuoteReplyEditDelete

 

 

2009-02-27 19:19:51     Re: PPI BF537 wont compile

raghu mulagada (UNITED STATES)

Message: 70123   

 

hi Mike

 

I have followed your instruction ... but still have teh same problem

QuoteReplyEditDelete

 

 

2009-02-27 19:25:59     Re: PPI BF537 wont compile

Mike Frysinger (UNITED STATES)

Message: 70124   

 

that doesnt answer my question ... do you or do you not have that macro defined in your kernel headers

QuoteReplyEditDelete

 

 

2009-03-03 11:33:37     Re: PPI BF537 wont compile

raghu mulagada (UNITED STATES)

Message: 70293   

 

Hi Mike

 

Thank you for the prompt reply..

 

I do have the macro defined .... it still does not work ...

QuoteReplyEditDelete

 

 

2009-03-03 11:46:41     Re: PPI BF537 wont compile

Michael Hennerich (GERMANY)

Message: 70294   

 

Not work or not compile?

Can you post the error?

 

-Michael

QuoteReplyEditDelete

 

 

2009-03-03 11:54:14     Re: PPI BF537 wont compile

raghu mulagada (UNITED STATES)

Message: 70295   

 

hi micheal

 

It does not compile ... i ge the following error when i tried to make the uClinux distribution file:

 

drivers/built-in.o: In function `ppifcd_reg_reset':

(.text+0xcf52): undefined reference to `bfin_clear_PPI_STATUS'

drivers/built-in.o: In function `ppifcd_irq_error':

drivers/char/bfin_ppifcd.c:(.text+0xcfe4): undefined reference to `bfin_clear_PPI_STATUS'

 

 

do you have any idea on how to circumvent the problem

 

thanks

 

 

QuoteReplyEditDelete

 

 

2009-03-03 20:06:54     Re: PPI BF537 wont compile

Mike Frysinger (UNITED STATES)

Message: 70306   

 

go into the kernel dir and run:

 

$ touch -c drivers/char/bfin_ppifcd.c

$ make drivers/char/bfin_ppifcd.i

$ make drivers/char/bfin_ppifcd.o

 

post the exact output seen from those commands and post the .i file as an attachment

Attachments

    Outcomes