Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Gentoo: PPC-User

MOL and kernel 2.6.10

 

 

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded


bruda at cs

Jan 1, 2005, 4:34 PM

Post #1 of 3 (575 views)
Permalink
MOL and kernel 2.6.10

Hi, and Happy New Year to everybody.

Is there any known issue with mol under 2.6.10? It would seem that the
headers have changed with the latest kernel in a way that is
incompatible with the mol kernel. More precisely, I get the following
errors at built time:

+ Entering Linux
In file included from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:18:
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `tophys_mol':
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:61: warning: implicit declaration of function `virt_to_phys'
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `map_phys_range':
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:68: warning: implicit declaration of function `phys_to_virt'
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:68: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c: In function `get_phys_page':
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:80: warning: assignment makes pointer from integer without a cast
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c: In function `dbg_get_linux_page':
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:141: warning: assignment makes pointer from integer without a cast
In file included from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/kernel_vars.h:34,
from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_dev.c:25:
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `tophys_mol':
/var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:61: warning: implicit declaration of function `virt_to_phys'

and it goes on and on for some time in the same spirit. The function
phys_to_virt does exist, but I guess the right header fails to get
included (and I am not quite able to find the reason).

The thing installs but needless to say the kernel module fails to load
as follows:

< titi:2.6.10 > pwd
/usr/lib/mol/0.9.70/modules/2.6.10
insmod ./mol.ko
insmod: error inserting './mol.ko': -1 Unknown symbol in module

and I get in the logs:

Jan 1 18:04:53 titi kernel: mol: Unknown symbol virt_to_phys
Jan 1 18:04:53 titi kernel: mol: Unknown symbol phys_to_virt

Is this a known issue, and most importantly is there any known workaround?

Thanks,
Stefan

--
``There's no use trying, one can't believe impossible things.''
``I daresay you haven't had much practice. When I was your age, I
always did it for half an hour a day. Why, sometimes I believed as
many as six impossible things before breakfast.''
--Lewis Carroll, Through the Looking-Glass

--
gentoo-ppc-user [at] gentoo mailing list


milter at free

Jan 1, 2005, 4:42 PM

Post #2 of 3 (536 views)
Permalink
Re: MOL and kernel 2.6.10 [In reply to]

On Sat, Jan 01, 2005 at 06:34:42PM -0500, Stefan Bruda wrote:
>
> Hi, and Happy New Year to everybody.
>
> Is there any known issue with mol under 2.6.10? It would seem that the
> headers have changed with the latest kernel in a way that is
> incompatible with the mol kernel. More precisely, I get the following
> errors at built time:
>
> + Entering Linux
> In file included from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:18:
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `tophys_mol':
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:61: warning: implicit declaration of function `virt_to_phys'
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `map_phys_range':
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:68: warning: implicit declaration of function `phys_to_virt'
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:68: warning: assignment makes pointer from integer without a cast
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c: In function `get_phys_page':
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:80: warning: assignment makes pointer from integer without a cast
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c: In function `dbg_get_linux_page':
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_fault.c:141: warning: assignment makes pointer from integer without a cast
> In file included from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/kernel_vars.h:34,
> from /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/_dev.c:25:
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h: In function `tophys_mol':
> /var/tmp/portage/mol-0.9.70/work/mol-0.9.70/src/kmod/Linux/../build/alloc.h:61: warning: implicit declaration of function `virt_to_phys'
>
> .....
> and I get in the logs:
>
> Jan 1 18:04:53 titi kernel: mol: Unknown symbol virt_to_phys
> Jan 1 18:04:53 titi kernel: mol: Unknown symbol phys_to_virt
>
> Is this a known issue, and most importantly is there any known workaround?
>

Yes, apparently since the 2.610rcs :

Debian bug report and fix : http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287267

Google posts :
http://groups.google.fr/groups?q=%22Unknown+symbol+virt_to_phys%22&hl=fr&lr=&selm=3fI2q-5kl-9%40gated-at.bofh.it&rnum=1
http://lists.debian.org/debian-powerpc/2004/12/msg00521.html

Happy New Year,

SL/

--
gentoo-ppc-user [at] gentoo mailing list


bruda at cs

Jan 1, 2005, 7:23 PM

Post #3 of 3 (537 views)
Permalink
Re: MOL and kernel 2.6.10 [In reply to]

At 00:42 +0100 on 2005-1-2 Stephane Lentz wrote:
>
> Debian bug report and fix :
> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=287267

Gee, thanks, I did look it up but at the time I did it I could only
find the problem and no solution. The patch fixes indeed things.
Thanks again.

Stefan

--
``There's no use trying, one can't believe impossible things.''
``I daresay you haven't had much practice. When I was your age, I
always did it for half an hour a day. Why, sometimes I believed as
many as six impossible things before breakfast.''
--Lewis Carroll, Through the Looking-Glass

--
gentoo-ppc-user [at] gentoo mailing list

Gentoo ppc-user RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.