NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to compile uinput module on cRIO 9030

Use the branch that corresponds to the release that you're using, and follow the instructions in the github branch (e.g. for 2015 release: https://github.com/ni/linux/blob/nilrt_pub/15.0/3.14/README)

0 Kudos
Message 11 of 73
(1,600 Views)

In which path I have to run "make menuconfig"? I tryed in /linux-nilrt_pub-15.0-3.14/ but the error on "ncurses-dev" module occurs even if I have installed the "libncurses5" pkg.

0 Kudos
Message 12 of 73
(1,600 Views)

solved for menuconfig.. I have used:

opkg install ncurses-dev

I'll try to activate the HIDRAW and testing the touchscreen

0 Kudos
Message 13 of 73
(1,600 Views)

Hello,

I have same problem.

I can move the 'mouse pointer' but not click.

Did you solve it??

Regards,

0 Kudos
Message 14 of 73
(1,600 Views)

m-power, Seyong,

It would be beneficial to know what displays you guys are using

0 Kudos
Message 15 of 73
(1,600 Views)

I'm using touch monitor made by INDUSCOM in Korea.

I think that is same with m-power's problem exactly.

==============

(1) xinput list

bash-4.2# xinput --list

� Virtual core pointer                        id=2    [master pointer  (3)]

�   ��� Virtual core XTEST pointer                  id=4    [slave  pointer  (2)]

�   ��� Logitech USB Optical Mouse                  id=14    [slave  pointer  (2)]

�   ��� eGalax Inc. USB TouchController Pen         id=10    [slave  pointer  (2)]

�   ��� eGalax Inc. USB TouchController             id=11    [slave  pointer  (2)]

� Virtual core keyboard                       id=3    [master keyboard (2)]

    ��� Virtual core XTEST keyboard                 id=5    [slave  keyboard (3)]

    ��� Power Button                                id=6    [slave  keyboard (3)]

    ��� Video Bus                                   id=7    [slave  keyboard (3)]

    ��� Power Button                                id=8    [slave  keyboard (3)]

    ��� Sleep Button                                id=9    [slave  keyboard (3)]

    ��� Logitech USB Keyboard                       id=12    [slave  keyboard (3)]

    ��� Logitech USB Keyboard                       id=13    [slave  keyboard (3)]

(2) optical mouse test

bash-4.2# xinput test 14

motion a[0]=1017 a[1]=1002

motion a[0]=1019

motion a[0]=1021 a[1]=1000

motion a[0]=1022

motion a[0]=1023 a[1]=999

motion a[0]=1024

motion a[0]=1025

motion a[0]=1026 a[1]=998

motion a[0]=1029

motion a[0]=1030

motion a[0]=1029

motion a[0]=1027 a[1]=999

motion a[0]=1025 a[1]=1001

motion a[0]=1023 a[1]=1002

motion a[0]=1020

^Z

[2]+  Stopped                 xinput test 14

(3) eGalax Inc. USB TouchController   test

bash-4.2# xinput test 11

^Z                                                                 //nothing !!

[3]+  Stopped                 xinput test 11

bash-4.2#

(4) bash-4.2# cat /proc/bus/input/devices

I: Bus=0003 Vendor=0eef Product=0001 Version=0210

N: Name="eGalax Inc. USB TouchController Pen"

P: Phys=usb-0000:00:14.0-3/input0

S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input10

U: Uniq=

H: Handlers=mouse1 event7

B: PROP=0

B: EV=1b

B: KEY=c01 0 0 0 0 0

B: ABS=3

B: MSC=10

I: Bus=0003 Vendor=0eef Product=0001 Version=0210

N: Name="eGalax Inc. USB TouchController"

P: Phys=usb-0000:00:14.0-3/input0

S: Sysfs=/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.0/input/input11

U: Uniq=

H: Handlers=mouse2 event8

B: PROP=2

B: EV=b

B: KEY=400 0 0 0 0 0

B: ABS=a60800000000003

