On Sun, Feb 04, 2018 at 11:07:56PM +0100, Stefan Sperling wrote:
> On Sun, Feb 04, 2018 at 11:27:58PM +0200, Artturi Alm wrote:
> > On Tue, Aug 08, 2017 at 05:16:45PM +0300, Artturi Alm wrote:
> > > 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
> > > 
> > 
> > Hi,
> > 
> > this is still broken just like before.
> > now i've got dump of it w/tcpdump, but i don't really have any idea
> > what i should be looking for in it.. (can't compare w/amd64 now, as
> > it's not in the snap on mirrors yet, and i'm lazy).
> > 
> > any suggestions much appreciated:)
> 
> Have you already checked if 'usb reset' at the uboot prompt before
> booting the kernel makes a difference?

Yes, i actually have 'extra' "usb reset" in the u-boot env cmd for
loading/booting the kernel.
besides the usb-stick root is on, i just tried another umass, axen(4),
and run(4), with no errors what so ever, so i think the usb/uhub does
work as such, and that this bug is on urndis(4).


umodem0 at uhub1 port 3 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 3 configuration 2 "SAMSUNG SAMSUNG_Android" rev 2.00/4.00 
addr 4
ucom0 detached
umodem0 detached
ugen0 detached
urndis0 at uhub1 port 3 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
umass1 at uhub1 port 3 configuration 1 interface 0 "Verbatim STORE N GO" rev 
2.00/11.00 addr 4
umass1: using SCSI over Bulk-Only
scsibus3 at umass1: 2 targets, initiator 0
sd1 at scsibus3 targ 1 lun 0: <Verbatim, STORE N GO, 1100> SCSI0 0/direct 
removable serial.18a50302103744VCIXG1
sd1: 7620MB, 512 bytes/sector, 15605760 sectors
sd1 detached
scsibus3 detached
umass1 detached
axen0 at uhub1 port 3 configuration 1 interface 0 "ASIX Elec. Corp. AX88179" 
rev 2.10/1.00 addr 4
axen0: AX88179, address 1a:2b:3c:4d:5f:8c
rgephy0 at axen0 phy 3: RTL8169S/8110S/8211 PHY, rev. 5
rgephy0 detached
axen0 detached
run0 at uhub1 port 3 configuration 1 interface 0 "Ralink 802.11 n WLAN" rev 
2.00/1.01 addr 4
run0: MAC/BBP RT2860 (rev 0x0101), RF RT2820 (MIMO 2T2R), address 
00:1c:f0:99:3f:a3

root@octerl:~ #

Reply via email to