forked from commaai/openpilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request commaai#29 from palmerit/dkms
Add DKMS support
- Loading branch information
Showing
19 changed files
with
221 additions
and
64 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 |
---|---|---|
@@ -1 +1 @@ | ||
from .panda import Panda | ||
from .panda import Panda, PandaWifiStreaming |
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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,6 +1,18 @@ | ||
VERSION=0.0.1 | ||
obj-m+=panda.o | ||
|
||
all: | ||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) modules | ||
clean: | ||
make -C /lib/modules/$(shell uname -r)/build/ M=$(PWD) clean | ||
link: | ||
sudo dkms add `pwd` | ||
|
||
build: | ||
sudo dkms build panda/$(VERSION) | ||
|
||
install: | ||
sudo dkms install panda/$(VERSION) | ||
|
||
all: build install | ||
|
||
uninstall: | ||
sudo dkms uninstall panda/$(VERSION) | ||
sudo dkms remove panda/$(VERSION) --all | ||
|
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,16 @@ | ||
Installs the panda linux kernel driver using DKMS. | ||
|
||
This will allow the panda to work with tools such as `can-utils` | ||
|
||
prerequisites: | ||
- apt-get install dkms gcc linux-headers-$(uname -r) make sudo | ||
|
||
installation: | ||
- make link (only needed the first time. It will report an error on subsequent attempts to link) | ||
- make all | ||
- make install | ||
|
||
uninstall: | ||
- make uninstall | ||
|
||
|
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,6 @@ | ||
PACKAGE_NAME="panda" | ||
PACKAGE_VERSION="0.0.1" | ||
BUILT_MODULE_NAME[0]="panda" | ||
DEST_MODULE_LOCATION[0]="/kernel/drivers/net/panda/" | ||
AUTOINSTALL="yes" | ||
|
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
nosetests -x -s tests/automated/*.py | ||
nosetests -x -s tests/automated/$1*.py | ||
|
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,19 @@ | ||
import os | ||
|
||
BASEDIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "../") | ||
|
||
def build(target, mkfile="Makefile"): | ||
assert(os.system('cd %s && make -f %s clean && make -f %s %s >/dev/null' % (os.path.join(BASEDIR, "../board"), mkfile, mkfile, target)) == 0) | ||
|
||
def test_build_legacy(): | ||
build("obj/comma.bin", "Makefile.legacy") | ||
|
||
def test_build_bootstub_legacy(): | ||
build("obj/bootstub.comma.bin", "Makefile.legacy") | ||
|
||
def test_build_panda(): | ||
build("obj/panda.bin") | ||
|
||
def test_build_bootstub_panda(): | ||
build("obj/bootstub.panda.bin") | ||
|
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
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
Oops, something went wrong.