Compatability of VU7 and Rapsberry Pi

Maniac
Posts: 9
Joined: Mon May 11, 2015 10:50 pm
languages_spoken: German, littel bit english
ODROIDs: XU3/XU4
Has thanked: 0
Been thanked: 0
Contact:

Compatability of VU7 and Rapsberry Pi

Unread post by Maniac » Mon Apr 15, 2019 7:27 am

base viewtopic.php?f=101&t=26043

Raspberrypi 3b+
and
VU7 800x480 Touch not work

fresh 2019-04-08-raspbian-stretch.img
only update && upgrade
enable ssh
enable wifi

new kernel build 4.14 on VM-Ware ubuntu-18.04-desktop-amd64.iso

Code: Select all

sudo apt-get install git bc bison flex libssl-dev libncurses5-dev sshfs mc -y
git clone https://github.com/raspberrypi/tools ~/tools
git clone --branch rpi-4.14.y https://github.com/raspberrypi/linux ~/linux
echo PATH=\$PATH:~/tools/arm-bcm2708/gcc-linaro-arm-linux-gnueabihf-raspbian-x64/bin >> ~/.bashrc
source ~/.bashrc
cd ~/linux
KERNEL=kernel7
cd drivers/input/touchscreen
wget https://raw.githubusercontent.com/hardkernel/linux/odroidxu4-4.14.y/drivers/input/touchscreen/dwav-usb-mt.c
cd ~/linux
drivers/input/touchscreen/Kconfig
add

Code: Select all

config TOUCHSCREEN_DWAV_USB_MT
	tristate "D-WAV Scientific USB MultiTouch"
	depends on USB_ARCH_HAS_HCD
	select USB
	help
	  Say Y here if you have a D-WAV Scientific USB(HID) based MultiTouch
	  controller.

	  If unsure, say N.

	  To compile this driver as a module, choose M here: the
          module will be called dwav-usb-mt.
https://github.com/hardkernel/linux/com ... 7f53f3017e
search und add
static const struct hid_device_id hid_ignore_list[]

Code: Select all

	{ HID_USB_DEVICE(USB_VENDOR_ID_ODROID, USB_DEVICE_ID_VU5) },
	{ HID_USB_DEVICE(USB_VENDOR_ID_ODROID, USB_DEVICE_ID_VU7PLUS) },
drivers/hid/hid-ids.h
add befor #endif

Code: Select all

#define USB_VENDOR_ID_ODROID	0x16b4
#define USB_DEVICE_ID_VU5	0x0704
#define USB_DEVICE_ID_VU7PLUS	0x0705
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
Device Drivers --->
+ Input device support --->
[*] Touchscreens --->
testing
<M> D-WAV Scientific USB MultiTouch
and
<*> D-WAV Scientific USB MultiTouch

make -j12 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs

build no errors

to rpi

Code: Select all

mkdir ~/ext4
mkdir ~/fat32

sshfs root@ip:/ ~/ext4/
sshfs root@ip:/boot/ ~/fat32

make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=~/ext4 modules_install
cp arch/arm/boot/zImage ~/fat32/$KERNEL.img
cp arch/arm/boot/dts/*.dtb ~/fat32/
cp arch/arm/boot/dts/overlays/*.dtb* ~/fat32/overlays/
cp arch/arm/boot/dts/overlays/README ~/fat32/overlays/
rpi reboot

Code: Select all

sudo modprobe dwav-usb-mt
no error
touch not work

sudo xxd -c 25 /dev/hidraw0

Code: Select all

00000000: aa01 0157 0167 bb01 01e0 0320 01e0 0320 01e0 0320 01e0 0320 cc  ...W.g..... ... ... ... .
00000019: aa01 0157 0167 bb01 01e0 0320 01e0 0320 01e0 0320 01e0 0320 cc  ...W.g..... ... ... ... .
00000032: aa01 0157 0167 bb01 01e0 0320 01e0 0320 01e0 0320 01e0 0320 cc  ...W.g..... ... ... ... .
0000004b: aa01 0158 016d bb01 0000 0000 0000 0000 0000 0000 0000 0000 cc  ...X.m...................
00000064: aa01 0159 017b bb01 0000 0000 0000 0000 0000 0000 0000 0000 cc  ...Y.{...................
0000007d: aa01 0158 018c bb01 0000 0000 0000 0000 0000 0000 0000 0000 cc  ...X.....................
00000096: aa01 0158 019d bb01 0000 0000 0000 0000 0000 0000 0000 0000 cc  ...X.....................
000000af: aa01 0159 01bf bb01 01e0 0320 01e0 0320 01e0 0320 01e0 0320 cc  ...Y....... ... ... ... .
000000c8: aa01 0159 01ca bb01 01e0 0320 01e0 0320 01e0 0320 01e0 0320 cc  ...Y....... ... ... ... .
000000e1: aa00 0000 0000 bb00 0000 0000 0000 0000 0000 0000 0000 0000 00  .........................
000000fa: aa00 0000 0000 bb00 0000 0000 0000 0000 0000 0000 0000 0000 00  .........................
00000113: aa00 0000 0000 bb00 0000 0000 0000 0000 0000 0000 0000 0000 00  .........................

Post Reply

Return to “ODROID-VU”

Who is online

Users browsing this forum: No registered users and 1 guest