Giter Club home page Giter Club logo

Comments (7)

Elvynia avatar Elvynia commented on August 28, 2024

Hello,

I got the problem and found a solution by replacing $(PWD) by $(shell pwd) in the src/Makefile. Hope that helps ;)

from fl2000.

pregnolato avatar pregnolato commented on August 28, 2024

Hi Elvynia

I changed in the src/Makefile from $(PWD) to $(pwd), but I got a new error:

valerio@tron:~/Downloads/FL2000-master/src$ sudo make
make -C /usr/src/linux-headers-4.4.0-116-generic M= modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'. Stop.
arch/x86/Makefile:207: recipe for target 'archheaders' failed
make[1]: *** [archheaders] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
Makefile:46: recipe for target 'all' failed
make: *** [all] Error 2

Thank you.

from fl2000.

Elvynia avatar Elvynia commented on August 28, 2024

It's not only the case of pwd, you have to add shell to execute it as a command -> $(shell pwd)

from fl2000.

pregnolato avatar pregnolato commented on August 28, 2024

Hi Elvynia,

Thanks to try help me.

When I try to execute "make" statement using your tip, I got the message:

valerio@tron:/Downloads/FL2000-master/src$ sudo make
[sudo] password for valerio:
make -C /usr/src/linux-headers-4.4.0-116-generic M=/home/valerio/Downloads/FL2000-master/src modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
valerio@tron:
/Downloads/FL2000-master/src$

My MakeFile is:

fl2000-y := fl2000_module.o
fl2000-y += fl2000_bulk.o
fl2000-y += fl2000_ioctl.o
fl2000-y += fl2000_render.o
fl2000-y += fl2000_dev.o
fl2000-y += fl2000_dongle.o
fl2000-y += fl2000_big_table.o
fl2000-y += fl2000_i2c.o
fl2000-y += fl2000_register.o
fl2000-y += fl2000_monitor.o
fl2000-y += fl2000_desc.o
fl2000-y += fl2000_interrupt.o
fl2000-y += fl2000_compression.o
fl2000-y += fl2000_surface.o
fl2000-y += fl2000_fops.o
fl2000-y += fl2000_hdmi.o
ifdef CONFIG_USB_FL2000
obj-$(CONFIG_USB_FL2000) := fl2000.o
else
obj-m := fl2000.o
#KERNEL_PATH = ../../../kernel/linux-3.10.0-327.13.1.el7
#KERNEL_PATH = /usr/src/kernels/3.10.0-327.13.1.el7.x86_64
#KERNEL_PATH = /usr/src/kernels/uname -r
#KERNEL_PATH = /usr/src/linux-headers-uname -r
KERNEL_PATH = /usr/src/linux-headers-4.4.0-116-generic

all:
make -C $(KERNEL_PATH) M=$(shell pwd) modules
clean:
make -C $(KERNEL_PATH) M=$(shell pwd) clean
rm -f Module.symvers
endif

Thank you.

Valerio

from fl2000.

CanNuhlar avatar CanNuhlar commented on August 28, 2024

Don't use sudo with make that may cause problems.

Are you sure there is no fl2000.ko on the directory? It looks like it's compiling just fine.

from fl2000.

pregnolato avatar pregnolato commented on August 28, 2024

Hi CanNuhlar.

I tried without sudo....

root@tron:/home/valerio/Downloads/FL2000-master/src# make
make -C /usr/src/linux-headers-4.4.0-116-generic M=/home/valerio/Downloads/FL2000-master/src modules
make[1]: Entering directory '/usr/src/linux-headers-4.4.0-116-generic'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.4.0-116-generic'
root@tron:/home/valerio/Downloads/FL2000-master/src#

But I got the same message

Thank you

from fl2000.

CanNuhlar avatar CanNuhlar commented on August 28, 2024

It is already compiled check for fl2000.ko file on your directory. Just run sudo insmod fl2000.ko then run dmesg. You shoud see a line that says usbcore: registered new interface driver fl2000

from fl2000.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.