[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Re: [Ltib] Problem with using LTIB for building Modules
From: |
Stuart Hughes |
Subject: |
Re: Re: [Ltib] Problem with using LTIB for building Modules |
Date: |
Wed, 10 Jan 2007 15:38:19 +0000 |
Hi Gary,
I could not read your attachment (.rar archive?), I only have a Linux
box, so don't know how to read it. You don't need to mail it to me
though (not on the list anyway).
However, I think the problem people have been having with their modules:
"powerpc-linux-ld: unrecognised emulation mode: elf_i386"
Can be fixed if you use the following command line to make the module:
make ARCH=${LINTARCH} -C ${RPM_BUILD_DIR}/linux M=`pwd`
Note: you need to leave the kernel sources unpacked after building. To
do this when running ./ltib --configure, select (in the kernel
section):
[x] Leave the sources after building
Regards, Stuart
On Wed, 2007-01-10 at 20:00 +0800, DoubleBlue wrote:
>
> I really appreciate for your help!~
> My source code and the spec file all include in my attachment
>
> I thank the Makefile is wrong, I don't know the command to build a
> module in the ltib.
> Where defines the "cross_compile" ?
>
>
>
> Great Thanks!
>
> ______________________________________________________________________
> DoubleBlue
> 2007-01-10
>
> ______________________________________________________________________
> 发件人: Stuart Hughes
> 发送时间: 2007-01-10 18:41:17
> 收件人: DoubleBlue
> 抄送: Ltib
> 主题: Re: [Ltib] Problem with using LTIB for building Modules
>
> Hi Gary,
>
> I'd need to see your spec file and maybe your source code (or a simple
> example) to help further.
>
> Regards, Stuart
>
> On Wed, 2007-01-10 at 16:06 +0800, DoubleBlue wrote:
> > My platform is Mpc8349e-mitx, the kernel verison is 2.6.13.4.
> > I used the command : ./ltib -m scbuild -p mymodules.spec
> >
> > It made the the .o file: mymodules.o, whereas when generating the .ko
> > file, it crashed down.
> >
> >
> > Error Msg:
> > LD
> > [M]
> > /home/oneofakind/ltib/ltib-mpc8349itx-20061019/rpm/BUILD/jinchao-1.0/jc.ko
> > powerpc-linux-ld: unrecognised emulation mode: elf_i386
> > Supported emulations: elf32ppclinux elf32ppc elf32ppcsim
> >
> >
> >
> > ______________________________________________________________________
>
> >
>
>