Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
win4lin patches - seg fault fix
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Sun Jun 27, 2004 4:40 pm    Post subject: win4lin patches - seg fault fix Reply with quote

As I need windows for some programmes that don't run under crossover, and I don't want the bloat of vmware, I use win4lin.

I also like to use the latest kernels.

Solution: patch win4lin for whatever kernel I am using.

As a result I have started to get a collection of win4lin patches that you may be interested in.

So far there are patches for:

2.6.7-mm3
2.6.7-mm2 (dodgy, not working)
2.6.7-mm1
2.6.7 (vanilla)
2.6.7-rc3-mm2
2.6.7-rc3-mm1

If you want them, please go to my website here. (Link also in my signature).

This is not another 'sources' release and I usually use the latest love-sources myself. In fact, I did the win4lin patches for the last few love-sources.

At this moment in time i am using 2.6.7-mm3 with reiser4 and the win4lin patch from my site.

Judging from the downloads from my previous site, win4lin patches are popular so I hope you enjoy them.

If you want a patch for a previous kernel and it's not on my site, let me know and I'll put one up. Remember that Gentoo's Win4Lin-sources may have a kernel for you already, these patches aren't meant to replace them if there is one there already.

:D


Last edited by Pink on Wed Jul 14, 2004 4:20 pm; edited 2 times in total
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Tue Jun 29, 2004 10:23 am    Post subject: Reply with quote

Judging from the number of downloads and emails I've been getting, it seems a fairly popular patch.

So, just to let you know, I have just added a patch for:

2.6.7-mm4

[edit]Well, I do get seg faults on this mm4 patch, but I've received some reports of it working perfectly on mm4. So give it a go, who knows it may work prefectly on your system :D


Last edited by Pink on Tue Jun 29, 2004 9:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
brenden
l33t
l33t


Joined: 09 Mar 2004
Posts: 710
Location: Calgary, AB

PostPosted: Tue Jun 29, 2004 8:36 pm    Post subject: Reply with quote

Thanks for the patches! The 2.6.7 vanilla one is great.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Thu Jul 01, 2004 8:05 am    Post subject: Reply with quote

Glad you like them :D

win4lin patch for 2.6.7-mm5 added, patches, compiles and runs fine here.
Back to top
View user's profile Send private message
woobi
n00b
n00b


Joined: 27 Dec 2003
Posts: 4

PostPosted: Fri Jul 02, 2004 8:10 pm    Post subject: Reply with quote

Hey I just tried the 2.6.7-mm2 patch and win4lin runs fine here :)
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Mon Jul 05, 2004 10:57 am    Post subject: Reply with quote

woobi: good to hear :D

As I'm sure all self respecting win4lin users will know, Netraverse has released an updated patch set for the 2.6.7 kernel.

The code really hasn't changed a great deal but all new patches will be made using their new base.

Also, 2.6.7-mm6 was released this morning and a win4lin patch is available (see sig). Hope you enjoy it.

Many thanks for all the emails i have been getting, it is encouraging and, to those who asked, yes I will be putting new patches out for each kernel release (providing I can get them to work that its :? )
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Wed Jul 14, 2004 4:20 pm    Post subject: win4lin patches - seg fault fix Reply with quote

Just thought I'd update everyone, the segfault problem with the win4lin patches that many people have been getting has been fixed in the latest versions on my site.

This issue affected a couple more kernels but has been fixed for:

2.6.8-rc1-mm1 - newest win4lin patch
2.6.7-mm7
2.6.7-mm6
2.6.7-mm5

Updated patches can be found at the usual place:

http://www.pickledonion.net

As can be seen by the above list, win4lin patches are also available for 2.6.8-rc1 and 2.6.7-rc1-mm1 (mm1 released this morning)

I hope that helps people who were gettnig the segfaults.

Thanks go to Sung-won for his help in this matter (also thanked in each patch's release notes). :D
Back to top
View user's profile Send private message
Vroem
n00b
n00b


Joined: 19 Aug 2003
Posts: 8

PostPosted: Thu Jul 15, 2004 9:02 pm    Post subject: Didn't work for me Reply with quote

Hi

I'm trying to get win4lin to work for the first time (along with the mm-sources)
I'm not sure what I did wrong:
Code:

ACCEPT_KEYWORDS="~x86" emerge mm-sources
rm /usr/src/linux   (currently pointing to /usr/src/linux/linux-2.6.7-gentoo-r9)
ln -s /usr/src/linux-2.6.7-mm6 /usr/src/linux
cd /usr/src/linux/
patch -p1 <~/2.6.7-mm6-win4lin-segfault-fix.patch
cp ../linux-2.6.7-gentoo-r9/.config ./   
make && make modules_install

It ends like this:
Code:

  ...
  CC      arch/i386/lib/memcpy.o
  CC      arch/i386/lib/strstr.o
  CC      arch/i386/lib/usercopy.o
  AR      arch/i386/lib/lib.a
  GEN     .version
  CHK     include/linux/compile.h
  UPD     include/linux/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/i386/kernel/built-in.o(.text+0xacf): In function `__switch_to':
: undefined reference to `mhi_hooks'
arch/i386/kernel/built-in.o(.text+0x208f): In function `do_notify_resume':
: undefined reference to `mhi_hooks'
kernel/built-in.o(.text+0x9dbc): In function `do_exit':
: undefined reference to `mhi_hooks'
kernel/built-in.o(.sched.text+0x4ef): In function `schedule':
: undefined reference to `mhi_hooks'
mm/built-in.o(.text+0xe56c): In function `try_to_free_pages':
: undefined reference to `mhi_hooks'
make: *** [.tmp_vmlinux1] Fout 1


"Fout" means "error" in my language ;).
Here is what my .config looks like after all this.
Maybe I'm missing something, but besides netraverses documentation I didn't find much instructions on how to do this on Gentoo.
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Fri Jul 16, 2004 7:55 am    Post subject: Reply with quote

