NetBSD Problem Report #44213
From www@NetBSD.org Fri Dec 10 09:44:26 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 940C563B883
for <gnats-bugs@gnats.NetBSD.org>; Fri, 10 Dec 2010 09:44:26 +0000 (UTC)
Message-Id: <20101210094426.3FA7E63B87A@www.NetBSD.org>
Date: Fri, 10 Dec 2010 09:44:26 +0000 (UTC)
From: noud4@home.nl
Reply-To: noud4@home.nl
To: gnats-bugs@NetBSD.org
Subject: cdce support for Motorola A780 and A910 phones
X-Send-Pr-Version: www-1.0
>Number: 44213
>Category: kern
>Synopsis: cdce support for Motorola A780 and A910 phones
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Fri Dec 10 09:45:00 +0000 2010
>Closed-Date: Mon Apr 30 23:54:50 +0000 2012
>Last-Modified: Mon Apr 30 23:54:50 +0000 2012
>Originator: B ICT A.P. de Brouwer Jr.
>Release: i386 5.0.2
>Organization:
-none-
>Environment:
NetBSD 10.0.2.17 5.0.2 NetBSD 5.0.2 (GENERIC.IP4) #2: Sun Nov 14 16:18:05 CET 2010 root@h12.hosts:/obj/sys/arch/i386/compile/GENERIC.IP4 i386
>Description:
cdce doesn't work for a Motorola (EZX) A780 nor A910 phone.
(i haven't got any A1200, E680, Rokr E2, Rokr E6
but suspect w/ the included fix them will work too.)
>How-To-Repeat:
try to get a cdce/usblan connection w/ Motorola A780 or A910 phone.
>Fix:
+++ usbdevs 2010-02-07 19:49:02.000000000 +0000
@@ -1596,9 +1598,10 @@
product MOTOROLA MC141555 0x1555 MC141555 hub controller
product MOTOROLA SB4100 0x4100 SB4100 USB Cable Modem
product MOTOROLA2 T720C 0x2822 T720c
+product MOTOROLA2 EZX 0x3802 A780, A910
product MOTOROLA2 A920 0x4002 A920
-product MOTOROLA2 USBLAN 0x600c USBLAN
-product MOTOROLA2 USBLAN2 0x6027 USBLAN
+product MOTOROLA2 USBLAN 0x600c USBLAN (A780, E680, ..)
+product MOTOROLA2 USBLAN2 0x6027 USBLAN (A910, A1200, Rokr E2, Rokr E6, ..)
/* M-Systems products */
product MSYSTEMS DISKONKEY 0x0010 DiskOnKey
--- if_cdce.c.orig 2009-07-04 20:57:52.000000000 +0200
+++ if_cdce.c 2009-07-04 20:58:36.000000000 +0200
@@ -124,6 +124,8 @@
{{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SL5600 }, CDCE_ZAURUS | CDCE_NO_UNION },
{{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_C700 }, CDCE_ZAURUS | CDCE_NO_UNION },
{{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_C750 }, CDCE_ZAURUS | CDCE_NO_UNION },
+ {{ USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_USBLAN }, CDCE_ZAURUS | CDCE_NO_UNION },
+ {{ USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_USBLAN2 }, CDCE_ZAURUS | CDCE_NO_UNION },
};
#define cdce_lookup(v, p) ((const struct cdce_type *)usb_lookup(cdce_devs, v, p))
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Sun, 12 Dec 2010 03:43:53 +0000
State-Changed-Why:
I asked a question.
From: jnemeth@victoria.tc.ca (John Nemeth)
To: gnats-bugs@NetBSD.org, kern-bug-people@NetBSD.org
Cc:
Subject: Re: kern/44213: cdce support for Motorola A780 and A910 phones
Date: Sat, 11 Dec 2010 19:41:41 -0800
On Mar 27, 9:52pm, noud4@home.nl wrote:
}
} >Number: 44213
} >Category: kern
} >Synopsis: cdce support for Motorola A780 and A910 phones
} >Class: change-request
} >Arrival-Date: Fri Dec 10 09:45:00 +0000 2010
} >Originator: B ICT A.P. de Brouwer Jr.
} >Release: i386 5.0.2
} >Environment:
} NetBSD 10.0.2.17 5.0.2 NetBSD 5.0.2 (GENERIC.IP4) #2: Sun Nov 14 16:18:05 CET 2010 root@h12.hosts:/obj/sys/arch/i386/compile/GENERIC.IP4 i386
} >Description:
} cdce doesn't work for a Motorola (EZX) A780 nor A910 phone.
}
} (i haven't got any A1200, E680, Rokr E2, Rokr E6
} but suspect w/ the included fix them will work too.)
} >How-To-Repeat:
} try to get a cdce/usblan connection w/ Motorola A780 or A910 phone.
} >Fix:
} +++ usbdevs 2010-02-07 19:49:02.000000000 +0000
} @@ -1596,9 +1598,10 @@
} product MOTOROLA MC141555 0x1555 MC141555 hub controller
} product MOTOROLA SB4100 0x4100 SB4100 USB Cable Modem
} product MOTOROLA2 T720C 0x2822 T720c
} +product MOTOROLA2 EZX 0x3802 A780, A910
} product MOTOROLA2 A920 0x4002 A920
} -product MOTOROLA2 USBLAN 0x600c USBLAN
} -product MOTOROLA2 USBLAN2 0x6027 USBLAN
} +product MOTOROLA2 USBLAN 0x600c USBLAN (A780, E680, ..)
} +product MOTOROLA2 USBLAN2 0x6027 USBLAN (A910, A1200, Rokr E2, Rokr E6, ..)
}
} /* M-Systems products */
} product MSYSTEMS DISKONKEY 0x0010 DiskOnKey
}
}
} --- if_cdce.c.orig 2009-07-04 20:57:52.000000000 +0200
} +++ if_cdce.c 2009-07-04 20:58:36.000000000 +0200
} @@ -124,6 +124,8 @@
} {{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_SL5600 }, CDCE_ZAURUS | CDCE_NO_UNION },
} {{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_C700 }, CDCE_ZAURUS | CDCE_NO_UNION },
} {{ USB_VENDOR_SHARP, USB_PRODUCT_SHARP_C750 }, CDCE_ZAURUS | CDCE_NO_UNION },
} + {{ USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_USBLAN }, CDCE_ZAURUS | CDCE_NO_UNION },
} + {{ USB_VENDOR_MOTOROLA2, USB_PRODUCT_MOTOROLA2_USBLAN2 }, CDCE_ZAURUS | CDCE_NO_UNION },
} };
} #define cdce_lookup(v, p) ((const struct cdce_type *)usb_lookup(cdce_devs, v, p))
}
What about the MOTOROLA2 EZX that you want added to usbdevs?
}-- End of excerpt from noud4@home.nl
From: "B ICT A.P. de Brouwer Jr." <noud4@home.nl>
To: gnats-bugs@NetBSD.org
Cc: John Nemeth <jnemeth@victoria.tc.ca>, kern-bug-people@netbsd.org,
gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: kern/44213: cdce support for Motorola A780 and A910 phones
Date: Tue, 14 Dec 2010 23:04:55 +0100
On Sun, 2010-12-12 at 03:45 +0000, John Nemeth wrote:
> } +product MOTOROLA2 EZX 0x3802 A780, A910
> What about the MOTOROLA2 EZX that you want added to usbdevs?
Yes, that's an error on me, the MOTOROLA2 EZX part is not needed.
The cdce part however is.
if i remember correct it started from here:
cdce0 at uhub0 port 3 configuration 1 interface 0
cdce0: Motorola Motorola USBLAN, rev 2.00/0.00, addr 3
cdce0: no union descriptor
and here is some background:
Motorola makes phones identified by types C330/C350L/C450/EZX/et cetera,
EZX being MontaVista Linux based phones
identified by types A780/E680/A910/A1200/Rokr E2/Rokr E6.
An USB connected EZX phone can be serial AT, CDC Net(?), P2K, USBLAN(2)
or Storage.
3802 AT on C330/C350L/C450/EZX
6004 CDC Net on EZX
6009 P2K on EZX
600c USBLAN on EZX A780/E680
6027 USBLAN2 on EZX A910/A1200/Rokr E2/Rokr E6
604c Storage on EZX
serial AT can used:
# start USBLAN
echo "AT+mode=99" > /dev/ttyU0; # on A780/E680
echo "AT+mode=13" > /dev/ttyU0; # on A910/A1200/Rokr E2/Rokr E6
add ucom0:dv=/dev/ttyU0:br#115200:pa=none:dc: to /etc/remote to tip
ucom0.
P2K can be used w/ wip/moto4lin
Preferences, ACM Device: /dev/umodem0, Update List,
pick phone from list, Set as P2k Device, OK.
USBLAN can be validated using wip/multisync-syncml-moto or
export MTU=750
ifconfig cdce0 192.168.1.1 netmask 255.255.255.0 mtu ${MTU}
telnet 192.168.1.2
Trying 192.168.1.2...
Connected to 192.168.1.2.
Escape character is '^]'.
Linux 192.168.1.11 2.4.20_mvlcee30-mainstone #7 Fri Feb 13 15:39:51 CST
2004 armv5tel unknown
MontaVista Linux Consumer Electronics Edition 3.0
No directory /root!
Logging in with home = "/".
#
Storage can be used, mounting /dev/sd0 and /dev/sd1.
these are there relevant dmesg parts and usbdevs -v:
umodem0 at uhub0 port 2 configuration 1 interface 0
umodem0: Motorola Motorola USB Modem, rev 2.00/0.00, addr 2, iclass 2/2
umodem0: data interface 1, has CM over data, has no break
umodem0: status change notification available
ucom0 at umodem0
port 1 addr 2: full speed, power 500 mA, config 1, Motorola USB
Modem(0x3802), Motorola(0x22b8), rev 0.00
umodem0 at uhub0 port 2 configuration 1 interface 0
umodem0: Belcarra Belcarra, rev 2.00/0.01, addr 2, iclass 2/2
umodem0: data interface 1, has CM over data, has no break
umodem0: status change notification available
ucom0 at umodem0
port 2 addr 2: full speed, power 500 mA, config 1, Belcarra(0x6004),
Belcarra(0x22b8), rev 0.01
ugen0 at uhub0 port 2
ugen0: Motorola Inc. Motorola Phone, rev 2.00/0.01, addr 2
port 2 addr 2: full speed, power 20 mA, config 1, Motorola
Phone(0x6009), Motorola Inc.(0x22b8), rev 0.01
cdce0 at uhub0 port 2 configuration 1 interface 0
cdce0: Motorola Motorola USBLAN, rev 2.00/0.00, addr 2
cdce0: faking address
cdce0: address 2a:a2:ea:37:00:00
port 2 addr 2: full speed, power 500 mA, config 1, Motorola
USBLAN(0x600c), Motorola(0x22b8), rev 0.00
umass0 at uhub0 port 2 configuration 1 interface 0
umass0: Motorola Inc. A780 Phone, rev 1.10/0.01, addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, 2 luns per target
sd0 at scsibus0 target 0 lun 0: <Motorola, A780 Phone, > disk fixed
sd0: fabricating a geometry
sd0: 40960 KB, 40 cyl, 64 head, 32 sec, 512 bytes/sect x 81920 sectors
sd0: fabricating a geometry
sd1 at scsibus0 target 0 lun 1: <Motorola, A780 Phone, > disk fixed
sd1: fabricating a geometry
sd1: 483 MB, 483 cyl, 64 head, 32 sec, 512 bytes/sect x 990976 sectors
sd1: fabricating a geometry
port 2 addr 2: full speed, power 500 mA, config 1, A780 Phone(0x604c),
Motorola Inc.(0x22b8), rev 0.01, serial 000000000000
--
the challenge was in learning the needed,
not in showing off to other.
From: jnemeth@victoria.tc.ca (John Nemeth)
To: "B ICT A.P. de Brouwer Jr." <noud4@home.nl>, gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/44213: cdce support for Motorola A780 and A910 phones
Date: Fri, 17 Dec 2010 04:37:13 -0800
On May 6, 5:40pm, "B ICT A.P. de Brouwer Jr." wrote:
} On Sun, 2010-12-12 at 03:45 +0000, John Nemeth wrote:
} > } +product MOTOROLA2 EZX 0x3802 A780, A910
}
} > What about the MOTOROLA2 EZX that you want added to usbdevs?
}
} Yes, that's an error on me, the MOTOROLA2 EZX part is not needed.
} The cdce part however is.
}
} if i remember correct it started from here:
I didn't really want an essay, I just wanted to know why that EZX
entry was there if you weren't doing anything with it. I take it that
the answer is that it shouldn't be there? Or, did you want the entry
although there is no need to do anything with it at the moment?
}-- End of excerpt from "B ICT A.P. de Brouwer Jr."
From: "B ICT A.P. de Brouwer Jr." <noud4@home.nl>
To: John Nemeth <jnemeth@victoria.tc.ca>, gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, gnats-admin@NetBSD.org,
netbsd-bugs@NetBSD.org
Subject: Re: kern/44213: cdce support for Motorola A780 and A910 phones
Date: Fri, 17 Dec 2010 14:33:44 +0100
you take the answer correct: it shouldn't be there.
and i don't want that EZX entry as an unused entry.
and why it was there,
somehow, from way back, i did assume dmesg used them usbdevs descriptive
entries.
On Fri, 2010-12-17 at 04:37 -0800, John Nemeth wrote:
> I didn't really want an essay, I just wanted to know why that EZX
> entry was there if you weren't doing anything with it. I take it that
> the answer is that it shouldn't be there? Or, did you want the entry
--
From: "John Nemeth" <jnemeth@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44213 CVS commit: src/sys/dev/usb
Date: Tue, 21 Dec 2010 07:03:09 +0000
Module Name: src
Committed By: jnemeth
Date: Tue Dec 21 07:03:09 UTC 2010
Modified Files:
src/sys/dev/usb: usbdevs
Log Message:
PR/44213 - B ICT A.P. de Brouwer Jr. -- clarify Motorola USBLAN
To generate a diff of this commit:
cvs rdiff -u -r1.570 -r1.571 src/sys/dev/usb/usbdevs
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "John Nemeth" <jnemeth@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/44213 CVS commit: src/sys/dev/usb
Date: Tue, 21 Dec 2010 07:07:44 +0000
Module Name: src
Committed By: jnemeth
Date: Tue Dec 21 07:07:44 UTC 2010
Modified Files:
src/sys/dev/usb: if_cdce.c
Log Message:
PR/44213 - B ICT A.P. de Brouwer Jr. -- add some Motorola phones
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/sys/dev/usb/if_cdce.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: jnemeth@victoria.tc.ca (John Nemeth)
To: "B ICT A.P. de Brouwer Jr." <noud4@home.nl>, gnats-bugs@NetBSD.org
Cc: kern-bug-people@NetBSD.org, netbsd-bugs@NetBSD.org
Subject: Re: kern/44213: cdce support for Motorola A780 and A910 phones
Date: Mon, 20 Dec 2010 23:09:52 -0800
On May 9, 9:09am, "B ICT A.P. de Brouwer Jr." wrote:
} On Fri, 2010-12-17 at 04:37 -0800, John Nemeth wrote:
} > I didn't really want an essay, I just wanted to know why that EZX
} > entry was there if you weren't doing anything with it. I take it that
} > the answer is that it shouldn't be there? Or, did you want the entry
}
} you take the answer correct: it shouldn't be there.
}
} and i don't want that EZX entry as an unused entry.
}
} and why it was there,
} somehow, from way back, i did assume dmesg used them usbdevs descriptive
} entries.
I have added the patch. Please test it.
}-- End of excerpt from "B ICT A.P. de Brouwer Jr."
State-Changed-From-To: feedback->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Mon, 30 Apr 2012 23:54:50 +0000
State-Changed-Why:
16-month feedback timeout.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.