Jump to content

can't get to the login screen


Guest mrt
 Share

Recommended Posts

  • Replies 52
  • Created
  • Last Reply

Top Posters In This Topic

Which Asus motherboard?

 

bvc. How can you compile a kernel module without kernel sources? If the installer can find a pre-compiled module, then it's fine, but otherwise....dunno. I've never seen mine find the pre-compiled drivers.

Link to comment
Share on other sites

If it's onboard, Asus usually includes Linux drivers for the ethernet on the driver disk. You can put it in the CD drive and as root, type

 

mount /dev/hdc /mnt/cdrom

 

or

 

mount /dev/scd0 /mnt/cdrom

 

if it is a CD burner. Then cd /mnt/cdrom/wherever/the/drivers/are

If you find the directory the Linux drivers are in, cd to one directory above them and do

 

cp -R directory-name ~

cd ~

 

and there should be a README or INSTALL file there. Here's an example using my Asus a7v600 disk:

[omar@omarserenity Linux]$ cd /mnt/cdrom/Drivers/LAN/3Com/Linux

[omar@omarserenity Linux]$ ls

3c2000.tar.gz*  readme*

[omar@omarserenity Linux]$ cat readme

3Com Gigabit NIC (3C2000) Driver Readme Version A02

Copyright (c) 2003 3Com Corporation



This file describes the 3Com Gigabit NIC (3C2000) driver for Linux.  



Loading the driver

------------------



1) Make sure that the kernel source is installed in /usr/src/linux

  or /usr/src/linux-2.4.



2) Copy the file /Linux/3c2000.tar.gz from the 3Com driver CD to 

  your hard drive.



3) Change to the directory containing 3c2000.tar.gz



4) Type 'tar zxvf 3c2000.tar.gz'



5) Type 'cd 3c2000'



Note: on SuSE systems since 7.1, you will have to execute the

following commands before running make:



cp /boot/vmlinuz.version.h /usr/src/linux/include/linux/version.h

cp /boot/vmlinuz.autoconf.h /usr/src/linux/include/linux/autoconf.h



For more details se http://sdb.suse.de/en/sdb/html/mwalter_kernel_24.html



6) Type 'make load' to load the driver.



Alternatively, you may type the following to load the driver: 



       insmod 3c2000.o



Something like the following will be added to /var/log/messages:



Jan 22 19:31:19 localhost kernel: 3C2000: 3Com Gigabit NIC Driver Version A08

Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 3Com Corporation.

Jan 22 19:31:19 localhost kernel: Copyright (C) 2003 Marvell.

Jan 22 19:31:19 localhost kernel: eth0: 3Com Gigabit NIC (3C2000)



Depending on your configuration, the OS may then automatically bring the

interface up and request an address from a DHCP server.  If it does not,

bring the interface up with the command:



       ifconfig eth0 up



You may have to substitue 'eth0' for your actual interface if you have

more than one ethernet NIC installed.



If your system is not configured for DHCP, you can assign an IP address

with the command:



       ifconfig eth0 a.b.c.d



Where a.b.c.d is the IP address that you wish to use.  Again, eth0 may

be different depending on your system configuration.  



Configuring the Driver 

------------------------



   The 3C2000 driver supports various options, which can be supplied 

   as command line arguments to the 'insmod' command or in the 

   /etc/modules.conf file. You may specify more than one option.

   Unless otherwise stated, all settings take the form of:

       

       <Option-Name>=value [,value...]



   If you use the modules.conf file to load the driver at boot time, 

   include the word "options" when configuring the driver.



   For example:  

       options 3c2000 DupCap_A=Full



   If you use command line 'insmod', do not include the word "option"

   when configuring the driver. 



   For example: 

       insmod 3c2000.o DupCap_A=Full

               

                                                                             

 The following options are supported:



 OPTION: Speed_A

   Selects the speed of Port A of the NIC.  



       "Auto" - Automatic Resolution

       "10"   - 10MBPS

       "100"  - 100MBPS

       "1000" - 1GIG



 OPTION: DupCap_A

   Selects the duplex capabilities of Port A of the NIC.



       "Full"  - Full Duplex

       "Half"  - Half Duplex

       "Both"  - Both Half Duplex & Full Duplex





