QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1339|回复: 12

有用usb adsl modem 的同志看看

[复制链接]
发表于 2004-5-2 20:12:53 | 显示全部楼层 |阅读模式
在2.4.x内核下没问题,可以用,但是2.6.x内核下却不幸
以严重影响我使用Magic linux信心
不能上网!不能上网?
有用的麻烦写个成功心得
想帮忙的,到这里看看
http://sourceforge.net/forum/forum.php?forum_id=155749
 楼主| 发表于 2004-5-3 10:25:55 | 显示全部楼层
我已经成功拉!!!!!!!!!!!!1       
回复

使用道具 举报

发表于 2004-5-3 11:20:45 | 显示全部楼层
我还没成功 :neutral: 我是RFC2516协议的。不知楼上的能否告之具体步骤?
回复

使用道具 举报

 楼主| 发表于 2004-5-3 20:58:27 | 显示全部楼层
你的是什么芯,有没有拨号(用户名和密码)
我的是conexent芯,rfc1843.如果你也有这种心
请看上面的连接
回复

使用道具 举报

发表于 2004-5-5 18:03:46 | 显示全部楼层
[quote:d998d26071="ygw_ycf"]我已经成功拉!!!!!!!!!!!!1       [/quote]

ML下?
回复

使用道具 举报

发表于 2004-5-5 22:04:54 | 显示全部楼层
http://www.zullinux.it/linux/patch-2.6.x_20040302_accessrunner.gz

Some very brief instructions:

1. untar cxacru package and issue a "make new"
2. untar linux vanilla kernel in "/usr/src"
3. patch the source "gunzip -c patch-2.6.x_20040302_accessrunner.gz | patch -p0"
4. configure speedtch as module (small step-by-step guide), and configure the rest according to your hardware.
5. recompile and install the new kernel with 'make all; make modules_install; make install' (CAVEAT: this will add extra line to your grub.conf)
6. substitute cxload.sh and cxunload.sh in "/usr/sbin" with the modified ones
7. edit file /etc/cxacru to your needs (max speed option are simply ignored)
8. remove any existing "cxacru" module from your current kernel-modules tree (ie issue "find /lib/modules/`uname -r`/ -name "*cxacru*" -exec rm {} \;" )
9. issue "cxstart.sh"
回复

使用道具 举报

发表于 2004-5-6 08:10:29 | 显示全部楼层
[quote:b89ea4c931="ygw_ycf"]你的是什么芯,有没有拨号(用户名和密码)
我的是conexent芯,rfc1843.如果你也有这种心
请看上面的连接[/quote]

我用的是aethra 的starmodem,使用GlobeSpan芯片,我用ECIADSL驱动。但一直卡在第二步~~
http://www.linuxfans.org/nuke/modules.php?name=Forums&file=viewtopic&t=65969&highlight=
回复

使用道具 举报

发表于 2004-5-6 18:35:05 | 显示全部楼层
ygw_ycf, 帮我看一下那里出错了

以下是编译信息:

[code:1][root@Lovewilliam cxacru]# make
cd init && make clean
make[1]: Entering directory `/usr/src/cxacru/init'
rm -f cxload cxioctl cxloaddbg cxloaddbgt
make[1]: Leaving directory `/usr/src/cxacru/init'
cd module && make clean
make[1]: Entering directory `/usr/src/cxacru/module'
rm -f cxacrunormal.o sarlib.o sartest cxacru.o cxacrudebug.o cxacrudbg.o version.h
make[1]: Leaving directory `/usr/src/cxacru/module'
cd module2 && make clean
make[1]: Entering directory `/usr/src/cxacru/module2'
rm -f *.o .*.flags *.ko *.mod.* .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/usr/src/cxacru/module2'
cd sarlib && make clean
make[1]: Entering directory `/usr/src/cxacru/sarlib'
/bin/rm -f *.o
make[1]: Leaving directory `/usr/src/cxacru/sarlib'
cd panel && make clean
make[1]: Entering directory `/usr/src/cxacru/panel'
rm -f cxpanel *.bak
make[1]: Leaving directory `/usr/src/cxacru/panel'
cd bridged && make clean
make[1]: Entering directory `/usr/src/cxacru/bridged'
rm -f br2684ctl
make[1]: Leaving directory `/usr/src/cxacru/bridged'
cd init && make && make install
make[1]: Entering directory `/usr/src/cxacru/init'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxload.c -o cxload
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -lusb -lpthread cxioctl.c -o cxioctl
make[1]: Leaving directory `/usr/src/cxacru/init'
make[1]: Entering directory `/usr/src/cxacru/init'
install -c -m 755 -p cxload cxioctl /usr/sbin
make[1]: Leaving directory `/usr/src/cxacru/init'
cd firmware && make
make[1]: Entering directory `/usr/src/cxacru/firmware'
install -c -m 644 -p cxfirm1.bin cxfirm2.bin cxfirm3.bin cxfirm4.bin cxfirm5.bin /usr/sbin
make[1]: Leaving directory `/usr/src/cxacru/firmware'
cd module && make && make install
make[1]: Entering directory `/usr/src/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__ -DATM_VCC_ALLOC_TX -DMODULE -I/lib/modules/2.4.20-8/build/include -I../sarlib/  -c cxacru.c -o cxacrunormal.o
In file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/module.h:12,
                 from cxacru.c:58:
/lib/modules/2.4.20-8/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/build/include/linux/modversions.h:900,
                 from cxacru.c:55:
/lib/modules/2.4.20-8/build/include/linux/modules/i386_ksyms.ver:92:1: warning:
this is the location of the previous definition
make -C ../sarlib/
make[2]: Entering directory `/usr/src/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
-DATM_VCC_ALLOC_TX -I/lib/modules/2.4.20-8/build/include -c sarlib.c -o sarlib.oIn file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/wait.h:14,
                 from /lib/modules/2.4.20-8/build/include/linux/fs.h:12,
                 from /lib/modules/2.4.20-8/build/include/linux/capability.h:17,                 from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
                 from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
                 from /lib/modules/2.4.20-8/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-8/build/include/linux/slab.h:14,
                 from /lib/modules/2.4.20-8/build/include/linux/proc_fs.h:5,
                 from sarlib.h:20,
                 from sarlib.c:13:
/lib/modules/2.4.20-8/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/build/include/linux/modversions.h:900,
                 from sarlib.h:16,
                 from sarlib.c:13:
/lib/modules/2.4.20-8/build/include/linux/modules/i386_ksyms.ver:92: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
-DATM_VCC_ALLOC_TX -I/lib/modules/2.4.20-8/build/include -DDEBUG -c sarlib.c -o
sarlibdbg.o
In file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/wait.h:14,
                 from /lib/modules/2.4.20-8/build/include/linux/fs.h:12,
                 from /lib/modules/2.4.20-8/build/include/linux/capability.h:17,                 from /lib/modules/2.4.20-8/build/include/linux/binfmts.h:4,
                 from /lib/modules/2.4.20-8/build/include/linux/sched.h:10,
                 from /lib/modules/2.4.20-8/build/include/linux/mm.h:22,
                 from /lib/modules/2.4.20-8/build/include/linux/slab.h:14,
                 from /lib/modules/2.4.20-8/build/include/linux/proc_fs.h:5,
                 from sarlib.h:20,
                 from sarlib.c:13:
/lib/modules/2.4.20-8/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/build/include/linux/modversions.h:900,
                 from sarlib.h:16,
                 from sarlib.c:13:
/lib/modules/2.4.20-8/build/include/linux/modules/i386_ksyms.ver:92:1: warning:
this is the location of the previous definition
make[2]: Leaving directory `/usr/src/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__ -DATM_VCC_ALLOC_TX -DMODULE -I/lib/modules/2.4.20-8/build/include -I../sarlib/  -DDEBUG -DDEBUG_PACKET -c cxacru.c -o cxacrudebug.o
In file included from /lib/modules/2.4.20-8/build/include/linux/prefetch.h:13,
                 from /lib/modules/2.4.20-8/build/include/linux/list.h:6,
                 from /lib/modules/2.4.20-8/build/include/linux/module.h:12,
                 from cxacru.c:58:
/lib/modules/2.4.20-8/build/include/asm/processor.h:267:1: warning: "EISA_bus" redefined
In file included from /lib/modules/2.4.20-8/build/include/linux/modversions.h:900,
                 from cxacru.c:55:
/lib/modules/2.4.20-8/build/include/linux/modules/i386_ksyms.ver:92:1: warning:
this is the location of the previous definition
ld -r -o cxacrudbg.o  cxacrudebug.o ../sarlib/sarlibdbg.o
make[1]: Leaving directory `/usr/src/cxacru/module'
make[1]: Entering directory `/usr/src/cxacru/module'
mkdir -p /lib/modules/2.4.20-8/kernel/drivers/usb
cp cxacru.o /lib/modules/2.4.20-8/kernel/drivers/usb
cp cxacrudbg.o /lib/modules/2.4.20-8/kernel/drivers/usb
/sbin/depmod -a
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o
depmod: *** Unresolved symbols in /lib/modules/2.4.20-8/kernel/drivers/usb/cxacrudbg.o
make[1]: Leaving directory `/usr/src/cxacru/module'
cd scripts && make
make[1]: Entering directory `/usr/src/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 `/usr/src/cxacru/scripts'
cd bridged && make && make install
make[1]: Entering directory `/usr/src/cxacru/bridged'
gcc -O2 -Wstrict-prototypes -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I/lib/modules/2.4.20-8/build/include  br2684ctl.c -o br2684ctl -latm
make[1]: Leaving directory `/usr/src/cxacru/bridged'
make[1]: Entering directory `/usr/src/cxacru/bridged'
install -c -m 755 -p br2684ctl /usr/sbin
make[1]: Leaving directory `/usr/src/cxacru/bridged'
cd panel && make && make install
make[1]: Entering directory `/usr/src/cxacru/panel'
gcc -O2 -fomit-frame-pointer -pipe -march=i686 -Wall -DLINUX -I../include -I/usr/include/gnome-xml -I/usr/include/libglade-1.0 -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -lusb -L/usr/lib -lglade -L/usr/lib -lxml -lz -L/usr/lib -L/usr/X11R6/lib -lgtk -lgdk -rdynamic -lgmodule -lglib -ldl -lXi -lXext -lX11 -lm cxpanel.c -o cxpanel
make[1]: Leaving directory `/usr/src/cxacru/panel'
make[1]: Entering directory `/usr/src/cxacru/panel'
install -c -m 755 -p cxpanel /usr/sbin
install -c -m 644 -p cxpanel.glade /usr/sbin
install -c -m 644 -p cxacru-tux.xpm /usr/sbin
make[1]: Leaving directory `/usr/src/cxacru/panel'
[root@Lovewilliam cxacru]# make install
make: *** No rule to make target `install'.  Stop.
[root@Lovewilliam cxacru]#
[/code:1]

以下是cxload信息

[code:1][root@Lovewilliam cxacru]# cxload.sh
>>> Inits Conexant AccessRunner <<<

>>> Loading firmware...
Conexant AccessRunner microcode upload program. 6/9/2003
Josep Comas <[email protected]>
See credits in documentation

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 512 Kbits/s, Upstream 128 Kbits/s)
>>> Loading driver...
Launching driver in normal mode...
/lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o: unresolved symbol kernel_flag_cacheline
/lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o: insmod /lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o failed
/lib/modules/2.4.20-8/kernel/drivers/usb/cxacru.o: insmod cxacru failed
[root@Lovewilliam cxacru]#
[/code:1]

make install 不能通过

加载驱动模块时出现错误
回复

使用道具 举报

 楼主| 发表于 2004-5-6 21:39:03 | 显示全部楼层
我的系统是ml1.2pre6,内核2.6.5
我是按照下面的指令http://www.zullinux.it/linux/accessrunner.html
2.4.x内核不必按照上面的方法,我在黄嘴企鹅论坛里已说明
现简要说明
1、必须安装libusb,libatm 等库---可在驱动程序下载的地方下载
2.ld.so.conf必须加入/usr/lib,/usr/locallib 然后ldconfig
3,内核配置要求
Device Driver -> Networking Support -> Networking Options -> ....

