2

Добрый день! Я пытаюсь скомпилировать драйвер сетевого адаптера, чтобы подключить его к своему роутеру. Но поскольку я нуб, у меня это не очень-то получается. Прошу вас о помощи!

Итак, что мы имеем:

Роутер: D-LINK DIR-320

Прошивка: DD-WRT v24-sp2 (10/10/09) mini-usb-ftp

Подключаемое устройство: WI-FI адаптер TP-LINK TL-WN725N V2

Драйвер: хттп://static.tp-link.com/res/down/soft/TL-WN725N_V2_150911.zip

Тулчейн: хттп://download1.dd-wrt.com/dd-wrtv2/downloads/toolchains/toolchains.tar.xz

Ядро Linux: https://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.37.tar.gz

Компилирую на: Ubuntu Linux 16 x86-64

В директории с файлами драйвера, я отредактировал Makfile, как указано в руководстве:

ARCH ?= mips
CROSS_COMPILE ?=~/temp/toolchain-mipsel_gcc4.1.2/bin/mipsel-linux-gcc
KVER := 2.4.37
KSRC ?= ~/temp/linux-2.4.37

где ARCH - архитектура, CROSS_COMPILE - путь к тулчейну, KVER - версия ядра, KSRC - путь к ядру Linux.

Когда я выполняю команду sudo make, система выдает следующие сообщения:

"******************************************" 
"NO SKRC,we will use default KSRC" 
"******************************************" 
make ARCH=mips CROSS_COMPILE=~/temp/toolchain-mipsel_gcc4.1.2/bin/mipsel-linux-gcc -C ~/temp/linux-2.4.37 M=/home/fadeev/temp/TL-WN725N_V2_150911/Driver modules 
make[1]: Entering directory '/home/fadeev/temp/linux-2.4.37' 
make -C arch/mips/tools CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/tools' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/tools' 
make -C kernel CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/kernel' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/kernel' 
make -C drivers CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers' 
make -C acpi modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/acpi' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/acpi' 
make -C atm modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/atm' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/atm' 
make -C block modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/block' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/block' 
make -C cdrom modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/cdrom' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/cdrom' 
make -C char modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/char' 
make -C pcmcia modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/char/pcmcia' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/char/pcmcia' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/char' 
make -C hotplug modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/hotplug' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/hotplug' 
make -C ide modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide' 
make -C arm modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/arm' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/arm' 
make -C legacy modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/legacy' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/legacy' 
make -C pci modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/pci' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/pci' 
make -C ppc modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/ppc' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/ppc' 
make -C raid modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/raid' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide/raid' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ide' 
make -C ieee1394 modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/ieee1394' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/ieee1394' 
make -C md modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/md' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/md' 
make -C media modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/media' 
make -C radio modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/media/radio' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/media/radio' 
make -C video modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/media/video' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/media/video' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/media' 
make -C message/fusion modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/message/fusion' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/message/fusion' 
make -C misc modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/misc' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/misc' 
make -C mtd modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd' 
make -C chips modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/chips' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/chips' 
make -C devices modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/devices' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/devices' 
make -C maps modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/maps' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/maps' 
make -C nand modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/nand' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd/nand' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/mtd' 
make -C net modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/net' 
make -C appletalk modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/net/appletalk' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/net/appletalk' 
make -C arcnet modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/net/arcnet' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/net/arcnet' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/net' 
make -C parport modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/parport' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/parport' 
make -C scsi modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/scsi' 
make -C pcmcia modules 
make[4]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/scsi/pcmcia' 
make[4]: Nothing to be done for 'modules'. 
make[4]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/scsi/pcmcia' 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/scsi' 
make -C sound modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/sound' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/sound' 
make -C telephony modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/telephony' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/telephony' 
make -C usb/gadget modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/usb/gadget' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/usb/gadget' 
make -C video modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/drivers/video' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers/video' 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/drivers' 
make -C mm CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/mm' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/mm' 
make -C fs CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/fs' 
make -C nls modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/fs/nls' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/fs/nls' 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/fs' 
make -C net CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/net' 
make -C 802 modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/802' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/802' 
make -C atm modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/atm' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/atm' 
make -C core modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/core' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/core' 
make -C ipv4 modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/ipv4' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/ipv4' 
make -C ipv4/ipvs modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/ipv4/ipvs' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/ipv4/ipvs' 
make -C ipv4/netfilter modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/ipv4/netfilter' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/ipv4/netfilter' 
make -C ipv6/netfilter modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/ipv6/netfilter' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/ipv6/netfilter' 
make -C ipx modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/ipx' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/ipx' 
make -C netlink modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/netlink' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/netlink' 
make -C sched modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/sched' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/sched' 
make -C sctp modules 
make[3]: Entering directory '/home/fadeev/temp/linux-2.4.37/net/sctp' 
make[3]: Nothing to be done for 'modules'. 
make[3]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net/sctp' 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/net' 
make -C ipc CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/ipc' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/ipc' 
make -C lib CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/lib' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/lib' 
make -C crypto CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/crypto' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/crypto' 
make -C arch/mips/math-emu CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/math-emu' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/math-emu' 
make -C arch/mips/pci CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/pci' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/pci' 
make -C arch/mips/kernel CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/kernel' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/kernel' 
make -C arch/mips/mm CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/mm' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/mm' 
make -C arch/mips/lib CFLAGS="-D__KERNEL__ -I/home/fadeev/temp/linux-2.4.37/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fno-builtin-strpbrk -fno-builtin-sprintf -fomit-frame-pointer -I /home/fadeev/temp/linux-2.4.37/include/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -DMODULE -mlong-calls -DMODVERSIONS -include /home/fadeev/temp/linux-2.4.37/include/linux/modversions.h" MAKING_MODULES=1 modules 
make[2]: Entering directory '/home/fadeev/temp/linux-2.4.37/arch/mips/lib' 
make[2]: Nothing to be done for 'modules'. 
make[2]: Leaving directory '/home/fadeev/temp/linux-2.4.37/arch/mips/lib' 
make[1]: Leaving directory '/home/fadeev/temp/linux-2.4.37' 

