- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi support team
I need EZ-USB GX3 Linux driver.
I downloaded it from the following URL, but it was only the source code.
The build fails and the following error occurs.
https://www.cypress.com/documentation/software-and-drivers/ez-usb-gx3-software-and-drivers#res-other
・environment
OS
Tinker Board Debian OS V2.1.11
Linux kernel 4.4.132
・Error
make[1]: *** /lib/modules/4.4.132/build: No such file or directory. Stop.
Please tell me how to avoid the error.
Or can you provide a pre-built driver?
JUNYA
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The customer was able to build by following the steps below:
〇How to build the CYUSB3610 driver
●error
linaro @ tinkerboard: ~ / cyusbdriver $ ls -l
total 76
-rwxr-xr-x 1 root root 1190 Aug 14 2015 Makefile
-rwxr-xr-x 1 root root 53559 Aug 15 2015 cyusb3610.c
-rwxr-xr-x 1 root root 11991 Aug 15 2015 cyusb3610.h
-rwxr-xr-x 1 root root 3316 Aug 15 2015 readme
linaro @ tinkerboard: ~ / cyusbdriver $ make
make -C / lib / modules / 4.4.132 / build SUBDIRS = / home / linaro / cyusbdriver modules
make [1]: *** / lib / modules / 4.4.132 / build: No such file or directory. Stop.
Makefile: 30: recipe for target'default' failed
make: *** [default] Error 2
●Kernel header installation
linaro @ tinkerboard: ~ / cyusbdriver $ wget https://github.com/TinkerBoard/debian_kernel/releases/download/2.0.8/linuxheaders-4.4.132+_4.4.132+-...
linaro @ tinkerboard: ~ / cyusbdriver $ sudo apt install ./linux-headers-4.4.132+_4.4.132+-1_armhf.deb
●Changed symbolic links
linaro @ tinkerboard: ~ / cyusbdriver $ sudo rm / lib / modules / 4.4.132 / build
linaro @ tinkerboard: ~ / cyusbdriver $ sudo ln -s / usr / src / linux-headers-4.4.132 + / / lib / modules / 4.4.132 / build
●Build
linaro @ tinkerboard: ~ / cyusbdriver $ make ARCH = arm
make -C / lib / modules / 4.4.132 / build SUBDIRS = / home / linaro / cyusbdriver modules
make [1]: Entering directory'/usr/src/linux-headers-4.4.132+'
CC
Building modules, stage 2.
MODPOST 1 modules
CC /home/linaro/cyusbdriver/cyusb3610.mod.o
LD
make [1]: Leaving directory'/usr/src/linux-headers-4.4.132+'
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
We have tried to build the driver source in Ubuntu and didn't face any errors and was working fine as expected.
Can you place the driver download in a file and extract the contents in the same file and run it in the same directory?
Please follow the steps properly and share the screenshots of the terminal for me to review them.
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello Yashwant
Thankyou for your support.
The log and the source code are attached.
file name | Content |
cyusb3610_driver_source.tar.gz | Driver souce |
| Bilud log |
directory.log |
I will send the directory structure displayed by the ls command as an attachment.
directory | Content |
~/build/ | make run directory |
/lib/modules/4.4.132/ | Kernel module |
/source/kernel | /lib/modules/4.4.132/build link |
Regards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
The build.log which was shared seems to not output all the files present in the package (the output of ls -l) which is not expected.
Can you please share a snapshot of the /lib/modules folder of your PC?
Also, please go through the following link and try the answer specified: https://askubuntu.com/questions/554624/how-to-resolve-the-lib-modules-3-13-0-27-generic-build-no-suc...
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello Yashwant
We will send you the directory structure under / lib / modules.
This is the output result of the tree command.
>specified: https://askubuntu.com/questions/554624/how-to-resolve-the-lib-modules-3-13-0-27-generic-build-no-suc...
I've tried it, but it hasn't improved.
The version of Linux-header that matches TinkerOS wasn't in the repository and couldn't be installed with apt.
So I brought the TinkerOS kernel directly from github and tried to make it, but it failed with many errors.
Regards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello Yashwant
Thankyou for your support.
Do you have any update?
Regards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya san,
Please find the attached zip file containing the .ko file along with the source code folder, which is built in Ubuntu 16.04 (Linux version 4.4.0).
Please refer to the readme file in the source files directory and follow from (4) under "Getting Start" and if there are any user or security privilege issues, use "sudo" commands
Please use "cd" to navigate to the extracted folder containing the source and .ko files and try "make install" or "sudo make install".
- If there are any errors observed, you can ignore them and proceed with the instructions under the "Usage" section of the readme file.
After the installation is done, use "lsmod" to check if the driver is installed or not.
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yashwant,
Thankyou for your support.
> Please use "cd" to navigate to the extracted folder containing the> source and .ko files and try "make install" or "sudo make install".
"EXT4-fs error (device mmcblk1p2): ext4_iget: 4499: inode # 65: comm make: bogus i_mode (0)"
I ran the command and got 5 of the above errors.
I could not confirm that the driver was installed with the lsmod command.
>-If there are any errors observed, you can ignore them and proceed> with the instructions under the "Usage" section of the readme file.
I ran insmod cyusb3610.ko and got an error.
"insmod: ERROR: could not insert module cyusb3610.ko: Invalid module format"
After executing the command, I could not confirm that the driver was installed by the lsmod command.
Do you know the cause and solution of the error?
Bestregards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yashwant,
Thankyou for your support.
I have update infomation.
Attach the driver installation log.
-Is there a problem with the log operation procedure?
-Is the difference in OS considered to be the cause of the error?
-Is it possible to provide drivers for Tinker Board Debian OS V2.1.11 / Linux kernel 4.4.132?
Bestregards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Junya,
Please redownload the linux gx3 package to a different place and try sudo make.
Please post the error you get.
I tried a fresh installation on the latest linux kernel successfully and might be able to address the issues you face.
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yashwant,
Thankyou for your support.
〉Please redownload the linux gx3 package to a different place and try sudo make.
〉
〉Please post the error you get.
I will send you an error log.
Script started on Thu Nov 3 17:19:24 2016
linaro@tinkerboard:~$ cd cyusb
linaro@tinkerboard:~/cyusb$ ls -l
total 76
-rwxr-xr-x 1 linaro linaro 1190 Aug 14 2015 [0m [01;32mMakefile [0m
-rwxr-xr-x 1 linaro linaro 53559 Aug 15 2015 [01;32mcyusb3610.c [0m
-rwxr-xr-x 1 linaro linaro 11991 Aug 15 2015 [01;32mcyusb3610.h [0m
-rwxr-xr-x 1 linaro linaro 3316 Aug 15 2015 [01;32mreadme [0m
linaro@tinkerboard:~/cyusb$ sudo make
make -C /lib/modules/4.4.132/build SUBDIRS=/home/linaro/cyusb modules
make[1]: *** /lib/modules/4.4.132/build: No such file or directory. Stop.
Makefile:30: recipe for target 'default' failed
make: *** [default] Error 2
linaro@tinkerboard:~/cyusb$ ls -l /lib/modules/4.4.132/build
lrwxrwxrwx 1 root root 14 Mar 10 2020 [0m [40;31;01m/lib/modules/4.4.132/build [0m -> [40;31;01m/source/kernel [0m
linaro@tinkerboard:~/cyusb$ ls -l /source/kernel
ls: cannot access '/source/kernel': No such file or directory
linaro@tinkerboard:~/cyusb$ uname -r
4.4.132
linaro@tinkerboard:~/cyusb$ exit
exit
Script done on Thu Nov 3 17:21:15 2016
Bestregards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
The kernel headers are not installed properly.
Please reinstall the proper linux kernel by following this page:
How to Install Kernel Headers in Ubuntu and Debian
After headers install please try the sudo make again and send the logs.
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yatheesh
Thankyou for your support.
Why was it determined that kernel headers were not installed?
Bestregards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
as per the below log the directory is missing and the make fails,
make[1]: *** /lib/modules/4.4.132/build: No such file or directory. Stop.
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yatheesh
The customer has not found a kernel header that matches the kernel version of TinkerOS (4.4.132).
(I couldn't find it by searching with apt search. This is an error that the package was not found by apt install.)
Bestregards,
Junya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
Please try the below method:
git clone https://github.com/TinkerBoard/debian_kernel.git
ln -s ~/debian_kernel /usr/src/linux-headers-$(uname -r)
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Junya,
I will create an internal case regarding this and contact you soon.
Thanks,
Yatheesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
The customer was able to build by following the steps below:
〇How to build the CYUSB3610 driver
●error
linaro @ tinkerboard: ~ / cyusbdriver $ ls -l
total 76
-rwxr-xr-x 1 root root 1190 Aug 14 2015 Makefile
-rwxr-xr-x 1 root root 53559 Aug 15 2015 cyusb3610.c
-rwxr-xr-x 1 root root 11991 Aug 15 2015 cyusb3610.h
-rwxr-xr-x 1 root root 3316 Aug 15 2015 readme
linaro @ tinkerboard: ~ / cyusbdriver $ make
make -C / lib / modules / 4.4.132 / build SUBDIRS = / home / linaro / cyusbdriver modules
make [1]: *** / lib / modules / 4.4.132 / build: No such file or directory. Stop.
Makefile: 30: recipe for target'default' failed
make: *** [default] Error 2
●Kernel header installation
linaro @ tinkerboard: ~ / cyusbdriver $ wget https://github.com/TinkerBoard/debian_kernel/releases/download/2.0.8/linuxheaders-4.4.132+_4.4.132+-...
linaro @ tinkerboard: ~ / cyusbdriver $ sudo apt install ./linux-headers-4.4.132+_4.4.132+-1_armhf.deb
●Changed symbolic links
linaro @ tinkerboard: ~ / cyusbdriver $ sudo rm / lib / modules / 4.4.132 / build
linaro @ tinkerboard: ~ / cyusbdriver $ sudo ln -s / usr / src / linux-headers-4.4.132 + / / lib / modules / 4.4.132 / build
●Build
linaro @ tinkerboard: ~ / cyusbdriver $ make ARCH = arm
make -C / lib / modules / 4.4.132 / build SUBDIRS = / home / linaro / cyusbdriver modules
make [1]: Entering directory'/usr/src/linux-headers-4.4.132+'
CC
Building modules, stage 2.
MODPOST 1 modules
CC /home/linaro/cyusbdriver/cyusb3610.mod.o
LD
make [1]: Leaving directory'/usr/src/linux-headers-4.4.132+'
Regards,
Yashwant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Yashwant,
Customers are in great trouble because they alone cannot solve this problem.
Would you please provide a pre-built environment?
Regards,
ZAKI