Skip to content
Advertisement

Tag: kernel

Linux kernel module compiling

I try to compile simple linux kernel module: My makefile: Now i haven’t errors in my .c file. But when i try make in terminal: make: Nothing to be done for `all’. What’s wrong? Thank you. Answer The default command in your makefile is That instructs make to cd to /lib/modules/$(KVERSION)/build and run In turn, that makefile is not finding

How to build the same Linux Kernel twice sources and get the same checksum

I’m searching if it’s possible to build the same Linux Kerneltwice (same sources, same environment, same options, same compiler) and get the same checksum. Anybody knows how to do so? Answer The date of build is included in the version, see init version.c : and UTS_VERSION is defined in include/linux/compile.h : compile.h is generated by scripts/mkcompile_h, where you find the

Forcing driver to device match

I have a piece of usb hardware, for which I know the driver. However, the vendor id and product id do not match the VID, PID pair registered in the driver. Is there a way in linux to force a driver to be associated with a known device, that do not involve kernel module recompilation to add a PID /

Advertisement