Re: module compilation on 2.6

From: Fred Fedora (fedorafred2000_at_yahoo.com)
Date: 06/19/04

  • Next message: Mark: "RE: Problems with medium check for FC2 despite of proper checksum! HELP"
    Date: Fri, 18 Jun 2004 16:10:29 -0700 (PDT)
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    
    

    Rick,
    Thanks for explaining. Is there some sample makefile which ahieves this trick somewhere on teh web? I just downloaded ATMEL code from sourceforge to find if they have some clues.
    --Prasad

    Rick Stevens <rstevens@vitalstream.com> wrote:
    Fred Fedora wrote:
    > Rick,
    > Thanks for the reply. Should the module code be physically located
    > inside the kernel source tree(/usr/src/linux-kernel-version??)?
    > I had a module built outside kernel tree on 2.4. Things compiled OK. I
    > want to check itout (using the same make commands) on 2.6 and I get
    > bunch of errors.
    > Is irq_vectors.h automatically picked by kernel using some variable?

    If the module's source is designed correctly, it'll look for the kernel
    headers it needs by looking at /lib/modules/`uname -r`/build. Under
    2.4, this is generally a symlink to the actual kernel source directory.
    In 2.6, it's typically a directory that contains all of the necessary
    source (headers and whatnot) to build your module.

    The trick is that the module MUST be designed with 2.6 in mind. A quick
    search for the file you have problems with lists four "irq_vectors.h"
    files based on the basic system architecture, "mach-default",
    "mach-visws, "mach-voyager" and "mach-pc9800". The module's Makefile
    must understand this to grab the right file.

    So providing the module is 2.6-aware, yes, you should be able to build
    your module outside the kernel source tree. I know it works as I've
    built several drivers that way (for example, the atmel driver for
    atmel-based wireles LAN cards).

    > */Rick Stevens /* wrote:
    >
    > Fred Fedora wrote:
    > > Is module compilation diffrent for 2.6 kernel from 2.4? I am get
    > tons of
    > > erros.
    > > Any hints?
    > > (irq_vectros.h not found etc. are my errors).
    >
    > 2.6 kernel building is a lot different. Your best bet is to do it
    > from ground zero:
    >
    > # cd /usr/src/linux-whatever
    > # make mrproper
    > # make xconfig -or- make gconfig -or- make menuconfig
    > (load an existing config file or set things up as you wish)
    > (save this new config)
    > # make
    >
    > ----------------------------------------------------------------------
    > - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -
    > - VitalStream, Inc. http://www.vitalstream.com -
    > - -
    > - Squawk! Pieces of Seven! Pieces of Seven! Parity Error! -
    > ----------------------------------------------------------------------
    >
    >
    > --
    > fedora-list mailing list
    > fedora-list@redhat.com
    > To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    >
    > ------------------------------------------------------------------------
    > Do you Yahoo!?
    > Take Yahoo! Mail with you!
    >
    > Get it on your mobile phone.
    >

    -- 
    ----------------------------------------------------------------------
    - Rick Stevens, Senior Systems Engineer rstevens@vitalstream.com -
    - VitalStream, Inc. http://www.vitalstream.com -
    - -
    ----------------------------------------------------------------------
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    		
    ---------------------------------
    Do you Yahoo!?
    Yahoo! Mail Address AutoComplete - You start. We finish.
    
    

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Mark: "RE: Problems with medium check for FC2 despite of proper checksum! HELP"

    Relevant Pages

    • Re: Any ideas on X freezing up with NVIDIA drivers?
      ... in Linux *and* FBSD so I might be able to help. ... As for AGP and kernel config, I've gotten mine working with AGP in the ... > Do you Yahoo!? ...
      (freebsd-questions)
    • Re: Fatal trap 12
      ... Sig 11's when exiting KDE apps like konsole & knode. ... > kernel is really panicing. ... >>Do you Yahoo!? ... To unsubscribe, ...
      (freebsd-questions)
    • MODPOST compilatiob between 2.4 and 2.6
      ... I compiled some modles on 2.4. ... There are some statics declared in switch1.c that are being referenced in switch2.c (via extern decleartion). ... What additional info does module writers need to take care for 2.6 kernel. ... New and Improved Yahoo! ...
      (Fedora)
    • Re: Fatal trap 12
      ... I do know it was past the index and working on the readmes, ... > I did do an nm - n on the kernel, ... > Do you Yahoo!? ... Shopping - with improved product search ...
      (freebsd-questions)
    • Re: resize2fs on LVM2 on hardware RAID5
      ... Just tried the -f option on a test partition. ... Doesn't do the trick. ... Kernel does not support online resizing ... Or do I have to compile a custom kernel? ...
      (Debian-User)