QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1044|回复: 5

怎么装驱动啊?

[复制链接]
发表于 2003-8-28 23:35:18 | 显示全部楼层 |阅读模式
我今天装上了Magic 1.1,但是遇到一个问题,就是不会安装usb adsl modem的驱动了。make时说没有/usr/src/.config这个文件,makemenuconfig也不能运行,说找不到程序,是不是因为没有安装源代码啊?要怎才能安上啊?
以前我在redhat下用的是rpm驱动,运行的很好,但内核是2.4.20-8的,强行安装上不能用,所以又下载了源码,却遇到了这个问题。
驱动是在http://sourceforge.net/projects/accessrunner下载的,可不可以帮助我做成rpm包啊?谢谢!


By the way,ML做的真是太好了,红旗跟ML根本就没法比!十分期待新版本的推出,有了大概的时间了吗?
发表于 2003-8-29 10:22:38 | 显示全部楼层
能不能具体的说说你的安装步骤,看起来好像不对啊。
回复

使用道具 举报

 楼主| 发表于 2003-8-29 11:32:03 | 显示全部楼层
以前在RH下,用RPM就搞定了,但是http://sourceforge.net/projects/accessrunner没有2.4.20-1的rpm包,我就下载了cxacru-2003-07-04-src.gz这个源码包,里面没有configure,我就直接make,但是说没有/usr/src/.config这个文件,就停止了,我也不知道怎么办了。

还有,我用普通用户为什么右键不能弹出光驱,总是说失败,用ROOT可以。

如果我还装星际译王,从哪下啊?安装时说缺少gnome什么什么的。
回复

使用道具 举报

发表于 2003-8-29 12:04:53 | 显示全部楼层
你的那个驱动是For 2.6内核的(里面的todo文件有说),你试试用其它的;
光驱问题,你可以编辑/etc/fstab文件,在cdrom和软驱那里加个user参数。
回复

使用道具 举报

 楼主| 发表于 2003-8-29 13:02:55 | 显示全部楼层
可是我在linuxsir找的安装说明,说必需要make menuconfig才行。那个内核不一定非要2.6的,我在RH9下可以正常安装,我也没有升级过内核,就是用的2.4.20-8的。只要makemenuconfig后,就能正常安装,使用也正常。

下面是linuxsir的地址:
http://www.linuxsir.com/bbs/showthread.php?s=&threadid=23549
回复

使用道具 举报

 楼主| 发表于 2003-8-29 13:34:21 | 显示全部楼层
我在src下建了一个linux目录,然后以在linux-2.4目录下执行了make menuconfig,把.config文件复制到了linux目录下,可以make了,但是又出了两个错误,我看不懂,是什么错误啊?

[root@localhost cxacru]# make
cd init && make && make install
make[1]: Entering directory `/root/cxacru/init'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/cxacru/init'
make[1]: Entering directory `/root/cxacru/init'
install -c -m 755 -p cxload cxioctl /usr/sbin
make[1]: Leaving directory `/root/cxacru/init'
cd firmware && make
make[1]: Entering directory `/root/cxacru/firmware'
install -c -m 644 -p cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin /usr/sbin
make[1]: Leaving directory `/root/cxacru/firmware'
cd module && make && make install
make[1]: Entering directory `/root/cxacru/module'
gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i686 -Wall -D__KERNEL__ -DLINUX  -D__SMP__ -DMODULE -I/lib/modules/2.4.20-1.1/build/include -I../sarlib/  -c cxacru.c -o cxacrunormal.o
In file included from /lib/modules/2.4.20-1.1/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-1.1/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-1.1/build/include/linux/module.h:12,
                 from cxacru.c:49:
/lib/modules/2.4.20-1.1/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-1.1/build/include/linux/modversions.h:1029,
                 from cxacru.c:46:
/lib/modules/2.4.20-1.1/build/include/linux/modules/i386_ksyms.ver:101:1: warning: this is the location of the previous definition
make -C ../sarlib/
make[2]: Entering directory `/root/cxacru/sarlib'
cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -Wall -D__KERNEL__ -DLINUX -D__SMP__ -DATM_VCC_OLD -I/lib/modules/2.4.20-1.1/build/include -c sarlib.c -o sarlib.o
In file included from /lib/modules/2.4.20-1.1/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-1.1/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-1.1/build/include/linux/wait.h:14,
                 from /lib/modules/2.4.20-1.1/build/include/linux/fs.h:12,
                 from /lib/modules/2.4.20-1.1/build/include/linux/capability.h:17,
                 from /lib/modules/2.4.20-1.1/build/include/linux/binfmts.h:4,
                 from /lib/modules/2.4.20-1.1/build/include/linux/sched.h:10,
                 from /lib/modules/2.4.20-1.1/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-1.1/build/include/linux/slab.h:14,
                 from /lib/modules/2.4.20-1.1/build/include/linux/proc_fs.h:5,
                 from sarlib.h:20,
                 from sarlib.c:13:
/lib/modules/2.4.20-1.1/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-1.1/build/include/linux/modversions.h:1029,
                 from sarlib.h:16,
                 from sarlib.c:13:
/lib/modules/2.4.20-1.1/build/include/linux/modules/i386_ksyms.ver:101:1: warning: this is the location of the previous definition
cc -O2 -Wstrict-prototypes  -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -march=i686 -Wall -D__KERNEL__ -DLINUX -D__SMP__ -DATM_VCC_OLD -I/lib/modules/2.4.20-1.1/build/include -DDEBUG -c sarlib.c -o sarlibdbg.o
In file included from /lib/modules/2.4.20-1.1/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-1.1/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-1.1/build/include/linux/wait.h:14,
                 from /lib/modules/2.4.20-1.1/build/include/linux/fs.h:12,
                 from /lib/modules/2.4.20-1.1/build/include/linux/capability.h:17,
                 from /lib/modules/2.4.20-1.1/build/include/linux/binfmts.h:4,
                 from /lib/modules/2.4.20-1.1/build/include/linux/sched.h:10,
                 from /lib/modules/2.4.20-1.1/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-1.1/build/include/linux/slab.h:14,
                 from /lib/modules/2.4.20-1.1/build/include/linux/proc_fs.h:5,
                 from sarlib.h:20,
                 from sarlib.c:13:
/lib/modules/2.4.20-1.1/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-1.1/build/include/linux/modversions.h:1029,
                 from sarlib.h:16,
                 from sarlib.c:13:
/lib/modules/2.4.20-1.1/build/include/linux/modules/i386_ksyms.ver:101:1: warning: this is the location of the previous definition
make[2]: Leaving directory `/root/cxacru/sarlib'
ld -r -o cxacru.o  cxacrunormal.o ../sarlib/sarlib.o
gcc -O2 -Wstrict-prototypes -Wno-trigraphs -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-common -mpreferred-stack-boundary=2 -march=i686 -Wall -D__KERNEL__ -DLINUX  -D__SMP__ -DMODULE -I/lib/modules/2.4.20-1.1/build/include -I../sarlib/  -DDEBUG -DDEBUG_PACKET -c cxacru.c -o cxacrudebug.o
In file included from /lib/modules/2.4.20-1.1/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-1.1/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-1.1/build/include/linux/module.h:12,
                 from cxacru.c:49:
/lib/modules/2.4.20-1.1/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-1.1/build/include/linux/modversions.h:1029,
                 from cxacru.c:46:
/lib/modules/2.4.20-1.1/build/include/linux/modules/i386_ksyms.ver:101:1: warning: this is the location of the previous definition
ld -r -o cxacrudbg.o  cxacrudebug.o ../sarlib/sarlibdbg.o
make[1]: Leaving directory `/root/cxacru/module'
make[1]: Entering directory `/root/cxacru/module'
mkdir -p /lib/modules/2.4.20-1.1/kernel/drivers/usb
cp cxacru.o /lib/modules/2.4.20-1.1/kernel/drivers/usb
cp cxacrudbg.o /lib/modules/2.4.20-1.1/kernel/drivers/usb
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20-1.1/kernel/drivers/usb/cxacru.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-1.1/kernel/drivers/usb/cxacrudbg.o
make[1]: Leaving directory `/root/cxacru/module'
cd scripts && make
make[1]: Entering directory `/root/cxacru/scripts'
install -c -m 755 -p cxload.sh cxunload.sh cxstart.sh cxstop.sh /usr/sbin
install -c -m 755 -p service/cxacru /etc/cxacru.service
if [ ! -f /etc/cxacru ]; then \
        install -c -m 644 -p config/cxacru /etc; \
