PDA

View Full Version : need help installing network on my kubuntu



lexloopor
Dec 3rd 2009, 01:00 PM
hi everyone, i installed the new karmic koala a few days ago and since that moment ive been trying to install drivers for the network.
First i have to explain that my experience with linux and kernel and drivers is more than poor so i took it really easy and i searched in many forums for my problem and followed many instructions step by step.
I have a laptop Toshiba P305 S8844
when i install kubuntu the audio seems to work perfectly and the drivers for my mobility radeon are working aswell
my ethernet car Marvell Yukon 88E8040T and my wifi are not there
i want to make the ethernet work first to be able to have internet, i already saw tutorials for installing madwifi and right now it looks impossible with my experience
i already reinstalled kubuntu 3 times this days in what i call the learning process and i already understood that i need to install build essential and that i need to have a kernel source in usr/src with the link to "linux" to make this installation works so i downloaded the last stable kernel from k... .org and this is as far as i could get with the installation:

First i run install.sh and i select "install" from the menu (notice that i get some warnings wich i dont understand and i guess that they cause my issue "The kernel's modpost utility is not available"):

$ sudo ./install.sh

Installation script for sk98lin driver.
Version 10.81.6.3 (Nov-13-2009)
(C)Copyright 2003-2009 Marvell(R).
================================================== ==
Add to your trouble-report the logfile install.log
which is located in the DriverInstall directory.
================================================== ==

1) installation
2) generate patch
3) exit
Choose your favorite installation method: 1

Please read this carfully!

This script will automatically compile and load the sk98lin
driver on your host system. Before performing both compilation
and loading, it is necessary to shutdown any device using the
sk98lin kernel module and to unload the old sk98lin kernel
module. This script will do this automatically per default.

Please plug a card into your machine. Without a card we aren't
able to check the full driver functionality.

Do you want proceed? (y/N) y

IMPORTANT INFORMATION!

We found an alternative driver for your Marvell product on this system.
The alternative driver is _NOT_ directly supported by Marvell and does not
include all features provided by your device. If you want to use the
sk98lin driver developed by Marvell, you may choose either to deactivate
or remove the alternative driver.

[PRESS ANY KEY FOR FURTHER INSTRUCTIONS]


Do nothing:
- The sk98lin will be installed
NOTE: It may happen that the alternative driver will be loaded on
the next boot process. In this case the Marvell driver _WON'T_ be
loaded.

Deactivate driver:
- The alternative driver will be renamed to _skge.ko or _sky2.ko
- All references in the /etc/modprobe.conf file will be changed to
the sk98lin driver
- The alternative driver will be unloaded
- The sk98lin driver will be installed

Remove driver (recommended):
- The alternative driver will be removed from your system
- All references in the /etc/modprobe.conf file will be changed to
the sk98lin driver
- The alternative driver will be unloaded
- The sk98lin driver will be installed


1) Do nothing
2) Deactivate diver
3) Remove driver
Action: 3

Disconnect alternative devices: (done) [ OK ]
Unload alternative driver (done) [ OK ]
Create tmp dir (/tmp/Sk98IePAEpoMZAKkcXDpSoMRT) [ OK ]
Check user id (0) [ OK ]
Check kernel version (2.6.31-14-generic) [ OK ]
Check kernel symbol file (/proc/kallsyms) [ OK ]
Check kernel type (SMP) [ OK ]
Check number of CPUs (2) [ OK ]
Check architecture (found) [ OK ]
Set architecture (x86_64) [ OK ]
Check compiler (/usr/bin/gcc) [ OK ]
Check mcmodel flags (kernel) [ OK ]
Check module support (/sbin/insmod) [ OK ]
Check make (/usr/bin/make) [ OK ]
Check kernel gcc version (4.4.1) (Kernel:4.4.1 == gcc:4.4.1) [ OK ]
Check sk98lin driver availability (not loaded) [ OK ]
Check kernel header files (/lib/modules/2.6.31-14-generic/build) [ OK ]
Check sources for .config file (none) [ OK ]
Execute: make mrproper working./functions: line 1289: cd: /lib/modules/2.6.31-14-generic/source: No such file or directory
Execute: make mrproper (done) [ OK ]
Execute: make config working./functions: line 1514: cd: /lib/modules/2.6.31-14-generic/source: No such file or directory
Execute: make config (done) [ OK ]
cp: cannot stat `/lib/modules/2.6.31-14-generic/source/.config': No such file or directory
Copy and check .config file workingcp: cannot stat `/lib/modules/2.6.31-14-generic/source/.config': No such file or directory
cp: cannot stat `/lib/modules/2.6.31-14-generic/source/.config': No such file or directory
grep: /tmp/Sk98IePAEpoMZAKkcXDpSoMRT/config: No such file or directory
./functions: line 581: [: -gt: unary operator expected
sed: can't read /tmp/Sk98IePAEpoMZAKkcXDpSoMRT/config: No such file or directory
Copy and check .config file (done) [ OK ]
Check the mem address space (lowmem) [ OK ]
Change IOMMU (enabled) [ OK ]
Create new .config filecp: cannot create regular file `/lib/modules/2.6.31-14-generic/source/.config': No such file or directory
(done) [ OK ]
diff: /tmp/Sk98IePAEpoMZAKkcXDpSoMRT/config-bk2: No such file or directory
diff: /lib/modules/2.6.31-14-generic/source/.config: No such file or directory
Check modpost availability (not available) [ warn ]

The kernel's modpost utility is not available. Addtionally we did not
even find the source code for the utility. For this situation it exists
only one reason: your kernel source tree is corrupted.

You may continue to check for the modpost.c file below the directory
/usr/src/linux/scripts/mod. Normally you should find here also a binary
called modpost. Both seem to be missing.

Please contact your distribution vendor or download a kernel from
kernel.org to build your own kernel manually. It then will contain the
missing utility.


i avoid the warnings and i continue the process (no warnings here):

$ sudo ./install.sh

Installation script for sk98lin driver.
Version 10.81.6.3 (Nov-13-2009)
(C)Copyright 2003-2009 Marvell(R).
================================================== ==
Add to your trouble-report the logfile install.log
which is located in the DriverInstall directory.
================================================== ==

1) installation
2) generate patch
3) exit
Choose your favorite installation method: 2

Create tmp dir (/tmp/Sk98IDTHGZMblRMBmSNjPAQCh) [ OK ]
Unpack the sources (done) [ OK ]

Kernel source directory (/usr/src/linux) :
Patch name (/home/fernando/Desktop/driversath/DriverInstall/sk98lin_v10.81.6.3_2.6.31_patch) :


Kernel version (2.6.31) [ OK ]
Driver version (10.81.6.3) [ OK ]
Release date (Nov-13-2009) [ OK ]
Check kernel functions (Changed: nothing) [ OK ]
Generate driver patches (done) [ OK ]
Generate readme patch (done) [ OK ]
Generate Kconfig patch (done) [ OK ]
Generate Makefile patch (done) [ OK ]
Delete temp directories (done) [ OK ]

All done. Patch successfully generated.
To apply the patch to the system, proceed as follows:
# cd /usr/src/linux
# cat /home/fernando/Desktop/driversath/DriverInstall/sk98lin_v10.81.6.3_2.6.31_patch | patch -p1

Have fun...

soooo... what i do next is apply this patch to finish:

$ cd /usr/src/linux
$ sudo cat /home/fernando/Desktop/driversath/DriverInstall/sk98lin_v10.81.6.3_2.6.31_patch | patch -p1
patching file drivers/net/sk98lin/h/lm80.h
patching file drivers/net/sk98lin/h/mvyexhw.h
patching file drivers/net/sk98lin/h/skaddr.h
patching file drivers/net/sk98lin/h/skcsum.h
patching file drivers/net/sk98lin/h/skdebug.h
patching file drivers/net/sk98lin/h/skdrv1st.h
patching file drivers/net/sk98lin/h/skdrv2nd.h
patching file drivers/net/sk98lin/h/skerror.h
patching file drivers/net/sk98lin/h/skgedrv.h
patching file drivers/net/sk98lin/h/skgehw.h
patching file drivers/net/sk98lin/h/skgehwt.h
patching file drivers/net/sk98lin/h/skgeinit.h
patching file drivers/net/sk98lin/h/skgepnm2.h
patching file drivers/net/sk98lin/h/skgepnmi.h
patching file drivers/net/sk98lin/h/skgesirq.h
patching file drivers/net/sk98lin/h/skgetwsi.h
patching file drivers/net/sk98lin/h/skpcidevid.h
patching file drivers/net/sk98lin/h/skqueue.h
patching file drivers/net/sk98lin/h/skrlmt.h
patching file drivers/net/sk98lin/h/sktimer.h
patching file drivers/net/sk98lin/h/sktwsi.h
patching file drivers/net/sk98lin/h/sktypes.h
patching file drivers/net/sk98lin/h/skversion.h
patching file drivers/net/sk98lin/h/skvpd.h
patching file drivers/net/sk98lin/h/sky2le.h
patching file drivers/net/sk98lin/h/xmac_ii.h
patching file drivers/net/sk98lin/Makefile
patching file drivers/net/sk98lin/skaddr.c
patching file drivers/net/sk98lin/skcsum.c
patching file drivers/net/sk98lin/skdim.c
patching file drivers/net/sk98lin/skethtool.c
patching file drivers/net/sk98lin/skge.c
patching file drivers/net/sk98lin/skgehwt.c
patching file drivers/net/sk98lin/skgeinit.c
patching file drivers/net/sk98lin/skgemib.c
patching file drivers/net/sk98lin/skgepnmi.c
patching file drivers/net/sk98lin/skgesirq.c
patching file drivers/net/sk98lin/sklm80.c
patching file drivers/net/sk98lin/skproc.c
patching file drivers/net/sk98lin/skqueue.c
patching file drivers/net/sk98lin/skrlmt.c
patching file drivers/net/sk98lin/sktimer.c
patching file drivers/net/sk98lin/sktwsi.c
patching file drivers/net/sk98lin/skvpd.c
patching file drivers/net/sk98lin/skxmac2.c
patching file drivers/net/sk98lin/sky2.c
patching file drivers/net/sk98lin/sky2le.c
patching file drivers/net/sk98lin/vpdcheck.c
patching file Documentation/networking/sk98lin.txt
patching file drivers/net/Kconfig
patching file drivers/net/Makefile


after this... shouldnt i be able to see the device next to the only device that i could install (my poor mobility radeon)??
does anyone knows what are this messages that i get in the first step??
im really sorry for the amount of text and i appreciate if you read it all.... i am really looking forward to leave windows and use linux from now on but it looks impossible for me... are there any chances to get drivers installers like the .run that i got from ati? is there any reason why companies dont develope driver installers like this? easy to use and no kernel source or terminal skills needed?
if it helps im a 3d artist so if someone needs 3d in this forum thats my way to help back! ;D

sas3
Dec 4th 2009, 09:55 AM
I am not familiar with your particular drivers, but you should probably patch your source files first (i.e., before you try to compile them).
That said, there could be more than one problem here...

lexloopor
Dec 4th 2009, 11:46 AM
thanks sas3 ... i assume that you are talking about the option 2 in my installer that says generate patch
Ill try it and i will let you know... but the readme file explains step by step and shows generating drivers before the patch process... i found an insane number of people in internet who has this problem with this device so if i can solve it ill make a for-dummies-step-by-step-tutorial
again thanks for your answer :)

lexloopor
Dec 4th 2009, 05:41 PM
BTW... i could make the installer "work" and now i dont get the "No such file or directory" messages of step #1 by installing some development kits from the kubuntu Dvd
but i still get this message at the end

Check modpost availability (not available) [ warn ]

and also the same warning saying that the utility is not available so i decided to avoid this warning and go on and make the patch. Then did a "make xconfig" as the installation guide said and i selected the driver from the driver list bla bla bla...
evrything seems to work fine and then when i boot with my new kernel and i check in the terminal for this driver by "sudo modprobe sk98lin" i get a fatal error so theres no driver loaded...
im still thinking that this is caused for the warning in the begining... any ideas???

pompos
Dec 8th 2009, 09:30 PM
I have the same problem :(

I guess the problem is that the installation script looks at the wrong location for the kernel sources. Unfortunately, I don't know how to convince it to look at a different location. However, with a symbolic link it was possible :o like form /usr/src/linux (I created that also with a symbolic link ;)) to /lib/modules/##your-kernel-version##-generic/source/

Then a IGNORE_CC_MISMATCH=1 sudo ./install.sh was needed to convince the script to compile the driver.

However, I still have a slight problem. I somehow can not convice Kubuntu 9.10 to not load the sky2 driver :(

lexloopor
Dec 9th 2009, 02:21 AM
pompos: thanks for writing, it seems that you know much more than me about this (its not too hard) ... ill try to do this that you say, if you can fix the problem please let me know...
thanks!

pompos
Dec 9th 2009, 09:13 AM
pompos: thanks for writing, it seems that you know much more than me about this (its not too hard) ... ill try to do this that you say, if you can fix the problem please let me know...
thanks!

Unfortunately, till now, I am not able to get the sk98lin driver working :(

However, to complete what I did to get the installation script working... I should add the following to make it more clear. But beware... It's again just from memory. If you have a problem state it so that I can alter those steps or rather correct them.

1. install the linux-source
2. cd /usr/src/
3. sudo tar jxvf linux-source-##THE_NEWEST_VERSION##.tar.bz2
4. sudo ln -s linux-source-##THE_NEWEST_VERSION## linux
5. sudo ln -s /usr/src/linux /lib/modules/##your-kernel-version##-generic/source/
6. cd TO_YOUR_DRIVER_FOLDER
7. sudo -s
8. export IGNORE_CC_MISMATCH=1
9. ./install.sh
10. In the installation process I always used the 1st choice (when I had one ;)) If I remember correctly they were "Install" and "Do nothing". However, the last choice might be the reason for my current problem.
11. I am stuck here :(

lexloopor
Dec 9th 2009, 11:08 AM
thanks... ill give it a try... in my case i always used the option 3 "erase" (recommended by the installer), maybe im saying something useless but have you tried to deactivate the sky2 driver when you are in the step of "make xconfig" ?

pompos
Dec 9th 2009, 01:51 PM
Finally, I got it working :D But it's still a very ugly way of doing so :(

First of all... I created a file called blacklist-sky2 in /etc/modprobe.d/ with no content and added sk98lin to /etc/modules. Unfortunately, the sky2 driver still got loaded and not the new from marvell.

In a post (http://ubuntuforums.org/showpost.php?p=5731832&postcount=10) of the ubuntuforums one suggest the following:

1. add
# PCI device 0x11AB:0x4320 (sk98lin)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="##YOUR MAC ADDRESS##", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" to /etc/udev/rules.d/70-persistent-net.rules.
2. add
rmmod sky2
rmmod sk98lin
modprobe sk98lin
/etc/init.d/networking restart to /etc/rc.localbefore the line containing exit 0.
Now, the driver was kind of properly loaded ;) However, somehow the MAC address was not set. Thus:
4. run sudo ifconfig eth0 hw ether ##YOUR MAC ADDRESS##. It is probably a good idea (in the sense of keep being lazy ;)) to add this line (without sudo) to the /etc/rc.local as well.

lexloopor
Dec 9th 2009, 01:58 PM
pompos: is it too much asking if you do a step-by-step list of how to install it? i didnt get the last message that you sent and regarding the amount of people with this issue that i found it would be great to have it
thanks and congratulations! you did the impossible!!!! ;D

pompos
Dec 11th 2009, 12:32 PM
What don't you get?

I still have problems with the driver... it's keep crashing... even more often than this crappy sky2 :(

lexloopor
Dec 11th 2009, 12:56 PM
i though you made it work... not nicely but work... still unusable?
regards

BosseJ
Dec 12th 2009, 04:56 PM
With regard to blocking the sky2 driver, maybe adding "blacklist sky2" to the /etc/modprobe.d/blacklist.conf could help?

pompos
Dec 13th 2009, 12:44 PM
i though you made it work... not nicely but work... still unusable?
regards

I made the driver work but not stable... however, from not working at all to working unstable is already a big process. Maybe the driver works in combination with a different chip rockstable. As you do not have the Marvell Yukon 88E8056 (as I do), you might have more luck ;)