Atheros Toolkit

The Atheros Powerline Toolkit may be installed as part of the AMiLDA™ environment when space permits. The toolkit needs the Linux™ kernel and uClib™ library to function; however, the toolkit web interface also needs an HTTP server with CGI enabled. The web interfaces is an independent application that does not rely on any other toolkit programs for proper operation.

Integration

This section explains how to integrate and cross-compile the Atheros Powerline Toolkit for the ADM5120™. It assumes that you have installed the Edimax™ toolchain and AMiLDA™ distribution as described in the Compiling section.

  1. Obtain the latest version of the Atheros Powerline Toolkit archive and save it anwhere that your prefer. The archive filename will reflect the toolkit version and so int6000-utils-x.x.x, used here, refers to whatever version you have.

  2. Extract the toolkit into folder /usr/src/AMiLDA/apps. The resulting folder should have the same name as the archive file and not overwrite previous versions. You may either keep or discard earlier versions, depending on your requirements.

    # tar -vzxf int6000-utils-x.x.x.tar.gz -C /usr/src/AMiLDA/apps
    # ls /usr/src/AMiLDA/apps
    
  3. From folder /usr/src/AMiLDA/apps, create a symbolic link to the new toolkit folder. This link allows scripts to access the correct version of the toolkit using a constant pathname so make sure the link is correct. A common problem is forgetting to set this link correctly.

    # ln -fs int6000-utils-x.x.x linux
    
  4. Edit file /usr/src/AMiLDA/app/linux/make.def. Uncomment the two lines that define symbols CROSS and CROSS_LINUX. The standard definitions assume that you installed the Edimax™ toolchain as described in the Compiling section. If not then change the definitions to reflect the actual location.

    # file: make.def
    
    # ====================================================================
    # Edimax Hardware;
    # --------------------------------------------------------------------
    
    PLATFORM=-D_ADM5120_
    MODEL=-D_6104KP_
    ENDIAN=-D_LITTLE_ENDIAN_
    GATEWAY=y
    
    # ====================================================================
    # AMiLDA Software; uncomment these lines when cross-compiling;
    # --------------------------------------------------------------------
    
    # CROSS=/export/tools/mipsel-linux-uclibc/bin/mipsel-uclibc-
    # CROSS_LINUX=/export/tools/bin/mipsel-linux-
    
    # ====================================================================
    # toolchain;
    # --------------------------------------------------------------------
    
    CC=$(CROSS)gcc
    STRIP=$(CROSS)strip
    LD=$(CROSS)ld
    AR=$(CROSS)ar
    RANLIB=$(CROSS)ranlib
    CAS=$(CROSS)gcc -c
    CPP=$(CROSS)gcc -E
    
    # ====================================================================
    # folders;
    # --------------------------------------------------------------------
    
    BIN=/usr/local/bin
    MAN=/usr/share/man/man7
    WWW=/home/www
    
    # ====================================================================
    # permissions;
    # --------------------------------------------------------------------
    
    OWNER=0
    GROUP=0
    
  5. From folder /usr/src/AMiLDA/apps/linux, cross-compile the toolkit using the cross-compile toolchain that you defined in the previous step. Save build errors and warnings to file compile.log then inspect the file afterwards. Warnings are permitted but errors are not. You should have virtually no warnings.

    # make clean
    # make 2> compile.log
    # cat compile.log
    

The toolkit is now cross-compiled for the ADM5120™. There is no need to re-compile unless you make changes. Subsequent AMiLDA™ compilation will automatically compile the toolkit via dependencies defined in file /usr/src/AMiLDA/apps/Makefile.

Configuration

To be continued ...