Changes between Version 5 and Version 6 of Resources/Notes/Krypton Usage


Ignore:
Timestamp:
Mar 22, 2020, 11:24:22 AM (5 years ago)
Author:
mpk2138
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Resources/Notes/Krypton Usage

    v5 v6  
    5555
    5656=== Trouble shooting ===
     57
     58==== FPGA version mismatch ====
    5759If the above commands return with an error message stating an FPGA version mismatch, then we'll need to update the FPGA that is compatible with the current UHD version. The typical error message would be similar to the following:
    5860{{{
     
    7779root@sdr2-lg1:~# /usr/local/bin/niusrprio_pcie start
    7880}}}
     81
     82==== NI Driver does not build ====
     83
     84While trying to build the NI driver following the instructions above, you may encounter an error regarding the ''do_munmap'' function not having enough input arguments. To fix this issue, issue the following command to open the problematic C code file in nano:
     85
     86{{{
     87nano /var/lib/nikal/5.0.0-29-generic/nikal/nikal.c
     88}}}
     89
     90Use the nano command CTRL-W to search for "do_munmap" and locate the following function:
     91
     92{{{
     93static inline int nNIKAL240_do_munmap(struct mm_struct *mm, unsigned long addr, size_t len)
     94{
     95#if defined(nNIKAL1_kDoMunmapHasUf)
     96   return do_munmap(mm, addr, len, NULL);
     97#elif defined(nNIKAL100_kDoMunmapHasAcct)
     98   return do_munmap(mm, addr, len, 1);
     99#else
     100   return do_munmap(mm, addr, len);
     101#endif
     102}
     103}}}
     104
     105Note that the third and final call to ''do_munmap'' is missing the fourth parameter. Add NULL as the fourth parameter so that the line reads as the following:
     106
     107{{{
     108   return do_munmap(mm, addr, len, NULL);
     109}}}
     110
     111Save the file by typing CTRL-O, Enter and close by typing CTRL-X. Try building the driver again - it should proceed without issue.