| | 81 | |
| | 82 | ==== NI Driver does not build ==== |
| | 83 | |
| | 84 | While 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 | {{{ |
| | 87 | nano /var/lib/nikal/5.0.0-29-generic/nikal/nikal.c |
| | 88 | }}} |
| | 89 | |
| | 90 | Use the nano command CTRL-W to search for "do_munmap" and locate the following function: |
| | 91 | |
| | 92 | {{{ |
| | 93 | static 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 | |
| | 105 | Note 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 | |
| | 111 | Save the file by typing CTRL-O, Enter and close by typing CTRL-X. Try building the driver again - it should proceed without issue. |