This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build Instructions for neard (Linux NFC) for AM335x + TRF7970A

Other Parts Discussed in Thread: TRF7970A

Hi there,

Im attempting to follow the slaa512 document exactly to get the BeagleBone + RFCape demo running. I'm using Ubuntu 12.04 and v07.00 of the SItara SDK. 

Once I get to Section 4, step for of the document I see:

[*]Networking Support ---> <*>NFC subsystem support --->

Not:

[*]Networking Support ---> <*>NFC subsystem support ---> <*> NFC Digital Protocol stack support Near Field Communication (NFC) devices ---> Texas Instruments TRF7970a NFC driver 

as the document suggest. 

Any ideas on a solution and why the option might not be showing up?

Thanks.

  • Hi Arash,

    Our Linux expert is out of office right now for New Years, but I will escalate your question to him as soon as he returns and also see if anyone else may have any suggestions as to why you are observing that issue.

  • First  press y when at menu option

    <*>NFC subsystem support --->

    press y when at menu option

    <*> NFC Digital Protocol stack support

    after this if you enter into the menu option

    Near Field Communication (NFC) devices --->

    then you should be able to see  Texas Instruments TRF7970a NFC driver as one of the menu items.

  • Hi Manoj,

    Thanks for replying. I just tried pressing Y at the "--- NFC subsystem support" menu option. It doesn't allow me to traverse further into the menu tree the instructions say I should expect. It almost seems like the driver hasn't been added to the kernel.

    Have any ideas to troubleshoot that?

  • Hi..

    Which kernel version are you using?

    If the driver is not there you need to add the driver. U can find the driver in kernel 3.18

    Thanks
    Deep ter
  • Thanks Deep

    I'm following the instructions here: www.ti.com/.../sloa210.pdf

    I'm not entirely certain on this, but it seems like the kernel version is 3.12.10 and they have you apply patches to add the driver. I'm wondering what the best method is to verify this process has been carried out correctly.
  • Hi

    No issues..If the patches are not available you can do one thing.. U can refer to the AM335x kernel whose link u can find in sloa210.pdf

    After that u can step by step manually add the files. If you want I can send you the files on your mail id.



  • Thanks,

    I'm not quite sure I follow though. I have all the files but just don't get the same results as the guide indicates. I'm just trying to figure out how to troubleshoot the differences.




  • You need to have the following. Also u need to add the files in Kconfig and Makefile. May be that can be the issue

    Inside <kernel_top_directory>/ drivers/nfc/trf7970a.c 

    Also make sure that the driver is added in Makefile and  Kconfig as shown:

    in its Kconfig:

    config NFC_TRF7970
            tristate "TI NFC_TRF7970 driver"
            depends on SPI && NFC_DIGITAL
            default y
            help
              This driver provides support for TI chip

    in its Makefile:

    obj-$(CONFIG_NFC_TRF7970)       += trf7970a.o


    Inside <kernel_top_directory>/net/nfc you need to add the following files:

     digital_core.c
    digital_technology.c
    digital_dep.c
    digital.h

    Inside its Kconfig u need to add the following:

    config NFC_DIGITAL
             depends on NFC
             select CRC_CCITT
             select CRC_ITU_T
             tristate "NFC Digital Protocol stack support"
             default y
             help
               Say Y if you want to build NFC digital protocol stack support.
               This is needed by NFC chipsets whose firmware only implement
               the NFC analog layer.

               To compile this support as a module, choose M here: the module will
               be called nfc_digital

    Inside its Makefile u need to add as:

    obj-$(CONFIG_NFC_DIGITAL) += nfc_digital.o

    nfc_digital-objs := digital_core.o digital_technology.o digital_dep.o

    Thanks
    Deep








  • This helped me troubleshoot. Thanks!