USB Touch Screen

Post Reply
KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

USB Touch Screen

Post by KishorNeelam »

Hello,

I am connecting the USB touch screen to Odroid N2+ board. Touch is not working.

I able to see the vendor Id and product id.

odroidn2:/ # lsusb
Bus 002 Device 002: ID 05e3:0620
Bus 001 Device 001: ID 1d6b:0002
Bus 001 Device 002: ID 05e3:0610
Bus 002 Device 001: ID 1d6b:0003

Bus 001 Device 004: ID 316c:6025

By default HID Multitouch is enabled make menuconfig.
Added the product id and Vendor id properly as per below document.

http://www.idspulse.com/pdf/HID_Multito ... oid_OS.pdf

still I can observe below error.
efault:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=1
[ 2603.921595] type=1400 audit(1599209242.712:232): avc: denied { getattr } for pid=2997 comm="memtrack@1.0-se" path="/sys/kernel/debug/ion/heaps/vmalloc_ion" dev="debugfs" ino=13681 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=1
[ 2726.562568] usb 1-1.2: new high-speed USB device number 4 using xhci-hcd
[ 2726.687505] type=1400 audit(1599209242.712:232): avc: denied { getattr } for pid=2997 comm="memtrack@1.0-se" path="/sys/kernel/debug/ion/heaps/vmalloc_ion" dev="debugfs" ino=13681 scontext=u:r:hal_memtrack_default:s0 tcontext=u:object_r:debugfs:s0 tclass=file permissive=1
[ 2726.687533] type=1400 audit(1599209365.480:233): avc: denied { read } for pid=2979 comm="HwBinder:2979_2" scontext=u:r:hdmicecd:s0 tcontext=u:r:hdmicecd:s0 tclass=netlink_kobject_uevent_socket permissive=1
[ 2726.700682] usb 1-1.2: Unsupported device
[ 2794.286456] type=1400 audit(1599209365.480:233): avc: denied { read } for pid=2979 comm="HwBinder:2979_2" scontext=u:r:hdmicecd:s0 tcontext=u:r:hdmicecd:s0 tclass=netlink_kobject_uevent_socket permissive=1
[ 2794.286477] type=1400 audit(1599209433.076:234): avc: denied { getpgid } for pid=3240 comm="ActivityManager" scontext=u:r:system_server:s0 tcontext=u:r:crash_dump:s0 tclass=process permissive=1 b/73128755
[ 2794.318720] binder: release 5719:5760 transaction 334887 out, still active

PLease suggest do I nbeed to change anything in dtsi ?
Attachments
USBError.PNG
USBError.PNG (36.42 KiB) Viewed 419 times

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

Can you share your change for your touch screen?
Is 316c:6025 the VID/PID of your touch screen?

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

Yes, 316c is VID and 6025 is PID.

Added below data

#define USB_VENDOR_ID_SIGMASENSE 0x316c
#define USB_DEVICE_ID_SIGMASENSE_MULTITOUCH 0x6025

