I have updated the gasket_core.c by replacing ioremap_nocache as ioremap_cache
Now I get the following error
make[1]: Entering directory '/usr/src/linux-headers-5.8.0-rc6-bpi-r64'
ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Makefile:719: recipe for target 'include/config/auto.conf' failed
make[1]: *** [include/config/auto.conf] Error 1
make[1]: Leaving directory '/usr/src/linux-headers-5.8.0-rc6-bpi-r64'
Makefile:12: recipe for target 'all' failed
make: *** [all] Error 2
on building the 5.8 kernel source on R64 following is the output
root@bpi-iot-ros-ai:/usr/src/linux-headers-5.8.0-rc6-bpi-r64# ./build.sh
do not run as root!
do not run as root!
Build Kernel
Cleanup Kernel Build
needed: make u-boot-tools bc gcc libc6-dev libncurses5-dev ccache libssl-dev
generate branch vars...
getting git branch:
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
kernbranch:,gitbranch:
HOSTLD scripts/kconfig/conf
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
scripts/kconfig/conf.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
scripts/Makefile.host:112: recipe for target 'scripts/kconfig/conf' failed
make[2]: *** [scripts/kconfig/conf] Error 1
Makefile:606: recipe for target 'syncconfig' failed
make[1]: *** [syncconfig] Error 2
Makefile:711: recipe for target 'include/config/auto.conf.cmd' failed
make: *** [include/config/auto.conf.cmd] Error 2
In order to get the config i executed the command ./build.sh importconfig on R64 where I get following error
root@bpi-iot-ros-ai:/usr/src/linux-headers-5.8.0-rc6-bpi-r64# ./build.sh importconfig
do not run as root!
import a defconfig file
Import r64 config
HOSTLD scripts/kconfig/conf
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
/usr/bin/ld: scripts/kconfig/conf.o: Relocations in generic ELF (EM: 62)
scripts/kconfig/conf.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
scripts/Makefile.host:112: recipe for target 'scripts/kconfig/conf' failed
make[1]: *** [scripts/kconfig/conf] Error 1
Makefile:606: recipe for target 'mt7622_bpi-r64_defconfig' failed
make: *** [mt7622_bpi-r64_defconfig] Error 2
In command β./build.sh configβ which setting refers to dma_buf support. Alternatively is it possible to directly provide this setting via some file?
I have managed to resolve the issue. Now I am trying to run the Classification example.
When executing this I get the following error
root@bpi-iot-ros-ai:~/coral/tflite/python/examples/classification# python3 classify_image.py \
> --model models/mobilenet_v2_1.0_224_inat_bird_quant_edgetpu.tflite \
> --labels models/inat_bird_labels.txt \
> --input images/parrot.jpg
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/tflite_runtime/interpreter_wrapper.py", line 14, in swig_import_helper
return importlib.import_module(mname)
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by /usr/local/lib/python3.6/site-packages/tflite_runtime/_interpreter_wrapper.so)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "classify_image.py", line 36, in <module>
import tflite_runtime.interpreter as tflite
File "/usr/local/lib/python3.6/site-packages/tflite_runtime/interpreter.py", line 46, in <module>
from tflite_runtime import interpreter_wrapper as _interpreter_wrapper
File "/usr/local/lib/python3.6/site-packages/tflite_runtime/interpreter_wrapper.py", line 17, in <module>
_interpreter_wrapper = swig_import_helper()
File "/usr/local/lib/python3.6/site-packages/tflite_runtime/interpreter_wrapper.py", line 16, in swig_import_helper
return importlib.import_module('_interpreter_wrapper')
File "/usr/local/lib/python3.6/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_interpreter_wrapper'
He I need to install the GLIBC_2.27 library. If you could help with this