You are not logged in.

#1 2004-08-02 08:56:07

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Hello & here's some win4lin patches

Hello,

I just moved from Gentoo as, although I think it is an incredible distro and I miss a lot of it's features, I couldn't take compiling everything  :?

So, here I am, I like Arch very much, most of the differences will only take a bit of time to get used to and, so far, I am very impressed.

Here's a big thank you to all those involved in creating and maintaining it  big_smile

Now for the second part of my post.

Whilst in Gentoo Land I became a bit of a win4lin guru and kept a repository of win4lin patches for all new kernels coming out, I am getting about 20 - 30 patch downloads a day and thought I would share them with you.

I only have win4lin patches for the newest kernels so the oldest one available is for 2.6.7-mm5, and the newest at the moment is for 2.6.8-rc2.

Please find them at www.pickledonion.net or see my sig.


Once again, please accept my thanks for this distro and if posting links is wrong for a first post - please accept my apologies.

If you want to check my credentials please go to gentoo forums and search for user pickledonion and see my posts.

I hope this isn't classed as spam as the patches were very popular in Gentoo land and I hope you appreciate them in Arch land  big_smile


pickledonion AT gmail.com

Offline

#2 2004-08-02 11:12:54

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

Welcome.

HINT:
Try srcpac to customize the default packs.
pacman -S srcpac

I'm sure you'll like it. Here's a topic about it.

Offline

#3 2004-08-02 11:26:28

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

Thanks for the welcome IceRAM.

I like the link you gave, I'll be looking at that more closely later.

I'm liking Arch more every hour as I delve into it, the forums seem to have everything I've come across covered with some excellent how to threads.


pickledonion AT gmail.com

Offline

#4 2004-08-02 12:01:36

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

_PickledOnion_ wrote:

I'm liking Arch more every hour as I delve into it, the forums seem to have everything I've come across covered with some excellent how to threads.

Hmm... you haven't seen the Wiki yet, have you? smile

Oh, and something which will probably interest you: http://wiki.archlinux.org/index.php/Win4Lin%20setup

I'm thinking that it would be good from time to time to check the Recent Changes there, there is plenty of info there.
The greatest page of all (IMO): http://wiki.archlinux.org/index.php/Arc … %20WHERETO

Offline

#5 2004-08-02 13:00:04

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

Certainly have - the wiki is a good resource.

I installed win4lin before seeing the thread and wiki pages - it's my thing... if it stays still long enough I'll either install win4lin or patch it so it can be installed  tongue

Thanks for the extra links - always useful.

Got everything sorted now, nfs, win4lin, abs, srcpac, printing, sound, custom kernel(s), etc. That's what I like about this distro - everything is so easy to setup  big_smile


pickledonion AT gmail.com

Offline

#6 2004-08-02 14:52:48

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

Could you please share your knowledge on Win4lin in the ArchLinux wiki page? As far as I've seen, it's not finished yet.

Lots of thanks.

IceRAM

Offline

#7 2004-08-02 15:36:47

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

Love to - what exactly do you/people want to know?

Having looked at the win4lin wiki page it seems to be pretty comprehensive.... follow it word for word and you will get a working win4lin big_smile

The only thing I would say people may not know is how to add a win4lin patch to a kernel. However, I do have a very comprehensive how to... on my website (see sig) which covers every step of obtaining and patching a kernel but it is far too long to put on the win4lin wiki page, and, to be honest, is a different subject to simply getting the win4lin prog to work.

