Originally Posted by libinpk
hi..i have been using the following make file to get .ko files in red hat linux. which i later used to insmod..
obj-m := mydriver.o
KERNDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
$(MAKE) -C $(KERNDIR) M=`pwd` modules
rm -f *.ko *.mod.c *.o
but i installed ubuntu 6.06 recently and my make is no longer sucessful since ubuntu doesnt have /lib/modules/$(shell uname -r)/build path..
what do i do?any help is much appreciated.
PS: This is my first post..
Well, first off, Ubuntu 6.06 is VERY old, so if you recently installed it, I'd suggest installing the current version. After that, you don't say what version of RedHat you're coming from, but if you don't have the /lib/modules path, you probably don't have the kernel source installed. You could TRY to install it for 6.06, but I'd suggest loading the current version, and choosing it at build time for installation.