To unload the driver

--------------------



1) Type 'ifconfig eth0 down' (Substitute you actual interface for 'eth0')



2) Type 'rmmod 3c2000'

Link to comment
Share on other sites

Steve, I never have either but I've never tried. I have seen the terminal ouput of a successfull nvidia install of precompiled mdk drivers w/o the kernel-source. So I know it works. Now, which cards, which mdk versions?.....I have no idea.....I've only seen it once. If I didn't use the kernel-source for other things, w/o would be my preferred way to do it so not to install 150MB. That it is possible to install precompiled nvidia w/o the kernel-source was my point, that's all. :wink:

Link to comment
Share on other sites

this is what the driver setup.txt says:

 

SiS900  Fast Ethernet Adapters Linux Driver Install Documentation

Jun 6, 2002



**Before install this driver, you should make sure that your kernel had 

enable " SiS 900/7016 PCI Fast Ethernet Adapter support " !



This driver is for kernel RedHat kernel 2.4.x or 2.5.x. You can install this driver 

follow steps descributed below. In following case, we use kernel 2.4.19 for example 



1> Copy sis900.c and sis900.h to /usr/src/2.4.19/drivers/net/ and replace old ones



2> Compile the driver module:



       [root@/usr/src/2.4.19]#  make modules;make modules_install

   

   The binary will be installed as: 

  

       /lib/modules/2.4.19/kernel/drivers/net/sis900.o

       

3> Reboot your computer



4> Install the module:



       [root@/lib/modules/2.4.19/kernel/drivers/net]# insmod sis900.o



5> Assign an IP address to the interface by entering the following, where <x> 

    is interface number:



       ifconfig ethx <IP_address>



6> Verify that the interface works. Enter the following, where <IP_address>

    is the IP address for another machine on the same subnet as the interface

    that is being tested:



      ping <IP_address>

 

should I still continue to install these drivers?

Link to comment
Share on other sites

If you try it, I would do it a little differently

Remember that yours won't be 2.4.19, but whatever the kernel version is that you are using.

 

1> Copy sis900.c and sis900.h to /usr/src/2.4.19/drivers/net/ and replace old ones

 

2> Compile the driver module:

 

[root@/usr/src/2.4.19]# cd /usr/src/2.4.19

[root@/usr/src/2.4.19]# make modules

[root@/usr/src/2.4.19]# cp sis900.o /lib/modules/2.4.19/kernel/drivers/net/

[root@/usr/src/2.4.19]# depmod -a

 

3> Edit /etc/modules.conf and add

 

alias eth0 sis900.o

 

4> Install the module:

 

[root@/lib/modules/2.4.19/kernel/drivers/net]# modprobe sis900.o

 

5> Setup internet connection by typing mcc in a console

 

But, you'll need the kernel source installed. Catch 22. You can get the kernel sources from a mirror. Go to http://www.mandrakelinux.com/en/ftp.php3#586 and find the mirror that fits your distro and grab the kernel sources and put them on a floppy or CD. You obviously have some kind of internet connection to post here. :)

(The command to mount a floppy is usually mount /dev/fd0)

Link to comment
Share on other sites

...But, you'll need the kernel source installed. Catch 22. You can get the kernel sources from a mirror. Go to http://www.mandrakelinux.com/en/ftp.php3#586 and find the mirror that fits your distro and grab the kernel sources and put them on a floppy or CD. You obviously have some kind of internet connection to post here. :)

(The command to mount a floppy is usually mount /dev/fd0)

 

You install the kernel sources by cd'ing to the directory where the CD or floppy is mounted and running urpmi (as root). For a floppy, it would be

 

cd /mnt/floppy

urpmi kernel-source*

Link to comment
Share on other sites

so I grabbed the rpm from a mirror from the link you gave me that was under the Mandrake folder and it said kernel-source*...

 

I installed that using urpmi and it installed fine...now in my /usr/src folder I have a linux folder and the kernel-source I just installed

 

so I opened up /drivers/net and it has a sis900.c and sis900.h already installed, so I decided to try to make modules (skipping the copying the sis900.* files from the cdrom) but the make modules didn't work...it gave me a whole bunch of errors....

 

did I do something wrong?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share


×
×
  • Create New...