Re: problem cross-compiling kernel for ARM arch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



yeah, it was a config issue. i'm getting there now!
thanks,
-mandeep

On Fri, 2004-11-19 at 13:22, Kishore A K wrote:
> You need to specify the sub architecture in your kernel config
> properly before compiling.
> i.e.,  After doing make menuconfig
> Specify "System Type ---> ARM system type" properly.
> After doing that depending on the subarch you may have 
> to select an implementation. Apart from that you may 
> also have to enable some processor features, type etc also.
> 
> --
> Kishore A K
> 
> 
> "Dream as if you'll live forever; Live as if you'll die today."
> 
> 
> 
> 
> On Fri, 19 Nov 2004 11:53:47 +0530, Mandeep Sandhu
> <mandeep_sandhu@xxxxxxxxxxx> wrote:
> > hi,
> > 
> > I'm trying to cross-compile a kernel for the ARM arch. and
> > encountering some problems.
> > 
> > here's what i did (all source's from gun.org):
> > 
> > - took binutils 2.14 source.
> > $ ./configure --target=arm-elf  --prefix=/home/msandhu/toolchains/tools
> > 
> > $ make && make install
> > everything went off fine.
> > 
> > - took gcc 3.4.3 source
> > $ ./configure --target=arm-elf --prefix=/home/msandhu/toolchains/tools
> > --enable-languages=c
> > $ make && make install
> > again went off fine.
> > 
> > took the source for 2.6.9
> > 
> > $pwd
> > /usr/src/linux-2.6.9
> > 
> > $ make ARCH=arm CROSS_COMPILE=arm-elf- menuconfig
> > (did nothing just saved and exited)
> > 
> > $ make ARCH=arm CROSS_COMPILE=arm-elf-
> >  CHK     include/linux/version.h
> >  CC      arch/arm/kernel/asm-offsets.s
> > In file included from include/asm/page.h:27,
> >                 from include/asm/cpu-single.h:33,
> >                 from include/asm/proc-fns.h:154,
> >                 from include/asm/system.h:125,
> >                 from include/asm/bitops.h:22,
> >                 from include/linux/bitops.h:4,
> >                 from include/linux/thread_info.h:20,
> >                 from include/linux/spinlock.h:12,
> >                 from include/linux/capability.h:45,
> >                 from include/linux/sched.h:7,
> >                 from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/glue.h:111:2: #error Unknown data abort handler type
> > In file included from include/asm/cpu-single.h:33,
> >                 from include/asm/proc-fns.h:154,
> >                 from include/asm/system.h:125,
> >                 from include/asm/bitops.h:22,
> >                 from include/linux/bitops.h:4,
> >                 from include/linux/thread_info.h:20,
> >                 from include/linux/spinlock.h:12,
> >                 from include/linux/capability.h:45,
> >                 from include/linux/sched.h:7,
> >                 from arch/arm/kernel/asm-offsets.c:13:
> > include/asm/page.h:96:2: #error Unknown user operations model
> > make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
> > make: *** [arch/arm/kernel/asm-offsets.s] Error 2
> > 
> > what's wrong??? any helps appreciated.
> > thanks,
> > -mandeep
> > 
> > --
> > Kernelnewbies: Help each other learn about the Linux kernel.
> > Archive:       http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> > 
> >

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux