ARM Sunxi Platform Development
 help / color / mirror / Atom feed
From: Petr Vorel <petr.vorel@gmail.com>
To: Felipe Balbi <balbi@kernel.org>
Cc: linux-sunxi@lists.linux.dev, linux-sunxi@googlegroups.com
Subject: Re: Mainlining Linux Sunxi SoC AW USB
Date: Sat, 24 Jul 2021 18:34:40 +0200	[thread overview]
Message-ID: <YPxBID3rk0NY5IC8@pevik> (raw)
In-Reply-To: <87zgub6a25.fsf@kernel.org>

Hi Felipe,

[ Dropping Greg and linux-usb@vger.kernel.org ]

> Hi,

> Petr Vorel <petr.vorel@gmail.com> writes:
> >> > [1] https://github.com/linux-sunxi/sunxi-livesuite/blob/master/awusb/awusb.c

> >> Why is this even a driver at all, it looks like you can write a small
> >> userspace program using libusb to do everything it does, right?  What
> >> exactly is this driver needed for?

> > I'm sorry for not providing more info at the beginning. This is a driver for
> > host computer (i.e. developers laptop) used by LiveSuit tool [2] to flash Images
> > to the NAND of Allwinner devices. LiveSuit itself [3] is unfortunately provided
> > only in binary form. The only open source code with GPL v2 license is awusb
> > driver. Thus I thought I could ease my life with upstreaming at least the
> > kernel driver. But maybe it's not a good idea. I'm using LiveSuit for flashing
> > Allwinner A31, but it requires quite old distro due libqtgui4. Maybe sunxi folks
> > use something newer nowadays, but I haven't found anything in their wiki.

> looks like you could implement that entirely in userspace with libusb ;-)
Thanks for a hint. Yes, whole thing should be able to implement in userspace.
I'll have look if I'm able to reveal what current userspace code (LiveSuit)
does. The goal is to have simple command line tool (no GUI).

Kind regards,
Petr

      reply	other threads:[~2021-07-24 16:34 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <YPvjYIsu0G0HSu5I@pevik>
     [not found] ` <YPvrpUZ/VRc0eHvA@kroah.com>
2021-07-24 13:41   ` Mainlining Linux Sunxi SoC AW USB Petr Vorel
2021-07-24 14:17     ` Greg KH
2021-07-24 14:22       ` Petr Vorel
2021-07-24 14:45         ` [linux-sunxi] " Christopher Obbard
2021-07-24 16:27           ` Petr Vorel
2021-07-24 17:04             ` Andre Przywara
2021-07-25 23:31               ` Petr Vorel
2021-07-28 14:16               ` Maxime Ripard
2021-07-24 14:54         ` Jernej Škrabec
2021-07-24 16:46           ` Petr Vorel
2021-07-24 14:49     ` Felipe Balbi
2021-07-24 16:34       ` Petr Vorel [this message]

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=YPxBID3rk0NY5IC8@pevik \
    --to=petr.vorel@gmail.com \
    --cc=balbi@kernel.org \
    --cc=linux-sunxi@googlegroups.com \
    --cc=linux-sunxi@lists.linux.dev \
    /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