BE Cross compiler for ARM-XSCALE
Philip mathew
philipmat@hotmail.com
Fri Jul 27 17:10:00 GMT 2007
Hello Juergen,
I dont know why it was failing before. I repeated the steps, downloaded
ptxdist0.10.6 and OSELAS tried the build and build did not report any
errors. I dont know why it failed before, I guess it could be due to network
connection errors.
Thanks for your help.
Yes I build the driver as an external module against the built source tree
Best Regards
Philip
>From: Juergen Beisert <jbe@pengutronix.de>
>To: crossgcc@sourceware.org
>CC: "Philip mathew" <philipmat@hotmail.com>, r.schwebel@pengutronix.de,
>mkl@pengutronix.de
>Subject: Re: BE Cross compiler for ARM-XSCALE
>Date: Tue, 24 Jul 2007 07:15:56 +0200
>
>On Tuesday 24 July 2007 05:34, Philip mathew wrote:
> > I am able to build the cross compiler using the ptxdist tool.
> >
> > "
> > ptxdist-0.10.6 select
> > ptxconfigs/armeb-xscale-lin
>ux-gnueabi_gcc-4.1.2_glibc-2.5_linux-2.6.18.ptxc
> >onfig - ptxdist-0.10.6 go
> > "
>
>Why it failed in the past? (maybe to improve our documentation)
>
> > For testing the compiler, I created the following test driver code with
> > the cross compiler.
> >
> > #define MODULE
> > #include<asm/module.h>
> > int init_module(void) { printk("<1>Hello world \n"); return 0;}
> > int cleanup_module(void) { printk("<1>Good bye \n"); return 0;}
> >
> > When I tried to load this in the target platform (XSCALE), (ie insmod
> > testdrv.o) I am getting
> > the following errors in the target.
> >
> > "
> > Warning: unhandled reloc 28
> > insmod: Unhandled relocation of type 28 for printk
> > Warning: unhandled reloc 28
> > insmod: Unhandled relocation of type 28 for printk
> > "
> >
> > 1) Can some one explain the cause of this errors.
> >
> > 2) If I use #include <linux/module.h> instead of <asm/module.h>
> > compilation fails and lot of
> > compilation errors appears.
>
>How did you build this driver? As an external module against the built
>sourcetree of your running cross kernel?
>
>Juergen
>--
>Dipl.-Ing. Juergen Beisert | http://www.pengutronix.de
>Â Pengutronix - Linux Solutions for Science and Industry
>Â Handelsregister: Amtsgericht Hildesheim, HRA 2686
>Â Â Â Vertretung Sued/Muenchen, Germany
> Phone: +49-8766-939 228 | Fax: +49-5121-206917-9
_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one
place! http://maps.live.com/?wip=69&FORM=MGAC01
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list