Conexant PCI ADSL on ASL 4.0.17

I have a PCI ADSL card that is based on Conexant Tigris reference design.

I have managed to compile atmbr2686 and CnxADSL kernel modules on ASL 4.0.17.

I would like to set up both bridged and routed ethernet over ATM (RFC-2684, formerly RFC-1483) links. (I am playing with two operators, one using routed version, one using bridged version.)

Now, I would like to compile tools to configure br2684 -module but I hesitate to use any patch that is targeted to older kernels (ASL 4.0.17 uses 2.4.22).

Could you give me a hint what to do next?

I attach a trace of the commands I have made in the case you like to replay the steps I have done.

[ QUOTE ]

Astaro Security Linux 4.0 Plus Pack
-----------------------------------
 1. scp as loginuser pluspack-asl-4.xxx.tar.gz --> /tmp
 2. login as loginuser
 3. su root
 4. mv /tmp/pluspack-asl-4.xxx.tar.gz /var/chroot-report
 5. cd /var/chroot-report
 6. tar zxvf pluspack-asl-4.xxx.tar.gz
 7. ./opt/setup.pl
 8. joe /etc/profile

    make sure that last two lines look like this:

    ----------
    PATH="$PATH:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin"
    export PATH
    ----------

    exit and save with ^KX

 9. joe /etc/ld.so.conf

    make sure that file has following three lines:

    ----------
    /lib
    /usr/lib
    /opt/lib
    ----------

    exit and save with ^KX


Linux 2.4.22 Kernel
-------------------
 1. scp as loginuser linux-2.4.22.tar.gz --> /tmp
 2. login as loginuser
 3. su root
 4. source /etc/profile
 5. mv /tmp/linux-2.4.22.tar.gz /var/chroot-report/opt/src
 6. cd /var/chroot-report/opt/src
 7. mv linux linux-2.4.19-C2_27
 8. tar zxvf linux-2.4.22.tar.gz
 9. ln -s linux-2.4.22 linux
10. ln -s /opt/bin/pwd /bin/pwd
11. cd linux
12. joe Makefile

    make sure that the third line looks like this:

    ----------
    EXTRAVERSION = -C1_10
    ----------

13. make menuconfig

    make following choices:

    ----------
    Code maturity level options
        Prompt for development and/or incomplete code/drivers [Y]
    Loadable module support
        Set version information on all module symbols [N]
    Processor type and features
        Symmetric multi-processing support [N]
    Networking options
        Packet socket [Y]
        Asynchronous Transfer Mode (ATM) (EXPERIMENTAL) (NEW) [M]
        RFC1483/2684 Bridged protocols (NEW) [M]
    ----------

14. make dep
15. make modules
16. cp net/atm/atm.o /lib/modules/2.4/kernel/net
17. cp net/atm/br2684.o /lib/modules/2.4/kernel/net
18. insmod atm
19. insmod br2684


CnxADSL.o
---------

 1. scp as loginuser CnxADSL-TgrATM_k2.4.3-6.1.2.007.tar.gz --> /tmp
 2. login as loginuser
 3. su root
 4. source /etc/profile
 5. mv /tmp/CnxADSL-TgrATM_k2.4.3-6.1.2.007.tar.gz /var/chroot-report
 6. cd /var/chroot-report
 7. tar zxvf CnxADSL-TgrATM_k2.4.3-6.1.2.007.tar.gz
 8. cd CnxADSL-TgrATM_k2.4.3-6.1.2.007
 9. make all
10. cp KernelModule/CnxADSL.o /lib/modules/2.4/kernel/drivers/net
11. insmod CnxADSL \
    CnxtDslVendorId=0x14F1 \
    CnxtDslArmDeviceId=0x1610 \
    CnxtDslAdslDeviceId=0x1611 \
    CnxtDslPhysicalDriverType=1

Resources
---------

pluspack-asl-4.xxx.tar.gz
http://asl.duncanthrax.net/pluspack-asl-4.x/

linux-2.4.22.tar.gz
http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.gz

CnxADSL-TgrATM_k2.4.3-6.1.2.007.tar.gz (converted from bz2)
http://www.wlug.org.nz/archive/Conexant/CnxADSL-TgrATM_k2.4.3-6.1.2.007.tar.bz2 