fi
install -c -m 755 -p cxnetup.sh cxnetdown.sh /usr/sbin
install -c -m 755 -p cxnet2up.sh cxnet2down.sh /usr/sbin
install -c -m 755 -p cxnet3up.sh cxnet3down.sh /usr/sbin
install -c -m 755 -p cxnet4up.sh cxnet4down.sh /usr/sbin
make[1]: Leaving directory `/root/cxacru/scripts'
cd bridged && make && make install
make[1]: Entering directory `/root/cxacru/bridged'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I/lib/modules/2.4.20-1.1/build/include  br2684ctl.c -o br2684ctl -latm
make[1]: Leaving directory `/root/cxacru/bridged'
make[1]: Entering directory `/root/cxacru/bridged'
install -c -m 755 -p br2684ctl /usr/sbin
make[1]: Leaving directory `/root/cxacru/bridged'
cd panel && make && make install
Package libglade was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglade' found
Package libglade was not found in the pkg-config search path.
Perhaps you should add the directory containing `libglade.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libglade' found
make[1]: Entering directory `/root/cxacru/panel'
gcc -O2 -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -I/usr/include/gtk-1.2 -I/usr/X11R6/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include    -rdynamic -lusb -L/usr/X11R6/lib -lgtk -lgdk -lXi -lXext -lX11 -lm -lglib    cxpanel.c -o cxpanel
cxpanel.c:46:25: glade/glade.h: 没有那个文件或目录
cxpanel.c:98: parse error before '*' token
cxpanel.c:98: warning: type defaults to `int' in declaration of `xml'
cxpanel.c:98: warning: data definition has no type or storage class
cxpanel.c:99: parse error before '*' token
cxpanel.c:99: warning: type defaults to `int' in declaration of `xmld'
cxpanel.c:99: warning: data definition has no type or storage class
cxpanel.c: In function `create_dialog':
cxpanel.c:223: warning: implicit declaration of function `glade_xml_new'
cxpanel.c:223: warning: assignment makes pointer from integer without a cast
cxpanel.c:227: warning: implicit declaration of function `glade_xml_get_widget'
cxpanel.c:228: warning: implicit declaration of function `glade_xml_signal_autoconnect'
cxpanel.c: In function `show_dialog_info':
cxpanel.c:238: warning: passing arg 1 of `gtk_widget_show_all' makes pointer from integer without a cast
cxpanel.c: In function `on_button_ok_di_clicked':
cxpanel.c:245: warning: passing arg 1 of `gtk_widget_destroy' makes pointer from integer without a cast
cxpanel.c: In function `get_data':
cxpanel.c:373: warning: passing arg 1 of `gtk_widget_hide_all' makes pointer from integer without a cast
cxpanel.c:410: warning: passing arg 1 of `gtk_widget_hide_all' makes pointer from integer without a cast
cxpanel.c:456: warning: passing arg 1 of `change_color' makes pointer from integer without a cast
cxpanel.c:457: warning: passing arg 1 of `gtk_widget_show_all' makes pointer from integer without a cast
cxpanel.c:517: warning: passing arg 1 of `change_color' makes pointer from integer without a cast
cxpanel.c:518: warning: passing arg 1 of `gtk_widget_show_all' makes pointer from integer without a cast
cxpanel.c:522: warning: passing arg 1 of `change_color' makes pointer from integer without a cast
cxpanel.c:523: warning: passing arg 1 of `gtk_widget_show_all' makes pointer from integer without a cast
cxpanel.c: In function `main':
cxpanel.c:720: warning: implicit declaration of function `glade_init'
cxpanel.c:739: warning: assignment makes pointer from integer without a cast
make[1]: *** [cxpanel] Error 1
make[1]: Leaving directory `/root/cxacru/panel'
make: *** [CX_PANEL] Error 2


