mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Mihaita Ivascu <mihaita_ivascu@trimble.com>
To: linux@rempel-privat.de
Cc: barebox@lists.infradead.org, u.kleine-koenig@pengutronix.de
Subject: Re: MFGTools support in barebox
Date: Fri, 3 Aug 2018 10:21:25 +0200	[thread overview]
Message-ID: <CAEp+FuCv-C4Px35VvOW+4ONTq9RU_MELG4kzDdRggvexiXBGtA@mail.gmail.com> (raw)
In-Reply-To: <CAEp+FuBaOxzoc0aiXpPwm24RQw9hDB-5HiWmTCqMAPf+RYpjjg@mail.gmail.com>

Hello,

     On the topic of enabling fastboot in barebox 2018.04, I have
enabled USB gadget support:
  USB_GADGET_DRIVER_ARC=y
  USB_GADGET_AUTOSTART=y
  USB_GADGET=y
  USB_GADGET_FASTBOOT=y
  USB_GADGET_FASTBOOT_SPARSE=y

     I am using board and BSP from Phytec for imx6ul evk. I have
reviews usb code and first option USB_GADGET_DRIVER_ARC should enable
UDC functionality.
    However when tring to start fastboot according to
https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support
    I get message about UDC not found, so udc driver probe method does
not find any udc device.

barebox@Phytec phyCORE-i.MX6 Ultra Lite SOM:/ usbgadget -A
/kernel(kernel)c,/initrd(initrd)c,/devicetree(devicetree)c
couldn't find an available UDC
usbgadget: No such device

    Does anybody has experience with this topic, what am I missing in
the configuration steps or where could find complete steps on enabling
fastboot in barebox?

Thanks,
      Mihaita

On Fri, Jul 20, 2018 at 8:14 PM Mihaita Ivascu
<mihaita_ivascu@trimble.com> wrote:
>
> Thanks for the info. i got that already. Some configs that should be
> enabled are not to be found in my barebox yet.
>  I will work on it and if I am not successful maybe I will return with
> a question.
>
> Best regards,
>          Mihaita
> On Fri, Jul 20, 2018 at 11:57 AM Oleksij Rempel <linux@rempel-privat.de> wrote:
> >
> > Am 20.07.2018 um 11:32 schrieb Mihaita Ivascu:
> > > Hi,
> > >
> > >    I have both  Android Fastboot support and Fastboot sparse image
> > > support enabled in barebox config(is by default) but I see not device
> > > node created when connecting USB device  nor do I see any fastboot
> > > commands in barebox shell.
> > >    My question is: how do I use fastboot? What is the complete
> > > configuration needed to enable fastboot in barebox?
> >
> > Googling "barebox fastboot"
> > First result which i get is this page:
> > https://www.barebox.org/doc/latest/user/usb.html#android-fastboot-support
> >
> > > Best regards,
> > >          Mihaita Ivascu
> > >
> > >
> > > On Fri, Jul 20, 2018 at 11:11 AM Uwe Kleine-König
> > > <u.kleine-koenig@pengutronix.de> wrote:
> > >>
> > >> On Wed, Jul 18, 2018 at 09:39:23AM +0200, Mihaita Ivascu wrote:
> > >>> Hello,
> > >>>
> > >>>      I would like to flash a barebox image on NAND for a Phytec imx6ul
> > >>> evk board using MFGTools.
> > >>>      I have added support for UTP protocol in kernel image so commands
> > >>> could be "pushed" using MFGtools app from Windows.
> > >>>      But obviously I cannot push barebox_update command to Linux.
> > >>>      So I think I have two options:
> > >>>
> > >>> 1) porting barebox_update command to Linux which I do not find it so
> > >>> easy. I am already working on it
> > >>> 2) adding UTP support in barebox so I could just load the barebox
> > >>> image in RAM using MFGtools, there a utp device node would be created
> > >>> and then I could push barebox specific commands directly from
> > >>> MFGtools.
> > >>>       I have added UTP support in linux USB gadget code but I see
> > >>> barebox USB gadget code is quite different and not all functionality
> > >>> are in place so I also struggle a bit of porint gUTP patches from
> > >>> Linux to barebox.
> > >>>      Does anybody have any experience with this topic or coud advise
> > >>> me on how to procee?
> > >>
> > >> Why are you sticked to MFGTools? barebox can do fastboot which should
> > >> work from Windows just fine.
> > >>
> > >> Best regards
> > >> Uwe
> > >>
> > >> --
> > >> Pengutronix e.K.                           | Uwe Kleine-König            |
> > >> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> > >
> > > _______________________________________________
> > > barebox mailing list
> > > barebox@lists.infradead.org
> > > http://lists.infradead.org/mailman/listinfo/barebox
> > >
> >
> >
> > --
> > Regards,
> > Oleksij
> >

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

  reply	other threads:[~2018-08-03  8:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-18  7:39 Mihaita Ivascu
2018-07-20  9:11 ` Uwe Kleine-König
2018-07-20  9:32   ` Mihaita Ivascu
2018-07-20  9:57     ` Oleksij Rempel
2018-07-20 18:14       ` Mihaita Ivascu
2018-08-03  8:21         ` Mihaita Ivascu [this message]
2018-08-03  8:37           ` Oleksij Rempel
2018-08-03 16:37             ` Mihaita Ivascu
2018-08-03 17:10               ` Oleksij Rempel
     [not found]                 ` <CAEp+FuBAV20+TJOkGTZkbr=yOOLjR2DFN9sM+ZO+E6CgKkYeFw@mail.gmail.com>
2018-08-06  8:42                   ` Oleksij Rempel
2018-07-18 12:05 MFGtools " Mihaita Ivascu
2018-07-18 13:01 ` Oleksij Rempel
2018-07-18 13:53   ` Bastian Stender
2018-07-18 14:56     ` Jan Lübbe
2018-07-18 15:11       ` Mihaita Ivascu
2018-07-18 16:35         ` Oleksij Rempel
2018-07-18 17:56           ` Mihaita Ivascu
2018-07-19  5:08             ` Oleksij Rempel
2018-07-19  9:53               ` Jan Lübbe
2018-07-19 10:08                 ` 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=CAEp+FuCv-C4Px35VvOW+4ONTq9RU_MELG4kzDdRggvexiXBGtA@mail.gmail.com \
    --to=mihaita_ivascu@trimble.com \
    --cc=barebox@lists.infradead.org \
    --cc=linux@rempel-privat.de \
    --cc=u.kleine-koenig@pengutronix.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