On Sat, Aug 05, 2017 at 01:33:42AM +0300, Artturi Alm wrote: > Hi, > > i get this trying to use usb tethering w/android on > edgerouter lite latest(or very close) snap GENERIC.MP: > urndis0 at uhub1 port 1 configuration 1 interface 0 "SAMSUNG SAMSUNG_Android" > rev 2.00/ff.ff addr 4 > urndis0: using RNDISurndis0: IOERROR > urndis0: unable to get query response > : unable to get hardware address > > missing letoh32() somewhere in init path? > > full dmesg from where i tried to enable the urndis twice below. > -Artturi >
Hi, nothing came up w/+#define URNDIS_DEBUG edgerouter lite: urndis0 at uhub1 port 4 configuration 1 interface 0 "SAMSUNG SAMSUNG_Android" rev 2.00/ff.ff addr 4 urndis0: using RNDISurndis0: in=0x81, out=0x2 urndis0: urndis_ctrl_query send: type 4 len 28 rid 0 oid 0x1010101 infobuflen 0 infobufoffset 0 devicevchdl 0 urndis0: IOERROR urndis0: unable to get query response : unable to get hardware address vs working amd64: urndis0 at uhub1 port 2 configuration 1 interface 0 "SAMSUNG SAMSUNG_Android" rev 2.00/ff.ff addr 2 urndis0: using RNDISurndis0: in=0x81, out=0x2 urndis0: urndis_ctrl_query send: type 4 len 28 rid 0 oid 0x1010101 infobuflen 0 infobufoffset 0 devicevchdl 0 urndis0: urndis_ctrl_recv: type 0x80000004 len 30 urndis0: urndis_ctrl_handle urndis0: urndis_ctrl_handle_query: len 30 rid 0 status 0x0 buflen 6 bufoff 16 , address 02:56:66:63:30:3c urndis0: urndis_ctrl_set send: type 5 len 32 rid 0 oid 0x1010e infobuflen 4 infobufoffset 20 devicevchdl 0 urndis0: urndis_ctrl_recv: type 0x80000005 len 16 urndis0: urndis_ctrl_handle if i followed the code right, usbd_do_request() in urndis_ctrl_msg() is failing, but i have no idea why. should i look at USB_DEBUG output or? -Artturi > > Copyright (c) 1982, 1986, 1989, 1991, 1993 > The Regents of the University of California. All rights reserved. > Copyright (c) 1995-2017 OpenBSD. All rights reserved. https://www.OpenBSD.org > > OpenBSD 6.1-current (GENERIC.MP) #0: Tue Aug 1 05:17:56 UTC 2017 > visa@octeon:/usr/src/sys/arch/octeon/compile/GENERIC.MP > real mem = 536870912 (512MB) > avail mem = 524009472 (499MB) > mainbus0 at root > cpu0 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation > cpu0: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way > cpu1 at mainbus0: CN50xx CPU rev 0.1 500 MHz, Software FP emulation > cpu1: cache L1-I 32KB 4 way D 8KB 64 way, L2 128KB 8 way > clock0 at mainbus0: int 5 > iobus0 at mainbus0 > simplebus0 at iobus0: "soc" > octciu0 at simplebus0 > cn30xxsmi0 at simplebus0 > com0 at simplebus0: ns16550a, 64 byte fifo > com0: console > dwctwo0 at iobus0 base 0x1180068000000 irq 56 > usb0 at dwctwo0: USB revision 2.0 > uhub0 at usb0 configuration 1 interface 0 "Octeon DWC2 root hub" rev > 2.00/1.00 addr 1 > octrng0 at iobus0 base 0x1400000000000 irq 0 > cn30xxgmx0 at iobus0 base 0x1180008000000 > cnmac0 at cn30xxgmx0: RGMII, address dc:9f:db:80:0f:39 > atphy0 at cnmac0 phy 7: AR8035 10/100/1000 PHY, rev. 2 > cnmac1 at cn30xxgmx0: RGMII, address dc:9f:db:80:0f:3a > atphy1 at cnmac1 phy 6: AR8035 10/100/1000 PHY, rev. 2 > cnmac2 at cn30xxgmx0: RGMII, address dc:9f:db:80:0f:3b > atphy2 at cnmac2 phy 5: AR8035 10/100/1000 PHY, rev. 2 > /dev/ksyms: Symbol table not valid. > uhub1 at uhub0 port 1 configuration 1 interface 0 "Terminus Technology USB > 2.0 Hub [Safe]" rev 2.00/1.11 addr 2 > umass0 at uhub1 port 2 configuration 1 interface 0 "Verbatim STORE N GO" rev > 2.00/11.00 addr 3 > umass0: using SCSI over Bulk-Only > scsibus0 at umass0: 2 targets, initiator 0 > sd0 at scsibus0 targ 1 lun 0: <Verbatim, STORE N GO, 1100> SCSI0 0/direct > removable serial.18a50302103744VCIXG1 > sd0: 7620MB, 512 bytes/sector, 15605760 sectors > vscsi0 at root > scsibus1 at vscsi0: 256 targets > softraid0 at root > scsibus2 at softraid0: 256 targets > boot device: sd0 > root on sd0a (80bf465f2582c4de.a) swap on sd0b dump on sd0b > WARNING: No TOD clock, believing file system. > WARNING: CHECK AND RESET THE DATE! > cpu1 launched > umodem0 at uhub1 port 1 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" > rev 2.00/4.00 addr 4 > umodem0: data interface 2, has no CM over data, has no break > umodem0: status change notification available > ucom0 at umodem0 > ugen0 at uhub1 port 1 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 > addr 4 > ucom0 detached > umodem0 detached > ugen0 detached > urndis0 at uhub1 port 1 configuration 1 interface 0 "SAMSUNG SAMSUNG_Android" > rev 2.00/ff.ff addr 4 > urndis0: using RNDISurndis0: IOERROR > urndis0: unable to get query response > : unable to get hardware address > urndis0 detached > umodem0 at uhub1 port 1 configuration 2 interface 1 "SAMSUNG SAMSUNG_Android" > rev 2.00/4.00 addr 4 > umodem0: data interface 2, has no CM over data, has no break > umodem0: status change notification available > ucom0 at umodem0 > ugen0 at uhub1 port 1 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 > addr 4 > ucom0 detached > umodem0 detached > ugen0 detached > urndis0 at uhub1 port 1 configuration 1 interface 0 "SAMSUNG SAMSUNG_Android" > rev 2.00/ff.ff addr 4 > urndis0: using RNDISurndis0: IOERROR > urndis0: unable to get query response > : unable to get hardware address > urndis0 detached
