From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:56030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzOg7-0007uV-7L for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:00:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QzOg5-0004nP-4W for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:00:43 -0400 Received: from afflict.kos.to ([92.243.29.197]:59783) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QzOg4-0004nF-Uh for qemu-devel@nongnu.org; Fri, 02 Sep 2011 04:00:41 -0400 Date: Fri, 2 Sep 2011 11:00:39 +0300 From: Riku Voipio Message-ID: <20110902080039.GA6478@afflict.kos.to> References: <4E608AD4.3010705@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E608AD4.3010705@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/3] usb-musb: make qdev-aware List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: marcin.juszkiewicz@linaro.org, peter.maydell@linaro.org, riku.voipio@iki.fi, Juha.Riihimaki@nokia.com, qemu-devel@nongnu.org On Fri, Sep 02, 2011 at 09:50:44AM +0200, Gerd Hoffmann wrote: > On 09/02/11 09:03, Juha.Riihimaki@nokia.com wrote: >>>> How to you test musb? >>> >>> Unfortunately I don't have any test cases which actively use the musb, >>> so I settle for testing an n810 image (and a beagle image in my omap3 >>> tree) and confirming that the init part of things still works ok. >>> (I'm not entirely happy with this but init is really all we're changing >>> with these patches so we should be ok...) >>> >>> Riku/Juha -- do you have any musb test images/command lines? >> >> With an existing n810 image I guess you can test USB networking by adding >> "-usb -net user,vlan=0 -net nic,model=usb,vlan=0 -usbdevice net -redir >> tcp:2022::22" to qemu command line parameters. In the guest, launch X >> terminal and command "sudo gainroot" followed by "udhcpc". You should now >> be able to ssh to the guest from the host with "ssh -p 2022 >> root@localhost". Would this be sufficient for your needs? > For starters just "qemu-system-arm -M n810" is better than nothing, this > does at least make sure it doesn't blow up somewhere when creating the > device tree. > Booting an image and operating some usb device is even better. Are n810 > images are freely available for download somewhere? Failing that, is it > possible to just install some linux distro (say debian) on the virtual > n810 or another arm device which has a musb controller? n800/n810 qemu images based on official are not redistributable, as they carry propiertary software. Instructions howto convert a firmare to qemu image exist, but to get your hands on a firmware you need to know a n800/n810 serial number: http://marcin.juszkiewicz.com.pl/2008/04/11/nokia-n800-emulation/ http://www.rkeene.org/projects/info/wiki/106 Marcin might have a poky image still somehere thou? Riku