2011-10-18 01:19:06     ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

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

2011-10-18 01:19:06     ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

Blair Fredericks (CANADA)

Message: 103914   

 

Hi,

 

I want to used MCAPI 2.0 or ICC, however this apears to only be available in the more recent not yet released Kernel 3.0.

 

The device driver for AD73311 does appear to working, or the Blackfin Video Capture driver in this version, I need them working.

 

I have attempted to patch version 2010R1-RC with the MCAPI 2.0 library and the ICC parts.

 

I have it working with this one exception.

 

sm_debug:send message cpu 1 sent 1

 

COREB: sm_handle_control_message type 2000000

 

COREB: sm_handle_control_message 2000000 2000000

 

COREB: execption 26 addr feb003fa

 

COREB: execption 26 addr feb003fa

 

COREB: execption 26 addr feb003fa

 

COREB: execption 26 addr feb003fa

 

COREB: execption 26 addr feb003fa

 

COREB: execption 26 addr feb003fa

 

What changes am I missing to succesfully integrate ICC or MCAPI 2.O into version 2010R1-RC5

 

Blair

QuoteReplyEditDelete

 

 

2011-10-18 01:49:22     Re: ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

steven miao (CHINA)

Message: 103915   

 

Hi Blaire,

 

If you want to port the icc driver and mcapi to linux-2.6.34 kernel, you can copy the lastest  icc and mcapi code to 2010R1-RC5.

 

for icc kernel driver:

 

uclinux-dist/linux-2.6.x/drivers/staging/icc

 

uclinux-dist/linux-2.6.x/arch/blackfin/mach-bf561/icc.c

 

uclinux-dist/linux-2.6.x/arch/blackfin/mach-bf561/include/mach/icc.h

 

for icc_utils:

 

uclinux-dist/user/blkfin-apps/icc_utils

 

and you should modify the uclinux-dist/user/blkfin-apps/Makefile to add icc_utils

 

for libmcapi:

 

uclinux-dist/lib/libmcapi

 

and you should modify the uclinux-dist/lib/Makefile.local to add libmcapi

 

 

 

-steven

QuoteReplyEditDelete

 

 

2011-10-18 02:02:05     Re: ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

Sonic Zhang (CHINA)

Message: 103916   

 

Your best choice is to wait for the upcoming 2011R1 uClinux-dist, uboot and toolchain release for Blackfin. check out the SVN trunk before that.

 

If you want to back port ICC to 2010R1, you are on your own. We don't support new features in old release.

 

Thanks

QuoteReplyEditDelete

 

 

2011-10-18 13:18:11     Re: ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

Blair Fredericks (CANADA)

Message: 103962   

 

Hey,

 

Thanks Sonic for the advice, I can totaly understand the reasoning there, not supporting an old release.

 

That leads naturaly to this question, is there an estimated date on the 2011R1 uClinux-dist, uboot and toolchain release?

 

Blair

QuoteReplyEditDelete

 

 

2011-10-18 23:33:36     Re: ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

Sonic Zhang (CHINA)

Message: 103966   

 

It is planned for Dec.

QuoteReplyEditDelete

 

 

2011-10-19 02:06:52     Re: ICC or MCAPI2.0 with Linux release 2.6.34.7-ADI-2010R1

Blair Fredericks (CANADA)

Message: 103972   

 

Thanks Steve,

 

I managed to get it all working with 2010R1.

 

Just in case this is helpfull to someone else.

 

In /usr/bfin-apps/icc_utils/icc_core/coreboot.c I changed the following, they are defined diffferently.

 

From:

 

        bfin_write_SICB_IAR0(bfin_read_SIC_IAR0());

        bfin_write_SICB_IAR1(bfin_read_SIC_IAR1());

        bfin_write_SICB_IAR2(bfin_read_SIC_IAR2());

        bfin_write_SICB_IAR3(bfin_read_SIC_IAR3());

        bfin_write_SICB_IAR4(bfin_read_SIC_IAR4());

        bfin_write_SICB_IAR5(bfin_read_SIC_IAR5());

        bfin_write_SICB_IAR6(bfin_read_SIC_IAR6());

        bfin_write_SICB_IAR7(bfin_read_SIC_IAR7());

 

To:

 

        bfin_write_SICB_IAR0(bfin_read_SICA_IAR0());

        bfin_write_SICB_IAR1(bfin_read_SICA_IAR1());

        bfin_write_SICB_IAR2(bfin_read_SICA_IAR2());

        bfin_write_SICB_IAR3(bfin_read_SICA_IAR3());

        bfin_write_SICB_IAR4(bfin_read_SICA_IAR4());

        bfin_write_SICB_IAR5(bfin_read_SICA_IAR5());

        bfin_write_SICB_IAR6(bfin_read_SICA_IAR6());

        bfin_write_SICB_IAR7(bfin_read_SICA_IAR7());

 

I also needed to update arch/blackfin/mach-bf561/coreb.c

 

Thanks Sonics, 2 months is a long time, I don't think the person contracting will be willing to wait that long.

 

They are spinning a board for the production model for around a 100K of the BF561.

 

I will have to make this all work with 2010R1.

 

Thanks again,

 

-Blair

Attachments

    Outcomes