Line 6:
Line 6:
=== Building the Drivers Locally ===
=== Building the Drivers Locally ===
+
The following operations are performed on the Raspberry Pi.
+
The following is an example of piOS 5.15.32.
+
+
==== Prepare environment ====
+
<code>sudo apt install git bc bison flex libssl-dev make</code>
+
+
==== Download the kernel headers for the local piOS ====
+
<code>sudo apt install raspberrypi-kernel-headers</code>
+
+
====Download drivers code from veye ====
+
<code>git clone <nowiki>https://github.com/veyeimaging/raspberrypi_v4l2.git</nowiki></code>
+
+
==== Confirm the version of piOS on your own Raspberry Pi ====
+
<code>$ uname -a</code>
+
+
<code>Linux raspberrypi 5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux</code>
+
+
==== Compile drivers ====
+
<code>cd ~/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-5.15_all</code>
+
+
<code>make</code>
+
+
Done.
+
+
==== Compile dts ====
+
<code>cd ~/raspberrypi_v4l2/driver_source/dts/rpi-5.15.y</code>
+
+
<code>./build_dtbo.sh</code>
+
+
Done.
=== Cross-Compiling the Drivers ===
=== Cross-Compiling the Drivers ===
The following operations are done on ubuntu PC.
The following operations are done on ubuntu PC.
Line 49:
Line 79:
https://github.com/raspberrypi/linux/tags
https://github.com/raspberrypi/linux/tags
====Patch our code to kernel====
====Patch our code to kernel====
+
<code>git clone <nowiki>https://github.com/veyeimaging/raspberrypi_v4l2.git</nowiki></code>
*Driver source code
*Driver source code