mirror of
https://git.yoctoproject.org/meta-raspberrypi
synced 2026-04-30 02:38:12 +00:00
Add Pican2 support
In order to make Pican 2 work, we : - add mcp2515.dto to the overlay list - add a variable to enable it in local.conf - create a udev rule to mount interface http://skpang.co.uk/catalog/pican2-canbus-board-for-raspberry-pi-23-p-1475.html Signed-off-by: Fabien Lahoudere <fabien.lahoudere@collabora.com>
This commit is contained in:
committed by
Andrei Gherzan
parent
1803681e84
commit
12e61faf30
@@ -2,7 +2,10 @@ DESCRIPTION = "udev rules for Raspberry Pi Boards"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
|
||||
SRC_URI = " file://99-com.rules"
|
||||
SRC_URI = " \
|
||||
file://99-com.rules \
|
||||
file://can.rules \
|
||||
"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
@@ -11,4 +14,5 @@ INHIBIT_DEFAULT_DEPS = "1"
|
||||
do_install () {
|
||||
install -d ${D}${sysconfdir}/udev/rules.d
|
||||
install -m 0644 ${WORKDIR}/99-com.rules ${D}${sysconfdir}/udev/rules.d/
|
||||
install -m 0644 ${WORKDIR}/can.rules ${D}${sysconfdir}/udev/rules.d/
|
||||
}
|
||||
|
||||
1
recipes-core/udev/udev-rules-rpi/can.rules
Normal file
1
recipes-core/udev/udev-rules-rpi/can.rules
Normal file
@@ -0,0 +1 @@
|
||||
SUBSYSTEM=="net", DEVPATH=="/devices/platform/soc/3f204000.spi/spi_master/spi0/spi0.0/net/can0", RUN+="/sbin/ip link set can0 up type can bitrate 500000"
|
||||
Reference in New Issue
Block a user