Code Monkey home page Code Monkey logo

google-coral's Introduction

FØCAL

Architecture-aware profiling for computer vision applications.

For each library that your application uses, f0cal provides a set of tracepoints that perform efficient runtime inspection of the call stack. Other profiling tools can time function calls; f0cal can show you the relationship between call latency, data size, scheduler events, memory caching, and much more.

f0cal runs in a development sandbox built on top of python3-venv and conan. Use it inside the sandbox, just like you would any other Python command line tool. The profiler output is a set of pre-baked reports for your CI/CD pipeline. And if you really want to nerd out, you can access the trace data directly with pandas.

Quick start

We've made compiling and configuring the profiling infrastructure as easy as possible by providing a bootstrap script.

From the bootstrap URL (recommended):

VENV_DIR=_venv
curl bootstrap.f0cal.com/master | python3 - -v ${VENV_DIR} git
source ${VENV_DIR}/bin/activate
eval $(f0cal env activate -a) # only do this the first time
conan install f0cal-opencv/4.0.1@f0cal/testing --build=missing
f0cal pr add -- <your-exe> <your-exe-args> <...>
f0cal pr view

From git:

VENV_DIR=_venv
git clone https://github.com/f0cal/f0cal && python3 f0cal/scripts/bootstrap.py -v ${VENV_DIR} local
source ${VENV_DIR}/bin/activate
eval $(f0cal env activate -a) # only do this the first time
conan install f0cal-opencv/4.0.1@f0cal/testing --build=missing
f0cal pr add -- <your-exe> <your-exe-args> <...>
f0cal pr view

Here's a complete example you can run to test the workflow:

conan install f0cal-opencv/4.0.1@f0cal/testing --build=missing
conan install invisible_demo/0.1@f0cal/testing
f0cal pr add -- Invisibility_Cloak
f0cal pr view

Output

Simple terminal output:

                                    Latency (ms)             Throughput (fps)                     
                              count          min   max  mean              max       min       mean
prefix           width height                                                                     
cv::add          640   480     1158         0.02  0.09  0.05         48461.35  10861.18   19247.80
cv::addWeighted  640   480      772         0.20  1.09  0.47          5059.68    919.17    2142.63
cv::bitwise_and  640   480     2316         0.29  1.42  0.74          3456.45    704.70    1354.75
cv::bitwise_not  640   480      772         0.01  0.18  0.04         69132.39   5417.38   25808.52
cv::countNonZero 3     3       1158         0.00  0.05  0.00       1221001.22  18233.54  302150.20
cv::cvtColor     640   480     2050         0.03  8.16  1.16         33158.70    122.55     859.75
cv::dilate       3     3        772         0.06  0.38  0.17         17585.82   2637.09    5760.23
                 640   480     1544         0.06  0.38  0.17         17585.82   2637.09    5760.23
cv::erode        3     3        386         0.07  0.34  0.19         14511.05   2926.26    5187.10
                 640   480      772         0.07  0.34  0.19         14511.05   2926.26    5187.10
cv::inRange      1     4       1544         0.25  1.17  0.80          3983.87    852.97    1253.34
                 640   480      772         0.25  1.17  0.80          3983.87    852.97    1253.34
cv::morphologyEx 3     3        772         0.06  0.74  0.28         16902.17   1343.41    3574.38
                 640   480     1544         0.06  0.74  0.28         16902.17   1343.41    3574.38

HTML output:

HTML table

Library support

To view a complete list of the AI/ML/CV libraries that f0cal provides tracepoints for:

conan search -r f0cal

google-coral's People

Contributors

brianthelion avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

google-coral's Issues

Blink LED Issues

Having trouble running a 'Blink LED' program on the Coral Dev Board

Ran updates

sudo apt-get update
sudo apt-get dist-upgrade

Loaded python 3 & periphery

sudo apt-get install python3-pip
sudo pip3 install python-periphery

Wrote and loaded a Blink LED python program

#! /usr/bin/python
from periphery import GPIO
import time
gpio = GPIO(138, "out")
gpio.write(True)
time.sleep(1)
gpio.write(False)
time.sleep(1)
gpio.write(True)
time.sleep(1)
gpio.close()

Attempted to run the python program

  chmod a+x coralBlinkLED.py
  ./coralBlinkLED.py

Received the following error

ImportError: No module named periphery

pip3 list shows

  python-apt (1.4.0b3)
  python-debian (0.1.30)
  python-debianbts (2.6.1)
  python-periphery (1.1.1)

Reran periphery install

sudo pip3 install python-periphery

Received the following error

Requirement already satisfied: python-periphery in /usr/local/lib/python3.5/dist-packages

Suggestions are appreciated

Install and Run Docker on Google Coral Dev Board

Hello,

I would like to install docker in the Google Coral Dev board. Official support says that they have not tried to do it, but "I can try to do it".

Anyway, there is no "official" or supported way to install docker in the board, mainly because the get.docker.com script does not work on the coral.

Has anyone tried to install it by source? Following the official steps. The first problem is the iptables command, it is not in the coral SO.

Cheers

munmap_chunk(): invalid pointer

I'm running object detection on the edgetpu usb accelerator with the python api at 30Hz on 300x300 RGB. The function that I'm using for inference is:
DetectWithInputTensor(flattened_img,threshold=.1,top_k=10)
Every 30 seconds or so my program crashes with an error related to memory alloc/dealloc, such as:
munmap_chunk(): invalid pointer orfree(): invalid next size (fast)

I grabbed the core dump on one crash and my callstack at the time of the exception was this:

#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
#1  0x00007fc7afcf9801 in __GI_abort () at abort.c:79
#2  0x00007fc7afd42897 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7fc7afe6fb9a "%s\n") at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007fc7afd4990a in malloc_printerr (str=str@entry=0x7fc7afe717a8 "munmap_chunk(): invalid pointer") at malloc.c:5350
#4  0x00007fc7afd50ecc in munmap_chunk (p=0x56e4970) at malloc.c:2846
#5  __GI___libc_free (mem=0x56e4980) at malloc.c:3117
#6  0x00007fc7585d7f0e in ?? () from /usr/lib/x86_64-linux-gnu/libedgetpu.so.1
#7  0x00007fc757eaf738 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#8  0x00007fc757eb389c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#9  0x00007fc757eb52b8 in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#10 0x00007fc757eaf24c in ?? () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#11 0x00007fc757eb0130 in libusb_handle_events_timeout_completed () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#12 0x00007fc757eb022f in libusb_handle_events () from /lib/x86_64-linux-gnu/libusb-1.0.so.0
#13 0x00007fc7585da7fc in ?? () from /usr/lib/x86_64-linux-gnu/libedgetpu.so.1
#14 0x00007fc7afaa16db in start_thread (arg=0x7fc73f2c8700) at pthread_create.c:463
#15 0x00007fc7afdda88f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

how can I go about debugging this further? I'm using edgetpu version '2.11.1'