Can you think of anything else I may add? (I also can't help with the download of the win4lin binary as you have to be a member of Netraverse, log on and pay for a license)

Please do disagree if you think I could help in some way.

[edit]

I have adjusted the wiki to point to the 'how to apply a win4lin patch' on my site.

The site doesn't advertise anything and I get no revenue so please don't worry about that.

It's just that the how to is too long to paste into the wiki.

[/edit]


pickledonion AT gmail.com

Offline

#8 2004-08-02 19:43:28

Haakon
Member
From: Bergen, Norway
Registered: 2004-05-09
Posts: 109

Re: Hello & here's some win4lin patches

_PickledOnion_ wrote:

It's just that the how to is too long to paste into the wiki.

Just make a seperate wiki page for it, and link to that instead. That way, others can contribute too. (It's your call of course, but it would be great)

Offline

#9 2004-08-02 20:13:04

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

Well, I have to admit I didn't know anything about Win4lin until this morning. When I found out about it from your post, I was totally impressed. While I was having a look in the Wiki, I got to that page but when I opened it I got dissapointed because the "Patch the kernel" section was not complete.

I also did some searches on the forum and found out somebody had already built a package for Win4lin 3.0. I have no idea what are the differences between 3.0, 4.0 and 5.0.

Offline

#10 2004-08-03 04:12:13

leejpar
Member
From: Texas, USA
Registered: 2004-05-28
Posts: 51
Website

Re: Hello & here's some win4lin patches


Linux Registered User #337161
'It's free. It works. Duh.'" - Eric Harrison

Offline

#11 2004-08-03 07:29:25

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

Leejpar, thanks very much for the links, unfortunatley, the problem with those patches, and the entire reason I started my win4lin patch site, is they only work on vanilla kernels.

For example the Netraverse patches only work on 2.6.6 or 2.6.7 (or any other vanilla kernel).

Or to put it another way, they do not work for 2.6.7-mm1, mm2, mm3, mm4, mm5, mm6, mm7, 2.6.8-rc1, 2.6.8-rc1-mm1, 2.6.8-rc2, 2.6.8-rc1-mm1, 2.6.8-rc2-mm2, 2.6.7-ck5, 2.6.7-ck6....(well, you get the picture as that is some of the kernels since the last vanilla release :shock: )

So what do you do if you want win4lin and don't want to be stuck with a vanilla kernel?   Simple, either patch them yourself (fix the multiple rejects, adjust the code as the init_tss code has changed and then reverse the patches that stop it from compiling even after the fixes, then reverse the patches that stop the seg-fault issue), or use one of my patches.

Obviously if you are using a vanilla kernel then you will be happy using the patches direct from Netraverse  big_smile


pickledonion AT gmail.com

Offline

#12 2004-08-03 07:37:07

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

IceRAM wrote:

Well, I have to admit I didn't know anything about Win4lin until this morning. When I found out about it from your post, I was totally impressed. While I was having a look in the Wiki, I got to that page but when I opened it I got dissapointed because the "Patch the kernel" section was not complete.

I also did some searches on the forum and found out somebody had already built a package for Win4lin 3.0. I have no idea what are the differences between 3.0, 4.0 and 5.0.

Can I ask if you mean the "Patch the kernel" section was not complete was before I put a link on the wiki or is the link not complete, I realise it is aimed at Gentoo but the instructions are exactly the same in Arch. If I have left something out or it is difficult to follow, can you let me know? I have had other people use it but they may have had knowledge you don't.

Anyway, the differnce between the win4lin versions is the same as any programme version - the higher the number the newer it is.

For the 2.6.4+ kernel you must have version 5.0+, and for it to install and work correctly you need one of the latest (say Win4Lin-5.5.16c-d.i386.rpm), anything below that version and you will get /proc/ksyms problems, obviously due to the substantial change in the kernel code.

HTH  big_smile


pickledonion AT gmail.com

Offline

#13 2004-08-03 10:29:23

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

The kernel section was incomplete before you put the link there. The way it is explained there is not the ArchLinux way to do it, but it works until now.

Offline

#14 2004-08-03 11:16:56

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

Glad it works for you, the link is not meant to be the 'Arch way' it is, however, the 'Linux way'.

In other words the instructions work no matter what distro people are using. They will also stay that way as I have no intention of limiting either my patches or any how to... details to one specific distro (although they do need a bit of a clean up  big_smile ).

So... a call goes out to anyone who would like to modify my how to... (or create a new one) and put it in the wiki in an 'Arch way' so those people who do use this distro can use this distro's method of doing things. 

If you mean creating an abs for people to use then please would somebody do this (if they have the time and inclination) as I won't get round to doing it I'm afraid, my time is spent on making the patches accesible to all Linux users (this is the same reason I didn't make any ebuilds for them when I was using Gentoo).

Any help really appreciated by me (and by other Arch users I would assume  big_smile )


pickledonion AT gmail.com

Offline

#15 2004-08-03 14:26:07

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Hello & here's some win4lin patches

Ante Scriptum: I said "it works" in my previous post considering the general use, not thinking that I've got actually through all the steps.


The ArchLinux way:

put this PKGBUILD & you kernel config file (named "config") in "/var/abs/local/kernel26-win4lin". If you don't use the default kernel config file that comes with Arch, don't forget to modify the 2nd md5sums line with the appropriate md5.

PKGBUILD:

# v0.2 2004/07/23 - Wojciech Szlachta
# Modified from official PKGBUILD for kernel26-scsi by judd <jvinet@zeroflux.org>
# and from custom PKGBUILD to support multiple installed kernels by jea.
#
# 2004/08/03 - Mircea Bardac (IceRAM)
# Modified from
# http://wiki.archlinux.org/index.php/Building%20and%20installing%20multiple%20kernels%20with%20ABS 
# with patches for Win4lin from http://www.pickledonion.net/

kerrev=win4lin
pkgname=kernel26-$kerrev
pkgver=2.6.7
pkgrel=1
pkgdesc="Custom Linux Kernel and modules revision: $kerrev ver: $pkgver build: $pkgrel"
url="http://www.kernel.org"
depends=('module-init-tools')
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$pkgver.tar.bz2 
        config 
        http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.8-rc1.bz2 
        http://www.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.8-rc1/2.6.8-rc1-mm1/2.6.8-rc1-mm1.bz2 
        http://www.pickledonion.net/patches/win4lin/2.6.8-rc1-mm1/2.6.8-rc1-mm1-win4lin.gcc341.patch.bz2 
        )
md5sums=('a74671ea68b0e3c609e8785ed8497c14' 
         '6201e256d4eadb5d3775d1cee020ecfd' 
         'b96bc0b2c12d029ef01c99a3b7a42cfc' 
         'ab2b075dee78707f9b7d4f6cde92a871' 
         '159effa3f065c4b174c7f9b9bca4d85c')

build() {
  cd $startdir/src/linux-$pkgver
  # apply patches here
  patch -p1 < ../patch-2.6.8-rc1
  patch -p1 < ../2.6.8-rc1-mm1
  patch -p1 < ../2.6.8-rc1-mm1-win4lin.gcc341.patch

  # get rid of the 'i' in i686
  carch=`echo $CARCH | sed 's|i||'`
  cat ../config | sed "s|#CARCH#|$carch|g" >./.config
  # make changes in kernel configuration
  # make menuconfig
  yes "" | make config
  # set EXTRAVERSION to create unique /lib/modules/ subdirectories
  cat Makefile | sed "s|EXTRAVERSION =|EXTRAVERSION = -$kerrev|" > tmpMake
  mv tmpMake Makefile
  make clean bzImage modules || return 1
  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  # create unique names in /boot/
  cp System.map $startdir/pkg/boot/System.map26-$kerrev
  cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26-$kerrev
  install -D -m644 Makefile $startdir/pkg/usr/src/linux-$pkgver/Makefile
  install -D -m644 .config $startdir/pkg/usr/src/linux-$pkgver/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26-$kerrev
  mkdir -p $startdir/pkg/usr/src/linux-$pkgver/include
  mkdir -p $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel
  for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-$pkgver/include/
  done
  # copy files necessary for later builds, like nvidia and vmware
  cp -a scripts $startdir/pkg/usr/src/linux-$pkgver/
  mkdir -p $startdir/pkg/usr/src/linux-$pkgver/.tmp_versions
  cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$pkgver/arch/i386/
  cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$pkgver/arch/i386/kernel/
  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do
    mkdir -p $startdir/pkg/usr/src/linux-$pkgver/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-$pkgver/$i
  done
  cd $startdir/pkg/usr/src/linux-$pkgver/include && ln -s asm-i386 asm
  chown -R root.root $startdir/pkg/usr/src/linux-$pkgver
  # create a unique subdirectory under /usr/src/
  cd $startdir/pkg/usr/src
  mv linux-$pkgver linux-$pkgver-$kerrev
  cd $startdir/pkg/lib/modules/$pkgver-$kerrev && 
    (rm -f build; ln -sf /usr/src/linux-$pkgver-$kerrev build)
}

Run (in the same dir)

$ makepkg

This will download the sources (or you could put them in /var/cache/pacman/src and it will just copy them from there), patch the kernel and build it with the supplied kernel config settings.

To install (as root):

# pacman -U kernel26-win4lin-2.6.7-1.pkg.tar.gz

I didn't get this far - I only saw that it was compiling. I know the name is not very correct, but that's because it uses 2.6.7 as base kernel.

Modify the boot config appropriately (grub/lilo) to include the new kernel.

Please test and tell me if it works (&with what versions of Win4lin). Theoretically, it will work. It would take me a lot of time to compile it (~3mb tar.gz sources = ~30mins compile time // I don't want to think how much it would take me to compile the kernel).

Thanks.

Offline

#16 2004-08-03 14:42:32

leejpar
Member
From: Texas, USA
Registered: 2004-05-28
Posts: 51
Website

Re: Hello & here's some win4lin patches

_PickledOnion_ wrote:

Leejpar, thanks very much for the links, unfortunatley, the problem with those patches, and the entire reason I started my win4lin patch site, is they only work on vanilla kernels.

For example the Netraverse patches only work on 2.6.6 or 2.6.7 (or any other vanilla kernel).

It is my understanding that Arch uses standard kernels from kernel.org anyway.

Standard kernels generally will work fine on most Distro's. If they do not, I want dump that distro.. I put a Win4Lin patched standard 2.6.7 kernel on my Fedora Core 2 box over the weekend and it's really better then the Fedora 2.6.6.xxx.xxx... kernel that was on there before. I will be doing the same to Arch within the next couple of weeks. I still need WIN98 for Quicken and Turbo Tax. I am not aware of any Tax software for Liinux. I can do my taxes in about 30 minutes in Turbo Tax!


Linux Registered User #337161
'It's free. It works. Duh.'" - Eric Harrison

Offline

#17 2004-08-03 15:47:23

_PickledOnion_
Member
From: Lincoln,UK
Registered: 2004-07-31
Posts: 21
Website

Re: Hello & here's some win4lin patches

@ IceRAM: Thanks very much for you last post. Very useful and an execellent little tutorial into the arch way, much appreicated  big_smile

@ leejpar: I think you missunderstood what I was trying to say:

The Netraverse patches only work for vanilla (which is what I think you mean by standard. e.g. 2.6.4, 2.6.5, 2.6.6, 2.6.7) kernels from kernel.org. If you want to use the other 95% of the kernel releases from kernel.org then they will not work.

For example, if you use the 2.6.8-rc patch series, in preperation for the vanilla 2.6.8 from kernel.org, you will not be able to patch the Netraverse patches to it (without some changes), the same with the only patchest sanctioned by Linus (the mm-patchset) and obtained from kernel.org, you will need to adjust the patches.

And, although you are certainly correct in Arch using a vanilla kernel; judging by the number of mm-kernel win4lin patch downloads a day, it seems many people are keen to move on from the vanilla kernel  big_smile

Anyway, the patches are there if people want them (I also added 2.6.7-ck6 and 2.6.8-rc2-mm1 patches today today).


pickledonion AT gmail.com

Offline

Board footer

Powered by FluxBB