ikwzm / udmabuf

User space mappable dma buffer device driver for Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Selected processor does not support 'isb' in ARM mode

alexis031182 opened this issue · comments

Hello,

I try to build module in my embedded device Achilles Arria 10, but receive error:

root@achilles:~/udmabuf-master# make
make -C /usr/src/kernel ARCH=arm CROSS_COMPILE= M=/home/root/udmabuf-master obj-m=u-dma-buf.o u-dma-buf.ko
make[1]: Entering directory '/lib/modules/5.4.84-altera/build'
CC [M] /home/root/udmabuf-master/u-dma-buf.o
/tmp/cchoRnuB.s: Assembler messages:
/tmp/cchoRnuB.s:6912: Error: selected processor does not support isb ' in ARM mode /tmp/cchoRnuB.s:6963: Error: selected processor does not support isb ' in ARM mode
/tmp/cchoRnuB.s:8182: Error: selected processor does not support isb ' in ARM mode /tmp/cchoRnuB.s:8232: Error: selected processor does not support isb ' in ARM mode
/tmp/cchoRnuB.s:8868: Error: selected processor does not support isb ' in ARM mode /tmp/cchoRnuB.s:8921: Error: selected processor does not support isb ' in ARM mode
make[2]: *** [scripts/Makefile.build:266: /home/root/udmabuf-master/u-dma-buf.o] Error 1
make[1]: *** [Makefile:1732: /home/root/udmabuf-master] Error 2
make[1]: Leaving directory '/lib/modules/5.4.84-altera/build'
make: *** [Makefile:36: all] Error 2

How to fix this error?

root@achilles:~/udmabuf-master# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/arm-poky-linux-gnueabi/9.3.0/lto-wrapper
Target: arm-poky-linux-gnueabi
Configured with: ../../../../../../work-shared/gcc-9.3.0-r0/gcc-9.3.0/configure --build=x86_64-linux --host=arm-poky-linux-gnueabi --target=arm-poky-linux-gnueabi --prefix=/usr --exec_prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --libexecdir=/usr/libexec --datadir=/usr/share --sysconfdir=/etc --sharedstatedir=/com --localstatedir=/var --libdir=/usr/lib --includedir=/usr/include --oldincludedir=/usr/include --infodir=/usr/share/info --mandir=/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/ --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-default-pie --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --disable-install-libiberty --enable-lto --disable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-float=hard --with-build-sysroot=/ --disable-static --enable-nls --with-glibc-version=2.28 --enable-initfini-array --with-arch=armv7-a+fp
Thread model: posix
gcc version 9.3.0 (GCC)

Thank you.

Thank you for the issue.

I’m sorry I have never encountered such a problem.
Is there a problem with the C compiler options you are using?

Please refer to the following URL.

Thank you for your reply. I build module on the host machine and his worked!