Vroem,

thanks for the question, I followed your process to try and reproduce the error, but it compiles perfectly, using your config file and method.

Please see the code below, not to prove it, but to show you the rest of the compile from your error:

Code:
 LD      init/built-in.o
  LD      .tmp_vmlinux1
  KSYM    .tmp_kallsyms1.S
  AS      .tmp_kallsyms1.o
  LD      .tmp_vmlinux2
  KSYM    .tmp_kallsyms2.S
  AS      .tmp_kallsyms2.o
  LD      vmlinux
  AS      arch/i386/boot/bootsect.o
  LD      arch/i386/boot/bootsect
  AS      arch/i386/boot/setup.o
  LD      arch/i386/boot/setup
  AS      arch/i386/boot/compressed/head.o
  CC      arch/i386/boot/compressed/misc.o
  OBJCOPY arch/i386/boot/compressed/vmlinux.bin
  GZIP    arch/i386/boot/compressed/vmlinux.bin.gz
  LD      arch/i386/boot/compressed/piggy.o
  LD      arch/i386/boot/compressed/vmlinux
  OBJCOPY arch/i386/boot/vmlinux.bin
  HOSTCC  arch/i386/boot/tools/build
  BUILD   arch/i386/boot/bzImage
Root device is (3, 4)
Boot sector 512 bytes.
Setup is 4543 bytes.
System is 2093 kB
Kernel: arch/i386/boot/bzImage is ready
  Building modules, stage 2.
  MODPOST
  CC      arch/i386/mki-adapter26/mki-adapter.mod.o
  LD [M]  arch/i386/mki-adapter26/mki-adapter.ko
  CC      drivers/block/cryptoloop.mod.o
  LD [M]  drivers/block/cryptoloop.ko
  CC      drivers/ieee1394/dv1394.mod.o
  LD [M]  drivers/ieee1394/dv1394.ko
  CC      drivers/ieee1394/sbp2.mod.o
  LD [M]  drivers/ieee1394/sbp2.ko
  CC      drivers/ieee1394/video1394.mod.o
  LD [M]  drivers/ieee1394/video1394.ko
  CC      drivers/media/video/v4l1-compat.mod.o
  LD [M]  drivers/media/video/v4l1-compat.ko
  CC      drivers/media/video/v4l2-common.mod.o
  LD [M]  drivers/media/video/v4l2-common.ko
  CC      drivers/media/video/videodev.mod.o
  LD [M]  drivers/media/video/videodev.ko
  CC      drivers/net/dummy.mod.o
  LD [M]  drivers/net/dummy.ko
  CC      fs/reiserfs/reiserfs.mod.o
  LD [M]  fs/reiserfs/reiserfs.ko
  INSTALL arch/i386/mki-adapter26/mki-adapter.ko
  INSTALL drivers/block/cryptoloop.ko
  INSTALL drivers/ieee1394/dv1394.ko
  INSTALL drivers/ieee1394/sbp2.ko
  INSTALL drivers/ieee1394/video1394.ko
  INSTALL drivers/media/video/v4l1-compat.ko
  INSTALL drivers/media/video/v4l2-common.ko
  INSTALL drivers/media/video/videodev.ko
  INSTALL drivers/net/dummy.ko
  INSTALL fs/reiserfs/reiserfs.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.7-mm6; fi
WARNING: /lib/modules/2.6.7-mm6/video/fglrx.ko needs unknown symbol _mmx_memcpy


The warning you see at the bottom is because I haven't installed the ati-drivers properly yet and not to do with the win4lin patch.

I don't know what to suggest, the only thing I would say is that your patch command needs a space between the < and the ~, mine is shown here:
Code:
patch -p1 < /home/patches/win4lin/2.6.7-mm6/2.6.7-mm6-win4lin-segfault-fix.patch


but then, it obviously worked for you as you had the netraverse option selected in your config file.

If anyone else has any ideas I would be grateful to hear them.

In the meantime Vroem, perhaps you could emerge -C mm-sources, and try again from scratch?
Back to top
View user's profile Send private message
Pink
Veteran
Veteran


Joined: 24 Jul 2003
Posts: 1062

PostPosted: Fri Jul 16, 2004 8:14 am    Post subject: Reply with quote

Vroem,

I thought, as you are using a PII, you might be on older configuration files, so I tried the whole process with your config file, using gcc-3.3.4 (I usually use gcc-3.4.1) and it worked perfectly again. :?

Sorry I can't be more help, but I have no idea why it doesn't work on your machine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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