Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MOL with kernel 2.6.10
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sat Jan 01, 2005 11:31 pm    Post subject: MOL with kernel 2.6.10 Reply with quote

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:
Code:
+ 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:
Code:
< 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:
Code:
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?
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Sun Jan 02, 2005 2:21 am    Post subject: Reply with quote

Problem goes away by applying the patch described in the Debian bugzilla. Thanks to Stephane Lentz for pointing it out.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Mon Jan 17, 2005 3:20 am    Post subject: Reply with quote

bruda wrote:
Problem goes away by applying the patch described in the Debian bugzilla. Thanks to Stephane Lentz for pointing it out.


bruda I am having the same problem. I went to the site that you posted that has a patch but I can't understand how to patch mol. Could you please give more info on how you did the patch? Thanks in advance.
Back to top
View user's profile Send private message
bruda
Guru
Guru


Joined: 06 May 2004
Posts: 376
Location: Sherbrooke, QC, Canada

PostPosted: Mon Jan 17, 2005 5:36 am    Post subject: Reply with quote

Change to /usr/portage/app-emulation/mol/files and save the patch in there as io-fix.patch. Edit then /usr/portage/app-emulation/mol/mol-0.9.70.ebuild, search for the line
Code:
epatch ${FILESDIR}/${P}-makefile-fix.patch

and insert the following underneath:
Code:
epatch ${FILESDIR}/io-fix.patch

Emerge then mol as usual. The changes will go away and have to be redone once you emerge sync.
_________________
Quid latine dictum sit altum videtur
Back to top
View user's profile Send private message
heavyt
Guru
Guru


Joined: 03 Mar 2003
Posts: 498
Location: Matrix (Washington,DC)

PostPosted: Mon Jan 17, 2005 4:15 pm    Post subject: Reply with quote

Thanks for the info, got mol working. Posting this from mol. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum