Changes

Jump to navigation Jump to search
Line 15: Line 15:  
==== Download the kernel headers for the local piOS ====
 
==== Download the kernel headers for the local piOS ====
 
<code>sudo apt install raspberrypi-kernel-headers</code>
 
<code>sudo apt install raspberrypi-kernel-headers</code>
  −
Note:
  −
  −
If your piOS version is too old, you may encounter this error during the following compilation:
  −
  −
<code>make[1]: *** /lib/modules/5.4.47-v7l+/build: No such file or directory. Stop.</code>
  −
  −
The reason is : the cmd above will simply install the latest kernel headers available on the mirror. Which indeed matches the latest available kernel on the mirror. But not necessarily the installed kernel on the system.
      
====Download drivers code from veye ====
 
====Download drivers code from veye ====
Line 45: Line 37:     
Done.
 
Done.
 +
 +
==== Common errors ====
 +
 +
===== Missing build directory =====
 +
<code>make[1]: *** /lib/modules/[version]/build: No such file or directory. Stop.</code>
 +
 +
The cmd <code>sudo apt install raspberrypi-kernel-headers</code> will simply install the latest kernel headers available on the mirror. Which indeed matches the latest available kernel on the mirror. But not necessarily the installed kernel on the system.
 +
 +
The Raspbian maintainers always remove the older kernel headers from the repository index files. Not sure why they do that.
 +
 +
Solutions:
 +
 +
1. Upgrade piOS, and build again.
 +
 +
<code>apt install raspberrypi-kernel raspberrypi-kernel-headers</code>
 +
 +
2. Install specific version kernel headers.
 +
 +
<br />
 
=== Cross-Compiling the Drivers ===
 
=== Cross-Compiling the Drivers ===
 
The following operations are done on ubuntu PC.
 
The following operations are done on ubuntu PC.

Navigation menu