[ 70.957970] input: SigmaSense SigmaSenseDigitizer Pen as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.1/0003:316C:6025.0005/input/input13
[ 70.959814] input: SigmaSense SigmaSenseDigitizer Pen as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.1/0003:316C:6025.0005/input/input14
[ 70.961687] input: SigmaSense SigmaSenseDigitizer Pen as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.1/1-1.1:1.1/0003:316C:6025.0005/input/input15
[ 70.963100] hid-multitouch 0003:316C:6025.0005: input,hidraw1: USB HID v1.00 Device [SigmaSense SigmaSenseDigitizer] on usb-xhci-hcd.0.auto-1.1/input1
[ 70.975079] hid-multitouch 0003:316C:6025.0006: hiddev0,hidraw2: USB HID v1.00 Device [SigmaSense SigmaSenseDigitizer] on usb-xhci-hcd.0.auto-1.1/input2
[ 70.975356] usb 1-1.1: Unsupported device
[ 71.591568] type=1400 audit(1599215240.260:199): avc: denied { read } for pid=3029 comm="HwBinder:3029_2" scontext=u:r:hdmicecd:s0 tcontext=u:r:hdmicecd:s0 tclass=netlink_kobject_uevent_socket permissive=1
Attachments
hid-multitouch.c
(51.51 KiB) Downloaded 5 times
hid-ids.h
(46.45 KiB) Downloaded 4 times
hid-core.c
(98.53 KiB) Downloaded 4 times

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Fri Sep 04, 2020 6:48 pm
Can you share your change for your touch screen?
Is 316c:6025 the VID/PID of your touch screen?
Yes, 316c is VID and 6025 is PID.
Attachments
hid-multitouch.c
(51.51 KiB) Downloaded 5 times
hid-ids.h
(46.45 KiB) Downloaded 4 times
hid-core.c
(98.53 KiB) Downloaded 7 times

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Fri Sep 04, 2020 6:48 pm
Can you share your change for your touch screen?
Is 316c:6025 the VID/PID of your touch screen?
Hello,

Can you please suggest me do I need to update any dtsi file in Android?

I am not able to trace what is exact issue. Please support me.

Thanks ...

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Sat Sep 05, 2020 12:48 am
tobetter wrote:
Fri Sep 04, 2020 6:48 pm
Can you share your change for your touch screen?
Is 316c:6025 the VID/PID of your touch screen?
Hello,

Can you please suggest me do I need to update any dtsi file in Android?

I am not able to trace what is exact issue. Please support me.

Thanks ...
You would not need to update any dts for your touch screen. I am seeing that your change is applied and your touch screen is detected. But somehow it does not work and gives an error usb 1-1.1: Unsupported device. I think the error comes from the file drivers/usb/core/message.c, please check if it is and why #2115 is true.

Code: Select all

2214 #ifdef CONFIG_AMLOGIC_USB
2215                 if (((&intf->dev)->driver) == NULL) {
2216                         if (intf->cur_altsetting->desc.bInterfaceClass == 0x09)
2217                                 dev_err(&dev->dev, "Unsupported the hub\n");
2218                         else
2219                                 dev_err(&dev->dev, "Unsupported device\n");
2220                 }
2221 #endif

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Fri Sep 04, 2020 6:48 pm
Can you share your change for your touch screen?
Is 316c:6025 the VID/PID of your touch screen?
[ 959.769022] hid-multitouch 0003:316C:6025.0005: usb_submit_urb(ctrl) failed: -1
[ 959.770865] hid-multitouch 0003:316C:6025.0005: timeout initializing reports
[ 959.771649] input: SigmaSense SigmaSenseDigitizer Pen as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.4/1-1.4:1.1/0003:316C:6025.0005/input/input12
[ 959.830752] input: SigmaSense SigmaSenseDigitizer Pen as /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.4/1-1.4:1.1/0003:316C:6025.0005/input/input13

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

Hello,

I just tried to trace the kernel events by udevadm monitor.

Linux OS :
KERNEL[6481.793569] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35 (input)
KERNEL[6481.793721] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/mouse3 (input)
KERNEL[6481.793956] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/event20 (input)
KERNEL[6481.794199] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/hidraw/hidraw4 (hidraw)
KERNEL[6481.794307] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C (hid)
KERNEL[6481.794391] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1 (usb)
KERNEL[6481.794465] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.2 (usb)

Odroid Ubuntu OS:
KERNEL[116.261433] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.2/0003:316C:6025.0006 (hid)
KERNEL[116.261523] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)
UDEV [116.277099] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2 (usb)
UDEV [116.289803] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)


I think its problem with Odroid OS, bind event is not happening.

User avatar
codewalker
Posts: 1047
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 38 times
Been thanked: 70 times
Contact:

Re: USB Touch Screen

Post by codewalker »

I've been processing to request touch ID, but I always just added hid-ids.h and hid-multitouch.c as you modified

Check my commit history out.

https://github.com/hardkernel/linux/com ... /hid-ids.h

