From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-qt1-x832.google.com ([2607:f8b0:4864:20::832]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iKiWx-0000Gy-GP for barebox@lists.infradead.org; Wed, 16 Oct 2019 12:35:57 +0000 Received: by mail-qt1-x832.google.com with SMTP id n7so35782174qtb.6 for ; Wed, 16 Oct 2019 05:35:54 -0700 (PDT) MIME-Version: 1.0 References: <1ff22443-e9c4-980f-d40e-5a0478783f11@pengutronix.de> <5d57ecff-6a4b-fb9e-b02d-88a730bb92b8@pengutronix.de> <645d4490-3d12-2290-c1a7-2de789596110@pengutronix.de> In-Reply-To: <645d4490-3d12-2290-c1a7-2de789596110@pengutronix.de> From: Mihaita Ivascu Date: Wed, 16 Oct 2019 14:35:42 +0200 Message-ID: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: MFGTools from NXP To: Ahmad Fatoum Cc: barebox@lists.infradead.org No it does not. Still no devices listed. Thanks, Mihaita On Wed, Oct 16, 2019 at 1:36 PM Ahmad Fatoum wrote: > > On 10/16/19 1:28 PM, Mihaita Ivascu wrote: > > On Wed, Oct 16, 2019 at 11:53 AM Ahmad Fatoum > > wrote: > >> > >> > >> On 10/16/19 11:48 AM, Mihaita Ivascu wrote: > >>> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum > > wrote: > >>>> > >>>> On 10/16/19 11:21 AM, Mihaita Ivascu wrote: > >>>>> Hello, > >>>>> > >>>>> Thanks for your answer. Yes i am able to connect via PUTTY to the > > target. > >>>>> Then I should use some adb commands in order to push the new > >>>>> barebox/firmware ? do you know where I could find some examples? > >>>> > >>>> fastboot device -l works normally on Linux. You need to check what you > > need > >>>> to do on Windows to do the same. You should only need the Fastboot > > utility > >>>> for this. > >>>> > >>> [mi] Yes I have both fastboot and adb installed on both Windows and > >>> Linux machines. In both cases it does not list any device. > >>> The board is detected as fastboot android is windows device > >>> manager. But the fastboot and adb does not list it. same for Linux. > >>> Please see attachment > >> > >> Let's focus on Linux. You don't see a device there? > >> What does barebox say? Does it say 'multi_bind: creating Fastboot > > function'? > >> What does you Linux host's dmesg say? > >> > > > > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -aA > > udc0: registering UDC driver [g_multi] > > multi_bind: creating Fastboot function > > multi_bind: creating ACM function > > g_multi usbgadget: Multifunction Composite Gadget > > g_multi usbgadget: userspace failed to provide iSerialNumber > > g_multi usbgadget: g_multi ready > > barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ g_multi usbgadget: high-speed > > config #1: Multifunction Composite Gadget > > > > dmesg: > > > > [ 25.602275] usb 1-1.3: USB disconnect, device number 3 > > [ 28.359930] usb 1-1.3: new high-speed USB device number 5 using ehci-pci > > [ 28.452971] usb 1-1.3: New USB device found, idVendor=1d6b, > > idProduct=0104 > > [ 28.452976] usb 1-1.3: New USB device strings: Mfr=0, Product=2, > > SerialNumber=0 > > [ 28.452980] usb 1-1.3: Product: Phytec phyCORE-i.MX6 Ultra Lite SOM > > [ 28.457925] cdc_acm 1-1.3:1.1: ttyACM0: USB ACM device > > > > > > So I see the device on Linux. But fastboot does not list any device on > > Linux. > > sudo doesn't change this? > > > > >> > > >>>>> > >>>>> Also I have a question: purpose of this activity is for me to be > >>>>> able to flash some imx6ul boards that have no firmware: no barebox. > >>>>> So I know hardware config for the port is otg mode but as I have no > >>>>> barebox running them before I am wondering if I will be able to > >>>>> connect via PUTTY if I do not set the ACM gadget from barebox? > >>>> > >>>> Check the Embest MarS board's environment in barebox master. It sets up > >>>> a fastboot gadget automatically on boot from imx-usb-loader. > >>>> You can adjust it to your liking. > >>> > >>> [mi] I was not able to find any docs about this board. I will keep > >>> searching/asking in the nxp community. If you have already ahve any > >>> files related to it would be helpful. Thanks > >> > >> It's in the barebox next branch (not master, sorry), see here: > >> > > https://github.com/saschahauer/barebox/blob/next/arch/arm/boards/embest-marsboard/defaultenv-mars/init/fastboot > >> > >> You can copy and adjust the environment setup for your board. > >> > >>>> > >>>> Cheers > >>>> Ahmad > >>>> > >>>>> > >>>>> Thanks, > >>>>> Mihaita > >>>>> > >>>>> On Wed, Oct 16, 2019 at 10:51 AM Ahmad Fatoum > > wrote: > >>>>>> > >>>>>> On 10/16/19 10:40 AM, Mihaita Ivascu wrote: > >>>>>>> Hello again, > >>>>>>> > >>>>>>> I have the target in otg peripheral mode, ADB and fastboot > > drivers > >>>>>>> installed but fastboot does not list any device. The board is > > detected > >>>>>>> in device manager > >>>>>> > >>>>>> Try enabling the ACM gadget in barebox and connect with PuTTY and > > see if > >>>>>> at least that works. It worked for me on Windows with another i.MX > > board > >>>>>> a month ago. > >>>>>> > >>>>>> As for fastboot, I don't know how to configure it on Windows, but > > surely > >>>>>> Android Modding boards will have you covered there. > >>>>>> > >>>>>>> Please see attachment. Any ideas how should I proceed? Thanks for > >>>>>>> the support. > >>>>>> > >>>>>> You can enable the ACM gadget in barebox and see if that works, I > > tested > >>>>>> it on Windows with an i.MX board a month ago > >>>>>> > >>>>>> Cheers > >>>>>> Ahmad > >>>>>> > >>>>>>> > >>>>>>> Thanks, > >>>>>>> Mihaita > >>>>>>> > >>>>>>> On Wed, Oct 16, 2019 at 9:32 AM Mihaita Ivascu > >>>>>>> wrote: > >>>>>>>> > >>>>>>>> Thanks. I have installed ADB and fastboot drivers for Win from > >>>>>>>> > > https://www.getdroidtips.com/how-to-install-adb-and-fastboot-on-windows/ > >>>>>>>> I have installed according to the attachment. > >>>>>>>> But is not recognized in Windows. I did reboot the system after > >>>>>>>> installation but did not add any new env variable. > >>>>>>>> > >>>>>>>> H:\>fastboot devices -l > >>>>>>>> 'fastboot' is not recognized as an internal or external command, > >>>>>>>> operable program or batch file. > >>>>>>>> > >>>>>>>> Thanks, > >>>>>>>> Mihaita > >>>>>>>> > >>>>>>>> > >>>>>>>> On Tue, Oct 15, 2019 at 4:44 PM Ahmad Fatoum < > > a.fatoum@pengutronix.de> wrote: > >>>>>>>>> > >>>>>>>>> On 10/15/19 4:41 PM, Mihaita Ivascu wrote: > >>>>>>>>>> barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ fastboot devices -l > >>>>>>>>> That's what you run on your host system, not on the target. > >>>>>>>>> -- > >>>>>>>>> Pengutronix e.K. | > > | > >>>>>>>>> Industrial Linux Solutions | > > http://www.pengutronix.de/ | > >>>>>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: > > +49-5121-206917-0 | > >>>>>>>>> Amtsgericht Hildesheim, HRA 2686 | Fax: > > +49-5121-206917-5555 | > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> Pengutronix e.K. | > > | > >>>>>> Industrial Linux Solutions | > > http://www.pengutronix.de/ | > >>>>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: > > +49-5121-206917-0 | > >>>>>> Amtsgericht Hildesheim, HRA 2686 | Fax: > > +49-5121-206917-5555 | > >>>>> > >>>> > >>>> > >>>> -- > >>>> Pengutronix e.K. | > > | > >>>> Industrial Linux Solutions | http://www.pengutronix.de/ > > | > >>>> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 > > | > >>>> Amtsgericht Hildesheim, HRA 2686 | Fax: > > +49-5121-206917-5555 | > >> > >> -- > >> Pengutronix e.K. | | > >> Industrial Linux Solutions | http://www.pengutronix.de/ | > >> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > >> Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | > > > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox