I notice a marked improvement when using the 2.6.23-rc6 kernel
(kernel.org vanilla, compiled using the Master Kernel Thread @
UbuntuForums).

My suggested solution is to use the sky2.c out of the vanilla kernel.
The one in the Ubuntu kernel 2.6.22-11 reports "sky2 1.14".  Type this
to see your version.  "sudo ethtool -i eth0"

With 2.6.23 you get sky2 1.17.  I suspect that there are missing patches
in the Ubuntu 2.6.22 kernel (some were backported while others were not,
when all needed to be backported at once).  I think it needs to be
sync'd with the vanilla kernel version.

I am not certain that using 1.17 (from vanilla) is a solution but I
think it is a good idea in general.  The patches were committed to the
mainstream kernel for good reason.  Even if it doesn't solve my problems
(which, so far, I think it has), it may solve others'.  Sky2 is a fast-
changing driver and all improvements need to be backported ASAP IMO,
especially considering that sky2 hardly works for maybe 10% of those
using it.  And, sky2 supports a very popular network chipset on new
computers (Marvell Yukon).

I have attached a diff of the sky2.c from 2.6.23-rc6 and the one from
the current Gutsy kernel.  I think this is all that is needed for the
changes.  Here are the changes from 2.6.22-11 (Ubuntu) to 2.6.23-rc6,
attached.  I diff'd sky2.h and sky2.c and combined them into one diff
file.  I haven't tested compiling 2.6.22-11 with the new sky2 files yet
(I have only compiled a 2.6.23-rc6 kernel) but I have a good feeling
that sky2.c/sky2.h is where the problem lies.  I hope to be able to test
it myself very soon.

Please consider this solution and it would be nice if others could test
this patch so we can get it into the final Gutsy.

You should be able to apply the patch like this.  Keep Master Kernel
Thread @ http://ubuntuforums.org/showthread.php?t=311158  handy.  Save
2.6.22-11.32_sky2+2.6.23-rc6.patch (attached) to desktop.

Prerequisite: "sudo apt-get update && sudo apt-get upgrade".  Reboot if
there is a kernel update.  Then follow these steps.  If your kernel
isn't exactly 2.6.22-11.32 then the patch should still work (unless
there have been more modifications to sky2 since).

1. sudo apt-get install linux-source-2.6.22
2. cd /usr/src
3. tar xjvf linux-source-2.6.22.tar.bz2
4. Follow steps 1-3 at Master Kernel Thread (including getting in root).  (Not 
step 4 because we have unpacked the Ubuntu linux source.  Not step 5 because I 
have a modification.)
5. rm -rf linux && ln -s /usr/src/linux-source-2.6.22 linux && cd /usr/src/linux
6. patch -p2 < ~/Desktop/2.6.22-11.32_sky2+2.6.23-rc6.patch 
7. Continue, starting from step 8 at Master Kernel Thread.  You shouldn't need 
to go through any menu items because our current kernel is identical to the one 
we're compiling.  For Step 10 it doesn't matter what revision you use, maybe 
something unique like "sky2" so it doesn't get confused with your current 
kernel.

I hope this helps somebody compile an Ubuntu kernel w/ a new, fixed
sky2.  Most importantly, please report back if it works for you.  Thank
you.  If there are any problems I apologize, but never delete your old
kernel for any reason.

-- 
Sky2 ethernet failing randomly with Marvell 88E8056 gigabit
https://bugs.launchpad.net/bugs/138611
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to