Find the answer to your Linux question:
Results 1 to 2 of 2
I have developed a sample network driver for Realtek 8139. When I compile the with the Makefile, encounters the following problem, root-ami:/home/ami/Driver/Sample Network Driver# make make -C /lib/modules/2.6.32-30-generic-pae/build M=/home/ami/Driver/Sample Network ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Location
    Chennai
    Posts
    15

    Problem in Sample Network driver


    I have developed a sample network driver for Realtek 8139. When I compile the with the Makefile, encounters the following problem,
    root-ami:/home/ami/Driver/Sample Network Driver# make
    make -C /lib/modules/2.6.32-30-generic-pae/build M=/home/ami/Driver/Sample Network Driver
    make[1]: Entering directory `/usr/src/linux-headers-2.6.32-30-generic-pae'
    make[1]: *** No rule to make target `Network'. Stop.
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-30-generic-pae'
    make: *** [all] Error 2
    Here is my Makefile definition
    Code:
    obj-m   := netdrv.o
    
    KERNELDIR ?= /lib/modules/$(shell uname -r)/build
    PWD       := $(shell pwd)
    
    all:
            $(MAKE) -C $(KERNELDIR) M=$(PWD)
    
    clean:
            rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions
    Kindly help me in this regard.

  2. #2
    Just Joined! rjayavrp's Avatar
    Join Date
    Apr 2009
    Location
    Incredible India
    Posts
    42
    hello siva,


    just rename "Sample Network Driver" as Sample_Network_Driver.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •