MODPOST compilatiob between 2.4 and 2.6

From: Fred Fedora (fedorafred2000_at_yahoo.com)
Date: 07/01/04

  • Next message: Mike Fedyk: "Re: New nVidia Driver vd rivafb kernel module"
    Date: Wed, 30 Jun 2004 15:04:43 -0700 (PDT)
    To: fedora-list@redhat.com
    
    
    

    Folks,
    I don't know if it is the right list or not (ps direct me to the right list to post the question).
     
    I compiled some modles on 2.4. I rewrote the Makefiles to fit 2.6 Kbuild requirements.
     
    I had to do a composite Object.
    obj-m := switchMod.o
     
    switchMod := switch1.o switch2.o
    There are some statics declared in switch1.c that are being referenced in switch2.c (via extern decleartion).
     
    When switchMod.Ko is built, it complains about undefined symbols (teh statics in switch1.o). I made the stats as globals and it fixed the problem (segmentation fault though).
     
    So question is why did things work on 2.4 got broken in 2.6 kernel? What additional info does module writers need to take care for 2.6 kernel.
    I am trying fedora Core 2.
    --fred.
     

                    
    ---------------------------------
    Do you Yahoo!?
    New and Improved Yahoo! Mail - Send 10MB messages!

    
    

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

  • Next message: Mike Fedyk: "Re: New nVidia Driver vd rivafb kernel module"

    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)
    • Re: module compilation on 2.6
      ... I just downloaded ATMEL code from sourceforge to find if they have some clues. ... > I had a module built outside kernel tree on 2.4. ... The trick is that the module MUST be designed with 2.6 in mind. ... > Do you 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)