I think you must solve "Unsupported device" first.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Wed Sep 09, 2020 6:34 pm
I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N
Are you able to reprogram the VID/PID to your touch device?

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Wed Sep 09, 2020 6:37 pm
KishorNeelam wrote:
Wed Sep 09, 2020 6:34 pm
I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N
Are you able to reprogram the VID/PID to your touch device?
NO, I didn't reprogram anything. Just added the VID and PID in hid-ids.h and hid-core.c file.

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Wed Sep 09, 2020 8:41 pm
tobetter wrote:
Wed Sep 09, 2020 6:37 pm
KishorNeelam wrote:
Wed Sep 09, 2020 6:34 pm
I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N
Are you able to reprogram the VID/PID to your touch device?
NO, I didn't reprogram anything. Just added the VID and PID in hid-ids.h and hid-core.c file.
What I was wondering is that if the touch screen is your own product or not, since your code change was different with the pdf file you had referenced. So I was thinking of changing the VID/PID of the touch screen with one listed in the original multitouch driver.

When you test with Linux OS, what was the version of the kernel? If your touch device does not work with stock HK kernel, the driver may need to add a code for your touch screen and this is not easy to debug without a hardware since we don't know how the device work. Maybe you can share the link of your touch screen in the market.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Wed Sep 09, 2020 9:24 pm
KishorNeelam wrote:
Wed Sep 09, 2020 8:41 pm
tobetter wrote:
Wed Sep 09, 2020 6:37 pm
KishorNeelam wrote:
Wed Sep 09, 2020 6:34 pm
I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N
Are you able to reprogram the VID/PID to your touch device?
NO, I didn't reprogram anything. Just added the VID and PID in hid-ids.h and hid-core.c file.
What I was wondering is that if the touch screen is your own product or not, since your code change was different with the pdf file you had referenced. So I was thinking of changing the VID/PID of the touch screen with one listed in the original multitouch driver.

When you test with Linux OS, what was the version of the kernel? If your touch device does not work with stock HK kernel, the driver may need to add a code for your touch screen and this is not easy to debug without a hardware since we don't know how the device work. Maybe you can share the link of your touch screen in the market.
Thanks for your response. Yes, its difficult to debug without HW. I will come back to you with more information as soon as possible. If you possible please share me some information how to change USB drivers code

Its working properly in Linux 5.4.63 kernel version. I just given logs for your reference.

I just tried to trace the kernel events by udevadm monitor.

Linux OS :
KERNEL[6481.793569] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35 (input)
KERNEL[6481.793721] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/mouse3 (input)
KERNEL[6481.793956] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/event20 (input)
KERNEL[6481.794199] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/hidraw/hidraw4 (hidraw)
KERNEL[6481.794307] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C (hid)
KERNEL[6481.794391] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1 (usb)
KERNEL[6481.794465] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.2 (usb)

Odroid OS:
KERNEL[116.261433] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.2/0003:316C:6025.0006 (hid)
KERNEL[116.261523] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)
UDEV [116.277099] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2 (usb)
UDEV [116.289803] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)

Difference between the two I can observe is the bind event, I am not sure what might be the problem. This is just my observation.


Thanks,
Kishor N.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

KishorNeelam wrote:
Wed Sep 09, 2020 9:48 pm
tobetter wrote:
Wed Sep 09, 2020 9:24 pm
KishorNeelam wrote:
Wed Sep 09, 2020 8:41 pm
tobetter wrote:
Wed Sep 09, 2020 6:37 pm
KishorNeelam wrote:
Wed Sep 09, 2020 6:34 pm
I have a question, its working fine with Ubuntu 18.04. USB is detecting properly.
When I connecting with Odroid board this facing this error "Unsupported device".

I am not sure why its happening, I am not able to find the problem.

Thanks,
Kishor N
Are you able to reprogram the VID/PID to your touch device?
NO, I didn't reprogram anything. Just added the VID and PID in hid-ids.h and hid-core.c file.
What I was wondering is that if the touch screen is your own product or not, since your code change was different with the pdf file you had referenced. So I was thinking of changing the VID/PID of the touch screen with one listed in the original multitouch driver.

When you test with Linux OS, what was the version of the kernel? If your touch device does not work with stock HK kernel, the driver may need to add a code for your touch screen and this is not easy to debug without a hardware since we don't know how the device work. Maybe you can share the link of your touch screen in the market.
Thanks for your response. Yes, its difficult to debug without HW. I will come back to you with more information as soon as possible. If you possible please share me some information how to change USB drivers code

Its working properly in Linux 5.4.63 kernel version. I just given logs for your reference.

I just tried to trace the kernel events by udevadm monitor.

Linux OS :
KERNEL[6481.793569] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35 (input)
KERNEL[6481.793721] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/mouse3 (input)
KERNEL[6481.793956] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/input/input35/event20 (input)
KERNEL[6481.794199] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C/hidraw/hidraw4 (hidraw)
KERNEL[6481.794307] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1/0003:316C:6025.000C (hid)
KERNEL[6481.794391] bind /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.1 (usb)
KERNEL[6481.794465] add /devices/pci0000:00/0000:00:14.0/usb1/1-10/1-10:1.2 (usb)

Odroid OS:
KERNEL[116.261433] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.2/0003:316C:6025.0006 (hid)
KERNEL[116.261523] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)
UDEV [116.277099] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2 (usb)
UDEV [116.289803] add /devices/platform/ff500000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1.2/1-1.2:1.3 (usb)

Difference between the two I can observe is the bind event, I am not sure what might be the problem. This is just my observation.


Thanks,
Kishor N.

What I was wondering is that if the touch screen is your own product or not, since your code change was different with the pdf file you had referenced.

This is our company own product, I to dont have much information about touchscreen. I will try to get more information.

So I was thinking of changing the VID/PID of the touch screen with one listed in the original multitouch driver

This means no need to add new maros, Just add my touch screen VID/PID what ever existing macro in multitouch driver and try.

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

@KishorNeelam, it's hard to tell you change the code since it's too generic. Since your touch driver is your own product and it's working with 5.4 kernel, the problem might be simple to run 4.9 kernel. The thing is that we don't know what's the problem and what we know is that your touch dirver is not attached as an input device, this mean that the multitouch driver refuse to run your device since the driver does not get decent information from your device. So what I guess is that there is something missing information for 4.9 kernel in the HID descriptor of your touch driver. We do not know what's your HID descritor look like. That's why as my previous question, since the touch driver is your own product, reprogram the VID/PID with the proved touch device and see if your touch device works as an input device no matter it's malfunctioning. If it's work, the problem is VID/PID. Otherwise, HID descriptor is not valid for 4.9 kernel or need to add a tweak code to make your touch driver work with 4.9 kernel which we don't know yet.
These users thanked the author tobetter for the post:
KishorNeelam (Wed Sep 09, 2020 11:12 pm)

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Wed Sep 09, 2020 10:35 pm
@KishorNeelam, it's hard to tell you change the code since it's too generic. Since your touch driver is your own product and it's working with 5.4 kernel, the problem might be simple to run 4.9 kernel. The thing is that we don't know what's the problem and what we know is that your touch dirver is not attached as an input device, this mean that the multitouch driver refuse to run your device since the driver does not get decent information from your device. So what I guess is that there is something missing information for 4.9 kernel in the HID descriptor of your touch driver. We do not know what's your HID descritor look like. That's why as my previous question, since the touch driver is your own product, reprogram the VID/PID with the proved touch device and see if your touch device works as an input device no matter it's malfunctioning. If it's work, the problem is VID/PID. Otherwise, HID descriptor is not valid for 4.9 kernel or need to add a tweak code to make your touch driver work with 4.9 kernel which we don't know yet.
Thanks for details information.

I have very basic question.
Can I down load the kernel 5.4.63 in Odroid board, build and install in Odroid N2+?

