From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smnotes1.sieb-meyer.de ([213.252.170.194] helo=mail.sieb-meyer.de) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1Y9CxO-0008DH-Ep for ptxdist@pengutronix.de; Thu, 08 Jan 2015 14:17:01 +0100 From: =?iso-8859-1?Q?H=E4nel-Baas=2C_Alexander?= Date: Thu, 8 Jan 2015 13:16:48 +0000 Message-ID: <9BA84827B30CBE4996725F98F7DC9123428FAA27@SMExchange01.siebmeyer.org> Content-Language: de-DE MIME-Version: 1.0 Subject: [ptxdist] arm-cortexa9 kernelmodul ->__aeabi_l2d undefined Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1399750740==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: "ptxdist@pengutronix.de" --===============1399750740== Content-Language: de-DE Content-Type: multipart/alternative; boundary="_000_9BA84827B30CBE4996725F98F7DC9123428FAA27SMExchange01sie_" --_000_9BA84827B30CBE4996725F98F7DC9123428FAA27SMExchange01sie_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi i try to compile my own kernel module out-of-tree. At compile time I get the warning: WARNING: "__aeabi_l2d" [my.ko] undefined= . And right I can't load the module -> Unknown symbol __aeabi_d2lz (err 0) User space programs or other kernel modules are already compile and works w= ell. Background: I have a project that was compiled under ptxdist 2012.12.1 for x86 target. Now i changed the target from x86 to i.mx6 so I had changed the toolchain f= rom OSELAS.Toolchain-2012.12.1 i586-unknown-linux-gnu to OSELAS.Toolchain-2012.12.1 arm-cortexa9-linux-gnueabi. After this change I clean and recompile the project and all compiled binary= s and modules are ok. Only this kernel module I can't compile. I used float operation in this module... -> eabi??? My question are: Can I use float operation in k-modules under arm? And what is going wrong? And here the detailed information: Compile step arm-cortexa9-linux-gnueabi-gcc -Wp,-MD,/opt/g3DevelBase/g3Projects/SD3Xeno/= usr/src/TargetWare/g3tShm/module/../internal/src/.shmModule.o.d -nostdinc = -isystem /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnueabi/gcc-4.7= .3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gcc/arm-corte= xa9-linux-gnueabi/4.7.3/include -I/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3Xen= oArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/arch/arm/include -Iarch= /arm/include/generated -Iinclude -I/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3X= enoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/arch/arm/include/uapi= -Iarch/arm/include/generated/uapi -I/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3= XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/include/uapi -Iinclu= de/generated/uapi -include /opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bs= p.V1/platform-SM_ARM/build-target/linux-3.14/include/linux/kconfig.h -D__KE= RNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fn= o-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-fo= rmat-security -fno-delete-null-pointer-checks -O2 -fno-dwarf2-cfi-asm -fno-= omit-frame-pointer -mapcs -mno-sched-prolog -mabi=3Daapcs-linux -mno-thumb-= interwork -mfpu=3Dvfp -marm -D__LINUX_ARM_ARCH__=3D7 -march=3Darmv7-a -msof= t-float -Uarm -Wframe-larger-than=3D1024 -fno-stack-protector -Wno-unused-b= ut-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdecla= ration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-st= ack -Werror=3Dimplicit-int -Werror=3Dstrict-prototypes -DCC_HAVE_ASM_GOTO -= I. -I/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/s= ysroot-target/usr/xenomai/include -D_FORTIFY_SOURCE=3D0 -ffast-math -DG3RTA= PI_XENOMAI -DG3SHM_XENOMAI -I/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Ta= rgetWare/g3tShm/module/../export -I/opt/g3DevelBase/g3Projects/SD3Xeno/usr/= src/TargetWare/g3tShm/module/../internal/header -D"MODULE_VERSION_STR=3DKBU= ILD_STR(3.1.0)" -D"KERNEL_VERSION_U32=3D200192" -D"KERNEL_VERSION_STR=3DKBU= ILD_STR(3.14.0)" -I/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g= 3tShm/module/../../../../include -DMODULE -D"KBUILD_STR(s)=3D#s" -D"KBUIL= D_BASENAME=3DKBUILD_STR(shmModule)" -D"KBUILD_MODNAME=3DKBUILD_STR(../../.= ./../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm)" -c -o The module needs 5 source files arm-cortexa9-linux-gnueabi-gcc -Wp,-MD /internal/src/.shmCore.o.d (same o= ptions) arm-cortexa9-linux-gnueabi-gcc -Wp,-MD, /internal/src/.shmAreaImpl.o.d (sam= e options) arm-cortexa9-linux-gnueabi-gcc -Wp,-MD, /internal/src/shmBlockImpl.o (same = options) arm-cortexa9-linux-gnueabi-gcc -Wp,-MD, /internal/src/shmRtapi_xenomai.o (s= ame options) link step to module arm-cortexa9-linux-gnueabi-ld -EL /opt/OSELAS.Toolchain-2012.12.1/arm-cort= exa9-linux-gnueabi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitize= d/bin/../lib/gcc/arm-cortexa9-linux-gnueabi/4.7.3/libgcc.a -r -o /opt/g3D= evelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../../../../..= /build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.o /opt/g3DevelBase/g3Project= s/SD3Xeno/usr/src/TargetWare/g3tShm/module/../internal/src/shmModule.o /opt= /g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../interna= l/src/shmLibInit.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g= 3tShm/module/../internal/src/shmCore.o /opt/g3DevelBase/g3Projects/SD3Xeno/= usr/src/TargetWare/g3tShm/module/../internal/src/shmAreaImpl.o /opt/g3Devel= Base/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../internal/src/sh= mBlockImpl.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/= module/../internal/src/shmMu.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/= TargetWare/g3tShm/module/../internal/src/shmRtapi_xenomai.o (cat /dev/null; echo kernel//opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/T= argetWare/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3ksh= m/g3k_shm.ko;) > /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3t= Shm/module/modules.order Install the module make -f /opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_AR= M/build-target/linux-3.14/scripts/Makefile.modpost find /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/.= tmp_versions -name '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.= ko$/.o/' | scripts/mod/modpost -m -i /opt/g3DevelBase/g3Toolchain/g3Bsp/sd= 3XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/Module.symvers -I /= opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/Module.= symvers -o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/m= odule/Module.symvers -S -w -s -T - WARNING: "__aeabi_l2d" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetW= are/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_= shm.ko] undefined! WARNING: "__aeabi_i2d" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetW= are/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_= shm.ko] undefined! WARNING: "__aeabi_dcmpgt" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Targ= etWare/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g= 3k_shm.ko] undefined! WARNING: "__aeabi_dadd" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Target= Ware/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k= _shm.ko] undefined! WARNING: "__aeabi_dmul" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Target= Ware/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k= _shm.ko] undefined! WARNING: "__aeabi_dcmplt" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Targ= etWare/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g= 3k_shm.ko] undefined! WARNING: "__aeabi_d2lz" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Target= Ware/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k= _shm.ko] undefined! Best regards Alexander --_000_9BA84827B30CBE4996725F98F7DC9123428FAA27SMExchange01sie_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Hi

 

i try to compile my own kernel = module out-of-tree.

At compile time I get the warni= ng: WARNING: "__aeabi_l2d" [my.ko] undefined.

And right I can’t load the module ->= Unknown symbol __aeabi_d2lz (err 0)

 

User space programs or other kernel modules a= re already compile and works well.

 

Background:

I have a project that was compiled under ptxd= ist 2012.12.1 for x86 target.

Now i changed the target from x86 to i.mx6 so= I had changed the toolchain from OSELAS.Toolchain-2012.12.1 i586-unknown-l= inux-gnu

to OSELAS.Toolchain-2012.12.1 arm-cortexa9-li= nux-gnueabi.

 

After this change I clean and recompile the p= roject and all compiled binarys and modules are ok.  

Only this kernel module I can’t compile= .

I used float operation in this module… = -> eabi???

 

My question are:

Can I use float operation in k-= modules under arm?

And what is going wrong?

 

And here the detailed informati= on:

Compile step<= /p>

arm-cortexa9-li= nux-gnueabi-gcc -Wp,-MD,/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetW= are/g3tShm/module/../internal/src/.shmModule.o.d  -nostdinc -isystem /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux-gnue= abi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../lib/gc= c/arm-cortexa9-linux-gnueabi/4.7.3/include -I/opt/g3DevelBase/g3Toolchain/g= 3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/arch/arm/inc= lude -Iarch/arm/include/generated  -Iinclude -I/opt/g3DevelBase/g3Toolchai= n/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/arch/arm/= include/uapi -Iarch/arm/include/generated/uapi -I/opt/g3DevelBase/g3Toolcha= in/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/include/= uapi -Iinclude/generated/uapi -include /opt/g3DevelBase/g3Toolchain/g3Bsp/sd3Xe= noArm.Bsp.V1/platform-SM_ARM/build-target/linux-3.14/include/linux/kconfig.= h -D__KERNEL__ -mlittle-endian -Wall -Wundef -Wstrict-prototypes -Wno-trigr= aphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-nul= l-pointer-checks -O2 -fno-dwarf2-cfi-asm -fno-omit-frame-pointer -mapcs -mn= o-sched-prolog -mabi=3Daapcs-linux -mno-thumb-interwork -mfpu=3Dvfp -marm -= D__LINUX_ARM_ARCH__=3D7 -march=3Darmv7-a -msoft-float -Uarm -Wframe-larger-than=3D1024 -fno-stack-protector -Wno-un= used-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -= Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconse= rve-stack -Werror=3Dimplicit-int -Werror=3Dstrict-prototypes -DCC_HAVE_ASM_GOTO -I. -I/opt/g3DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp= .V1/platform-SM_ARM/sysroot-target/usr/xenomai/include -D_FORTIFY_SOURCE=3D= 0 -ffast-math -DG3RTAPI_XENOMAI -DG3SHM_XENOMAI -I/opt/g3DevelBase/g3Projec= ts/SD3Xeno/usr/src/TargetWare/g3tShm/module/../export -I/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../= internal/header -D"MODULE_VERSION_STR=3DKBUILD_STR(3.1.0)" -D&quo= t;KERNEL_VERSION_U32=3D200192" -D"KERNEL_VERSION_STR=3DKBUILD_STR= (3.14.0)" -I/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3t= Shm/module/../../../../include  -DMODULE  -D"KBUILD_STR(s)=3D#s" -D"KBUILD_BASENAME=3D= KBUILD_STR(shmModule)"  -D"KBUILD_MODNAME=3DKBUILD_STR(../..= /../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm)" -c -o

 

The module needs 5 source f= iles

arm-cortexa9-li= nux-gnueabi-gcc -Wp,-MD  /internal/src/.shmCore.o.d  (same option= s)

arm-cortexa9-li= nux-gnueabi-gcc -Wp,-MD, /internal/src/.shmAreaImpl.o.d (same options)=

arm-cortexa9-li= nux-gnueabi-gcc -Wp,-MD, /internal/src/shmBlockImpl.o (same options)

arm-cortexa9-li= nux-gnueabi-gcc -Wp,-MD, /internal/src/shmRtapi_xenomai.o (same options)

 

link step to module

arm-cortexa9-li= nux-gnueabi-ld -EL  /opt/OSELAS.Toolchain-2012.12.1/arm-cortexa9-linux= -gnueabi/gcc-4.7.3-glibc-2.16.0-binutils-2.22-kernel-3.6-sanitized/bin/../l= ib/gcc/arm-cortexa9-linux-gnueabi/4.7.3/libgcc.a   -r -o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module= /../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.o /opt/g3Deve= lBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../internal/src/s= hmModule.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/mo= dule/../internal/src/shmLibInit.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../in= ternal/src/shmCore.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare= /g3tShm/module/../internal/src/shmAreaImpl.o /opt/g3DevelBase/g3Projects/SD= 3Xeno/usr/src/TargetWare/g3tShm/module/../internal/src/shmBlockImpl.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/../in= ternal/src/shmMu.o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g= 3tShm/module/../internal/src/shmRtapi_xenomai.o

(cat /dev/null;=    echo kernel//opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/Target= Ware/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k= _shm.ko;) > /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/= modules.order

 

Install the mod= ule

make -f /opt/g3= DevelBase/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/build-target/= linux-3.14/scripts/Makefile.modpost

find /opt/g3Dev= elBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/.tmp_versions -n= ame '*.mod' | xargs -r grep -h '\.ko$' | sort -u | sed 's/\.ko$/.o/' | scripts/mod/modpost -m  -i /opt/g3Devel= Base/g3Toolchain/g3Bsp/sd3XenoArm.Bsp.V1/platform-SM_ARM/build-target/linux= -3.14/Module.symvers -I /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetW= are/g3tShm/module/Module.symvers  -o /opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g3tShm/module/Modul= e.symvers -S -w  -s -T -

WARNING: "= __aeabi_l2d" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g= 3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.k= o] undefined!

WARNING: "= __aeabi_i2d" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/g= 3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.k= o] undefined!

WARNING: "= __aeabi_dcmpgt" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWar= e/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_sh= m.ko] undefined!

WARNING: "= __aeabi_dadd" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/= g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.= ko] undefined!

WARNING: "= __aeabi_dmul" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/= g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.= ko] undefined!

WARNING: "= __aeabi_dcmplt" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWar= e/g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_sh= m.ko] undefined!

WARNING: "= __aeabi_d2lz" [/opt/g3DevelBase/g3Projects/SD3Xeno/usr/src/TargetWare/= g3tShm/module/../../../../../build/sd3XenoArm.V1/TargetWare/g3kshm/g3k_shm.= ko] undefined!

 

Best regards<= /p>

Alexander

--_000_9BA84827B30CBE4996725F98F7DC9123428FAA27SMExchange01sie_-- --===============1399750740== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1399750740==--