9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Dave MacFarlane <driusan@gmail.com>
To: "cinap_lenrek@felloff.net" <9front@9front.org>
Subject: Re: [9front] DHCP not working on usb ethernet dongle
Date: Fri, 30 Dec 2016 20:49:27 -0500	[thread overview]
Message-ID: <CAG2UyHqDqEugbukjE=ugcno35dpwNT2TcXsP-A0WRC8qb59WPg@mail.gmail.com> (raw)
In-Reply-To: <abf27f905cd323a1c74074f7f2fada18@felloff.net>

I'm not certain that it's hitting the wire, but I don't have any
techniques more advanced than looking for blinking lights on the
router or dongle while running ip/ipconfig either.

Is there anything special I need to do to unbind the usb device? I'm
unbinding the ip interface with 'ip/ipconfig ether /net/etherwhatever
unbind', and then killing nusb/ether with 'slay ether | rc', but when
I try and restart nusb/ether I'm getting an error "nusb/ether: sharefd
usbnet: '#<symbol I don't know how to type on a Mac>c/usbnet/3.ether'
already exists", where 3. matches the usb bus from step 0.

I'm a little suspicious that it's not using the right driver, because
when I run ps -aux there's no arguments displayed, but I think it
should have at least "-t a88178". /rc/bin/nusbrc says nusb/ether is
handled by /sys/src/9/boot/nusbrc, and the vendor/device id from
/dev/usb/ctl are the first one in the case statement for that type
there. But I can't manually run it with the right arguments either,
because of the above error.


On Thu, Dec 29, 2016 at 11:13 PM,  <cinap_lenrek@felloff.net> wrote:
>> There is no built in ethernet, but I just tried explicitly passing it and still
>> no luck. It looks like it's sending out packets, but not reading any responses back.
>
> check on the other side if it is really sending packets. snoopy sees the
> packets that go out because the kernel just loops back what gets send on
> the interface. but that doesnt mean these packets actually hit the wire.
>
> otherwise it looks like the driver isnt working, so you'd have to debug
> the driver.
>
> 0) figure out what device this is, cat /dev/usb/ctl...
>
> 1) run ps aux and find the nusb/ether processed and notice the program
> arguments if any. we need the -t parameter and the device id.
>
> 2) unbind the ip interface and kill the nusb/ether processes
>
> 3) locate the driver for your specific type in /sys/src/cmd/nusb/ether
> and add debug prints. you can then rebuild and start a fresh driver
> process with the program arguments from (1).
>
> 4) look up the dragonflybsd driver from the info from (0) and see if
> we need todo some special magic to get that device working.
>
> --
> cinap



-- 
- Dave


  reply	other threads:[~2016-12-31  1:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-29 21:19 Dave MacFarlane
2016-12-29 22:23 ` [9front] " sl
2016-12-29 22:31   ` Dave MacFarlane
2016-12-29 22:37 ` cinap_lenrek
2016-12-30  1:02   ` driusan
2016-12-30  4:13     ` cinap_lenrek
2016-12-31  1:49       ` Dave MacFarlane [this message]
2017-01-02  3:21         ` cinap_lenrek
2017-01-04 23:20           ` Steve Simon
2017-01-05 14:06             ` Dave MacFarlane
2017-01-02  3:35         ` mveety

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG2UyHqDqEugbukjE=ugcno35dpwNT2TcXsP-A0WRC8qb59WPg@mail.gmail.com' \
    --to=driusan@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).