Is this supported by Odroid N2+?

Thanks,
Kishor N.

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Fri Sep 11, 2020 4:32 pm
tobetter wrote:
Wed Sep 09, 2020 10:35 pm
@KishorNeelam, it's hard to tell you change the code since it's too generic. Since your touch driver is your own product and it's working with 5.4 kernel, the problem might be simple to run 4.9 kernel. The thing is that we don't know what's the problem and what we know is that your touch dirver is not attached as an input device, this mean that the multitouch driver refuse to run your device since the driver does not get decent information from your device. So what I guess is that there is something missing information for 4.9 kernel in the HID descriptor of your touch driver. We do not know what's your HID descritor look like. That's why as my previous question, since the touch driver is your own product, reprogram the VID/PID with the proved touch device and see if your touch device works as an input device no matter it's malfunctioning. If it's work, the problem is VID/PID. Otherwise, HID descriptor is not valid for 4.9 kernel or need to add a tweak code to make your touch driver work with 4.9 kernel which we don't know yet.
Thanks for details information.

I have very basic question.
Can I down load the kernel 5.4.63 in Odroid board, build and install in Odroid N2+?

Is this supported by Odroid N2+?

Thanks,
Kishor N.
You can try the kernel version, 5.4 / 5.7 and 5.9 kernel on ODROID-N2. Simplest way to test your touch with mainline kernel is to download Ubuntu 20.04 image, please refer to the link. The image is currently built with 5.8 kernel but you can switch to 5.4 or 5.7 without flashing again, I can help you if necessary.
viewtopic.php?p=305003#p305003

If you need to build the kernel with your change, please download the kernel source tree from the link.
https://github.com/tobetter/linux/tree/odroid-5.8.y
https://github.com/tobetter/linux/tree/odroid-5.7.y
https://github.com/tobetter/linux/tree/odroid-5.4.y

Kernel config file can be found from the image, not in the kernel source tree. Please run zcat /proc/config.gz > .config and copy this file to the root directory of kernel source as .config and do make. After compiling, replace vmlinuz-* with arch/arm64/boot/Image in the first partition of OS image and install kernel modules, then it will boot.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Fri Sep 11, 2020 4:52 pm
KishorNeelam wrote:
Fri Sep 11, 2020 4:32 pm
tobetter wrote:
Wed Sep 09, 2020 10:35 pm
@KishorNeelam, it's hard to tell you change the code since it's too generic. Since your touch driver is your own product and it's working with 5.4 kernel, the problem might be simple to run 4.9 kernel. The thing is that we don't know what's the problem and what we know is that your touch dirver is not attached as an input device, this mean that the multitouch driver refuse to run your device since the driver does not get decent information from your device. So what I guess is that there is something missing information for 4.9 kernel in the HID descriptor of your touch driver. We do not know what's your HID descritor look like. That's why as my previous question, since the touch driver is your own product, reprogram the VID/PID with the proved touch device and see if your touch device works as an input device no matter it's malfunctioning. If it's work, the problem is VID/PID. Otherwise, HID descriptor is not valid for 4.9 kernel or need to add a tweak code to make your touch driver work with 4.9 kernel which we don't know yet.
Thanks for details information.

I have very basic question.
Can I down load the kernel 5.4.63 in Odroid board, build and install in Odroid N2+?

Is this supported by Odroid N2+?

Thanks,
Kishor N.
You can try the kernel version, 5.4 / 5.7 and 5.9 kernel on ODROID-N2. Simplest way to test your touch with mainline kernel is to download Ubuntu 20.04 image, please refer to the link. The image is currently built with 5.8 kernel but you can switch to 5.4 or 5.7 without flashing again, I can help you if necessary.
viewtopic.php?p=305003#p305003

If you need to build the kernel with your change, please download the kernel source tree from the link.
https://github.com/tobetter/linux/tree/odroid-5.8.y
https://github.com/tobetter/linux/tree/odroid-5.7.y
https://github.com/tobetter/linux/tree/odroid-5.4.y

