From: Pavel Machek <pavel@ucw.cz>
To: "Pali Rohár" <pali.rohar@gmail.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>, Felipe Balbi <balbi@ti.com>,
sre@debian.org, sre@ring0.de,
kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org
Subject: Re: USB Ethernet gadget on Nokia n900
Date: Sun, 26 Oct 2014 13:00:07 +0100 [thread overview]
Message-ID: <20141026120007.GA25140@amd> (raw)
In-Reply-To: <201410261212.46582@pali>
On Sun 2014-10-26 12:12:46, Pali Rohár wrote:
> On Sunday 26 October 2014 12:08:25 Pavel Machek wrote:
> > Hi!
> >
> > > On Sun, Oct 19, 2014 at 09:19:37PM +0200, Pavel Machek wrote:
> > > > I am trying to use nfsroot, so I can't use modules.
> > >
> > > Why not?
> > >
> > > > (I am attaching full config, in case I missed something
> > > > important).
> > >
> > > I'm using the below config with 3.17 and g_ether works OK.
> > >
> > > (My initramfs modprobes g_ether, runs busybox ifconfig for
> > > usb0 and launches sshd.)
> >
> > I am trying to get 3.14 kernel to work, first. There, usb
> > gadget works when compiled into kernel. But with modules, I
> > get
> >
> > # root@(none):/tmp# insmod libcomposite.ko
> > # root@(none):/tmp# insmod u_ether.ko
> > # root@(none):/tmp# insmod usb_f_rndis.ko
> > # root@(none):/tmp# insmod g_ether.ko
> >
> > [ 169.061218] udc musb-hdrc.0.auto: registering UDC driver
> > [g_ether] [ 169.078918] g_ether musb-hdrc.0.auto: failed to
> > start g_ether: -2
> >
> > -2 is ENOENT...
>
> Can you try g_nokia.ko? I used this module for usb networking.
Ok, so lets go to 3.17, and try with compiled-in modules?
[13220.555232] usb 5-1: USB disconnect, device number 41
[13225.972033] usb 5-1: new high-speed USB device number 42 using
ehci-pci
[13241.084037] usb 5-1: device descriptor read/64, error -110
pavel@amd:/data/l/maemo$
CONFIG_USB_LIBCOMPOSITE=y
CONFIG_USB_U_ETHER=y
CONFIG_USB_F_ECM=y
CONFIG_USB_F_SUBSET=y
# CONFIG_USB_CONFIGFS is not set
# CONFIG_USB_ZERO is not set
CONFIG_USB_ETH=y
I had musb_dual_role set, trying to make it gadget-only:
1. Host only mode (USB_MUSB_HOST) (NEW)
2. Gadget only mode (USB_MUSB_GADGET) (NEW)
> 3. Dual Role mode (USB_MUSB_DUAL_ROLE) (NEW)
choice[1-3]: 2
Same result:
[13621.776030] usb 5-1: new high-speed USB device number 57 using
ehci-pci
[13636.888036] usb 5-1: device descriptor read/64, error -110
Wait a moment. It seems I'm using drivers from legacy/ directory. Is
that good idea?
Lets try:
10. CDC Composite Device (Ethernet and ACM) (USB_CDC_COMPOSITE)
No, same result.
[13844.456032] usb 5-1: new high-speed USB device number 63 using
ehci-pci
[13859.568028] usb 5-1: device descriptor read/64, error -110
I don't think I can actually select nokia support in 3.17 :-(.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-10-26 12:00 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20141019090107.GA19132@amd>
2014-10-19 10:07 ` USB Ethernet gadget on Nokia n900 Pavel Machek
2014-10-19 14:58 ` Pali Rohár
2014-10-19 20:50 ` Pavel Machek
2014-10-19 21:00 ` Pali Rohár
2014-10-19 22:30 ` Pavel Machek
2014-10-20 13:08 ` Pavel Machek
2014-10-20 16:45 ` Tony Lindgren
2014-10-20 22:03 ` Pavel Machek
2014-10-20 22:29 ` Tony Lindgren
2014-10-21 21:52 ` Pavel Machek
2014-10-19 15:24 ` Felipe Balbi
2014-10-19 19:19 ` Pavel Machek
2014-10-19 19:29 ` Pavel Machek
2014-10-20 21:35 ` Aaro Koskinen
2014-10-20 21:37 ` Aaro Koskinen
2014-10-20 22:42 ` Pavel Machek
2014-10-26 11:08 ` Pavel Machek
2014-10-26 11:12 ` Pali Rohár
2014-10-26 12:00 ` Pavel Machek [this message]
2014-10-26 21:17 ` Pavel Machek
2014-10-26 21:22 ` Pali Rohár
2014-10-26 21:55 ` Pavel Machek
2014-10-26 22:23 ` Pali Rohár
2014-10-27 19:52 ` Tony Lindgren
2014-10-27 22:31 ` Tony Lindgren
2014-10-28 22:04 ` Pavel Machek
2014-10-28 22:11 ` Tony Lindgren
2014-10-29 8:46 ` Nokia n900 problems in 3.18-rc1 (was Re: USB Ethernet gadget on Nokia n900) Pavel Machek
2014-10-29 14:09 ` Tony Lindgren
2014-10-29 14:18 ` Tomi Valkeinen
2014-10-29 21:34 ` Pavel Machek
2014-10-31 20:03 ` Pavel Machek
2014-10-31 20:30 ` Pali Rohár
2014-10-28 22:21 ` USB Ethernet gadget on Nokia n900 Pavel Machek
2014-10-28 22:26 ` Tony Lindgren
2015-07-06 13:24 ` Pali Rohár
2015-07-06 13:53 ` Tony Lindgren
2015-07-07 7:46 ` Pali Rohár
2015-07-07 11:46 ` Tony Lindgren
2016-01-19 20:58 ` Pali Rohár
2016-02-11 14:43 ` Pali Rohár
2016-02-11 14:50 ` Pali Rohár
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141026120007.GA25140@amd \
--to=pavel@ucw.cz \
--cc=aaro.koskinen@iki.fi \
--cc=balbi@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=sre@debian.org \
--cc=sre@ring0.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).