Changes

Jump to navigation Jump to search
Line 6: Line 6:     
=== 树莓派本地编译 ===
 
=== 树莓派本地编译 ===
 +
以下操作均在树莓派上进行。
 +
 +
以下以piOS 5.15.32为例:
 +
 +
==== 编译环境准备 ====
 +
<code>sudo apt install git bc bison flex libssl-dev make</code>
 +
 +
==== 下载机piOS的内核头文件 ====
 +
<code>sudo apt install raspberrypi-kernel-headers</code>
 +
 +
==== 下载veye驱动代码 ====
 +
<code>git clone <nowiki>https://github.com/veyeimaging/raspberrypi_v4l2.git</nowiki></code>
 +
 +
====确认自己的树莓派上的piOS版本:====
 +
 +
<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>
 +
 +
==== 编译驱动 ====
 +
进入对应目录并编译
 +
 +
<code>cd ~/raspberrypi_v4l2/driver_source/cam_drv_src/rpi-5.15_all</code>
 +
 +
<code>make</code>
 +
 +
完成。
 +
 +
==== 编译dts ====
 +
<code>cd ~/raspberrypi_v4l2/driver_source/dts/rpi-5.15.y</code>
 +
 +
<code>./build_dtbo.sh</code>
 +
 +
完成。
    
=== PC机上交叉编译 ===
 
=== PC机上交叉编译 ===
Line 50: Line 84:  
https://github.com/raspberrypi/linux/tags
 
https://github.com/raspberrypi/linux/tags
 
====patch我们的驱动代码====
 
====patch我们的驱动代码====
 +
<code>git clone <nowiki>https://github.com/veyeimaging/raspberrypi_v4l2.git</nowiki></code>
    
*Driver source code
 
*Driver source code

Navigation menu