ChinaUnix.net
 >> ChinaUnix.net > Solaris

彻底解决8139网卡安装完驱动后不认的问题。

作者:baiming     发表时间:2002/12/17 01:53pm

首先要用jsn老兄的方法把你的/etc/hostname.rtls0 以及hosts、/etc/netmasks、/etc/netmasks、/etc/nsswitch.conf设置好。

然后注意看8139驱动的说明

Install method
a. Power-off your PC and insert your RTL8139 adapter.
b. Boot-up you Solaris/x86 and login as "root".
c. Copy the "rtls099.zip" into the temporary location in your hard-driver.
d. UNZIP the "rtls099.zip" and you will get 2 files, "rtls" and "Install".
e. If the PCI ID for your RTL8139 adapter is not VID_10EC_DID_8139 or VID_1113_DID_1211 or VID_1186_DID_1301, you can modify the "Install" file to match your PCI ID, VID_ABCD_DID_WXYZ for example, modify the "pci1186,1301" to "pciABCD,WXYZ".
f. Run the "Install" from File Manager to install the driver, and
it will modify 2 files, "/etc/name_to_major" and "/etc/driver_aliases"
g. You need to create the "/etc/hostname.rtls0" file and modify some
other related files to make your networking environments working well.
h. You can execute "touch /reconfigure" then "shutdown -i5 -g0", so that
Solaris will reboot and scan changed
hardware environment.
i. You can execute "ifconfig -a" to make sure the RTL8139 driver is up.

