Hi Harry,

Harry Gunnarsson wrote:
Ok, makes sense, I guess the architecture specific module loading hooks don't apply to m68knommu, right?

Thats right.


Earlier, the asm-m68knommu/module.h just included the asm-m68k/module.h. But for the latest kernel releases, the m68k variant includes the hooks that don't (yet??) pertain to m68knommu.

Yes. m68knommu tries as much as possible to re-use what it
can of the m68k include. But from time to time we need to
create m68knommu specific versions.

Regards
Greg



I tried it out and it works fine now.

Thanks a lot Greg. I guess you want to keep this patch for future.

Harry


On 8/2/07, *Greg Ungerer * <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Hi Harry,

    Harry Gunnarsson wrote:
     > Actually, I did use the -uc0-big patch. A bug in the initial email I
     > sent out...
     >
     > Does anyone else have any insight on this?

    Try this patch:

    --- linux-2.6.x/include/asm-m68knommu/module.h  2 Mar 2002 15:01:09
    -0000      1.1
    +++ linux-2.6.x/include/asm-m68knommu/module.h  3 Aug 2007 00:43:34
    -0000
    @@ -1 +1,11 @@
    -#include <asm-m68k/module.h>
    +#ifndef ASM_M68KNOMMU_MODULE_H
    +#define ASM_M68KNOMMU_MODULE_H
    +
    +struct mod_arch_specific {
    +};
    +
    +#define Elf_Shdr Elf32_Shdr
    +#define Elf_Sym Elf32_Sym
    +#define Elf_Ehdr Elf32_Ehdr
    +
    +#endif /* ASM_M68KNOMMU_MODULE_H */


    Regards
    Greg



     > On 8/2/07, *Gavin Lambert* <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>
     > <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:
     >
     >     Quoth Harry Gunnarsson:
     >      > I tried the 2.6.22 kernel on top of the full source
    package from
     >     Jan 30.
     >     Essentially I do
     >      > - untar uClinux-dist-20070130.tar.bz2
     >      > - delete linux-2.6.x directory
     >      > - untar vanilla kernel linux-2.6.22.tar.bz2
     >      > - apply Greg's patch linux-2.6.22-uc0.patch ontop of the
    vanilla
     >     kernel.
     >      > - rename linux-2.6.22 directory to linux-2.6.x and move it
    into the
     >     uClinux distribution
     >      > as replacement for the standard 2.6.19 kernel.
     >
     >     You should probably be using the -uc0-big patch instead for dev
     >     work.  (-uc0
     >     is for submission to mainline, a different case.)
     >
     >     Don't know if this'll solve your problem, but it's worth a shot.
     >
     >
     >     _______________________________________________
     >     uClinux-dev mailing list
     >     [email protected] <mailto:[email protected]>
    <mailto:[email protected] <mailto:[email protected]>>
     >     http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
     >     This message was resent by [email protected]
    <mailto:[email protected]>
     >     <mailto: [email protected]
    <mailto:[email protected]>>
     >     To unsubscribe see:
     >     http://mailman.uclinux.org/mailman/options/uclinux-dev
     >
     >
     >
     >
    ------------------------------------------------------------------------
     >
     > _______________________________________________
     > uClinux-dev mailing list
     > [email protected] <mailto:[email protected]>
     > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
     > This message was resent by [email protected]
    <mailto:[email protected]>
     > To unsubscribe see:
     > http://mailman.uclinux.org/mailman/options/uclinux-dev

    --
    ------------------------------------------------------------------------

Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
    Secure Computing Corporation                PHONE:       +61 7 3435 2888
    825 Stanley St,                             FAX:         +61 7 3891
    3630
    Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
    _______________________________________________
    uClinux-dev mailing list
    [email protected] <mailto:[email protected]>
    http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
    This message was resent by [email protected]
    <mailto:[email protected]>
    To unsubscribe see:
    http://mailman.uclinux.org/mailman/options/uclinux-dev



------------------------------------------------------------------------

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

--
------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [EMAIL PROTECTED]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to