Re: doesnt work well device sm0

From: David Nesting (qwytlf.huiqp@wtg.ca)
Date: Sun Apr 02 2000 - 18:51:36 EEST

  • Next message: Edson Pereira: "Wireless Application Protocol"

    On Sun, Apr 02, 2000 at 11:10:54PM +0900, Youichi Sato wrote:
    : route add 192.168.1.1 dev sm0
    : route add -net 192.168.1.0 gw 192.168.1.254 netmask 255.255.255.0 dev sm0

    Not quite sure if this will help you, but in the latest kernels, routes
    are added automatically for ifconfig'd devices. Check your routing table
    to see that it looks correct after these additions. You may have to
    delete existing 192.168 routes if your routes above need to replace them.

    : and I try to ping 192.168.1.100 , but can listen anything from speaker.

    You may wish to check the input/output levels from smmixer to be sure
    you have your speakers designated as an output device, and that the
    levels are high enough to be heard.

    : insmod sound
    : rmmod sound
    : insmod ax25
    : insmod hdlcdrv
    : insmod soundmodem

    This doesn't have anything to do with your problem, but I thought I'd
    mention it. As an aside, your life might be easier if you run "depmod -a"
    (just once to locate your modules), and then use "modprobe soundmodem" to
    load your soundmodem modules and "modprobe -r soundmodem" to remove them.
    Your technique is probably fine, but depmod/modprobe allows you much
    more flexibility by loading an unloading dependent modules *for* you..
    Note that I also have no problem loading the soundmodem stuff without
    loading the 'sound' module first. That may just be something with my
    hardware or that the driver has been fixed and the documentation just
    not updated along with it.

    In fact, I don't even have to load my soundmodem modules by hand at all,
    since my kernel has autoloading modules. This is an excerpt from my
    /etc/conf.modules:

      alias sm0 soundmodem
      options soundmodem mode="afsk:1200" iobase=0x220 irq=5 dma=1
      post-install soundmodem /usr/sbin/sethdlc -i sm0 -p mode "sbc:afsk1200" io 0x220 irq 5 dma 1

    So when I ifconfig sm0 up, the kernel knows to load the soundmodem
    (and pre-requisite modules first) and executes sethdlc automatically.
    The only thing I'm doing by hand is adjusting mixer levels, which I
    guess I could put in there too.

    Have fun,

    David

    -- 
     == David Nesting WL7RO Fastolfe dtm@megaegg.ne.jp http://fastolfe.net/ ==
    

    -- Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!



    This archive was generated by hypermail 2b29 : Sun Apr 02 2000 - 18:54:43 EEST