UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor dcabrera
Visitor
3,939 Views
Registered: ‎11-04-2010

Problems compiling Linux kernel

I am trying to compile the linux kernel like this:

 

make ARCH=microblaze xilinx_mmu_defconfig

make ARCH=microblaze simpleImage.xilinx

 

and  I get this error message:

 

 

 

 AR      lib/lib.a
  LD      arch/microblaze/lib/built-in.o
  CC      arch/microblaze/lib/memcpy.o
  CC      arch/microblaze/lib/memmove.o
  CC      arch/microblaze/lib/memset.o
  AS      arch/microblaze/lib/uaccess_old.o
  AR      arch/microblaze/lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
WARNING: modpost: Found 1 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/microblaze/kernel/vmlinux.lds:369 cannot move location counter backwards (from c02a82e5 to c02a7d68)
make: *** [.tmp_vmlinux1] Error 1

 AR      lib/lib.a  LD      arch/microblaze/lib/built-in.o  CC      arch/microblaze/lib/memcpy.o  CC      arch/microblaze/lib/memmove.o  CC      arch/microblaze/lib/memset.o  AS      arch/microblaze/lib/uaccess_old.o  AR      arch/microblaze/lib/lib.a  LD      vmlinux.o  MODPOST vmlinux.oWARNING: modpost: Found 1 section mismatch(es).To see full details build your kernel with:'make CONFIG_DEBUG_SECTION_MISMATCH=y'  GEN     .version  CHK     include/generated/compile.h  UPD     include/generated/compile.h  CC      init/version.o  LD      init/built-in.o  LD      .tmp_vmlinux1arch/microblaze/kernel/vmlinux.lds:369 cannot move location counter backwards (from c02a82e5 to c02a7d68)make: *** [.tmp_vmlinux1] Error 1

 

 

Can anybody help me?

 

Thanks in advance

0 Kudos
3 Replies
Anonymous
Not applicable
3,934 Views

Re: Problems compiling Linux kernel

What is the CROSS_COMPILE env variable set to? Are you following the instructions at xilinx.wikidot.com

 

Terry

 

 

0 Kudos
Visitor dcabrera
Visitor
3,930 Views
Registered: ‎11-04-2010

Re: Problems compiling Linux kernel

Yes, I am following them.

 

CROSS_COMPILE="mb-linux-"

 

0 Kudos
Anonymous
Not applicable
3,923 Views

Re: Problems compiling Linux kernel

Check out this thread:

 

http://comments.gmane.org/gmane.linux.uclinux.microblaze/11337

 

May be your problem

0 Kudos