其实这句英文我只有
e. If the PCI ID for your RTL8139 adapter is not VID_10EC_DID_8139 or VID_1113_DID_1211 or VID_1186_DID_1301, you can modify the "Install" file to match your PCI ID, VID_ABCD_DID_WXYZ for example, modify the "pci1186,1301" to "pciABCD,WXYZ".
f. Run the "Install" from File Manager to install the driver, and
it will modify 2 files, "/etc/name_to_major" and "/etc/driver_aliases"
这里一开始没看明白我以为没什么用处。但是我大错特错了;(因为这里太重要了。
从F.可以知道,安装这个驱动他们会设置/etc/name_to_major和/etc/driver_aliases两个文件。当我们安装完后,需要把/etc/driver_aliases里的
rtls "pci1186,1301"
rtls "pci10ec,8139"
rtls "pci1113,1211"

设置为
#rtls "pci1186,1301"
rtls "pci10ec,8139"
#rtls "pci1113,1211"
然后重起
如果还不好使还有Install里的


# update
#   /etc/driver_aliases
#    /etc/name_to_major

这个#去掉。肯定能好使:)

good luck!
:emn60:


此文章相关评论:
该文章有31个相关评论如下:(点这儿可以发表评论)
baiming 发表于: 2002/12/17 02:54pm
up
 
baiming 发表于: 2002/12/17 02:55pm
如果大家还不明白,请留言。
 
zzsir 发表于: 2002/12/18 10:49pm
我用的最省事的办法:
运行install, 再运行sys-unconfig 百试百灵。
 
windowsnt 发表于: 2002/12/19 00:54am
这种方法不利于你的成长,口黑口黑
 
78020281 发表于: 2002/12/19 08:33am
[quote][b]下面引用由[u]zzsir[/u]在 [i]2002/12/18 10:49pm[/i] 发表的内容:[/b]
我用的最省事的办法:
运行install, 再运行sys-unconfig 百试百灵。
[/quote]
嘿嘿,兄弟跟我一样懒。
 
baiming 发表于: 2002/12/19 08:36am
ft
为什么没人早跟我说这个方法阿??

嘿:(害得我半个月都没用solaris,等我忘记得差不多了,回来一搞呵呵,就好使了

 
Fun-FreeBSD 发表于: 2002/12/19 08:39am
不错,可惜我没机器装
 
南非蜘蛛 发表于: 2002/12/19 10:36am
好样的,感谢baiming的研究精神,我已经同步了我主页的所有8139的文档,呵呵
 
liuhust 发表于: 2002/12/19 11:01am
感谢楼上的研究精神
 
streamflow 发表于: 2002/12/19 11:28am
顺便问一下,这个rtls099.zip哪里有啊?
 
amiao 发表于: 2002/12/19 12:50pm
www.realtek.com
 
baiming 发表于: 2002/12/19 02:06pm
HOHO
说得我脸都红了~~

其实这也得多谢谢我的gf!!是她给我的灵感!!

呵呵,还有南非老大那句话,忘掉所有的东西你就能成为高手了!!
哈哈

 
yxb 发表于: 2002/12/20 09:44am
把/etc/driver_aliases里的
rtls "pci1186,1301"
rtls "pci10ec,8139"
rtls "pci1113,1211"

设置为
#rtls "pci1186,1301"
rtls "pci10ec,8139"
#rtls "pci1113,1211"
然后重起
如果还不好使还有Install里的


# update
#   /etc/driver_aliases
#    /etc/name_to_major

这个#去掉。肯定能好使:)

对于这点我做了之后发现:不用将rtls "pci1186,1301"和rtls "pci1113,1211"
加上#号,加了之后网卡就不能驱动!

 
baiming 发表于: 2002/12/20 09:57am
我是驱动完后加的#,然后重起了就认了

不然原先老报bad file number

 
nok 发表于: 2003/01/10 01:45am
[这个贴子最后由nok在 2003/01/10 01:47am 编辑]

[quote][b]下面引用发表的内容:[/b]
把/etc/driver_aliases里的
rtls "pci1186,1301"
rtls "pci10ec,8139"
rtls "pci1113,1211"

设置为
#rtls "pci1186,1301"
rtls "pci10ec,8139"
#rtls "pci1113,1211"

[/quote]
这不是没有改吗?这一段是一样的

 
nok 发表于: 2003/01/10 01:49am
也许是累了
没有看清楚#,不好意思
 
nok 发表于: 2003/01/10 08:21pm
把/etc/driver_aliases里的
rtls "pci1186,1301"
rtls "pci10ec,8139"
rtls "pci1113,1211"

设置为
#rtls "pci1186,1301"
rtls "pci10ec,8139"
#rtls "pci1113,1211"
然后重起
如果还不好使还有Install里的


# update
#   /etc/driver_aliases
#    /etc/name_to_major

好象没有找到
# update
#   /etc/driver_aliases
#    /etc/name_to_major


这些东西

 
phoenixli 发表于: 2003/01/10 09:55pm
8139是什么东东到底?偶怎么没有听说过?~~
 
chenjn 发表于: 2003/01/10 10:00pm
你的版本怎么那么老呀,现在都是1.05的了
ftp://152.104.225.43/cn/nic/rtl8139abcd8130810xseries/solaris-8139(105).zip
 
phoenixli 发表于: 2003/01/10 10:06pm
8139 is what?
 
race 发表于: 2003/01/10 10:09pm
是PC网卡
 
phoenixli 发表于: 2003/01/10 10:10pm
PC网卡还是PCI的网卡?大大D不同咯~~
 
race 发表于: 2003/01/10 10:12pm
微机用的PCI网卡
 
phoenixli 发表于: 2003/01/10 10:13pm
是PC的网卡还是PCI的网卡啊?为什么叫8139?不叫8149?是什么牌子D啊?
 
phoenixli 发表于: 2003/01/10 10:17pm
一个杂牌子的微机网卡,用的人很多,SUN的驱动特别难装,好多人在论坛问这个网卡怎么装,还有一个就是DLINK的530网卡,也不好安装驱动。我没用过X86,也是看见别人问的。

RACE老大,是不是啊?

 
phoenixli 发表于: 2003/01/10 10:20pm
PC咯~~偶不懂.
:emn52:
 
race 发表于: 2003/01/10 10:22pm
你不挺明白的嘛。
 
phoenixli 发表于: 2003/01/10 10:23pm
嘻嘻,有高人告诉偶D~~
 
nok 发表于: 2003/01/10 10:36pm
[quote][b]下面引用由[u]chenjn[/u]在 [i]2003/01/10 10:00pm[/i] 发表的内容:[/b]
你的版本怎么那么老呀,现在都是1.05的了
ftp://152.104.225.43/cn/nic/rtl8139abcd8130810xseries/solaris-8139(105).zip
[/quote]
我下载的就是这一个
不知道在哪儿设置网关了
 
phoenixli 发表于: 2003/01/10 10:41pm
[这个贴子最后由phoenixli在 2003/01/10 10:51pm 编辑]

PC的东东,有什么好讨论D?装个1033不就什么都认了,嘻嘻~~8用,SUN所有的主机都带网口,8要再加了,嘻嘻~~
 
nok 发表于: 2003/01/10 11:04pm
不是想省点钱嘛,嘿嘿
 
 

Copyright © ChinaUnix.net  *  转载请注明出处及作者