(5) evtest  ( refer to : https://decibel.ni.com/content/message/115075_

bash-4.2# evtest  

No device specified, trying to scan all of /dev/input/event*

Available devices:

/dev/input/event0:nilrt:user1:uservisible=1:states=(0,1)
/dev/input/event1:Logitech USB Keyboard
/dev/input/event2:Logitech USB Keyboard
/dev/input/event3:Logitech USB Optical Mouse
/dev/input/event4:Power Button
/dev/input/event5:Sleep Button
/dev/input/event6:Power Button
/dev/input/event7:eGalax Inc. USB TouchController Pen
/dev/input/event8:eGalax Inc. USB TouchController
/dev/input/event9:Video Bus

Select the device event number [0-9]: 8

Input driver version is 1.0.1

Input device ID: bus 0x3 vendor 0xeef product 0x1 version 0x210

Input device name: "eGalax Inc. USB TouchController"

Supported events:

  Event type 0 (EV_SYN)

  Event type 1 (EV_KEY)

Event code 330 (BTN_TOUCH)

  Event type 3 (EV_ABS)

Event code 0 (ABS_X)
  Value   1838
  Min    0
  Max 4095
Event code 1 (ABS_Y)
  Value   1990
  Min    0
  Max 4095
Event code 47 (ABS_MT_SLOT)
  Value  0
  Min    0
  Max    7
Event code 53 (ABS_MT_POSITION_X)
  Value  0
  Min    0
  Max 4095
Event code 54 (ABS_MT_POSITION_Y)
  Value  0
  Min    0
  Max 4095
Event code 57 (ABS_MT_TRACKING_ID)
  Value  0
  Min    0
  Max65535
Event code 59 (ABS_MT_DISTANCE)
  Value  0
  Min    0
  Max    1

Properties:

  Property type 1 (INPUT_PROP_DIRECT)

Testing ... (interrupt to exit)

Event: time 1446790600.874460, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3220

Event: time 1446790600.874460, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2692

Event: time 1446790600.874460, type 3 (EV_ABS), code 59 (ABS_MT_DISTANCE), value 0

Event: time 1446790600.874460, type 3 (EV_ABS), code 0 (ABS_X), value 3220

Event: time 1446790600.874460, type 3 (EV_ABS), code 1 (ABS_Y), value 2692

Event: time 1446790600.874460, -------------- SYN_REPORT ------------

Event: time 1446790600.878456, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3218

Event: time 1446790600.878456, type 3 (EV_ABS), code 0 (ABS_X), value 3218

Event: time 1446790600.878456, -------------- SYN_REPORT ------------

Event: time 1446790600.890463, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3216

Event: time 1446790600.890463, type 3 (EV_ABS), code 0 (ABS_X), value 3216

Event: time 1446790600.890463, -------------- SYN_REPORT ------------

Event: time 1446790600.900463, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3214

Event: time 1446790600.900463, type 3 (EV_ABS), code 0 (ABS_X), value 3214

Event: time 1446790600.900463, -------------- SYN_REPORT ------------

Event: time 1446790600.906461, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3212

Event: time 1446790600.906461, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2690

Event: time 1446790600.906461, type 3 (EV_ABS), code 0 (ABS_X), value 3212

Event: time 1446790600.906461, type 3 (EV_ABS), code 1 (ABS_Y), value 2690

Event: time 1446790600.906461, -------------- SYN_REPORT ------------

Event: time 1446790600.910479, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3210

Event: time 1446790600.910479, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2686

Event: time 1446790600.910479, type 3 (EV_ABS), code 0 (ABS_X), value 3210

Event: time 1446790600.910479, type 3 (EV_ABS), code 1 (ABS_Y), value 2686

Event: time 1446790600.910479, -------------- SYN_REPORT ------------

Event: time 1446790600.916475, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3208

Event: time 1446790600.916475, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2682

Event: time 1446790600.916475, type 3 (EV_ABS), code 0 (ABS_X), value 3208

Event: time 1446790600.916475, type 3 (EV_ABS), code 1 (ABS_Y), value 2682

Event: time 1446790600.916475, -------------- SYN_REPORT ------------

Event: time 1446790600.922448, type 3 (EV_ABS), code 53 (ABS_MT_POSITION_X), value 3206

Event: time 1446790600.922448, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2678

Event: time 1446790600.922448, type 3 (EV_ABS), code 0 (ABS_X), value 3206

Event: time 1446790600.922448, type 3 (EV_ABS), code 1 (ABS_Y), value 2678

Event: time 1446790600.922448, -------------- SYN_REPORT ------------

Event: time 1446790600.926450, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2672

Event: time 1446790600.926450, type 3 (EV_ABS), code 1 (ABS_Y), value 2672

Event: time 1446790600.926450, -------------- SYN_REPORT ------------

Event: time 1446790600.932469, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2666

Event: time 1446790600.932469, type 3 (EV_ABS), code 1 (ABS_Y), value 2666

Event: time 1446790600.932469, -------------- SYN_REPORT ------------

Event: time 1446790600.938460, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2658

Event: time 1446790600.938460, type 3 (EV_ABS), code 1 (ABS_Y), value 2658

Event: time 1446790600.938460, -------------- SYN_REPORT ------------

Event: time 1446790600.944479, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2650

Event: time 1446790600.944479, type 3 (EV_ABS), code 1 (ABS_Y), value 2650

Event: time 1446790600.944479, -------------- SYN_REPORT ------------

Event: time 1446790600.950469, type 3 (EV_ABS), code 54 (ABS_MT_POSITION_Y), value 2640

Event: time 1446790600.950469, type 3 (EV_ABS), code 1 (ABS_Y), value 2640

0 Kudos
Message 16 of 73
(1,600 Views)

I'm using a Panel touchesceen using Egalax driver.

I'm tryng to compile the kernel with the HIDRAW enabled in the menuconfig as suggested. I need to load the old configuration but there is no .config in the /boot or /usr/src/. Where can I find the configuration file?

For Seyong: I didn't solve.. work in progress

0 Kudos
Message 17 of 73
(1,600 Views)

m-power, is the panel really from a company named "Panel"? Is that the model name? Can you find a model number on the device?

As for the kernel configuration, as I recall, you're building the kernel on the controller, is that correct? Basically, follow the instructions here (make sure to look at the branch that matches the version of the software you're using, look at the KERNEL_SOURCE file), but adjust for compiling on the target itself (e.g. don't set ARCH, don't set CROSS_COMPILE).

The configuration you should work from is already resident in the kernel itself: in the instructions when you make nati_x86_64_defconfig, you're copying the correct default configuration that NI uses for building the kernel to be used when you build or further configure the kernel.

0 Kudos
Message 18 of 73
(1,600 Views)
0 Kudos
Message 19 of 73
(1,600 Views)

Hi BradM, is it possible to activate the hidraw module in the .config without downloading and compiling the kernel? I received the cRIO 9030 with the OS installed. Where can I fid the .config of the default XFCE version?

eGalax driver need 4 module to work: uinpup, evdev, hid_multotouch and HIDRAW. I'm able to compile and include by insmod the firs two modules; the third already is loaded by default but  I'm not able to comiple/enable the HIDRAW.

can you help me with .config file and the relative path? The default /urs/src/ folder do not contains any config file (or it seems to me)

thanks again

0 Kudos
Message 20 of 73
(1,600 Views)