RE: Qualcomm "raw IP" mode (was Re: Huawei E398 cdc/serialmodem-ppp 3G/4G)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello to everyone,

Basically, my problem addresses this site:
http://www.linux-usb.org/usbtest/

Network Tests (Linux 2.6 and MS-Windows USB Hosts)
__________________________________________
When Gadget Zero is basically working, you should start
using Ethernet style testing also, the g_ether gadget driver.
That normally uses CDC Ethernet to talk to hosts, and will
cover important code paths that won't be addressed using
"usbtest". Specifically, transfers go in both directions
concurrently; they use queue depths greater than one;
and the rates at which requests enter and leave the
queues vary considerably more. (Races will show up a
lot more readily!) 

I am pinging from the host target, and I see ARP requests
Coming to target (properly dequeued from ep1out (all
42 bytes correct), but I do not see any messages coming
to RNDIS, especially to f-n skb_pull(skb, ...).

I have both loaded cdc_ether and cdc_subset drivers,
And I assume that this is wrong!

So, what should I disable in menuconfig in USB gadget
framework so I do not see anymore cdc_subset driver? 

Once again, I apologize for my ignorance in USB area.

Thanks,
Zoran

-----Original Message-----
From: Bjørn Mork [mailto:bjorn@xxxxxxx] 
Sent: Monday, February 13, 2012 8:53 PM
To: Stojsavljevic, Zoran
Cc: Marcel Holtmann; Dan Williams; Thomas Schäfer; linux-usb@xxxxxxxxxxxxxxx
Subject: Re: Qualcomm "raw IP" mode (was Re: Huawei E398 cdc/serialmodem-ppp 3G/4G)

"Stojsavljevic, Zoran" <zoran.stojsavljevic@xxxxxxxxx> writes:

> Hello Bjorn,
>
> One question out of curiosity... I am trying to ping from host to 
> target, and I see perfect ARP request coming to the target (all 42 
> octets as required).
>
> But I do not see any reply from the target. It seems to me, According 
> what I am reading that something is very wrong configured in my 
> menuconfig.
>
> I do not see any messages coming to RNDIS (as you have mentioned), 
> especially to > skb_pull(skb, ...).
>
> I have in lsmod :
> Module                  Size  Used by
> cdc_ether               9612  0 
> cdc_subset              3069  0 
> usbnet                 28738  2 cdc_ether,cdc_subset
> mii                     4310  1 usbnet
>
> And as outcome of cat /proc/bus/usb/devices
>
> T:  Bus=02 Lev=02 Prnt=03 Port=00 Cnt=01 Dev#= 18 Spd=12  MxCh= 0
> D:  Ver= 2.00 Cls=02(comm.) Sub=00 Prot=00 MxPS=64 #Cfgs=  2
> P:  Vendor=0525 ProdID=a4a2 Rev= 3.27
> S:  Manufacturer=Linux 2.6.34.10-WR4.3.0.0_standard with max_udc
> S:  Product=RNDIS/Ethernet Gadget
> C:  #Ifs= 2 Cfg#= 2 Atr=c0 MxPwr=  2mA
> A:  FirstIf#= 0 IfCount= 2 Cls=02(comm.) Sub=06 Prot=00
> I:  If#= 0 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=02 Prot=ff Driver=
> I:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=
> E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> C:* #Ifs= 2 Cfg#= 1 Atr=c0 MxPwr=  2mA
> I:* If#= 0 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=06 Prot=00 Driver=(none)
> I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 
> Driver=cdc_subset
> I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 
> Driver=cdc_subset
> E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
>
> According to what you wrote, I should have as lsmod ONLY g_ether  And 
> outcome of cat /proc/bus/usb/devices
>
> I:* If#= 0 Alt= 0 #EPs= 0 Cls=02(comm.) Sub=06 Prot=00 
> Driver=cdc_ether
> I:  If#= 1 Alt= 0 #EPs= 0 Cls=0a(data ) Sub=00 Prot=00 
> Driver=cdc_ether
> I:* If#= 1 Alt= 1 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 
> Driver=cdc_ether
>
> Could you, please, elaborate more of this, what I wrote?!

I am sorry, bu I do not really understand your question or how it is related to the host side driver I'm playing with.  I do not have any access to the target side.



Bjørn
--------------------------------------------------------------------------------------
Intel GmbH
Dornacher Strasse 1
85622 Feldkirchen/Muenchen, Deutschland 
Sitz der Gesellschaft: Feldkirchen bei Muenchen
Geschaeftsfuehrer: Douglas Lusk, Peter Gleissner, Hannes Schwaderer
Registergericht: Muenchen HRB 47456 
Ust.-IdNr./VAT Registration No.: DE129385895
Citibank Frankfurt a.M. (BLZ 502 109 00) 600119052
��.n��������+%������w��{.n�����{���)��jg��������ݢj����G�������j:+v���w�m������w�������h�����٥



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux