Open EricXh opened 3 years ago
@EricXh can you try these instructions to install gasket-dkms
@hjonnala This I have done, using the USB version on this device all the time. But I cannot install the gasket-dkms for the PCIe version!
can you try sudo apt-get install gasket-dkms
instead of sudo apt install gasket-dkms
tried this also, same effect.
can you please check your internet connection and try sudo apt-get update
and install the drivers. I can see some users were able to install https://github.com/google-coral/edgetpu/issues/339 gaskt-dkms on nvidia jetson nano.
echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install gasket-dkms
Hi, I have internet connection, I use it all the day on the device because I code on it. The list is boring, I wrote I did that all and I have the USB coral TPU running on this decice and you see my content of my coral-edgetpu.list in my first post...
I also see this posts, but for me it is not working, thats why I am asking here. Maybe there is somthing broken on google side at the moment?
Hmm.. I have just tried on Docker Container and it is working.
hemanth@e9c2e19ce40a:/$ echo "deb https://packages.cloud.google.com/apt coral-edgetpu-stable main" | sudo tee /etc/apt/sources.list.d/coral-edgetpu.list
deb https://packages.cloud.google.com/apt coral-edgetpu-stable main
hemanth@e9c2e19ce40a:/$ curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2537 100 2537 0 0 11337 0 --:--:-- --:--:-- --:--:-- 11376
OK
hemanth@e9c2e19ce40a:/$ sudo apt-get update
Ign:1 http://deb.debian.org/debian stretch InRelease
Hit:2 http://security.debian.org/debian-security stretch/updates InRelease
Hit:3 http://deb.debian.org/debian stretch-updates InRelease
Hit:4 http://deb.debian.org/debian stretch Release
Get:6 https://packages.cloud.google.com/apt coral-edgetpu-stable InRelease [6722 B]
Ign:7 https://packages.cloud.google.com/apt coral-edgetpu-stable/main amd64 Packages
Ign:8 https://packages.cloud.google.com/apt coral-edgetpu-stable/main arm64 Packages
Ign:9 https://packages.cloud.google.com/apt coral-edgetpu-stable/main armhf Packages
Get:7 https://packages.cloud.google.com/apt coral-edgetpu-stable/main amd64 Packages [2327 B]
Get:8 https://packages.cloud.google.com/apt coral-edgetpu-stable/main arm64 Packages [2169 B]
Get:9 https://packages.cloud.google.com/apt coral-edgetpu-stable/main armhf Packages [2166 B]
Fetched 13.4 kB in 4s (3071 B/s)
Reading package lists... Done
hemanthreddyj@e9c2e19ce40a:/$ sudo apt-get install gasket-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
dkms kmod linux-compiler-gcc-6-x86 linux-headers-4.9.0-16-amd64 linux-headers-4.9.0-16-common linux-headers-amd64 linux-kbuild-4.9
Suggested packages:
python3-apport menu
The following NEW packages will be installed:
dkms gasket-dkms kmod linux-compiler-gcc-6-x86 linux-headers-4.9.0-16-amd64 linux-headers-4.9.0-16-common linux-headers-amd64 linux-kbuild-4.9
0 upgraded, 8 newly installed, 0 to remove and 4 not upgraded.
Need to get 10.3 MB of archives.
After this operation, 53.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://security.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-16-common all 4.9.272-2 [7834 kB]
Get:2 http://deb.debian.org/debian stretch/main amd64 kmod amd64 23-2 [85.7 kB]
Get:3 http://deb.debian.org/debian stretch/main amd64 dkms all 2.3-2 [74.8 kB]
Get:4 https://packages.cloud.google.com/apt coral-edgetpu-stable/main amd64 gasket-dkms all 1.0-17 [47.9 kB]
Get:5 http://security.debian.org/debian-security stretch/updates/main amd64 linux-kbuild-4.9 amd64 4.9.272-2 [979 kB]
Get:6 http://security.debian.org/debian-security stretch/updates/main amd64 linux-compiler-gcc-6-x86 amd64 4.9.272-2 [772 kB]
Get:7 http://security.debian.org/debian-security stretch/updates/main amd64 linux-headers-4.9.0-16-amd64 amd64 4.9.272-2 [450 kB]
Get:8 http://security.debian.org/debian-security stretch/updates/main amd64 linux-headers-amd64 amd64 4.9+80+deb9u14 [6234 B]
Fetched 10.3 MB in 0s (14.3 MB/s)
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 8.)
debconf: falling back to frontend: Readline
Selecting previously unselected package kmod.
(Reading database ... 35255 files and directories currently installed.)
Preparing to unpack .../0-kmod_23-2_amd64.deb ...
Unpacking kmod (23-2) ...
Selecting previously unselected package dkms.
Preparing to unpack .../1-dkms_2.3-2_all.deb ...
Unpacking dkms (2.3-2) ...
Selecting previously unselected package linux-headers-4.9.0-16-common.
Preparing to unpack .../2-linux-headers-4.9.0-16-common_4.9.272-2_all.deb ...
Unpacking linux-headers-4.9.0-16-common (4.9.272-2) ...
Selecting previously unselected package linux-kbuild-4.9.
Preparing to unpack .../3-linux-kbuild-4.9_4.9.272-2_amd64.deb ...
Unpacking linux-kbuild-4.9 (4.9.272-2) ...
Selecting previously unselected package linux-compiler-gcc-6-x86.
Preparing to unpack .../4-linux-compiler-gcc-6-x86_4.9.272-2_amd64.deb ...
Unpacking linux-compiler-gcc-6-x86 (4.9.272-2) ...
Selecting previously unselected package linux-headers-4.9.0-16-amd64.
Preparing to unpack .../5-linux-headers-4.9.0-16-amd64_4.9.272-2_amd64.deb ...
Unpacking linux-headers-4.9.0-16-amd64 (4.9.272-2) ...
Selecting previously unselected package linux-headers-amd64.
Preparing to unpack .../6-linux-headers-amd64_4.9+80+deb9u14_amd64.deb ...
Unpacking linux-headers-amd64 (4.9+80+deb9u14) ...
Selecting previously unselected package gasket-dkms.
Preparing to unpack .../7-gasket-dkms_1.0-17_all.deb ...
Unpacking gasket-dkms (1.0-17) ...
Setting up kmod (23-2) ...
Setting up linux-compiler-gcc-6-x86 (4.9.272-2) ...
Setting up linux-headers-4.9.0-16-common (4.9.272-2) ...
Setting up dkms (2.3-2) ...
Setting up linux-kbuild-4.9 (4.9.272-2) ...
Processing triggers for systemd (232-25+deb9u13) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up linux-headers-4.9.0-16-amd64 (4.9.272-2) ...
Setting up linux-headers-amd64 (4.9+80+deb9u14) ...
Setting up gasket-dkms (1.0-17) ...
Loading new gasket-1.0 DKMS files...
It is likely that 5.10.46-4rodete1-amd64 belongs to a chroot's host
Building for 4.9.0-16-amd64
Building initial module for 4.9.0-16-amd64
Done.
gasket:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-16-amd64/updates/dkms/
apex.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/4.9.0-16-amd64/updates/dkms/
depmod...
DKMS: install completed.
Hmm, you did this on an X86 machine, but mine is an arm device. Maybe there is an difference because not the same files are downloaded.
BR Erich
Hey Erich, i had the same problem on several machine (see my post too). I want to use the M.2 - Module on RADXA, Raspberry, etc. (all ARM64 - Architecture), but the software told me, that there are no AARCH64 - Headers found. I thin, there is a problem beside implementing ARM - Architecture, or?
Best regards from Berlin
Z. Matthias
@EricXh are you able to install gasket-dkms
on nvidia jetson nano now? If not does any other packages working for you?
@hjonnala now its even wore. I cannot install anything from the coral packages. I removed a working libedgetpu1-max and tried to install it new, but this is not working anymore (was working previously) and I used the USB Coral tpu on this device.
`sudo apt-get install libedgetpu1-max
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libedgetpu1-max is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'libedgetpu1-max' has no installation candidate `
BR Erich
@EricXh I can see the packages here not sure why you are not able to install any of them.
@EricXh can you try the below commands and try to install the packages.
sudo apt-get update
sudo apt-get dist-upgrade
I deleted the coral-edgetpu.list file and restarted with all steps and now I can install the gasket and the libedgetpu! Try to do the other steps and will check it in my python app.
When I type
lsmod | grep apex
I get no output, so no apex loaded.
I made the rule and added the current user to the apex group.
@EricXh Please share the output of:
@manoj7410
ait@ait-desktop:~$ modinfo gasket modinfo: ERROR: Module gasket not found. ait@ait-desktop:~$ modinfo apex modinfo: ERROR: Module apex not found.
BR Erich
sudo modprobe apex modprobe: FATAL: Module apex not found in directory /lib/modules/4.9.253-tegra
lspci -nn | grep 089a 01:00.0 Non-VGA unclassified device [0000]: Device [1ac1:089a]
@EricXh Did you try to compile the kernel again with our gasket module which is available at https://coral.googlesource.com/linux-imx/+/refs/heads/dkms/drivers/staging/gasket ?
@manoj7410 No, this I do not want to do because I use an nvidia nano board with custom mainboard with custom camera sensor drivers - so I do not have all needed sources to do this.
@EricXh Did you check if your kernel 4.9.253-tegra comes with default apex/gasket drivers ?
Hmm, how do I check this?
@EricXh On a fresh install try these commands:
and see if you get a pre-installed version of apex or gasket ?
@manoj7410 Did a fresh install. The grep commands did not show any answer and the modinfo both module xxx not found.
Description
Hi, I use the USB version for longer time now and want to change to the PCIe verision. But I struggle to instell the gasket-dkms:
ait@ait-desktop:~$ sudo apt install gasket-dkms [sudo] password for ait: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package gasket-dkms
In the coral-edgetpu.list there is:
deb https://packages.cloud.google.com/apt coral-edgetpu-stable main
and my system is:
uname -r 4.9.253-tegra
BR Erich
Click to expand!
### Issue Type Build/Install ### Operating System Linux ### Coral Device Mini PCIe ### Other Devices _No response_ ### Programming Language Python 3.6 ### Relevant Log Output _No response_