Re: Bosto 14WA graphics tablet driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I've read some of the guides and attempted to change the style of the
driver's code to "kernel" style.

Now it seems I have to create a patch - but this is a new file, so how
do I send that? Just paste it in here? It would need to go in
drivers/input/tablet.

Also:

1. I don't think I have to compile the whole kernel to check that the
driver compiles or doesn't immediately "oops" - as specified in
http://www.kroah.com/log/linux/maintainer.html

As far as I know this is an external loadable module that doesn't go
in the kernel core.

2. I usually run a "make install" to install this. It takes care of
some housekeeping such as installing udev rules. It also unbinds
usbhid which wrongly grabs the tablet. This is probably supposed to be
done in a better way but I don't know how.

The installation procedure is below, perhaps someone can advise me on
how to improve this?

file: scripts/insert_bosto_14wa
#!/bin/sh
echo -n "$1" > /sys/bus/usb/drivers/usbhid/unbind
echo -n "$2 $3" > /sys/bus/usb/drivers/bosto_14wa/new_id

file: scripts/bosto_14wa.rules
# Rules for hotplugging Bosto 14wa
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0b57",
ATTRS{idProduct}=="9018", RUN="/usr/local/bin/insert_bosto_14wa %k
%s{idVendor} %s{idProduct}"


"make install" does:
cp ./bosto_14wa.ko /lib/modules/$(shell uname -r)
echo bosto_14wa >> /etc/modules
depmod
cp ./scripts/insert_bosto_14wa /usr/local/bin
cp ./scripts/bosto_14wa.rules /etc/udev/rules.d
udevadm control --reload
modprobe bosto_14wa


Thanks in advance for any help!
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux