From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: USB Ethernet gadget on Nokia n900 Date: Sun, 26 Oct 2014 13:00:07 +0100 Message-ID: <20141026120007.GA25140@amd> References: <20141019090107.GA19132@amd> <20141020213518.GB28144@drone.musicnaut.iki.fi> <20141026110825.GA2263@amd> <201410261212.46582@pali> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:44517 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751404AbaJZMAJ (ORCPT ); Sun, 26 Oct 2014 08:00:09 -0400 Content-Disposition: inline In-Reply-To: <201410261212.46582@pali> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Aaro Koskinen , Felipe Balbi , sre@debian.org, sre@ring0.de, kernel list , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org On Sun 2014-10-26 12:12:46, Pali Roh=E1r wrote: > On Sunday 26 October 2014 12:08:25 Pavel Machek wrote: > > Hi! > >=20 > > > 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. > > >=20 > > > Why not? > > >=20 > > > > (I am attaching full config, in case I missed something > > > > important). > > >=20 > > > I'm using the below config with 3.17 and g_ether works OK. > > >=20 > > > (My initramfs modprobes g_ether, runs busybox ifconfig for > > > usb0 and launches sshd.) > >=20 > > I am trying to get 3.14 kernel to work, first. There, usb > > gadget works when compiled into kernel. But with modules, I > > get > >=20 > > # 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 > >=20 > > [ 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 > >=20 > > -2 is ENOENT... >=20 > 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$=20 CONFIG_USB_LIBCOMPOSITE=3Dy CONFIG_USB_U_ETHER=3Dy CONFIG_USB_F_ECM=3Dy CONFIG_USB_F_SUBSET=3Dy # CONFIG_USB_CONFIGFS is not set = =20 # CONFIG_USB_ZERO is not set = =20 CONFIG_USB_ETH=3Dy 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 --=20 (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" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html