Kernel config file can be found from the image, not in the kernel source tree. Please run zcat /proc/config.gz > config and copy this file to the root directory of kernel source as .config and do make. After compiling, replace vmlinuz-* with arch/arm64/boot/Image in the first partition of OS image and install kernel modules, then it will boot.
Hi,

After flashing 20.04 image in SD card and boot the system,

I need to follow this commands for Desktop

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot

I have connected the WIFI modem and updated

network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlp3s0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true

Still Wifi connection is failed. Not able to update sudo apt update.
Any otherway to connect the wifi modem.

Thanks,
Kishore N

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Mon Sep 14, 2020 7:38 pm
Hi,

After flashing 20.04 image in SD card and boot the system,

I need to follow this commands for Desktop

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot

I have connected the WIFI modem and updated

network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlp3s0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true

Still Wifi connection is failed. Not able to update sudo apt update.
Any otherway to connect the wifi modem.

Thanks,
Kishore N
If you successfully installed Ubuntu Desktop, you must be able to set up the Wifi from Settings.
I am more interesting if your touch screen can work with the new installation.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Mon Sep 14, 2020 7:43 pm
KishorNeelam wrote:
Mon Sep 14, 2020 7:38 pm
Hi,

After flashing 20.04 image in SD card and boot the system,

I need to follow this commands for Desktop

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot

I have connected the WIFI modem and updated

network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlp3s0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true

Still Wifi connection is failed. Not able to update sudo apt update.
Any otherway to connect the wifi modem.

Thanks,
Kishore N
If you successfully installed Ubuntu Desktop, you must be able to set up the Wifi from Settings.
I am more interesting if your touch screen can work with the new installation.

Can you please share process to native build 5.4.y kernel?

I have booted with 20.04 Ubuntu Odroid Image and downloaded the source code of 5.4.y from git.

odroid@odroid64:~$ sudo apt update
odroid@odroid64:~$ sudo apt install git

make menuconfig
and make -j2

make module_install.

I am not able to complete build. Do I need to setup gcc 6.3.1 version for native build also?

Thanks,
Kishore N

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

KishorNeelam wrote:
Mon Sep 14, 2020 9:41 pm
tobetter wrote:
Mon Sep 14, 2020 7:43 pm
KishorNeelam wrote:
Mon Sep 14, 2020 7:38 pm
Hi,

After flashing 20.04 image in SD card and boot the system,

I need to follow this commands for Desktop

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot

I have connected the WIFI modem and updated

network:
ethernets:
eth0:
dhcp4: true
optional: true
version: 2
wifis:
wlp3s0:
optional: true
access-points:
"SSID-NAME-HERE":
password: "PASSWORD-HERE"
dhcp4: true

Still Wifi connection is failed. Not able to update sudo apt update.
Any otherway to connect the wifi modem.

Thanks,
Kishore N
If you successfully installed Ubuntu Desktop, you must be able to set up the Wifi from Settings.
I am more interesting if your touch screen can work with the new installation.

Can you please share process to native build 5.4.y kernel?

I have booted with 20.04 Ubuntu Odroid Image and downloaded the source code of 5.4.y from git.

odroid@odroid64:~$ sudo apt update
odroid@odroid64:~$ sudo apt install git

make menuconfig
and make -j2

make module_install.

I am not able to complete build. Do I need to setup gcc 6.3.1 version for native build also?

Thanks,
Kishore N

odroid@odroid:~/linux$ sudo make modules_install

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make: *** [Makefile:1364: modules_install] Error 1

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

You do not need to install GCC-6 at all, just use the default gcc which might be gcc-9 if you like to build the kernel from ODROID-N2. Also before starting kernel or module, you must set the kernel config as in my previous post.
viewtopic.php?p=305923#p305923

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Mon Sep 14, 2020 10:59 pm
You do not need to install GCC-6 at all, just use the default gcc which might be gcc-9 if you like to build the kernel from ODROID-N2. Also before starting kernel or module, you must set the kernel config as in my previous post.
viewtopic.php?p=305923#p305923
Thanks for your support. I am sorry to bother you again.


