cross compile kernel successed but no any .ko file


4 posts
by chopin1998 » Thu Aug 09, 2012 5:52 am
Hi,

my crosstool chains is ready, i can build a hello_world.c in my PC and run a.out on raspberry.

But when I compile the kernel for raspberry, make is ok, but no any ko file...

I check out kernel from this (or offical 3.1.9+)
git clone -b rpi-3.2.23 https://github.com/bootc/linux.git

and cp the arch/arm/configs/bcmrpi_defconfig as my default config file.

then make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- menuconfig

run "make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- -j4" next
...... ...... ...... ......
everythings done, kernel Image ready but no any ko file !!!!


Code: Select all
  LD      drivers/built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Building modules, stage 2.
  MODPOST 0 modules
  Kernel: arch/arm/boot/Image is ready
  GZIP    arch/arm/boot/compressed/piggy.gzip
  CC      arch/arm/boot/compressed/decompress.o
  CC      arch/arm/boot/compressed/misc.o
  CC      arch/arm/boot/compressed/string.o
  AS      arch/arm/boot/compressed/piggy.gzip.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready



WHAT'S WRONG AM I??

thank you!!
Posts: 2
Joined: Thu Aug 09, 2012 5:44 am
by joan » Thu Aug 09, 2012 7:59 am
I'd try "make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- -j4 -k" instead of
"make ARCH=arm CROSS_COMPILE=arm-unknown-linux-gnueabi- -j4".
User avatar
Posts: 6294
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK
by RaTTuS » Thu Aug 09, 2012 8:06 am
make -j 8 ARCH=arm CROSS_COMPILE=/usr/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- all
you need the all to make the moduels
or

make -j 8 ARCH=arm CROSS_COMPILE=/usr/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- all
you need the all to make the moduels

make -j 8 ARCH=arm CROSS_COMPILE=/usr/local/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi- moduels
http://www.catb.org/esr/faqs/smart-questions.html <- ask smart Questions
"That's not right, the badgers have moved the goalposts."
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
User avatar
Posts: 5566
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by chopin1998 » Thu Aug 09, 2012 8:47 am
GOT IT!

my GREP_OPTIONS evn set broke the compile process.... unset it, i got all modules now!

Thank you all the same!
Posts: 2
Joined: Thu Aug 09, 2012 5:44 am