<M> Asynchronous Transfer Mode (ATM) (EXPERIMENTAL)
<M> Classical IP over ATM (EXPERIMENTAL)
  • Do NOT send ICMP if no neighbour (EXPERIMENTAL)
    <M> LAN Emulation (LANE) support (EXPERIMENTAL)
    <M> Multi-Protocol Over ATM (MPOA) support (EXPERIMENTAL)
    <M> RFC1483/2684 Bridged protocols
  • Per-VC IP filter kludge
    4,/usr/src下建立连接linux 指向内核源码包
    5,make
    6,配置/etc/cxacru-----选择你的协议(如pppoe,pppoa)不知的话一个一个试,改vci,vpi
    pppoa的话,直接在终端cxstart.sh
    pppoe-----需要设置拨号:adsl-setup
    依提示----------用户名
    接口-----nas0
    密码-----××××
    dns-----server
    防火墙-----2
    保存----y
    7,cxstart。sh
    2.6.x内核,必须按照上面连接指令来(必须编译内核)2.4.x不必编译
    注意要修改cxnet4up.sh
    如下
    #!/bin/bash

    TEXTDOMAIN=`basename $0`
    #if [ -d "./locale" ]; then
    #  TEXTDOMAINDIR="./locale"
    #fi

    . /etc/cxacru

    # For PPPoE
    echo $">>> Setting PPPoE <<<"
    echo

    if [ "$ATM_PATH" = "" ]; then
      if [ -x /usr/local/sbin/br2684ctl ]; then
        ATM_PATH=/usr/local/sbin
      else
        if [ -x /usr/sbin/br2684ctl ]; then
          ATM_PATH=/usr/sbin
        fi
      fi
    fi

    # Load br2684 kernel module
    brmod=`lsmod | cut -d' ' -f1 | grep -q -E "^br2684$"`
    if [ "$brmod" = "" ]; then
      echo $">>> Loading br2684 kernel module..."
    # No exit if error, module can be inserted in kernel
      modprobe br2684
      echo
    fi

    echo $">>> Loading ppp_generic..."
    # No exit if error, module can be inserted in kernel
    modprobe ppp_generic
    echo

    PPPOE=`which pppoe 2>/dev/null`
    if [ "$PPPOE" = "" ]; then
      echo $">>> Loading pppoe..."
      modprobe pppoe || exit 1
      echo
    fi
    # Now, we can send & receive data
    echo $">>> Activating send/receive data..."
    cxioctl 1 || exit 1
    sleep 3s
    echo

    # Load ATM daemon
    pid=`pidof br2684ctl`
    if [ "$pid" = "" ]; then
      echo $">>> Loading br2684ctl..."
      $ATM_PATH/br2684ctl -b -c 0 -a 0.$VPI.$VCI || exit 1
      sleep 3s
      echo
    fi

    # Activate interface
    echo $">>> Activating interface..."
    ifconfig nas0 up || exit 1
    sleep 3s

    # Remove default Route
    if route -n | cut -d' ' -f1 | grep -q "0.0.0.0"; then
      echo $">>> Removing default route..."
      route del default || exit 1
      echo
    fi



    echo $">>> Loading pppd daemon..."
    if [ "$PPPOE" = "" ]; then
      pppd || exit 1
    else
      if [ -x /usr/bin/pon ]; then
        pon dsl-provider || exit 1
      else
        adsl-start || exit 1
      fi
    fi
    echo

    echo $0 $"successful"
  • 回复

    使用道具 举报

     楼主| 发表于 2004-5-6 21:45:51 | 显示全部楼层
    glob span建议到黄嘴企鹅论坛搜,很早以前北南南北兄就有很详细的帖子
    回复

    使用道具 举报

     楼主| 发表于 2004-5-6 21:49:47 | 显示全部楼层
    不需要make install
    make 即可完成
    然后设置/etc/cxacru
    设置拨号
    cxstart.sh
    可以到上面提到的论坛逛逛,另外仔细阅读readme
    我在上面的论坛逛了尽一年,2.6.x部分也足有半年
    回复

    使用道具 举报

    发表于 2004-5-6 21:54:11 | 显示全部楼层
    [quote:d3e76fefd4="ygw_ycf"]glob span建议到黄嘴企鹅论坛搜,很早以前北南南北兄就有很详细的帖子[/quote]
    我就是照着他的做的,但一直卡在第二步上。。。。。
    回复

    使用道具 举报

     楼主| 发表于 2004-5-6 21:58:25 | 显示全部楼层
    抱歉,由于我不是这个芯,不太清楚
    回复

    使用道具 举报

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

    本版积分规则

    GMT+8, 2024-11-25 21:47 , Processed in 0.043583 second(s), 15 queries .

    © 2021 Powered by Discuz! X3.5.

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