Complete source is in
odroid@odroid:~/linux$ zcat /proc/config.gz > config
odroid@odroid:~/linux$ make menuconfig - Added modules.
odroid@odroid:~/linux$ cp .config kernel/
odroid@odroid:~/linux$ make -j2
odroid@odroid:~/linux$ sudo make modules_install

I am Unable to find which config is required to enable to solve below error.
The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make: *** [Makefile:1364: modules_install] Error 1

Please correct me If I am doing some worng.

Thanks,
Kishore N

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Mon Sep 14, 2020 11:47 pm
KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.
Thanks for update. Build is successful. Copied Image.gz and meson64_odroidn2.dtb in boot folder.

odroid@odroid64:~/linux$ sudo cp -f arch/arm64/boot/Image.gz arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtb /media/boot/
odroid@odroid64:~/linux$ sudo sync
odroid@odroid64:~/linux$ sudo reboot

After reboot the N2 board is not booting. I dont have UART connector to debug. Attached screen shot. Unable to debug this.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

20200914_181233.jpg
20200914_181233.jpg (560.75 KiB) Viewed 179 times

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Tue Sep 15, 2020 5:32 am
tobetter wrote:
Mon Sep 14, 2020 11:47 pm
KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.
Thanks for update. Build is successful. Copied Image.gz and meson64_odroidn2.dtb in boot folder.

odroid@odroid64:~/linux$ sudo cp -f arch/arm64/boot/Image.gz arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtb /media/boot/
odroid@odroid64:~/linux$ sudo sync
odroid@odroid64:~/linux$ sudo reboot

After reboot the N2 board is not booting. I dont have UART connector to debug. Attached screen shot. Unable to debug this.
Can you provide your kernel change on top of 5.8 kernel? Maybe I can put into my test kernel to build and you can try it out.

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Wed Sep 16, 2020 3:16 pm
KishorNeelam wrote:
Tue Sep 15, 2020 5:32 am
tobetter wrote:
Mon Sep 14, 2020 11:47 pm
KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.
Thanks for update. Build is successful. Copied Image.gz and meson64_odroidn2.dtb in boot folder.

odroid@odroid64:~/linux$ sudo cp -f arch/arm64/boot/Image.gz arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtb /media/boot/
odroid@odroid64:~/linux$ sudo sync
odroid@odroid64:~/linux$ sudo reboot

After reboot the N2 board is not booting. I dont have UART connector to debug. Attached screen shot. Unable to debug this.
Can you provide your kernel change on top of 5.8 kernel? Maybe I can put into my test kernel to build and you can try it out.
Hi,

I tried without modifying the any source code in 5.8.10 Desktop version. Its working fine. Ubuntu 18.04
Not required to modify source.

ubuntu-dev@ubuntu-dev:~$ uname -a
Linux ubuntu-dev 5.8.10 #1 SMP Thu Sep 17 16:43:30 CEST 2020 x86_64 x86_64 x86_64 GNU/Linux
ubuntu-dev@ubuntu-dev:~$

Is possible to share Ubuntu binary with 5.8.y kernel version?

Thanks,
Kishor N

User avatar
tobetter
Posts: 5878
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 248 times
Been thanked: 717 times
Contact:

Re: USB Touch Screen

Post by tobetter »

KishorNeelam wrote:
Fri Sep 18, 2020 12:21 am
tobetter wrote:
Wed Sep 16, 2020 3:16 pm
KishorNeelam wrote:
Tue Sep 15, 2020 5:32 am
tobetter wrote:
Mon Sep 14, 2020 11:47 pm
KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.
Thanks for update. Build is successful. Copied Image.gz and meson64_odroidn2.dtb in boot folder.

odroid@odroid64:~/linux$ sudo cp -f arch/arm64/boot/Image.gz arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtb /media/boot/
odroid@odroid64:~/linux$ sudo sync
odroid@odroid64:~/linux$ sudo reboot

