| 
 | 
 
 楼主 |
发表于 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 <[email protected]> 
 
I found ADSL modem with VendorID = 0572 & 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) 
>>> 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下执行这个程序 
 
>>> Inits Conexant AccessRunner <<< 
 
>>> Loading firmware... 
Conexant AccessRunner microcode upload program. 24/6/2003 
Josep Comas <[email protected]> 
Pascal Boucher <[email protected]> 
Pawel Konieczny <[email protected]> 
 
I found ADSL modem with VendorID = 0572 & 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) 
>>> 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... 
>>> Setting RFC1483/2684 bridged <<< 
 
>>> Loading br2684 kernel module... 
 
>>> 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 
 
>>> Activating interface... 
 
>>> Activating send/receive data... 
Conexant AccessRunner ioctl call. 16/6/2003 
Josep Comas <[email protected]> 
Pascal Boucher <[email protected]> 
Pawel Konieczny <[email protected]> 
 
I found ADSL modem with VendorID = 0572 & ProductID = cafe 
 
>>> 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  |   
 
 
 
 |