При этом никаких файлов с расширением .o в каталоге драйвера не появляется. Что означает "Nothing to be done for 'modules'", и как заставить его скомпилировать драйвер? Буду благодарен вам за любую помощь!

ЗЫ: прошу прощения за много буков.

11

1 ответ 1

3

Я пытаюсь скомпилировать драйвер

Поясню, на всякий случай, может Вы не знаете: если Вы собираетесь компилировать драйвер, то вам нужно иметь две вещи:

  1. Исходные тексты ядра. Точнее - файлы заголовков *.h для обращения к API ядра.
  2. Объектные модули ядра, для того, что бы Ваш модуль *.ko можно было слинковать с данной версией ядра.

Поэтому, если у Вас есть директория, в которой уже лежат и исходы ядра и объектники, то повтороно ничего собирать уже не нужно. Для того, что бы один-единственный раз собрать ядро, нужно зайти в каталог с исходами ядра и выполнить команды (это у меня для : PowerPC) :

#!/bin/sh
PATH=/usr/local/powerpc-e500v2-linux-gnuspe/bin/:$PATH
./configure CC=powerpc-e500v2-linux-gnuspe-cc --host=ppc-linux
make

Существенно: в корне ядерных исходов обязательно должен лежать файл .config ! Откуда его взять - отдельная песня...

Только ПОСЛЕ сборки ядра Вы можете выдавать команду make modules. А, судя по сообщениям, которые Вы показали, именно эту команду и выдаёт Ваш скрипт. Естественно, что make не может собрать модули и говорит Вам об этом.

14
  • У меня конечно же файла .config в директории с исходниками ядра нет. Откуда же его взять?
    – some_guy
    29 авг 2016 в 10:59
  • м.б. в целевом устройстве в папке /boot либо иным способом из прошивки ковырять.
    – sergw
    29 авг 2016 в 12:50
  • Откуда же его взять? - идеальный вариант - взять его из папки /proc на целевой системе. Тогда Вы получите именно то ядро, которое желаете. В этой папке должен быть файл config.gz. Его можно распечатать командой catz.
    – Sergey
    29 авг 2016 в 16:23
  • Если его нет, тогда надо запускать "make menuconfig" и долго и нудно выставлять те параметры, которые нужны на целевой платформе. Это ОЧЕНЬ долго и ОЧЕНЬ нудно... :-(
    – Sergey
    29 авг 2016 в 16:25
  • Я запускал make config и долго нудно выставлял параметры. =) Это не то же самое?
    – some_guy
    30 авг 2016 в 10:57

Ваш ответ

By clicking “Отправить ответ”, you agree to our terms of service and acknowledge you have read our privacy policy.

Всё ещё ищете ответ? Посмотрите другие вопросы с метками или задайте свой вопрос.