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.

Kernel build options for RFSDK

Other Parts Discussed in Thread: RFSDK, TCI6630K2L

I am using a Keystone II TCI6330K2L EVM on my project and have had to customize the Linux kernel for my own purposes. I downloaded the kernel source code from git://git.ti.com/keystone-linux/linux.git. I now need to bring in the AFE7500 for which RFSDK must be installed. RFSDK in turn demands that certain drivers be loaded, such as the UIO, among others. I am able to get RFSDK working just fine with the kernel that came in the board's flash memory but am facing issues with the kernel I built from the git repository above. I tried applying the .dtb patch to my kernel but it didn't seem to help. Could you please tell me what the kernel build options need to be for RFSDK to work?

Thanks,
Regards,
Shiv. 

  • Hi Shiv,
    Let me forward this post to expert who is more familiar with RFSDK. They usually might not be monitoring these forums.
  • Shiv,

    1. Can you give details on the issues you are facing with RFSDK?  What are the symptoms or error conditions seen?

    2. What version of RFSDK are you using? (latest released version is 2.0.5)

    3. What GIT tag are you using for the Linux kernel?

    4. What GIT tag are you using for u-boot?

    5. RFSDK does not require any special Linux kernel build options.  The standard Keystone2 Linux kernel build options are used for the Linux kernel shipped on the K2L EVM.  There is an RFSDK u-boot patch and an RFSDK Linux device-tree/dtb patch which are shipped with the RFSDK release.  Both are required for proper operation.  Were both patches applied?

    Regards,
    John

  • John,
    1) I see errors when the RFSDK service launches. I paste the logs underneath:
    Traceback (most recent call last):
    File "/usr/bin/radio", line 108, in <module>
    command.onecmd(' '.join(sys.argv[1:]))
    File "/usr/lib/python2.7/cmd.py", line 221, in onecmd
    return func(arg)
    File "/usr/lib/python2.7/rfsdk/command.py", line 1023, in do_reset
    self.radio.radio_reset()
    File "/usr/lib/python2.7/rfsdk/radio.py", line 1077, in radio_reset
    self.dfe.dfe_reset()
    File "/usr/lib/python2.7/rfsdk/platform/TCI6630K2L.py", line 454, in dfe_reset
    res = self.rfsdkS.HwExceptionInit(req)
    File "/usr/lib/python2.7/rfsdk/service.py", line 289, in HwExceptionInit
    raise rfsdk.Error('rfsdkService.HwExceptionInit() API call failed with status %r (%d)' % (status, result,))
    rfsdk.Error: rfsdkService.HwExceptionInit() API call failed with status 'RFSDK_API_RESULT_ERROR' (1)

    2) The RFSDK version I'm using is 2.0.4.

    3)To build the kernel I followed the steps described here:
    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Exploring. The release tag I applied was K2_LINUX_03.10.72_15.08, picked up from the MCSDK Release notes.

    4)The UBoot tag I have is 2013.01-00001-g04dcae7, obtained after applying the U-boot patch provided in the RFSDK package. I replaced the .dtb file I had built from the sources with the .dtb file in the RFSDK package but I still saw the same error.

    Thanks,
    Regards,
    Shiv.
  • Shiv,

    Is it possible to try RFSDK 2.0.5 instead?  The RFSDK 2.0.4 board configuration files (i.e. /etc/radio/board/lamarr-marconi-evm) use UIO IDs that are specific to the older Linux/filesystem that comes with MCSDK 3.1.2.5.  There were new board configuration files added (i.e. /etc/radio/board/lamarr-marconi-evm-mcsdk3147) to RFSDK 2.0.5 that work with the UIO ID assignments in the newer Linux/filesystem that comes with MCSDK 3.1.4.7 (which is what it looks like you based your kernel on).  When you switch to RFSDK 2.0.5, please pay special attention to the updated installation instructions in the included RFSDK Installation Guide.

    Also, please double-check that you selected an initial RFSDK radio configuration (using the 'radio select <desired_config>' command) as described in the RFSDK Installation Guide.

    Regards,
    John

  • Shiv,

    If the issue was resolved, could you mark the thread as answered?  Otherwise, please reply if more support is required.

    Thanks,

    John

  • Dear John,
    Sorry for the delayed response. Thanks for helping us resolve our issue. We were able to get RFSDK working with the latest version i.e. 2.00.05 and have been using it effectively for our purposes.

    We're now trying to get RFSDK working with the RT flavor of the kernel, by applying the release tag "K2_RT_LINUX_03.10.72_15.08" but we get the same error as above despite updating ourselves to the latest RFSDK version. Applying the given .dtb patch does not seem to help either.

    Could you help us with this one?

    Thanks,
    Regards,
    Shiv
  • The RT version of Linux is not tested or supported by TI for usage with RFSDK.

    Regards,
    John