Skip to content

Commit

Permalink
Merge pull request #51 from wirenboard/feature/wb7
Browse files Browse the repository at this point in the history
add udev rules for wb7.2
  • Loading branch information
evgeny-boger authored Dec 6, 2021
2 parents 789a695 + da798ec commit ba6633a
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions configs/usr/share/wb-configs/udev/99-wb-ethernet.rules.wb72
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
KERNELS == "1c0b000.ethernet", SUBSYSTEM == "net", NAME = "eth0"
KERNELS == "1c50000.ethernet", SUBSYSTEM == "net", NAME = "eth1"
7 changes: 7 additions & 0 deletions configs/usr/share/wb-configs/udev/99-wb-uart.rules.wb72
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
KERNEL=="ttyS0", SUBSYSTEM=="tty", SYMLINK+="ttyCONSOLE", GROUP="tty"
KERNEL=="ttyS2", SUBSYSTEM=="tty", SYMLINK+="ttyRS485-1", GROUP="dialout"
KERNEL=="ttyS7", SUBSYSTEM=="tty", SYMLINK+="ttyMOD1", GROUP="dialout"
KERNEL=="ttyS4", SUBSYSTEM=="tty", SYMLINK+="ttyRS485-2", GROUP="dialout"
KERNEL=="ttyS6", SUBSYSTEM=="tty", SYMLINK+="ttyMOD2", GROUP="dialout"
KERNEL=="ttyS5", SUBSYSTEM=="tty", SYMLINK+="ttyMOD3", GROUP="dialout"
KERNEL=="ttyS3", SUBSYSTEM=="tty", SYMLINK+="ttyMOD4", GROUP="dialout"
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
wb-configs (2.2.0) stable; urgency=medium

* WB7 support

-- Evgeny Boger <[email protected]> Tue, 23 Nov 2021 02:10:12 +0300

wb-configs (2.1.2) stable; urgency=medium

* Disable client side caching of web-interface's index.html
Expand Down
5 changes: 4 additions & 1 deletion debian/wb-configs.postinst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ install_rules() {
ucf --debconf-ok "$RULES_DIR/$1.rules.$2" "$RULES_DST_DIR/$1.rules"
}

if of_machine_match "contactless,imx6ul-wirenboard670"; then
if of_machine_match "wirenboard,wirenboard-720"; then
install_rules 99-wb-uart wb72
install_rules 99-wb-ethernet wb72
elif of_machine_match "contactless,imx6ul-wirenboard670"; then
install_rules 99-wb-uart wb67
install_rules 99-wb-ethernet wb6
elif of_machine_match "contactless,imx6ul-wirenboard60"; then
Expand Down

0 comments on commit ba6633a

Please sign in to comment.