问题快要明了了! 我刚才到所谓的安全模式下用root重新编译了一遍,之后对这只猫进行了一次热拔插!
终于在tty1上显示了我需要的信息,在一切在X上是永远看不到的啊!
我费点事,把它打在下面: usb 1-2:USB disconnect, address 3
usb 1-2:new full speed USB device using uhci_hcd and address 4
cxacrudbg:version magic '2.6.12-9-386 386 gcc-4.0' should be '2.6.12-9-386 386 gcc-3.4'.
modprobe:FATAL: Error inserting cxacru (/lib/modules/2.6.12-9-386/kernel/drivers/usb/cxacrudbg.ko): Invalid module format
cxacru:version magic '2.6.12-9-386 386 gcc-4.0' should be '2.6.12-9-386 386 gcc-3.4'.
modprobe:FATAL: Error inserting cxacru (/lib/modules/2.6.12-9-386/kernel/drivers/usb/cxacru.ko): Invalid module format
说来惭愧 ,以后遇上这类问题再也不在X下搞了。
可我上哪去弄gcc3.4啊!
I managed to get it works so I ll give you some hints on how to do it,
it worked for me on ubuntu 5.04 :
1) Get the kernel headers :
apt-cache install build-essential linux-headers-2.6.10-5-386
cd /usr/src/linux-headers-`uname -r`
make oldconfig
2) Compile kernel module for the modem
cd /root
Download from http://accessrunner.sourceforge.net/ the last file :
usbatm-20050216.tar.bz2
Decompress it:
bzip2 -d usbatm-20050216.tar.bz2
tar -xvf usbatm-20050216.tar
We change the configuration of the kernel :
cd /usr/src/linux-headers-`uname -r`
vi .config
Sarch for USB
add
CONFIG_USB_CXACRU=m
CONFIG_USB_ATM=m
Compile the modules
cd /root/drivers/usb/atm
make -C /usr/src/linux-headers-`uname -r` SUBDIRS=$PWD modules
make -C /usr/src/linux-headers-`uname -r` SUBDIRS=$PWD modules_install
You ll have a /usr/src/linux-2.6.10/extras with the two modules
3) Extract firmware from windows drivers
Download the files Makefile and cxacru-fw.c from http://cvs.sourceforge.net/viewcvs.py/a ... ner/utils/
compile them with the command make
you should get a binary file cxacru-fw
Execute it to get the firmware from the windows drivers :
root@ubuntu:~/drivers # ./cxacru-fw /media/D/WINDOWS/system32/drivers/CnxEtU.sys cxacru-firmware.bin
found firmware in `/media/D/WINDOWS/system32/drivers/CnxEtU.sys' at offset 0x41c0
root@ubuntu:~/drivers # ls -al cxacru-firmware.bin
-rw-r--r-- 1 root root 624192 2005-07-15 01:26 cxacru-firmware.bin
Copy the firmware in the hotplug folder :
cp cxacru-firmware.bin /lib/hotplug/firmware/
Now load the module in the kernel :
insmod /lib/modules/2.6.10-5-386/kernel/drivers/base/firmware_class.ko
insmod /lib/modules/2.6.10/extra/usbatm.ko
insmod /lib/modules/2.6.10/extra/cxacru.ko
You should see :
Jul 15 00:20:21 ubuntu kernel: usbcore: registered new driver cxacru
Jul 15 00:20:36 ubuntu kernel: cxacru 2-1:1.0: ADSL line: attemtping to activate
Jul 15 00:20:41 ubuntu kernel: cxacru 2-1:1.0: ADSL line: channel analysis
Jul 15 00:20:46 ubuntu kernel: cxacru 2-1:1.0: ADSL line: up (2560 Kib/s down | 512 Kib/s up)
5) Establish connection
Now it s up to what connection you need PPPoE or PPPoA
if PPPoA , download from http://accessrunner.sourceforge.net/debian-scripts/
the peers-pppoa and put it in /etc/ppp/peers, edit that file especially the user
and the VPC/VCI peers.
Add also your login password in the /etc/ppp/pap-secrets /etc/ppp/chap-secrets
in the form
login * password *
also you ll need to download 2 package from the ubuntu
br2684ctl_20040226-1_i386.deb
atm-tools_2.4.1-16_i386.deb ( I m not sure if that one needed)
then install them with the command dpkg -i xxxxxfilexxxxx.deb
download from http://accessrunner.sourceforge.net/debian-scripts/
the peers-pppoe and put it in /etc/ppp/peers, edit that file especially the user.
Add also your login password in the /etc/ppp/pap-secrets /etc/ppp/chap-secrets
in the form
login * password *
after that modify the /etc/network/interfaces and add :
auto nas0
iface nas0 inet static
address 192.0.2.1
netmask 255.255.255.0
broadcast 192.0.2.255
gateway 192.0.2.254
pre-up br2684ctl -b -c 0 -a 0.0.100
post-down kill $(cat /var/run/$IFACE.pid)
(the 0.0.100 is the form itf.vpi.vci you should set vpi/vci accordingly to what you have see your ISP for this infos.)
Restart the network to get the nas0 match the atm interface
insmod /lib/modules/2.6.10-5-386/kernel/net/atm/br2684.ko
/etc/init.d/networking restart
And finally connect
pppd call peers-pppoe
I m sorry it s a bit hard and maybe not well organized but it should give you a better
idea of what you need to do.