After reboot the N2 board is not booting. I dont have UART connector to debug. Attached screen shot. Unable to debug this.
Can you provide your kernel change on top of 5.8 kernel? Maybe I can put into my test kernel to build and you can try it out.
Hi,

I tried without modifying the any source code in 5.8.10 Desktop version. Its working fine. Ubuntu 18.04
Not required to modify source.

ubuntu-dev@ubuntu-dev:~$ uname -a
Linux ubuntu-dev 5.8.10 #1 SMP Thu Sep 17 16:43:30 CEST 2020 x86_64 x86_64 x86_64 GNU/Linux
ubuntu-dev@ubuntu-dev:~$

Is possible to share Ubuntu binary with 5.8.y kernel version?

Thanks,
Kishor N
I believe you must be looking for this,
viewtopic.php?p=305003#p305003

By the way, are you saying your touch device works with x86 desktop without any change for your touch screen? Then your touch screen follows the standard of HID, if I am not wrong, but need to add some tweaks to 4.9 kernel?

KishorNeelam
Posts: 38
Joined: Sun Aug 16, 2020 4:18 am
languages_spoken: english
Has thanked: 3 times
Been thanked: 0
Contact:

Re: USB Touch Screen

Post by KishorNeelam »

tobetter wrote:
Fri Sep 18, 2020 8:56 am
KishorNeelam wrote:
Fri Sep 18, 2020 12:21 am
tobetter wrote:
Wed Sep 16, 2020 3:16 pm
KishorNeelam wrote:
Tue Sep 15, 2020 5:32 am
tobetter wrote:
Mon Sep 14, 2020 11:47 pm
KishorNeelam wrote:
Mon Sep 14, 2020 11:32 pm
odroid@odroid:~/linux$ zcat /proc/config.gz > config
Sorry, use zcat /proc/config.gz > .config.
Thanks for update. Build is successful. Copied Image.gz and meson64_odroidn2.dtb in boot folder.

odroid@odroid64:~/linux$ sudo cp -f arch/arm64/boot/Image.gz arch/arm64/boot/dts/amlogic/meson64_odroidn2.dtb /media/boot/
odroid@odroid64:~/linux$ sudo sync
odroid@odroid64:~/linux$ sudo reboot

After reboot the N2 board is not booting. I dont have UART connector to debug. Attached screen shot. Unable to debug this.
Can you provide your kernel change on top of 5.8 kernel? Maybe I can put into my test kernel to build and you can try it out.
Hi,

I tried without modifying the any source code in 5.8.10 Desktop version. Its working fine. Ubuntu 18.04
Not required to modify source.

ubuntu-dev@ubuntu-dev:~$ uname -a
Linux ubuntu-dev 5.8.10 #1 SMP Thu Sep 17 16:43:30 CEST 2020 x86_64 x86_64 x86_64 GNU/Linux
ubuntu-dev@ubuntu-dev:~$

Is possible to share Ubuntu binary with 5.8.y kernel version?

Thanks,
Kishor N
I believe you must be looking for this,
viewtopic.php?p=305003#p305003

By the way, are you saying your touch device works with x86 desktop without any change for your touch screen? Then your touch screen follows the standard of HID, if I am not wrong, but need to add some tweaks to 4.9 kernel?
Yes, it works x86 desktop. May be required to check in kernel 4.9 how USB drivers are initialized. Its working with 5.8.y.


I have flashed 20.4 Odroid binary which you shared. But its server binary. I am not able to make Desktop by using below commands.

CODE: SELECT ALL

$ sudo apt update
$ sudo apt install ubuntu-desktop mali-bifrost-wayland-driver
$ sudo reboot

I have connected WiFi modem to execute above commands. This is very basic question, I am doing first time so I am not able to make desktop with binary you shared.

Thanks,
Kishore N.

Post Reply

Return to “Hardware and peripherals”

Who is online

Users browsing this forum: No registered users and 2 guests