WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: building kernel module for 2-6.33.3-tinycore64  (Read 3566 times)

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
building kernel module for 2-6.33.3-tinycore64
« on: May 23, 2010, 03:44:30 PM »
i have downloaded linux-2.6.33.3-patched.tar.bz2 and extracted it
downloaded config-2.6.33.3-tinycore64 and copied it to top level linux source directory with the name .config then

make oldconfig

make modules_prepare

Code: [Select]
[tc@box:/mnt/sda10/linux-2.6.33.3/64bit/linux-2.6.33.3$ make prepare
scripts/kconfig/conf -s arch/x86/Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  HOSTCC  scripts/basic/docproc
  CC      kernel/bounds.s
kernel/bounds.c:1: error: code model 'kernel' not supported in the 32 bit mode
kernel/bounds.c:1: sorry, unimplemented: 64-bit mode not compiled in
make[1]: *** [kernel/bounds.s] Error 1
make: *** [prepare0] Error 2/code]

what am i doing wrong ?

i am on a microcore 3.0alpha4 + Xorg + gnome install
« Last Edit: May 23, 2010, 05:22:37 PM by Arslan S. »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: building kernel module for 2-6.33.3-tinycore64
« Reply #1 on: May 23, 2010, 04:12:12 PM »
It was compiled with toolchain64.tcz. You'll need to also add some vars to cross-compile the kernel:

export ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu-
The only barriers that can stop you are the ones you create yourself.

Offline Arslan S.

  • Hero Member
  • *****
  • Posts: 825
Re: building kernel module for 2-6.33.3-tinycore64
« Reply #2 on: May 23, 2010, 05:21:30 PM »
It was compiled with toolchain64.tcz. You'll need to also add some vars to cross-compile the kernel:

export ARCH=x86_64 CROSS_COMPILE=x86_64-unknown-linux-gnu-

thanks Curaga I have successfully compiled my kernel modules for 2.6.33.3-tinycore64 after your post