Menu

#1 How do I use it?

open
nobody
None
5
2001-04-06
2001-04-06
Anonymous
No

Um, how exactly am I supposed to use this? I
install the module but it doesn't associate with
the device.

Oh and putting comments in the code (function headers
etc) would be nice too.

Discussion

  • Nobody/Anonymous

    Logged In: NO

    Here's how I compiled it into my kernel:

    1. Copy kaweth.c and kawethfw.h
    into /usr/src/linux/drivers/usb
    2. Run 'make config' and configure kernel how you want it.
    3. Edit ".config" in /usr/src/linux and add a line that
    reads: "CONFIG_USB_KAWETH=y" (no quotes)
    4. Edit /usr/src/linux/drivers/usb/Makefile, and add a line
    that reads "obj-$(CONFIG_USB_KAWETH) += kaweth.o"
    5. Go to /usr/src/linux and do 'make dep ; make bzImage'
    6. Make the usual modifications to LILO and reboot :)

     
  • Christian Aberger

    Logged In: YES
    user_id=335224

    I attach my own notes with what I had success on SUSE
    Linux, propably will work on Readhat also.

    wfr Christian Aberger (http://www.webware.at)

    Configuration instructions for the Netgear EA101.
    0) download kaweth-0_2_3_tar.gz and unpack it.
    1) edit the compile command in the Makefile and
    change "kgcc" to "gcc"
    2) run make
    3) copy kaweth.o to /lib/modules/2.4.9/kernel/drivers/usb
    4) edit the file /etc/usbmgr/usbmgr.conf. Go to the section
    ### Ether
    and make sure that the following 2 lines are in this file:
    # Ethernet USB [Netgear]
    vendor 0x0846 product 0x0001 script network module kaweth
    5) I did not add kaweth in the
    file /etc/usbmgr/preload.conf, this even seems to break the
    startup.
    6) make sure that your usb is properly installed (usb_core
    and usb_uhci)
    7) shutdown your machine and turn the power off (this makes
    sure that the adapter looses previous firmware entries).
    8) Turn power on, boot linux and log in as root
    9) type:
    insmod kaweth
    This will load the kaweth driver. Read the
    file /var/log/messages, there you should be able to find
    the interface name it assigned e.g. eth0 if it is your only
    card.
    10) type the following:
    ifconfig eth0 192.168.0.3 broadcast 192.168.0.255 netmask
    255.255.255.0 up
    11) type
    ifconfig
    ... and you should see the interface.

    Of course you will put 9) and 10) into your boot scripts
    after that, to automate the loading of the interface. I am
    not sure, but I think it gives problem to reboot without
    power off.
    I added a file "kaweth.SUSE" for SUSE Linux, which starts
    the interface at boot.
    Check the documentation of your distribution how to edit
    startup scripts.

    Remarks: I did not succeed when I tried to add kaweth as
    alias in /etc/modules.conf
    I suppose the reason is that usbmgr must be started before
    that, and so the module does not load correctly, don't know.

    --------------------- the startup script I use for SUSE
    7.2 , kernel 2.4.9 -------------
    #! /bin/sh
    # Copyright (c) 2001 Christian Aberger
    (http://www.webware.at)
    #
    # Author: Christian Aberger (Christian@Aberger.at)
    #
    # /etc/init.d/kaweth
    #
    ### BEGIN INIT INFO
    # Provides: Netgear EA101
    # Required-Start: $local_fs dummy usbmgr dhclient
    firewall_init
    # Description: Configure device driver for Netgear EA101
    USB - Ethernet Adapter### END INIT INFO

    . /etc/rc.status
    . /etc/rc.config

    # Change the following lines to the settings required for
    you:
    INTERFACE=eth0
    IPADDRESS=192.168.0.3
    BROADCAST=192.168.0.255
    NETMASK=255.255.255.0
    #END of changes.

    rc_status
    case "$1" in
    start)
    insmod kaweth
    ifconfig $INTERFACE $IPADDRESS broadcast $BROADCAST
    netmask $NETMASK up
    ;;
    stop)
    ifconfig $INTERFACE down
    # no: rmmod kaweth
    ;;
    restart|reload)
    $0 stop ${2+"$2"} && $0 start ${2+"$2"}
    rc_status
    ;;
    status)
    ifconfig eth0
    ;;
    *)
    echo "Usage: $0 {start|stop|status|restart}"
    exit 1
    esac
    rc_exit
    ---------------

     

Log in to post a comment.

MongoDB Logo MongoDB