Re: USB ethernet ue0 stops working

2012-04-16 Thread Hans Petter Selasky
On Monday 16 April 2012 20:47:49 Matthias Apitz wrote:
> Hi,
> 
> El día Monday, April 16, 2012 a las 04:51:55PM +0200, Hans Petter Selasky 
escribió:
> > If this is an openmoko, you need to run:
> Yes, it is an Openmoko Freerunner which I have updated from a SHR
> version from year 2010 to now latest release (stage 046);
> 
> > usbconfig -d X.Y set_config 1
> 
> I did this already in the past with a devd(8) hook script:
> 
> notify 1 {
>   match "vendor"  "0x1457";
>   match "product" "0x5122";
>   action "/usr/local/etc/devd/moko.sh $ugen";
> };
> 
> while watching devd(8) in debug mode I learned that they now have changed
> the vendor and product ID to "0x0525" and "0xa4a2" which the Linux kernel
> of the Freerunner presents to the FreeBSD host; and after updating the
> values to the new ones all is fine again;
> 
> do you know why and how Linux this was changing?

No.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: USB ethernet ue0 stops working

2012-04-16 Thread Matthias Apitz

Hi,

El día Monday, April 16, 2012 a las 04:51:55PM +0200, Hans Petter Selasky 
escribió:

> If this is an openmoko, you need to run:
> 

Yes, it is an Openmoko Freerunner which I have updated from a SHR
version from year 2010 to now latest release (stage 046);

> usbconfig -d X.Y set_config 1

I did this already in the past with a devd(8) hook script:

notify 1 {
match "vendor"  "0x1457";
match "product" "0x5122";
action "/usr/local/etc/devd/moko.sh $ugen";
};

while watching devd(8) in debug mode I learned that they now have changed
the vendor and product ID to "0x0525" and "0xa4a2" which the Linux kernel 
of the Freerunner presents to the FreeBSD host; and after updating the
values to the new ones all is fine again;

do you know why and how Linux this was changing?

anyway, thanks

matthias

-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: USB ethernet ue0 stops working

2012-04-16 Thread Hans Petter Selasky
On Monday 16 April 2012 15:44:58 Matthias Apitz wrote:
> El día Monday, April 16, 2012 a las 03:27:45PM +0200, Hans Petter Selasky 
escribió:
> > On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> > > El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz
> > > 
> > > > Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on
> > > > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > > > Apr 16 05:50:17 tinyCurrent kernel: ue0:  on cdce0
> > > > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > > > 2a:ac:fc:03:00:00
> > 
> > We don't support RNDIS ethernet. You need to search for the WMC
> > compatible one.
> > 
> > --HPS
> 
> Hello Hans,
> 
> Could you please spent a few words more about this. The other end of the
> USB cable is a cellphone, an Openmoko Freerunner. Even if this is
> OpenSource I think it is out of my skope to change this or to force the
> SHR group to change this. The other end  runs a Linux kernel 2.6.39.4 and
> with 2.26.29 this worked fine.
> 
> It does even work now when I bring all up by hand on both sides.
> 

Hi,

> What do you want me to do exactly?

If this is an openmoko, you need to run:

usbconfig -d X.Y set_config 1

Then it should work I think.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: USB ethernet ue0 stops working

2012-04-16 Thread Matthias Apitz
El día Monday, April 16, 2012 a las 03:27:45PM +0200, Hans Petter Selasky 
escribió:

> On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> > El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz 
> 
> > > Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on
> > > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > > Apr 16 05:50:17 tinyCurrent kernel: ue0:  on cdce0
> > > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > > 2a:ac:fc:03:00:00
> 
> We don't support RNDIS ethernet. You need to search for the WMC compatible 
> one.
> 
> --HPS

Hello Hans,

Could you please spent a few words more about this. The other end of the
USB cable is a cellphone, an Openmoko Freerunner. Even if this is
OpenSource I think it is out of my skope to change this or to force the
SHR group to change this. The other end  runs a Linux kernel 2.6.39.4 and
with 2.26.29 this worked fine.

It does even work now when I bring all up by hand on both sides.

What do you want me to do exactly?

Thanks

matthias

-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: USB ethernet ue0 stops working

2012-04-16 Thread Hans Petter Selasky
On Monday 16 April 2012 10:54:43 Matthias Apitz wrote:
> El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz 

> > Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on
> > usbus0 Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> > Apr 16 05:50:17 tinyCurrent kernel: ue0:  on cdce0
> > Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address:
> > 2a:ac:fc:03:00:00

We don't support RNDIS ethernet. You need to search for the WMC compatible 
one.

--HPS
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"


Re: USB ethernet ue0 stops working

2012-04-16 Thread Matthias Apitz
El día Monday, April 16, 2012 a las 06:14:31AM +0200, Matthias Apitz escribió:

> 
> Hello,
> 
> I have updated my Linux based cellphone from Linux 2.6.29-rc3 to 2.6.39.4;
> 
> with the old software version on same hardware TCP/IP over interface ue0
> worked fine; on attach it said:
> 
> ...
> now, after the update to 2.6.39.4, it says:
> 
> Apr 16 05:50:17 tinyCurrent kernel: ugen0.2:  
> at usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on 
> usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
> Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
> Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on 
> usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
> ^^^
> Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6
> ^^^
> Apr 16 05:50:17 tinyCurrent kernel: cdce0:  on usbus0
> Apr 16 05:50:17 tinyCurrent kernel: cdce0: faking MAC address
> Apr 16 05:50:17 tinyCurrent kernel: ue0:  on cdce0
> Apr 16 05:50:17 tinyCurrent kernel: ue0: Ethernet address: 2a:ac:fc:03:00:00
> 
> the devd(8) hook script is not executed,
> and even doing the work it should do by hand does not bring the interface
> to work:
> 
> # usbconfig -u 0 -a 2 set_config 1
> # ifconfig ue0 192.168.7.1   netmask 255.255.255.0
> # ifconfig ue0 ue0: flags=8843 metric 
> 0 mtu 1500
> ether 2a:17:91:08:00:00
> inet 192.168.7.1 netmask 0xff00 broadcast 192.168.7.255
> # ping 192.168.7.2
> PING 192.168.7.2 (192.168.7.2): 56 data bytes
> ping: sendto: Host is down
> ping: sendto: Host is down

I could resolve the problem in part; for some reason (which I have to
bring up in the SHR mailing list) the interface 'usb0' in the Linux has
no IP addr: when I do in addition in Linux

# ifconfig usb0 inet 192.168.7.2/24

I can ping and ssh into the phone fine;

the question remains: what does the above error 

Apr 16 05:50:17 tinyCurrent kernel: cdce0: No valid alternate setting found
Apr 16 05:50:17 tinyCurrent kernel: device_attach: cdce0 attach returned 6

means and why device_attach returnes 6?

Thanks

matthias
-- 
Matthias Apitz
e  - w http://www.unixarea.de/
UNIX since V7 on PDP-11, UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2, FreeBSD since 2.2.5
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"