mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: Mihaita Ivascu <mihaita_ivascu@trimble.com>
Cc: barebox@lists.infradead.org
Subject: Re: MFGTools from NXP
Date: Wed, 16 Oct 2019 11:53:12 +0200	[thread overview]
Message-ID: <ef8ff0a5-ba72-228a-7be9-09d64cccac0b@pengutronix.de> (raw)
In-Reply-To: <CAEp+FuCrVaoAHgd=9KnZ42=cFKuVybk-u_B4V1DAeUqn2+9NZg@mail.gmail.com>


On 10/16/19 11:48 AM, Mihaita Ivascu wrote:
> On Wed, Oct 16, 2019 at 11:26 AM Ahmad Fatoum <a.fatoum@pengutronix.de> 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?

 > 
>>>
>>>    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 <a.fatoum@pengutronix.de> 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
>>>>> <mihaita_ivascu@trimble.com> 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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  reply	other threads:[~2019-10-16  9:53 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-10 13:03 Mihaita Ivascu
2019-10-11  7:21 ` Marco Felsch
2019-10-11  9:47   ` Mihaita Ivascu
2019-10-14 13:07     ` Mihaita Ivascu
2019-10-15 14:07       ` Mihaita Ivascu
2019-10-15 14:17         ` Ahmad Fatoum
2019-10-15 14:41           ` Mihaita Ivascu
2019-10-15 14:44             ` Ahmad Fatoum
2019-10-16  7:32               ` Mihaita Ivascu
2019-10-16  8:40                 ` Mihaita Ivascu
2019-10-16  8:51                   ` Ahmad Fatoum
2019-10-16  9:21                     ` Mihaita Ivascu
2019-10-16  9:26                       ` Ahmad Fatoum
2019-10-16  9:48                         ` Mihaita Ivascu
2019-10-16  9:53                           ` Ahmad Fatoum [this message]
2019-10-16 11:32                             ` Mihaita Ivascu
     [not found]                             ` <CAEp+FuDPDra+umeaLYuLUdjuzHiV+_eB+s2pMmwij8Scp6Gd=w@mail.gmail.com>
2019-10-16 11:36                               ` Ahmad Fatoum
2019-10-16 12:35                                 ` Mihaita Ivascu
2019-10-16 12:41                                   ` Ahmad Fatoum
2019-10-16 12:44                                     ` Mihaita Ivascu
2019-10-16 12:45                                       ` Ahmad Fatoum
2019-10-17  8:40                                         ` Mihaita Ivascu
2019-10-18 12:46                                           ` Ahmad Fatoum
2019-10-21 12:39                                             ` Mihaita Ivascu

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=ef8ff0a5-ba72-228a-7be9-09d64cccac0b@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    --cc=mihaita_ivascu@trimble.com \
    /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