From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [62.250.3.53] (helo=relay.versatel.net) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1KvBPa-0002FA-79 for openembedded-devel@lists.openembedded.org; Wed, 29 Oct 2008 14:48:39 +0100 Received: from [62.58.160.127] (helo=hf-electronics.com) by relay.versatel.net with smtp (Exim 4.69) (envelope-from ) id 1KvBOf-00016T-3d for openembedded-devel@lists.openembedded.org; Wed, 29 Oct 2008 14:47:41 +0100 Received: from with PostMaster 4.3.2 (MPS); Wed, 29 Oct 2008 14:45:09 +100 From: "Henk Geraads" To: Date: Wed, 29 Oct 2008 14:46:31 +0100 Message-ID: MIME-Version: 1.0 X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) Importance: Normal In-Reply-To: <1225235412.9331.13.camel@utx.utx.cz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Subject: Re: Problems building a kernelmodule for OE X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Oct 2008 13:48:40 -0000 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Stanislav, Thanks for the remarks, ideed it seems the .config file was messed up. I did repopulate the kernel source tree again. Did "make ARCH=3Darm menuc= onfig" Created a new kernel and also did use this new tree to succesfully bui= ld my own kernel module. Best regards, Henk > -----Oorspronkelijk bericht----- > Van: openembedded-devel-bounces@lists.openembedded.org > [mailto:openembedded-devel-bounces@lists.openembedded.org]Namens > Stanislav Brabec > Verzonden: woensdag 29 oktober 2008 0:10 > Aan: openembedded-devel@lists.openembedded.org > Onderwerp: Re: [oe] Problems building a kernelmodule for OE >=20 >=20 > Henk Geraads wrote: >=20 > > Found the problem with __LINUX_ARM_ARCH__! > > the "-march=3Darmv5t" in the makefie compiler line did mess up thing= s!! >=20 > It is very probably still not correct. When cross compiling the kern= el, > you need to pass "ARCH=3Darm" to make (and set CPU type in .config. > Otherwise compile options may be invalid (and you can even corrupt > your .config file) and then correct -march should be generated by ma= ke. >=20 > > the include of the "pxa-regs.h" and "gpio.h" solved the other prob= lem. > >=20 > > Now I've got strange error's from the linker; > > make[2]: ***=20 > [/home/henk/SystemDev/module/cfi-ktst/cfi-mod.ko] Error 1 > > make[1]: *** [modules] Error 2 > > make: *** [default] Error 2 > > arm-angstrom-linux-gnueabi-ld: unrecognized option=20 > '-Wl,-rpath-link,/home/armcore/oe/build/tmp/angstrom/staging/arm-a > ngstrom-linux-gnueabi/lib' > > arm-angstrom-linux-gnueabi-ld: use the --help option for=20 > usage information > > make[2]: ***=20 > [/home/henk/SystemDev/module/cfi-ktst/cfi-mod.ko] Error 1 > > make[1]: *** [modules] Error 2 > > make: *** [default] Error 2 > >=20 > > I thought linker option's are very common? >=20 > -Wl is not an option for linker, but cor compiler. Linker should get > only parameters of -Wl. Additionally -rpath-link is not useful for > kernel (dynamic linking is an user space issue). Something went wron= g > and make passed bad arguments to the linker. >=20 > Here is a make syntax I am using for kernel cross compilation: > make ARCH=3Darm CC=3Darm-angstrom-linux-gnueabi-gcc=20 > LD=3Darm-angstrom-linux-gnueabi-ld INSTALL_PATH=3D$PWD/INSTALL/boot=20 > INSTALL_MOD_PATH=3D$PWD/INSTALL > You may need to add target (e. g. zImage, install, zinstall, > modules_install). >=20 >=20 > ____________________________________________________________________= ____ > Stanislav Brabec > http://www.penguin.cz/~utx/zaurus >=20 >=20 > _______________________________________________ > Openembedded-devel mailing list > Openembedded-devel@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-dev= el