8,367
edits
Changes
→CAN's test method
<ol style="list-style-type: lower-alpha;">
<li><p>First add the following configuration to > the'''/boot/extlinux/extlinux.conf'''</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[orangepi@orangepi ~]$ '''sudo vim /boot/extlinux/extlinux.conf'''</p>
<p>LABEL Orange Pi</p>
<p>LINUX /Image</p>
<p>FDT /dtbs/rockchip/rk3588-orangepi-5-plus.dtb</p>
<p>'''<span style="color:#FF0000">FDTOVERLAYS /dtbs/rockchip/overlay/rk3588-can0-m0.dtbo</span>'''</p>|}<p>The red font demonstrates the configuration of the '''can0-m0'''. The other configurations are shown in the table below, and the corresponding dtbo configuration can be added to '''<span style="color:#FF0000">FDTOVERLAYS</span>'''</p></li></ol></li></ol>
{| class="wikitable" style="width:800px;"
|-
| style="text-align: left;"| '''CAN bus'''
| style="text-align: left;"| '''/dtbs/rockchip/overlay/rk3588-can1-m0.dtbo'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li>Then '''<span style="color:#FF0000">restart the OPI OS Arch system</span>'''</li></ol></li></ol>
<!-- -->
<ol start="3" style="list-style-type: decimal;">
<li><p>After entering the Linux system, using the '''sudo ifconfig -a''' command If you can see the CAN device node, it means that the CAN has been opened correctly</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>[orangepi@orangepi ~]$ '''sudo pacman -Syy net-tools'''</p>
<p>[orangepi@orangepi ~]$ '''sudo ifconfig -a'''</p>
<p>can0: flags=128<NOARP> mtu 16</p>
::<p>unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)</p>::<p>RX packets 0 bytes 0 (0.0 B)</p>::<p>RX errors 0 dropped 0 overruns 0 frame 0</p>::<p>TX packets 0 bytes 0 (0.0 B)</p>::<p>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</p>::<p>device interrupt 94</p>
<p>can1: flags=128<NOARP> mtu 16</p>
::<p>unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 10 (UNSPEC)</p>::<p>RX packets 0 bytes 0 (0.0 B)</p>::<p>RX errors 0 dropped 0 overruns 0 frame 0</p>::<p>TX packets 0 bytes 0 (0.0 B)</p>::<p>TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0</p>::<p>device interrupt 95</p>|}</li><li><p>The pins corresponding to the Can0 and Can1 are</p></li></ol>
{| class="wikitable" style="width:800px;"
|-
|
| style="text-align: left;"| '''Corresponding to No. 16 pin in 40pin'''
|}
</ol>
<ol start="5" style="list-style-type: decimal;">
<li>Use Canalyst-II analyzer to test CAN receiving messages, please refer to the content of the one-section of [[Orange Pi 5 Plus#Use the CANalyst-II analyzer to test sending and receiving messages|'''the Canalyst-II analyzer to test receive and send message''']]</li></ol>
<span id="linux-sdkorangepi-build-instructions"></span>