Good day! I'm trying to compile a network adapter driver to connect it to my router. But since I'm a noob, I don't get it very well. I ask you for help!

So, what we have:

Router: D-LINK DIR-320

Firmware: DD-WRT v24-sp2 (10/10/09) mini-usb-ftp

Connected device: WI-FI adapter TP-LINK TL-WN725N V2

Driver: http: //static.tp-link.com/res/down/soft/TL-WN725N_V2_150911.zip

Toolchain: http: //download1.dd-wrt.com/dd-wrtv2/downloads/toolchains/toolchains.tar.xz

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

I compile on: Ubuntu Linux 16 x86-64

In the directory with the driver files, I edited the Makfile, as indicated in the manual:

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

where ARCH is the architecture, CROSS_COMPILE is the path to the toolchain, KVER is the kernel version, KSRC is the path to the Linux kernel.

When I execute the sudo make command, the system displays the following messages:

"******************************************" "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' 

However, no files with a .o extension appear in the driver directory. What does it mean "Nothing to be done for 'modules'", and how to make it compile the driver? I would be grateful for any help!

PS: I apologize for a lot of beeches.

1 answer 1

I'm trying to compile the driver

Let me explain, just in case, maybe you do not know: if you are going to compile the driver, then you need to have two things:

  1. Kernel source. More precisely, headers files * .h for accessing the kernel API.
  2. Object modules of the kernel, so that your * .ko module can be linked to this version of the kernel.

Therefore, if you have a directory in which both the outcomes of the kernel and object managers already lie, then you do not need to collect anything again. In order to build a kernel a single time, you need to go to the directory with the kernel outcomes and execute the commands (this is for me for: PowerPC):

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

Essentially: the .config file must be at the root of the nuclear outcomes! Where to get it - a separate song ...

Only AFTER the kernel build you can issue the command make modules. And, judging by the messages that you showed, this is the command that your script produces. Naturally, make cannot build modules and tells you about it.

  • Of course, I don’t have a .config file in the kernel source directory. Where did he get it? - some_guy
  • m. in the target device in the / boot folder or in some other way from the firmware pick. - sergw
  • Where did he get it? - Ideal - take it from the / proc folder on the target system. Then you get exactly the core you want. This folder should contain a config.gz file. It can be printed with the catz command. - Sergey
  • If it is not there, then it is necessary to run "make menuconfig" and long and tediously set up the parameters that are needed on the target platform. This is VERY long and VERY tedious ... :-( - Sergey
  • I ran make config and for a long time tediously set parameters. =) Is it not the same? - some_guy