[/ QUOTE ]  
  • I have succeeded to compile:

     

       
    • CnxADSL.o (kernel module for Conexant PCI ADSL card)
       
    • atm.o (kernel module for ATM support)
       
    • libatm.a + linux atm tools
       
    • br2684.o (kernel module for RFC-1483/2684 support)
       
    • br2684ctl
       
    [/list]

    Any kernel patches was not needed because the patch that was mentioned in  http://home.sch.bme.hu/~cell/br2684/ was included in the kernel code since 2.4.19.

    Clive Nicolson and his DSL-page http://gateway.bedroom.gen.nz/~clive/adsl/thefiles/CnxADSL.html was a great help.

    Now, the problem is:

    1) How to write and deploy startup script for routed dsl interface
    2) How to write and deploy startup script for bridged dsl interface
    3) atmarpd terminates, why?

    What comes to the scripts... I problem is how to tell to the astaro system that atm0 and nas0 devices should be used like any other ethernet device (ethx). The greatest difference between astaro and any other distribution comes down to startup scripts and automation of configuration!

    You can follow the path I have taken. Please, look at command log below. (ubb seems to eat empty lines, sorry)

    Code:

    Astaro Security Linux 4.0 Plus Pack
    -----------------------------------
     1. scp as loginuser pluspack-asl-4.xxx.tar.gz --> /tmp
     2. login as loginuser
     3. su root
     4. mv /tmp/pluspack-asl-4.xxx.tar.gz /var/chroot-report
     5. cd /var/chroot-report
     6. tar zxvf pluspack-asl-4.xxx.tar.gz
     7. ./opt/setup.pl
     8. joe /etc/profile

        make sure that last two lines look like this:

        ----------
        PATH="$PATH:/opt/bin:/opt/usr/bin:/opt/sbin:/opt/usr/sbin"
        export PATH
        ----------

        exit and save with ^KX

     9. joe /etc/ld.so.conf

        make sure that file has following three lines:

        ----------
        /lib
        /usr/lib
        /opt/lib
        ----------

        exit and save with ^KX


    Linux 2.4.22 Kernel
    -------------------
     1. scp as loginuser linux-2.4.22.tar.gz --> /tmp
     2. login as loginuser
     3. su root
     4. source /etc/profile
     5. mv /tmp/linux-2.4.22.tar.gz /var/chroot-report/opt/src
     6. cd /var/chroot-report/opt/src
     7. mv linux linux-2.4.19-C2_27
     8. tar zxvf linux-2.4.22.tar.gz
     9. ln -s linux-2.4.22 linux
    10. ln -s /opt/bin/pwd /bin/pwd
    11. cd linux
    12. make mrproper
    14. joe Makefile

        make sure that the third line looks like this:

        ----------
        EXTRAVERSION = -C1_10
        ----------

    15. make include/linux/version.h
    16. make symlinks
    17. cp -R include/asm /usr/include
    18. cp -R include/asm-generic /usr/include
    19. cp -R include/linux /usr/include
    20. touch /usr/include/linux/autoconf.h
    21. make menuconfig

        make following changes:

        ----------
        Code maturity level options
            Prompt for development and/or incomplete code/drivers [Y]
        Loadable module support
            Set version information on all module symbols [N]
        Processor type and features
            Symmetric multi-processing support [N]
        Networking options
            Asynchronous Transfer Mode (ATM) (EXPERIMENTAL) (NEW) [M]
            RFC1483/2684 Bridged protocols (NEW) [M]
        ----------

    22. make dep
    23. make modules
    24. cp net/atm/atm.o /lib/modules/2.4/kernel/net
    25. cp net/atm/br2684.o /lib/modules/2.4/kernel/net
    26. insmod atm
    27. insmod br2684


    linux-atm-2.4.1
    ---------------

     1. scp linux-atm-2.4.1.tar.gz --> /tmp
     2. login as loginuser
     3. su root
     4. source /etc/profile
     5. mv /tmp/linux-atm-2.4.1.tar.gz /usr/src
     6. cd /usr/src
     7. tar zxvf linux-atm-2.4.1.tar.gz
     8. cd linux-atm-2.4.1
     9. ./configure --prefix=/usr
    10. make
    11. make install


    CnxADSL.o
    ---------

     1. scp as loginuser CnxADSL-TgrATMcln.tar.gz --> /tmp
     2. login as loginuser
     3. su root
     4. source /etc/profile
     5. mv /tmp/CnxADSL-TgrATMcln.tar.gz /
     6. cd /
     7. tar zxvf CnxADSL-TgrATMcln.tar.gz
     8. cd usr/src/CnxADSL-TgrATM_k2.4.3-6.1.2.007
     9. make all
    10. cp KernelModule/CnxADSL.o /lib/modules/2.4/kernel/drivers/net
    11. insmod CnxADSL CnxtDslVendorId=0x14F1 CnxtDslArmDeviceId=0x1610 CnxtDslAdslDeviceId=0x1611 CnxtDslPhysicalDriverType=1
    12. mkdir /etc/Conexant
    13. cp DownLoadApp/CnxTgF.hex DownLoadApp/cnxadsl.conf DownLoadApp/cnxadslctl.conf DownLoadApp/cnxadslload /etc/Conexant
    14. chmod ugo+x /etc/Conexant/*


    br2684ctl
    ---------

     1. scp br2684ctl.c --> /tmp
     2. login as loginuser
     3. su root
     4. source /etc/profile
     5. mkdir /var/chroot-report/br2684ctl
     6. mv /tmp/br2684ctl.c /var/chroot-report/br2684ctl
     7. gcc -o br2684ctl br2684ctl.c -latm
     8. cp br2684ctl /sbin


    Resources
    ---------

    pluspack-asl-4.xxx.tar.gz
    http://asl.duncanthrax.net/pluspack-asl-4.x/

    linux-2.4.22.tar.gz
    http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.22.tar.gz

    linux-atm-2.4.1.tar.gz
    http://prdownloads.sourceforge.net/linux-atm/linux-atm-2.4.1.tar.gz?download

    CnxADSL-TgrATMcln.tar.gz
    http://gateway.bedroom.gen.nz/~clive/adsl/thefiles/CnxADSL-TgrATMcln.tar.gz