然后我试着执行了一下cxstart.sh,猫的灯就亮了,好像驱动算是装上了,但现在不知是还缺什么东西?

[root@localhost plugins]# cxstart.sh
>>> Inits Conexant AccessRunner <<<

>>> Loading firmware...
Conexant AccessRunner microcode upload program. 24/6/2003
Josep Comas <[email protected]>
Pascal Boucher <[email protected]>
Pawel Konieczny &lt;[email protected]&gt;

I found ADSL modem with VendorID = 0572 &amp; ProductID = cb00
Loading and sending /usr/sbin/cxfirm4.bin...
Firmware is sent!
Setting configuration...
Waiting ADSL line is up (until 90 seconds)...
...................
ADSL line is up (Downstream 1088 Kbits/s, Upstream 576 Kbits/s)
&gt;&gt;&gt; Loading driver...
Launching driver in normal mode...
Using /lib/modules/2.4.20-1.1/kernel/drivers/usb/cxacru.o
/lib/modules/2.4.20-1.1/kernel/drivers/usb/cxacru.o: unresolved symbol kernel_flag_cacheline


在RH9下,只要执行这个程序,就能自动拨号上网。下面是在RH9下执行这个程序

&gt;&gt;&gt; Inits Conexant AccessRunner &lt;&lt;&lt;

&gt;&gt;&gt; Loading firmware...
Conexant AccessRunner microcode upload program. 24/6/2003
Josep Comas &lt;[email protected]&gt;
Pascal Boucher <[email protected]>
Pawel Konieczny &lt;[email protected]&gt;

I found ADSL modem with VendorID = 0572 &amp; ProductID = cafe
Loading and sending /usr/sbin/cxfirm1.bin...
Firmware is sent!
Setting configuration...
Waiting ADSL line is up (until 90 seconds)...
..........
ADSL line is up (Downstream 2048 Kbits/s, Upstream 512 Kbits/s)
&gt;&gt;&gt; Loading driver...
Launching driver in normal mode...
Using /lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o

/usr/sbin/cxload.sh successful
Setting RFC1483/2684 bridged...
&gt;&gt;&gt; Setting RFC1483/2684 bridged &lt;&lt;&lt;

&gt;&gt;&gt; Loading br2684 kernel module...

&gt;&gt;&gt; Loading br2684ctl...
RFC1483/2684 bridge: Interface "nas0" created sucessfully
RFC1483/2684 bridge: Communicating over ATM 0.0.32, encapsulation: LLC
RFC1483/2684 bridge: Interface configured

&gt;&gt;&gt; Activating interface...

&gt;&gt;&gt; Activating send/receive data...
Conexant AccessRunner ioctl call. 16/6/2003
Josep Comas &lt;[email protected]&gt;
Pascal Boucher <[email protected]>
Pawel Konieczny &lt;[email protected]&gt;

I found ADSL modem with VendorID = 0572 &amp; ProductID = cafe

&gt;&gt;&gt; Requesting IP address from DHCP server...
Internet Software Consortium DHCP Client V3.0pl1
Copyright 1995-2001 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP

atm0: unknown hardware address type 19
/sbin/dhclient-script: configuration for nas0 not found.
atm0: unknown hardware address type 19
Listening on LPF/nas0/00:d0:f8:29:a5:a4
Sending on LPF/nas0/00:d0:f8:29:a5:a4
Sending on Socket/fallback
DHCPDISCOVER on nas0 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on nas0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on nas0 to 255.255.255.255 port 67 interval 17
DHCPDISCOVER on nas0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on nas0 to 255.255.255.255 port 67 interval 6
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
/sbin/dhclient-script: configuration for nas0 not found.

/usr/sbin/cxnet3up.sh successful
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-24 10:02 , Processed in 0.133315 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表