install.sh says platform is not supported, but it is

I have this linux system (Ubuntu 16.04):

uname -a  

Linux martin-Lenovo-YOGA-910-13IKB 4.9.0-040900-generic #201612111631 SMP Sun Dec 11 21:33:00 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

OS_VERSION=$(uname -v)

#201612111631 SMP Sun Dec 11 21:33:00 UTC 2016

this does not contain "Ubuntu" or "Debian" as asked for in l46 in install.sh

Removing

&& [[ "${OS_VERSION}" == *"Debian"* || "${OS_VERSION}" == *"Ubuntu"* ]]

solves the problem.

Image Regression with EdgeTPU

How can I perform Image Regression on the USB Accelerator with the Python API.

What I tried

I tried using the ClassificationEngine without label but it didn't seem to work.

Any tip would be greatly appreciated.

Can't get my own videos working with edgetpu_demo

What I ran

I just wanted to execute the edgetpu_demo bash script in the Google Coral Board, but replacing the videos that it brings by default (video_device.mp4 and video_stream.mp4) by others of my interest. I get a segmentation fault error that I don't get with the default videos. I used ffmpeg to convert my videos to the .mp4 format (following this). I'm not a ffmpeg expert. Debugging the code, the problem appears in the function info = gstreamer.get_video_info(filename), located at /usr/lib/python3/dist-packages/edgetpuvision/camera.py(67)__init__(). I suspect that I didn't generate the .mp4 file in the way that Coral needs, but I can see the video normally. My video is 640x480 and I just used the streaming demo. I also tried with other resolutions without luck.

What the docs said should happen

This isn't documented, but I think that it should run in the same way as with the default videos.

What actually happened

The program raises a "Segmentation fault".

Can't install updates on Dev Board

Hello!

I have got a problem with updating my Google Coral Dev Board.
With the command:
sudo apt-get update
it won't work. => have a look at my attached file.
Because of this it is not working to install the edgetpu compiler. :/

getting access to _edgetpu_cpp_wrapper_arm64.so

Hello,

Would someone with access to the dev board share the _edgetpu_cpp_wrapper_arm64.so. I only have access to the USB device and I am trying to use it with an ARM64 board but this file is missing and only the 32bit version is present so I cannot use it. The docs say that this is part of the dev board file system but I do not have a a dev board only the USB coral stick.

image

Thanks,

Updating the Python version

One of the difficult parts of working with the devboard is the Python version (3.5) that we've inherited from Debian Stretch. This is a pre-orderedict-everywhere version, which can create a lot of confusion if you're used to kwargs being ordered.

Unfortunately, Debian hasn't provided Stretch backports for newer Python versions. In fact, they've taken python3.6 out of their pool altogether. Not sure what that's about.

Only using an SD card for google-coral

I want only using an SD card for google-coral,but not use the eMMC.
Flash SD card is very easy to save or restore my system.
But now,it only Flash U-Boot on an SD card.

Spoofing the Linux distro and version

One of the annoying things about the dev board is that, while it appears to run a fairly vanilla version of Debian Linux, it reports that it runs Mendel Linux.

This is problematic because some of the Debian tools and packages that would otherwise be compatible with the dev board may balk at being operated on Mendel.

Fortunately there is a workaround for at least some such cases:

The standard way of checking the Linux distro name and version number is a little executable called lsb_release, which itself pulls from a configuration file in /etc.

It's possible to get lsb_release to report something other than "Mendel Linux" using this slick little lsb_release hack.

Error attempting to install driver for Environmental Sensor Board on RPi 2 Model B

On a Raspberry Pi 2 Model B running Raspbian GNU/Linux 9 (stretch).

Using the install instructions here: https://coral.withgoogle.com/docs/enviro-board/get-started/

I am receiving the following error during the last step of:

sudo apt install python3-coral-enviro

The error is:

Error! Bad return status for module build on kernel: 3.6-trunk-rpi (armv7l)
Consult /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log for more information.

The cat of the log file at /var/lib/dkms/coral-enviro-drivers/1.3/build/make.log is:

DKMS make.log for coral-enviro-drivers-1.3 for kernel 3.6-trunk-rpi (armv7l)
Mon May 27 11:45:50 EDT 2019
make: Entering directory '/usr/src/linux-headers-3.6-trunk-rpi'
LD /var/lib/dkms/coral-enviro-drivers/1.3/build/built-in.o
LD /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/built-in.o
LD /var/lib/dkms/coral-enviro-drivers/1.3/build/light/built-in.o
LD /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/built-in.o
LD /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/built-in.o
CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o
CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o
CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o
CC [M] /var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:70:21: error: variable ‘hdc20x0_regmap_config’ has initializer but incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: error: unknown field ‘reg_bits’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:71:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: error: unknown field ‘val_bits’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:72:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: error: unknown field ‘max_register’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:73:2: warning: (near initialization for ‘hdc20x0_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:90:3: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:94:11: error: ‘IIO_HUMIDITYRELATIVE’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:96:3: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:101:3: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_get_measurement’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:122:23: warning: initialization makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_read_raw’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:11: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:212:4: warning: return makes integer from pointer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:213:25: warning: comparison between pointer and integer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:216:4: warning: return makes integer from pointer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: In function ‘hdc20x0_probe’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:268:2: error: implicit declaration of function ‘i2c_check_functionality’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:272:12: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:278:15: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:289:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:313:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:92:11: error: ‘IIO_PRESSURE’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:93:3: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:97:3: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:129:21: error: variable ‘bmp280_regmap_config’ has initializer but incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: error: unknown field ‘reg_bits’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:130:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: error: unknown field ‘val_bits’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:131:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: error: unknown field ‘max_register’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:133:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: error: unknown field ‘cache_type’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:134:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: error: unknown field ‘writeable_reg’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:136:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: error: unknown field ‘volatile_reg’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:137:2: warning: (near initialization for ‘bmp280_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.c:304:26: warning: ‘hdc20x0_driver’ defined but not used [-Wunused-variable]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_read_press’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: error: ‘IIO_VAL_FRACTIONAL’ undeclared (first use in this function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:9: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:277:2: warning: return makes integer from pointer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: In function ‘bmp280_probe’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:355:12: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:370:15: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:371:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:373:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:389:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: unknown field ‘acpi_match_table’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: implicit declaration of function ‘ACPI_PTR’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:407:3: error: (near initialization for ‘bmp280_driver.driver.bus’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int]
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:412:1: warning: parameter names (without types) in function declaration [enabled by default]
cc1: some warnings being treated as errors
/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.c:404:26: warning: ‘bmp280_driver’ defined but not used [-Wunused-variable]
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o' failed
make[4]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity/hdc20x0.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity' failed
make[3]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/humidity] Error 2
make[3]: *** Waiting for unfinished jobs....
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o' failed
make[4]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure/bmp280.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure' failed
make[3]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/pressure] Error 2
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: error: array type has incomplete element type
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:133:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:134:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:135:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:136:5: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:138:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:139:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:140:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:142:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:143:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:144:3: error: (near initialization for ‘ads1015_events’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:145:5: error: ‘IIO_EV_INFO_PERIOD’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:194:38: error: expected declaration specifiers or ‘...’ before string constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:197:3: error: ‘iio_const_attr_integration_time_available’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: error: array type has incomplete element type
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:207:3: error: (near initialization for ‘opt3001_event_spec’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:294:21: error: variable ‘ads1015_regmap_config’ has initializer but incomplete type/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: field name not in record or union initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:208:3: error: (near initialization for ‘opt3001_event_spec’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: error: unknown field ‘reg_bits’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: field name not in record or union initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:3: error: (near initialization for ‘opt3001_event_spec’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:295:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: error: unknown field ‘val_bits’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: ‘IIO_EV_INFO_VALUE’ undeclared here (not in a function)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: excess elements in struct initializer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:296:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: ‘IIO_EV_INFO_ENABLE’ undeclared here (not in a function)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: error: unknown field ‘max_register’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:210:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: excess elements in struct initializer [enabled by default]

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:297:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:209:43: error: invalid operands to binary | (have ‘struct attribute **’ and ‘struct attribute **’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: error: unknown field ‘writeable_reg’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: excess elements in struct initializer [enabled by default]/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:213:3: error: (near initialization for ‘opt3001_event_spec’)

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:298:2: warning: (near initialization for ‘ads1015_regmap_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:214:3: error: (near initialization for ‘opt3001_event_spec’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: field name not in record or union initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:3: error: (near initialization for ‘opt3001_event_spec’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:20: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:216:4: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:215:43: error: invalid operands to binary | (have ‘struct attribute **’ and ‘struct attribute **’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘event_spec’ specified in initializer/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:3: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: ‘IIO_CHAN_INFO_INT_TIME’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: invalid operands to binary << (have ‘long unsigned int’ and ‘struct attribute **’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:302:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:223:54: error: invalid operands to binary | (have ‘long unsigned int’ and ‘struct attribute **’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:224:5: error: (near initialization for ‘opt3001_channels[0].channel’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:225:3: error: (near initialization for ‘opt3001_channels[0].channel2’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:3: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: invalid operands to binary / (have ‘struct attribute **’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:226:22: error: (near initialization for ‘opt3001_channels[0].address’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:303:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_get_lux’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:246:3: error: implicit declaration of function ‘i2c_smbus_write_word_swapped’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:263:2: error: implicit declaration of function ‘i2c_smbus_read_word_swapped’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:304:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:305:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:306:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:307:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:308:2: error: negative width in bit-field ‘’/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_write_raw’:

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:437:11: warning: comparison between pointer and integer [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:453:3: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:452:53: error: parameter 5 (‘info’) has incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:450:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:309:2: error: negative width in bit-field ‘’
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:481:3: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:480:53: error: parameter 5 (‘info’) has incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:478:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:314:2: error: (near initialization for ‘ads1115_channels[0].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:315:2: error: (near initialization for ‘ads1115_channels[1].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:593:2: warning: (near initialization for ‘opt3001_info.read_event_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:594:2: warning: (near initialization for ‘opt3001_info.write_event_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:316:2: error: (near initialization for ‘ads1115_channels[2].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:317:2: error: (near initialization for ‘ads1115_channels[3].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:318:2: error: (near initialization for ‘ads1115_channels[4].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_irq’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:715:6: error: too many arguments to function ‘iio_get_time_ns’
/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:721:6: error: too many arguments to function ‘iio_get_time_ns’
/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘event_spec’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:319:2: error: (near initialization for ‘ads1115_channels[5].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: In function ‘opt3001_probe’:/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘info_mask_separate’ specified in initializer

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:751:6: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:320:2: error: (near initialization for ‘ads1115_channels[6].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:778:2: error: implicit declaration of function ‘devm_iio_device_register’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘info_mask_separate’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘event_spec’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].info_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: unknown field ‘num_event_specs’ specified in initializer
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: invalid operands to binary / (have ‘const struct iio_chan_spec *’ and ‘unsigned int’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:321:2: error: (near initialization for ‘ads1115_channels[7].event_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_set_power_state’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:9: error: implicit declaration of function ‘regmap_get_device’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:328:23: warning: initialization makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_get_adc_result’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c: At top level:/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:357:2: error: implicit declaration of function ‘GENMASK’ [-Werror=implicit-function-declaration]

/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:855:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_trigger_handler’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:411:2: error: implicit declaration of function ‘iio_push_to_buffers_with_timestamp’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:412:9: error: too many arguments to function ‘iio_get_time_ns’
/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_read_raw’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:464:3: error: implicit declaration of function ‘iio_device_claim_direct_mode’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:492:3: error: implicit declaration of function ‘iio_device_release_direct_mode’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:205:36: warning: ‘opt3001_event_spec’ defined but not used [-Wunused-variable]
/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.c:844:26: warning: ‘opt3001_driver’ defined but not used [-Wunused-variable]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: error: ‘IIO_VAL_FRACTIONAL_LOG2’ undeclared (first use in this function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:9: note: each undeclared identifier is reported only once for each function it appears in
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:499:7: warning: assignment makes integer from pointer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:542:2: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:541:52: error: parameter 5 (‘info’) has incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:539:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:582:2: warning: ‘enum iio_event_info’ declared inside parameter list [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:581:52: error: parameter 5 (‘info’) has incomplete type
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:579:12: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_event_handler’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:773:3: error: too many arguments to function ‘iio_get_time_ns’
/usr/src/linux-headers-3.6-trunk-common/include/linux/iio/iio.h:268:19: note: declared here
cc1: some warnings being treated as errors
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:25: error: ‘iio_validate_scan_mask_onehot’ undeclared here (not in a function)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: initializer element is not constant
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:800:2: error: (near initialization for ‘ads1015_buffer_setup_ops.validate_scan_mask’)
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:838:2: warning: (near initialization for ‘ads1015_info.read_event_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:839:2: warning: (near initialization for ‘ads1015_info.write_event_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:848:2: warning: (near initialization for ‘ads1115_info.read_event_config’) [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: initialization from incompatible pointer type [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:849:2: warning: (near initialization for ‘ads1115_info.write_event_config’) [enabled by default]
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o' failed
make[4]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/light/opt3001.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/light' failed
make[3]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/light] Error 2
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: In function ‘ads1015_probe’:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:2: error: implicit declaration of function ‘devm_iio_device_alloc’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:955:12: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:970:16: error: implicit declaration of function ‘of_device_get_match_data’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:2: error: implicit declaration of function ‘devm_regmap_init_i2c’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1003:15: warning: assignment makes pointer from integer without a cast [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1004:2: error: implicit declaration of function ‘IS_ERR’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1006:3: error: implicit declaration of function ‘PTR_ERR’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1009:2: error: implicit declaration of function ‘devm_iio_triggered_buffer_setup’ [-Werror=implicit-function-declaration]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c: At top level:
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: data definition has no type or storage class [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: type defaults to ‘int’ in declaration of ‘module_i2c_driver’ [-Wimplicit-int]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1153:1: warning: parameter names (without types) in function declaration [enabled by default]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:131:36: warning: ‘ads1015_events’ defined but not used [-Wunused-variable]
/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.c:1142:26: warning: ‘ads1015_driver’ defined but not used [-Wunused-variable]
cc1: some warnings being treated as errors
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:313: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o' failed
make[4]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc/ti-ads1015.o] Error 1
/usr/src/linux-headers-3.6-trunk-common/scripts/Makefile.build:443: recipe for target '/var/lib/dkms/coral-enviro-drivers/1.3/build/adc' failed
make[3]: *** [/var/lib/dkms/coral-enviro-drivers/1.3/build/adc] Error 2
/usr/src/linux-headers-3.6-trunk-common/Makefile:1208: recipe for target 'module/var/lib/dkms/coral-enviro-drivers/1.3/build' failed
make[2]: *** [module/var/lib/dkms/coral-enviro-drivers/1.3/build] Error 2
Makefile:130: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make: *** [all] Error 2
make: Leaving directory '/usr/src/linux-headers-3.6-trunk-rpi'

coral-mdt-stable InRelease' doesn't support architecture 'arm64'

What I ran :

Add the repo:

echo "deb https://packages.cloud.google.com/apt coral-mdt-stable main" | sudo tee /etc/apt/sources.list.d/mdt.list

Add Google keys

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

Then install the package:

sudo apt-get update

sudo apt-get install mendel-development-tool

What the docs said should happen

mdt installed

What actually happened

coral-mdt-stable InRelease' doesn't support architecture 'arm64'

Adding a swapfile

Due to lack of device RAM (see #3 ), it's important to be able to use the non-volatile memory (ie, the "disk space") for storing RAM overruns. This is what swap space is for.

Older *nix systems tended to have an entire partition dedicated to this. Modern systems tend to use a file instead.

This tutorial describes how to add a swap file to the Coral dev board.

`screen /dev/ttyUSB0 115200` fails with `[screen is terminating]`

What I ran

When running the Getting Started tutorial, I everything went smoothly up to:

$ dmesg | grep ttyUSB
[11567.500409] usb 1-2: cp210x converter now attached to ttyUSB0
[11567.503236] usb 1-2: cp210x converter now attached to ttyUSB1
[11569.062428] cp210x ttyUSB1: failed set req 0x1e size 4 status: -32
[11569.062443] cp210x ttyUSB1: failed to set baud rate to 300

and then

$ screen /dev/ttyUSB0 115200

What the docs said should happen

"Terminal should go blank."

What actually happened

$ screen /dev/ttyUSB0 115200
[screen is terminating]

Accuracy Temperature/Humidity sensor


name: Accuracy of the HDC2010 - Temperature and Humidity sensor
about: You tried something from Google's docs and it didn't work as expected.
title: ''
labels: ''
assignees: ''


What I ran

I'm running the example code enviro_demo.py provided by the Python3 package on a Raspberry Pi Zero W

What the docs said should happen

It should display the temperature, relative humidity, ambient light and air pressure

What actually happened

It does this, but the the reported temperature is approximately 9 degrees celcius (~20%) too high compared to four other digital thermometers. Meanwhile the relative humidity is about 10 percentage point lower than one other sensor. The air pressure and ambient light sensor are in accordance with the expectation.

Is there anything I can do to calibrate the sensor?

wrong ELF class: ELFCLASS32

i'm running the warrior branch of yocto on the dev board. It has python3.7 installed so I did the trick with copying the swig wrapper from 35m to 37m.

When I try to run anything I get this though

ImportError: /usr/lib/python3.7/site-packages/edgetpu/swig/_edgetpu_cpp_wrapper.
so: wrong ELF class: ELFCLASS32

does this look familiar to anyone? My OS is 64-bit I believe. And, I have the libedgetpu_arm64.so placed in /usr/lib

network issues

  • Doc you were trying to follow:
  • Your host OS:
  • Your Python3 version:

What I ran

Installation went through smoothly. After first reboot I've configured the network (cable and WIFI) - all good. After reboot the box is not reachable and if you log on using serial you can't reach anything on the local network from within the box. The following script help a little to get the network working again, but requires that I'm logged in through serial console:

#!/bin/bash
/bin/ip addr flush dev wlan0
/bin/ip addr flush dev eth0
/sbin/dhclient -v

I'm wondering if anyone else is experience similar issues?

What the docs said should happen

What actually happened

Error when running Inception v3 or v4 on coral dev board

  • Doc you were trying to follow: the official one, I just added the Inception v4 edgetpu model from https://coral.withgoogle.com/models/
  • Your host OS: stock last version
  • Your Python3 version: stock/unchanged

What I ran

python3 classify_server.py --model inception_v4_299_quant_edgetpu.tflite --labels imagenet_labels.txt

What the docs said should happen

Run a server streaming with classification from coral camera feed on port 4664

What actually happened

The streaming server starts, but when I attempt to open it in browser e.g. 192.168.0.104:4664 I get this error in the shell and it terminates:
ERROR:gstglbasememory.c:94:_mem_create_gl: assertion failed: (error != NULL)
Aborted

I get the error only for inception v3 and v4. v1 and v2 are working. Any idea ? I guess it's something about the memory on the device but then again I see that there were benchmarks run on the device (the dev board) with these models.

Is concatination not supported?

I am wondering if concatination in a model is not supported by the Google Edge TPU?

For example when I do something like this in a model

cat = tf.concat([inFirst, inSecond], axis=-1)
output = tf.nn.relu6(cat, name='outputs')

And when I try to compile the .tflite file to an edgetpu file with the edgetpu_compiler it hangs and after a while aborts the compilation with 'Internal compiler error'. The docs say for concatination support limitations

No fused activation function.
If any input is a compile-time constant tensor, there must be only 2 inputs, and this constant tensor must be all zeroes (effectively, a zero-padding op).<

What does this actually mean? To me this sounds like concatinating two tensors in the model is supported.

Issue when installing MDT

What I ran

I followed the getting started document step by step, until I ran install the Mendel Development Tool (MDT) with
pip3 install --user mendel-development-tool

What actually happened

Traceback (most recent call last):
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
        yield saved
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
        exec(code, globals, locals)
      File "/tmp/easy_install-3cyois4_/cffi-1.12.3/setup.py", line 248, in <module>
        "Programming Language :: Python :: Implementation :: PyPy",
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
        run_setup(setup_script, args)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 253, in run_setup
        raise
      File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
        self.gen.throw(type, value, traceback)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
        self.gen.throw(type, value, traceback)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 166, in save_modules
        saved_exc.resume()
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 141, in resume
        six.reraise(type, exc, self._tb)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/_vendor/six.py", line 685, in reraise
        raise value.with_traceback(tb)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 154, in save_modules
        yield saved
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 195, in setup_context
        yield
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 250, in run_setup
        _execfile(setup_script, ns)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/sandbox.py", line 45, in _execfile
        exec(code, globals, locals)
      File "/tmp/easy_install-3cyois4_/cffi-1.12.3/setup.py", line 248, in <module>
        "Programming Language :: Python :: Implementation :: PyPy",
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/__init__.py", line 145, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.5/distutils/core.py", line 163, in setup
        raise SystemExit("error: " + str(msg))
    SystemExit: error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-nhxeh6jk/pynacl/setup.py", line 255, in <module>
        "Programming Language :: Python :: 3.7",
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/__init__.py", line 144, in setup
        _install_setup_requires(attrs)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/__init__.py", line 139, in _install_setup_requires
        dist.fetch_build_eggs(dist.setup_requires)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/dist.py", line 717, in fetch_build_eggs
        replace_conflicting=True,
      File "/home/mendel/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 782, in resolve
        replace_conflicting=replace_conflicting
      File "/home/mendel/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1065, in best_match
        return self.obtain(req, installer)
      File "/home/mendel/.local/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1077, in obtain
        return installer(requirement)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/dist.py", line 784, in fetch_build_egg
        return cmd.easy_install(req)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 705, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/home/mendel/.local/lib/python3.5/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: command 'aarch64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-nhxeh6jk/pynacl/

Then I update the setup-tools

pip3 install --upgrade setuptools
But got the same error message.

Trial Coral USB accelerator example crashed

What I ran

i run two_models_one_tpu.cc file

What actually happened

I get the source code from (https://coral.googlesource.com/edgetpu-native/+/refs/heads/release-chef/edgetpu/cpp/examples), however the executable program met segmentation fault at this code block: "auto input = interpreter->typed_tensor(0);" in ResizeImage function, after traceback:
////////////////////////
TfLiteTensor* tensor(int tensor_index) {
if (tensor_index < 0 ||
static_cast<size_t>(tensor_index) >= context_.tensors_size) { // <-- segmentation in here
return nullptr;
}
////////////////////////
although interpreter->AllocateTensors() return OK

Can you help?

USB Accelerator - C++ API - Segmentation fault

What I ran

Everything is working great with respect to the C++ API besides:

  • edgetpu::EdgeTpuManager::GetSingleton()->EnumerateEdgeTpu()
  • edgetpu::EdgeTpuManager::GetSingleton()->Version()

What the docs said should happen

This is not in the docs but in a header file (https://coral.googlesource.com/edgetpu-native/+/refs/heads/release-chef/libedgetpu/edgetpu.h).

  • List of TPUs
  • String defining the version.

What actually happened

I am getting segmentation fault, maybe those functions are missing in the distributed dynamic libraries (*.so), I tested this with the libedgetpu_x86_64.so library.

Cannot install python libraries in the Coral

  • Doc you were trying to follow: pip3 install XXX
  • Your host OS: ubuntu
  • Your Python3 version: python3.6

What I ran

pip3 install XXX (tensorflow, scipy, opencv-python, etc.)

What the docs said should happen

successfully building

What actually happened

errors, many red errors.

After a few days working, I have successfully run demos on the coral with its camera. It works very well and fast. Now I want to implement my own deep learning code on the coral. I did the following things.

step1. I found the open-pose project is interesting, so I found the pretrained .pd file from https://github.com/ildoonet/tf-pose-estimation. It said the code has already been implemented on Jetxon TX2, so I think it is possible to implement on Coral, maybe with better performance.

step2. I use the tf.contrib.lite.TFliteConverter function to convert the .pb to .tflite, just according to the official guide. And it works well in my Ubuntu system (not working in windows).

step3. I use GStreamer samples from the official website as the template to read the camera and process it.

step4. I revised the template code, so it can estimate pose in real time in my ubuntu system (no GPU). It works.

step5. In this step, I think I could just run the python code in the coral, but I found there are many libraries missing (even the tensorflow !), when I try to install them using pip3 install XXX, I got errors for most libraries. such as opencv-python, scipy, slidingwindow. And the errors are similar, there are many read lines, I am confused about the error but it mentions aarch64-linux-gnu-gcc .

My question is since there are many libraries are not installed in the Coral (including tensorflow) what is the correct way the do the implement on the coral. It will be great if someone can give me some clues about the development process. Like how to generate the demos like the official ones, it seems like they don't use python scripts.

kernel source code for the Coral kit

Does anyone have the kernel source code for the Coral Dev kit? If available, the source code to the entire BSP (rootfs, libaries etc.) would be helpful too...

How to deply my own .Tflite file

  • Doc you were trying to follow: coral tflite file
  • Your host OS: Ubuntu
  • Your Python3 version: python 3.6

Now I have my own complied .tflite model, the file is already passed the Compile your model for the Edge TPU, and visualize.py shows that the operators are all become UINT8 type. Now I'd like to know how to deploy the model and make it run in TPU. The python API in the official website provides two engines, one is edgetpu.classification.engine, and another is edgetpu.detection.engine. But my mode is the open-pose (human pose estimation) model, so the output is different.

Is anyone working on the deployment of your own model? I will appreciate that if someone could give me some clues.

MDT not compatible with ARM64

What I ran

echo "deb https://packages.cloud.google.com/apt coral-mdt-stable main" | sudo tee /etc/apt/sources.list.d/mdt.list

curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -

sudo apt-get update

sudo apt-get install mendel-development-tool

What the docs said should happen

MDT installed

What actually happened

N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://packages.cloud.google.com/apt coral-mdt-stable InRelease' doesn't support architecture 'arm64'

I was trying to make it so I could control the board with my Jetson Nano....apparently its not compatible with the same architecture that the coral board is....

edgetpu example source code doesn't compile with bazel 0.25.0

I used https://coral.googlesource.com/edgetpu to download the edgetpu C++ examples.
This installs bazel 0.25.0 in the docker image (latest version from the bazel debian repo), which introduced a change incompatible with the io_closures used in the workspace.

To work around this, I modified the docker file in tools to install bazel 0.24.1 using the default installer (apt get zip unzip; wget bazel installer, and execute the installer with --prefix=/usr).

Not sure if this is relevant here, if not feel free to close. The edgetpu repo above is referenced in the coral dev board documentation.

Environmental sensor board demo not working

  • Doc you were trying to follow: [https://coral.withgoogle.com/docs/enviro-board/get-started/]
  • Your host OS:
  • Your Python3 version: <3.5.3>

What I ran

sudo python3 enviro_demo.py

What the docs said should happen

The doc says you should be able to see sensor data on the OLED and send data to the cloud. But it seems I am unable to detect the crypto processor on the Environmental Sensor Board.

What actually happened

No crypto detected, using SW.
Traceback (most recent call last):
  File "enviro_demo.py", line 76, in <module>
    main()
  File "enviro_demo.py", line 51, in main
    with CloudIot(args.cloud_config) as cloud:
  File "/usr/lib/python3/dist-packages/coral/cloudiot/core.py", line 84, in __init__
    with open(rsa_cert, 'r') as f:
FileNotFoundError: [Errno 2] No such file or directory: ''

Error when compiling embedded extractor on coral

I am trying to retrain an image classifier on my coral edgeTPU device. Therefore I followed the steps explained on the Coral's "Retrain an image classification model on-device" tutorial:

embedded extractor creation

I used the quantized model from tensorflow.

As a matter of fact, I created an embedding extractor tflite file according to the given example:

tflite_convert \
--output_file=mobilenet_v1_embedding_extractor.tflite \
--graph_def_file=mobilenet_v1_1.0_224_quant_frozen.pb \
--input_arrays=input \
--output_arrays=MobilenetV1/Logits/AvgPool_1a/AvgPool

Edge TPU Model Compiler upload

I got the file mobilenet_v1_embedding_extractor.tflite and uploaded it into the Edge TPU Model Compiler . Unfortunately the compiling process does fail and I get the following error message:


ERROR: Something went wrong. Couldn't compile model.

More details
--------------
Start Time     2019-05-02T14:14:53.309219Z
State          FAILED
Duration       5.963912978s
Type           type.googleapis.com/google.cloud.iot.edgeml.v1beta1.CompileOperationMetadata
Name           operations/compile/16259636989695619987

(The compling works without any errors, when i use the unmodified mobilenet_v1_1.0_224_quant.tflite model.)

From my point of understanding the above mentioned procedure has to be accomplished before the on-device learning with the classification_transfer_learning.py script is executed on the raspberryPi + edgeTPU/ devBoard.

I hope you can give me a hint to solve the problem and thanks in advance.

Coral get's hot and doesn't activate the FAN causes: mmcblk0: error -84 transferring data

I'm simply running a pip3 install face_recognition and after everything is downloaded successfully I'm getting the following error while the Coral Board tries to run the setup.py for the package.

The error is as following,

[ 4654.563095] mmcblk0: retrying using single block read
[ 4664.981981] mmcblk0: error -84 transferring data, sector 9880576, nr 256, cmd response 0x900, card status 0xb00
[ 4671.892082] mmcblk0: error -84 transferring data, sector 9886160, nr 256, cmd response 0x900, card status 0xb00
[ 4675.414611] mmcblk0: error -84 transferring data, sector 2148752, nr 256, cmd response 0x900, card status 0xb00
[ 4693.436395] mmcblk0: error -84 transferring data, sector 2148728, nr 256, cmd response 0x900, card status 0xb00
[ 5098.073260] mmcblk0: error -84 transferring data, sector 2148728, nr 256, cmd response 0x900, card status 0xb00
[ 5151.520954] mmcblk0: error -84 transferring data, sector 2148728, nr 200, cmd response 0x900, card status 0xb00
[ 5168.964275] mmcblk0: error -84 transferring data, sector 9886168, nr 256, cmd response 0x900, card status 0xb00
[ 5187.535621] mmcblk0: error -84 transferring data, sector 2148728, nr 184, cmd response 0x900, card status 0xb00
[ 5188.123174] mmcblk0: error -84 transferring data, sector 9886168, nr 256, cmd response 0x900, card status 0xb00
[ 5203.396207] mmcblk0: error -84 transferring data, sector 9886168, nr 256, cmd response 0x900, card status 0xb00
[ 5223.443948] mmcblk0: error -84 transferring data, sector 2148768, nr 256, cmd response 0x900, card status 0xb00
[ 5229.895087] mmcblk0: error -84 transferring data, sector 9675032, nr 256, cmd response 0x900, card status 0xb00
[ 5239.354025] mmcblk0: error -84 transferring data, sector 2148776, nr 208, cmd response 0x900, card status 0xb00
[ 5603.233123] mmcblk0: error -84 transferring data, sector 2036832, nr 256, cmd response 0x900, card status 0xb00
[ 5694.772034] mmcblk0: error -84 transferring data, sector 2148728, nr 256, cmd response 0x900, card status 0xb00
[ 5706.741601] mmcblk0: error -84 transferring data, sector 9886168, nr 256, cmd response 0x900, card status 0xb00
[ 5715.635896] mmcblk0: error -84 transferring data, sector 2036848, nr 256, cmd response 0x900, card status 0xb00
[ 5719.206999] mmcblk0: error -84 transferring data, sector 2148728, nr 256, cmd response 0x900, card status 0xb00
[ 5735.527722] mmcblk0: error -84 transferring data, sector 2148728, nr 240, cmd response 0x900, card status 0xb00
[ 5740.046372] mmcblk0: error -84 transferring data, sector 2148728, nr 256, cmd response 0x900, card status 0xb00
[ 5742.686479] mmcblk0: error -84 transferring data, sector 9670992, nr 136, cmd response 0x900, card status 0xb00

This continues for hours even days if I don't stop the execution.

I have tried to restart the board it doesn't work.

mmcblk0 is the internal storage of the device.

PI Servo Hat Issues

What I ran

from adafruit_servokit import ServoKit
from time import sleep

kit = ServoKit(channels =16)


while True:
    kit.servo[0].angle = 90
    sleep(2)

What actually happened

The servokit library has support for the Coral GPIO pins and the above code runs with a pi hat attached.
The Issue is if the Coral reboots the i2c device sudo i2cdetect -y 1 shows up as busy "UU".

If I unplug the pi hat before the reboot and plug it back in the hat will be recognized again.

If anyone knows how to free up the i2c device on reboot an have it recognize the hat please let me know

Can't compile OpenCV from source due to lack of device memory

What I ran

$ sudo apt-get install python3-dev python3-venv
$ python -m venv _venv35
$ source _venv35/bin/activate
$ pip install --upgrade pip
$ pip install conan
$ conan install opencv/4.0.1@conan/stable --build=missing

What the docs said should happen

Build completes.

What actually happened

Build fails; out of memory.

Heat and power usage at idle is high

  • Your host OS: coral dev board

What I ran

Nothing, at idle, and while running c++ mobile net sample app

What actually happened

The board heats up while at idle (no other devices attached and wifi off) and power usage is 2.8W, well over what the i.MX 8M spec is, at idle - https://www.nxp.com/docs/en/nxp/application-notes/AN12118.pdf

Fan does not seem to bother much to run either, I could not find any sensor temp config. Turning on the fan manually will cool down - but power usage goes p to 3.5W

While running inference, a small app I wrote in c++/tensorflow lite, with an usb webcamera attached brings the power usage to 5.4 W

Not so much different from odroid XU4 which is octo-core and know power hungry at idle:

odroid xu4 idle: 0.260 A / 3.1 W
odroid xu4 + TPU + Logitech 920 WEBCAM: 0.510 A / 6.1 W - 24.89 Real FPS / 42.90 Inference FPS (23ms) -  load average: 0.52, 0.58, 0.62
odroid xu4 + Logitech 920 WEBCAM: 0.400 A /4.9 W - load average: 0.64, 0.61, 0.62
TPU usage - 1.0W - 1.2 W ?
TPU DEV BOARD idle: 0.250 A / 2.9 W --- 0.220 A / 2.6 W
TPU DEV BOARD + Logitech 920 WEBCAM: 0.460 A / 5.4 W - 23.00 Real FPS / 76.54 Inference FPS (13ms) - load average: 0.87, 0.58, 0.26

I was expecting better performance, power wise at idle, any of you guys had the same issue with heat and power consumption?

Thanks,

Larry

ImportError: No module named 'edgetpu'

What I ran

python3 demo/classify_image.py --model ~/edgetpu_models/mobilenet_v2_1.0_224_quant_edgetpu.tflite --label ~/edgetpu_models/imagenet_labels.txt --image test_data/parrot.jpg

What the docs said should happen

I should see the results of the parrot classification
macaw
Score : 0.99609375

What actually happened

File "demo/classify_image.py", line 3, in
from edgetpu.classification.engine import ClassificationEngine
ImportError: No module named 'edgetpu'

TPU unusable- provided shared library references undefined symbols: _Unwind_SetIP

What I ran

./install.sh
... ...
Reading package lists... Done
Building dependency tree
Reading state information... Done
libc++1 is already the newest version (3.5-2).
libc++abi1 is already the newest version (3.5-2).
libgcc1 is already the newest version (1:6.3.0-18+rpi1+deb9u1).
libunwind8 is already the newest version (1.1-4.1).
libusb-1.0-0 is already the newest version (2:1.0.21-1).
python3-numpy is already the newest version (1:1.12.1-3).
python3-pil is already the newest version (4.0.0-4).
python3-pip is already the newest version (9.0.1-2+rpt2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Done.
Installing device rule file [/etc/udev/rules.d/99-edgetpu-accelerator.rules]...
File already exists. Replacing it...
Done.
Installing Edge TPU runtime library [/usr/lib/arm-linux-gnueabihf/libedgetpu.so.1.0]...
File already exists. Replacing it...
Done.
Installing Edge TPU Python API...
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: edgetpu==2.11.1 from file:///home/pi/edgetpu_api/edgetpu-2.11.1-py3-none-any.whl in /usr/local/lib/python3.5/dist-packages (2.11.1)

(openvino) pi@navio:~/edgetpu_api $ python
Python 3.5.3 (default, Sep 27 2018, 17:25:39)
[GCC 6.3.0 20170516] on linux
Type "help", "copyright", "credits" or "license" for more information.

from tflite_runtime.interpreter import load_delegate
load_delegate('libedgetpu.so.1.0')
Traceback (most recent call last):
File "", line 1, in
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/tflite_runtime/interpreter.py", line 165, in load_delegate
delegate = Delegate(library, options)
File "/home/pi/.virtualenvs/openvino/lib/python3.5/site-packages/tflite_runtime/interpreter.py", line 89, in init
self._library = ctypes.pydll.LoadLibrary(library)
File "/usr/lib/python3.5/ctypes/init.py", line 425, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.5/ctypes/init.py", line 347, in init
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/arm-linux-gnueabihf/libc++abi.so.1: undefined symbol: _Unwind_SetIP

What the docs said should happen

libedgetpu.so.1.0 should have loaded to be used when creating the Interpreter, e.g.

interpreter = Interpreter(model_path=model_path,experimental_delegates=[load_delegate('libedgetpu.so.1.0')])

What actually happened

The provided shared library references undefined symbols, presumably, that were expected in these versions of libunwind8 and libc++abi1. See below.

ldd -r /usr/lib/arm-linux-gnueabihf/libc++abi.so.1
linux-vdso.so.1 (0x7eff5000)
/usr/lib/arm-linux-gnueabihf/libarmmem.so (0x76e78000)
libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0x76e38000)
libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0x76cf9000)
/lib/ld-linux-armhf.so.3 (0x76ee7000)
undefined symbol: _Unwind_GetRegionStart (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_RaiseException (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_SetIP (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_GetLanguageSpecificData (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_GetIP (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_SetGR (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)
undefined symbol: _Unwind_DeleteException (/usr/lib/arm-linux-gnueabihf/libc++abi.so.1)

installation fails on new Buster release - dependency problem

cat /proc/version
Linux version 4.19.50+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #896 Thu Jun 20 16:09:52 BST 2019

Raspbian Buster with desktop
Image with desktop based on Debian Buster
Version:June 2019
Release date:2019-06-20
Kernel version:4.19

  • Your Python3 version:
python3 --version
Python 3.7.3

What I ran

echo "deb https://packages.cloud.google.com/apt coral-cloud-stable main" | sudo tee /etc/apt/sources.list.d/coral-cloud.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt update
sudo apt upgrade
pi@pizerow:~ $ sudo apt install python3-coral-enviro

What the docs said should happen

(package installed ;)

What actually happened

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 python3-coral-enviro : Depends: python3-coral-cloudiot but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

This seems unreported yet, caused by OS new release.

Issues while Flashing the Board

Hi,
Doc you were trying to follow:
I tried following the procedure given in the coral webpage.
https://coral.withgoogle.com/docs/dev-board/get-started/#requirements

Your host OS:
macOS Mojave 10.14.6

Your Python3 version:
Python 3.6.1

What I ran
It went through step 6 until "Download and flash the system image". When i execute bash flash.sh, it always never exits out of this step. I don't get a prompt to see the username and password.

What the docs said should happen
It said that the Flashing process will print several output.
It takes about 5 minutes to complete. When it's done, the system reboots and the console prompts you to login. (The login prompt might be obscured by some logs, so press Enter when you notice the logging has stopped.)

What actually happened
When bash flash.sh gets executed, It reports Writing "bootloader 0" DONE!
But request 000000007bf2ec40 was not queued to ep1in-bulk
It never reaches Step7.

Screenshot 2019-08-25 at 22 40 39

Using an SD card for extra disk space

The Coral dev board comes with 16GB 8GB of non-volatile storage in the form of an eMMC. This isn't very much. If you want to expand the device's storage, you can add disk space via either an SD card or the USB3 slot.

If you want the additional storage to be "transparent" -- ie, so you don't have to change the way you do things on the device in order to use it -- then you should mount a part of the filesystem on it that's (1) frequently responsible for taking up disk space and for which (2) super fast access isn't super important. For me, /home fit the bill.

The rest of the tutorial describes how to format an SD card as ext4, find its device ID, and mount /home to that device without losing the existing home directories (if any).

Trying to install Coral Enviro Board to a Pi Zero W

  • #Purchased from Mouser.com 08-05-2019
  • Doc you were trying to follow: The Instructions printed in the package state " To get started, follow the instructions at g.co/coral/setup it does nothing !!

  • Your host OS: Debian Strech April release updated and upgraded

  • Your Python3 version: python 3.4

What I ran

from https://coral.withgoogle.com/docs/enviro-board/get-started/

python3 enviro_demo.py

What actually happened

Screen shows

Temp : nan C
RH : nan %
Light : nan Lux
Pressure: kPa

no numbers

On the terminal window I got this

pi@raspberrypizerow10:~ $ python3 enviro_demo.py
No valid config provided (reading cloud_config.ini).
Cloud IoT is disabled.

Running this results that all sensors are connected and registering their address

pi@raspberrypizerow10:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: 40 -- -- -- -- 45 -- -- -- 49 -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- 76 --

RuntimeError: Error in device opening

What I Ran

I installed and ran example files in https://coral.withgoogle.com/docs/accelerator/get-started

$ python3 classify_image.py \
--model ~/Downloads/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--label ~/Downloads/inat_bird_labels.txt \
--image ~/Downloads/parrot.jpg

What the docs said should happen

You should see results like this:

---------------------------
Ara macao (Scarlet Macaw)
Score :  0.761719

What actually happend

Traceback (most recent call last):
  File "classify_image.py", line 44, in <module>
    main()
  File "classify_image.py", line 34, in main
    engine = ClassificationEngine(args.model)
  File "/home/nvidia/Downloads/virtualenv/lib/python3.5/site-packages/edgetpu/classification/engine.py", line 47, in __init__
    super().__init__(model_path)
  File "/home/nvidia/Downloads/virtualenv/lib/python3.5/site-packages/edgetpu/basic/basic_engine.py", line 40, in __init__
    self._engine = BasicEnginePythonWrapper.CreateFromFile(model_path)
RuntimeError: Error in device opening (/sys/bus/usb/devices/1-1)!

ModuleNotFoundError: No module named '_edgetpu_cpp_wrapper' on ubuntu 19.04 with python 3.7

What I ran

$ python3 classify_image.py \
--model ~/Downloads/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
--label ~/Downloads/inat_bird_labels.txt \
--image ~/Downloads/parrot.jpg

What the docs said should happen

Ara macao (Scarlet Macaw)
Score :  0.761719

What actually happened

Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 18, in swig_import_helper
    fp, pathname, description = imp.find_module('_edgetpu_cpp_wrapper', [dirname(__file__)])
  File "/usr/lib/python3.7/imp.py", line 296, in find_module
    raise ImportError(_ERR_MSG.format(name), name=name)
ImportError: No module named '_edgetpu_cpp_wrapper'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "classify_image.py", line 19, in <module>
    from edgetpu.classification.engine import ClassificationEngine
  File "/usr/local/lib/python3.7/dist-packages/edgetpu/classification/engine.py", line 17, in <module>
    from edgetpu.basic.basic_engine import BasicEngine
  File "/usr/local/lib/python3.7/dist-packages/edgetpu/basic/basic_engine.py", line 15, in <module>
    from edgetpu.swig.edgetpu_cpp_wrapper import BasicEngine
  File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 28, in <module>
    _edgetpu_cpp_wrapper = swig_import_helper()
  File "/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py", line 20, in swig_import_helper
    import _edgetpu_cpp_wrapper
ModuleNotFoundError: No module named '_edgetpu_cpp_wrapper'

I'm guessing this is because there is no 37m-x86_64 build...

$ find /usr/local/ -name \*edgetpu\*
/usr/local/lib/python3.7/dist-packages/edgetpu-1.9.2.dist-info
/usr/local/lib/python3.7/dist-packages/edgetpu
/usr/local/lib/python3.7/dist-packages/edgetpu/basic/edgetpu_utils.py
/usr/local/lib/python3.7/dist-packages/edgetpu/basic/__pycache__/edgetpu_utils.cpython-37.pyc
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.cpython-35m-arm-linux-gnueabihf.so
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/__pycache__/edgetpu_cpp_wrapper.cpython-37.pyc
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/edgetpu_cpp_wrapper.py
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.cpython-35m-x86_64-linux-gnu.so
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.cpython-36m-x86_64-linux-gnu.so
/usr/local/lib/python3.7/dist-packages/edgetpu/swig/_edgetpu_cpp_wrapper.cpython-35m-aarch64-linux-gnu.so

README.md is misleading

Under OS Notes is the following:

Given the observations below (primarily the libc version) the OS appears to be an upgraded-to-testing version of Debian 9.0 (Stretch). This knowledge allows us to access Debian sources without much concern.

This is actually incorrect. Debian is based upon stock Debian Stretch -- not testing. Source: I'm the techlead on Mendel. 😄

Edit: Google Coral Dev board fixes

Edit: Read below

Board is being returned.

Installed, installed latest updates. Repeated several times between these issues.

/sys/class/thermal/thermal_zone0/trip_point_4_temp has a default temp set of 65000 degrees before the fan turns on. Changes to this file doesn't persist between reboots.

Wifi needs to be manually reconnected every single time.

Compiling C code results in a hard lock after a few seconds of compiling. #49

libtool: compile: g++ -DHAVE_CONFIG_H -I. -I./src -I./src -DKJ_HEADER_WARNINGS -DCAPNP_HEADER_WARNINGS -DCAPNP_INCLUDE_DIR="/usr/local/include" -pthread -fPIC -pthread -MT src/capnp/compiler/lexer.lo -MD -MP -MF src/capnp/compiler/.deps/lexer.Tpo -c src/capnp/compiler/lexer.c++ -o src/capnp/compiler/lexer.o >/dev/null 2>&1
[ 726.210412] mmcblk0: error -84 transferring data, sector 2036928, nr 256, cmd response 0x900, card status 0xb00

Google's apt repo servers are slow af and often timeout.

Buyer beware.

`fastboot devices` returns Error

What I ran

fastboot devices

What the docs said should happen

1b0741d6f0609912 fastboot

What actually happened

ERROR: Couldn't create a device interface iterator: (e00002bd)

Sorry if this is a duplicate. It seems like this issue is being experienced by others on StackExchange (https://android.stackexchange.com/questions/209725/fastboot-devices-command-doesnt-work-after-macos-high-sierra-10-14-4-upgrade/212043). If you can confirm or if you have advice, that would be greatly appreciated.

USB camera composite device not enumerating

Hi, I am trying to plug in e-con Systems See3CAM_130 USB camera in USB-3.0 A port of Google Coral development kit.
When I plug in, the uvc video device gets enumerated properly, and device node /dev/video0 is created. (I haven't plugged in any MIPI or USB cameras)
But the HID composite interface which will enumerate alongside the UVC simply doesnot enumerate.
Is there any way to enable this in Coral BSP?
Thanks in Advance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.