Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Build drivers from source for rpi/zh
(view source)
Revision as of 17:26, 24 April 2022
955 bytes added
,
17:26, 24 April 2022
→树莓派本地编译
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
Admin
Bureaucrats
,
Administrators
1,602
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Links
VEYE IMAGING Website
VEYE IMAGING WIKI
VEYE IMAGING Github
VEYE IMAGING Forum
Offical Store
TAOBAO(淘宝网店)
AliExpress Shop
Amazon US. Shop
Amazon Canda Shop
WIKI Main Page
Main Page
Support
Support
Tools
Special pages
Printable version