-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1d2bc1f
Showing
3 changed files
with
1,036 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
obj-m := toucan.o | ||
|
||
kernel_ver := $(shell uname -r) | ||
|
||
all: | ||
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) modules | ||
|
||
install: | ||
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) modules_install | ||
|
||
clean: | ||
make -C /lib/modules/$(kernel_ver)/build M=$(shell pwd) clean | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
CAN driver for Toucan adapter | ||
==== | ||
|
||
Building kernel module | ||
---- | ||
|
||
Make sure you have kernel source and C toolchain packages installed. | ||
To compile run: | ||
|
||
make | ||
|
||
To install module to system run: | ||
|
||
sudo make install | ||
|
||
|
||
Set up interface | ||
---- | ||
|
||
insmod toucan.ko | ||
ip link set can0 up type can bitrate 125000 | ||
|
||
|
||
Shut down interface | ||
---- | ||
|
||
ip link set can0 down | ||
rmmod toucan | ||
|
||
|
||
|
Oops, something went wrong.