ドライバのコンパイル(2)

SheevaPlug

ドライバのコンパイル を参考にさせていただいて、 Buffalo WLI-UC-GNP 用のドライバを コンパイルしようとしている。

続き

Makefile の修正

DPO_RT3070_LinuxSTA_V2.3.0.2_20100412 の Makefile を修正して カーネルソースの位置を教えてやる
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# mv Makefile Makefile
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# mv Makefile{,.orig}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# cp Makefile{.orig,}
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# vi Makefile
	:
	:
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# !cp:s/cp/diff -c/
diff -c Makefile{.orig,}
*** Makefile.orig       Mon Dec 28 21:38:34 2009
--- Makefile    Sun Apr 18 21:35:28 2010
***************
*** 118,124 ****

  ifeq ($(PLATFORM),PC)
  # Linux 2.6
! LINUX_SRC = /lib/modules/$(shell uname -r)/build
  # Linux 2.4 Change to your local setting
  #LINUX_SRC = /usr/src/linux-2.4
  LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
--- 118,125 ----

  ifeq ($(PLATFORM),PC)
  # Linux 2.6
! #LINUX_SRC = /lib/modules/$(shell uname -r)/build
! LINUX_SRC = /root/kernel/source/linux-2.6.33.2
  # Linux 2.4 Change to your local setting
  #LINUX_SRC = /usr/src/linux-2.4
  LINUX_SRC_MODULE = /lib/modules/$(shell uname -r)/kernel/drivers/net/wireless/
root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412#

ドライバの make

root@debian:~/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412# make
make -C tools
make[1]: Entering directory `/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools'
gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools'
/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/tools/bin2h
cp -f os/linux/Makefile.6 /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/Makefile
make -C /root/kernel/source/linux-2.6.33.2 SUBDIRS=/root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux modules
make[1]: Entering directory `/root/kernel/source/linux-2.6.33.2'

  ERROR: Kernel configuration is invalid.
         include/generated/autoconf.h or include/config/auto.conf are missing.
         Run 'make oldconfig && make prepare' on kernel src to fix it.


  WARNING: Symbol version dump /root/kernel/source/linux-2.6.33.2/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/../../common/crypt_md5.o
cc1: error: include/generated/autoconf.h: No such file or directory
In file included from include/linux/prefetch.h:14,
                 from include/linux/list.h:6,
                 from include/linux/module.h:9,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/os/rt_linux.h:40,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/rtmp_os.h:42,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/rt_config.h:67,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/../../common/crypt_md5.c:28:
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/processor.h:110:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from include/linux/list.h:7,
                 from include/linux/module.h:9,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/os/rt_linux.h:40,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/rtmp_os.h:42,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/include/rt_config.h:67,
                 from /root/DPO_RT3070_LinuxSTA_V2.3.0.2_20100412/os/linux/../../common/crypt_md5.c:28:
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:111:5: warning: "__LINUX_ARM_ARCH__" is not defined
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:117:5: warning: "__LINUX_ARM_ARCH__" is not defined
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:121:35: warning: "__LINUX_ARM_ARCH__" is not defined
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:141:5: warning: "__LINUX_ARM_ARCH__" is not defined
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:252:5: warning: "__LINUX_ARM_ARCH__" is not defined
/root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:259:5: warning: "__LINUX_ARM_ARCH__" is not defined
In file included from /root/kernel/source/linux-2.6.33.2/arch/arm/include/asm/system.h:325,
	:
	:
あかん。


←(前のページ)
カーネルソースの準備
当月のハックの記録
SheevaPlug/玄柴(KURO-SHEEVA)をハックしよう トップ
(次のページ)→
カーネルのコンフィギュレーション

Copyright (C) 2003-2010 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市