Open VinQbator opened 5 years ago
I too cannot get vision bonnet to work on RPI strech lite (updated os and kernel, rpi zero) I believe HACKING.md needs refactoring
regarding your specific issue, you can build aiy-vision-dkms if you run: sudo apt-get --purge remove linux-headers-3.6-trunk-common
-> according to: https://stackoverflow.com/questions/54450251/build-of-aiy-vision-dkms-fails
personally I've tried and successfully built aiy-vision-dkms, yet still cannot get "Myriad ready" in dmesg
I had a similar issue with my Voice kit. I found a script that will revert the kernel to 4.14.98 (last version I had installed that worked). After reverting the kernel version and rebooting you should be able to either do a dpkg-reconfigure on the installed modules, or just reinstall them.
https://gist.github.com/psyke83/cb3ca50561480809c246f42727cb7cf2
after rpi kernel upgrade just rebuild of dkms packages is enough for me to get AIY back working (see workaround in https://github.com/google/aiyprojects-raspbian/issues/570 )
scratch that, I see the same issue with newest kernel (error: implicit declarat ion of function ‘i2c_lock_adapter’ [-Werror=implicit-function-declaration]
) , I have a bad feeling the code for drivers needs upgrade ... @dmitriykovalev help, please?
This project is in real need of a new disk image with updated kernel, etc. It has been nearly 8 months since the last working disk image release. Is the AIY project dead?
had a quick look and the patches are not that hard to do basically for /var/lib/dkms/aiy/1.1/ apply https://github.com/raspberrypi/linux/commit/97623c0a80a605ef3fae337081ed008796bf8cc2#diff-3ec871a8e75c9ea85161805bbdee22a1 and https://github.com/raspberrypi/linux/commit/3f3a89e1d7c31558c070692241e3d6146d2cf1bf
the harder part is to update google deb repos for everybody to get the fixes
I got it working with kernel 4.19.57.
There are two files you'll need to edit (note that you'll need to use sudo
to edit them). First one:
/usr/src/aiy-1.1/aiy/iio/adc/aiy-adc.c
(note that /usr/src/aiy-1.1
is where the source code is copied from when the module is being built).
Remove this line:
.driver_module = THIS_MODULE,
(line 138, I presume).
Second one:
/usr/src/aiy-1.1/aiy/mfd/aiy-io-i2c.c
Replace two occurrences (in aiy_io_reset
and in aiy_io_update_firmware
) of
i2c_lock_adapter(i2c->adapter);
with
i2c_lock_bus(i2c->adapter, I2C_LOCK_ROOT_ADAPTER);
and replace two occurrences of
i2c_unlock_adapter(i2c->adapter);
with
i2c_unlock_bus(i2c->adapter, I2C_LOCK_ROOT_ADAPTER);
Then run the following command:
sudo dkms install aiy/1.1
Reboot, and Bob's your uncle. Literally five lines of code to change. :)
@ginkage will you be able to update deb packages too? ;-) Or know someone who can patch them and build and upload to googles repo?
I have updated and rebuilt the package. You can get it here: https://drive.google.com/open?id=1s6ru6Clz0pmX0VS3BOW9XJoqKE7E8y12
I have updated and rebuilt the package. You can get it here: https://drive.google.com/open?id=1s6ru6Clz0pmX0VS3BOW9XJoqKE7E8y12
@CEBasile where is the source code all of the AIY debian packages? It's not in this project, right?
If it were here we could submit a pull request with the fix.
@HeatfanJohn This is just the python framework. The drivers are another repo. Look at HACKING.md
@CEBasile I see the reference to add the AIY vision package repo and I downloaded https://dl.google.com/aiyprojects/deb/dists/stable/Release to see the Debian release information:
Origin: Google LLC
Label: Google
Suite: stable
Codename: stable
Version: 1.0
Date: Fri, 19 Apr 2019 18:38:23 UTC
Architectures: armhf
Components: main
Description: Google AIY software repository
MD5Sum:
7206381e7c543d5beb3272c52f6dff97 9183 main/binary-armhf/Packages
7e0f0653397e626c7840c148722ea824 2840 main/binary-armhf/Packages.gz
a0001a8b1dbdcd88b01d07009f8c3d8f 142 main/binary-armhf/Release
SHA1:
01e66fff79dd958f5924f9d8057b16d1af9c3690 9183 main/binary-armhf/Packages
83e85ca2e0f73c88c912eae473c6bfba22b3e726 2840 main/binary-armhf/Packages.gz
bd6f1274a87b14ffcd4b110e1a3dc0cb60cf38eb 142 main/binary-armhf/Release
SHA256:
5a01c5d0b68d0480c24daeafa42758e49eaafe6a009eebf4a4dd094caaf2fb23 9183 main/binary-armhf/Packages
91a11fca702324b79486edef9cefe0b53e62c0eee69dfed7f0207e3a5ca4f913 2840 main/binary-armhf/Packages.gz
5e600eb82427bc30bf6b1abdca202eb0413c1e41247d1891ef57a4c23bc55806 142 main/binary-armhf/Release
And then downloaded the package information https://dl.google.com/aiyprojects/deb/dists/stable/main/binary-armhf/Packages
But that only shows the deb
locations. Where / how do you find the source code? Or is the source code included in the deb
files?
The deb
files do contain the source. I guess that you downloaded the deb
file in question, unpacked it, updated the source and re-packaged the deb
with the update.
Why doesn't Google just put the deb
source on Github?
pi@aiyvision:~ $ dpkg -c aiy-vision-dkms_1.1-1_all.deb
drwxr-xr-x root/root 0 2018-08-30 18:28 ./
drwxr-xr-x root/root 0 2018-08-30 18:28 ./lib/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./lib/udev/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./lib/udev/rules.d/
-rw-r--r-- root/root 63 2018-08-30 18:28 ./lib/udev/rules.d/60-aiy-vision-dkms.rules
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/share/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/share/doc/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/share/doc/aiy-vision-dkms/
-rw-r--r-- root/root 165 2018-08-30 18:28 ./usr/share/doc/aiy-vision-dkms/changelog.Debian.gz
-rw-r--r-- root/root 249 2018-08-30 18:28 ./usr/share/doc/aiy-vision-dkms/copyright
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/src/
drwxr-xr-x root/root 0 2018-08-30 18:28 ./usr/src/aiy-vision-1.1/
-rw-r--r-- root/root 241 2018-08-30 18:28 ./usr/src/aiy-vision-1.1/Makefile
-rw-r--r-- root/root 45752 2018-08-30 18:28 ./usr/src/aiy-vision-1.1/aiy-vision.c
-rw-r--r-- root/root 686 2018-08-30 18:28 ./usr/src/aiy-vision-1.1/aiy-vision.h
-rw-r--r-- root/root 159 2018-08-30 18:28 ./usr/src/aiy-vision-1.1/dkms.conf
sudo dkms install aiy/1.1
Tried doing that
Kernel preparation unnecessary for this kernel. Skipping... Building module: cleaning build area... make -j4 KERNELRELEASE=4.19.58-v7l+ -C /lib/modules/4.19.58-v7l+/build M=/var/lib/dkms/aiy/1.1/build....(bad exit status: 2) Error! Bad return status for module build on kernel: 4.19.58-v7l+ (armv7l) Consult /var/lib/dkms/aiy/1.1/build/make.log for more information.
no go there
Just wanted to let everyone know that downgrading to kernel 4.7 fixes these issues. Currently working on fixing this for kernel 4.19.66
Just got the AIY-vision kit and it worked fine at first. For some reason I did apt update and apt upgrade and after that it has been a long day of debugging, but nothing helps.
When trying to run any vision scripts I'm getting
I've uninstalled all aiy-* packages and reinstalled according to HACKING.md but still the same issue.
I think the kernel upgrade messed up the system. Is there any other way besides flashing the SD card?
When trying to install aiy-vision-dkms, I'm getting the following error.