Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* nfs-fs as module on 2.0.33
@ 1998-02-14 21:16 Andreas Haumer
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Haumer @ 1998-02-14 21:16 UTC (permalink / raw)


Hi!

There is an "unresolved symbol __kernel_thread" problem with nfs-fs 
when compiled as module on Linux-2.0.33.

The function "__kernel_thread" ist defined in the architecture specific
module "entry.S". I tried adding the function name to ksyms.c, but the
kernel didn't work, but crashed immediately after inserting the module.

Has anyone got module support for nfs working on Alpha-Linux?

- andreas

-- 
 Andreas Haumer         | email: andreas@xss.co.at | PGP key available
 *x Software + Systeme  | phone: +43.1.6001508     | on request.
 Buchengasse 67/8       |        +43.664.3004449   |   
 A-1100 Vienna, Austria |   fax: +43.1.6001507     |

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <34E609A4.DAC78F07@xss.co.at>]
* Re: nfs-fs as module on 2.0.33
@ 1998-02-15 23:57 Andreas Haumer
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Haumer @ 1998-02-15 23:57 UTC (permalink / raw)


Hi!

Andreas Johansson wrote:
> 
> On Sat, 14 Feb 1998, Andreas Haumer wrote:
> 
> > Hi!
> >
> > There is an "unresolved symbol __kernel_thread" problem with nfs-fs
> > when compiled as module on Linux-2.0.33.
> >
> > The function "__kernel_thread" ist defined in the architecture specific
> > module "entry.S". I tried adding the function name to ksyms.c, but the
> > kernel didn't work, but crashed immediately after inserting the module.
> >
> > Has anyone got module support for nfs working on Alpha-Linux?
> 
> Hm... I noticed this too some time ago. I tracked the problem down, and it
> concerned the gp register in the kernel_thread function.
> 
> This is from 2.1.71, arch/alpha/kernel/entry.S:
> 
> __kernel_thread:
>         ldgp $29,0($27)         /* we can be called from a module */
> 
> If i remember correctly, this was all that was needed to fix the problem.
> 
Ah, thanks, I'll give it a try.

by the way, when I was looking about the nfs-fs module problem, I also 
found some other modules suffering from "unresolved symbols".

Amongst them were: ac3200.o, smc-ultra32.o, smc-ultra.o 3c503.o, wd.o

They are missing "_memcpy_fromio" and "_memcpy_toio", both functions
are defined in the architecture-specific file arch/alpha/lib/io.c

I added those functions to ksyms.c, and at least "depmod -a" doesn't 
report that unresolved symbol error now (I can't test those kernel-
modules because I don't have the hardware)

Here's the context-diff:

*** linux-2.0.33/kernel/ksyms.c Sun Feb 15 23:49:34 1998
--- linux/kernel/ksyms.c        Sat Feb 14 23:35:14 1998
***************
*** 65,70 ****
--- 65,74 ----
  #include <linux/smp.h>
  #endif

+ #if ARCH == alpha
+ #include <asm/io.h>
+ #endif
+
  extern char *get_options(char *str, int *ints);
  extern void set_device_ro(kdev_t dev,int flag);
  extern struct file_operations * get_blkfops(unsigned int);
***************
*** 136,141 ****
--- 140,150 ----
        X(remap_page_range),
        X(high_memory),
        X(update_vm_cache),
+
+ #if ARCH == alpha
+       X(_memcpy_fromio),
+       X(_memcpy_toio),
+ #endif

        /* filesystem internal functions */
        X(getname),

If someone with the hardware devices please would test the patch 
and report if the modules work now? We could then suggest this 
small patch for linux-2.0.34 (together with the nfs module-patch)

- andreas

-- 
 Andreas Haumer         | email: andreas@xss.co.at | PGP key available
 *x Software + Systeme  | phone: +43.1.6001508     | on request.
 Buchengasse 67/8       |        +43.664.3004449   |   
 A-1100 Vienna, Austria |   fax: +43.1.6001507     |

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <34E780FA.A601EA2B@xss.co.at>]
* Re: nfs-fs as module on 2.0.33
@ 1998-02-16  0:27 Andreas Haumer
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Haumer @ 1998-02-16  0:27 UTC (permalink / raw)


Hi!

Andreas Johansson wrote:
> 
> On Mon, 16 Feb 1998, Andreas Haumer wrote:
> 
> > Hi!
> >
> > by the way, when I was looking about the nfs-fs module problem, I also
> > found some other modules suffering from "unresolved symbols".
> >
> > Amongst them were: ac3200.o, smc-ultra32.o, smc-ultra.o 3c503.o, wd.o
> 
> I have tried the 3c503 driver, and it works.
> 
Fine!

> > They are missing "_memcpy_fromio" and "_memcpy_toio", both functions
> > are defined in the architecture-specific file arch/alpha/lib/io.c
> >
> > I added those functions to ksyms.c, and at least "depmod -a" doesn't
> > report that unresolved symbol error now (I can't test those kernel-
> > modules because I don't have the hardware)
> >
> > Here's the context-diff:
> >
> > *** linux-2.0.33/kernel/ksyms.c Sun Feb 15 23:49:34 1998
> > --- linux/kernel/ksyms.c        Sat Feb 14 23:35:14 1998
> 
> I'd recommend putting your symbols in arch/alpha/kernel/ksyms.c
> 
Oops, you're absolutely right, my mistake!

Thanks!

- andreas

-- 
 Andreas Haumer         | email: andreas@xss.co.at | PGP key available
 *x Software + Systeme  | phone: +43.1.6001508     | on request.
 Buchengasse 67/8       |        +43.664.3004449   |   
 A-1100 Vienna, Austria |   fax: +43.1.6001507     |

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1998-02-16  0:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-02-14 21:16 nfs-fs as module on 2.0.33 Andreas Haumer
     [not found] <34E609A4.DAC78F07@xss.co.at>
1998-02-15 23:09 ` Andreas Johansson
  -- strict thread matches above, loose matches on Subject: below --
1998-02-15 23:57 Andreas Haumer
     [not found] <34E780FA.A601EA2B@xss.co.at>
1998-02-16  0:03 ` Andreas Johansson
1998-02-16  0:27 Andreas Haumer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox