On 11 Aug 2015 11:10, "Leif Lindholm" <leif.lindholm@linaro.org> wrote:
>
> Hi Haojian,
>
> Yes, I know.
>
> What I was asking about was the comment in the documentation regarding
> the USB UART device disconnecting when using 96boardsctl to reset the
> board.
>
> This issue is the only thing now preventing me from just sticking this
> in a cupboard at home and hack with it from anywhere - so I'd be keen
> to know the workarounds.

The kernel driver doesn't support twiddling the CBUS GPIO pins, so I had to use libftdi

​. libftdi causes the kernel driver to detach, and the version of libftdi packaged in Ubuntu doesn't support reattaching the driver when it is finished. There are two fixes that can be done.

Simplest fix: Migrate to libftdi v1.2
- Will reattach the kernel driver when finished twiddling pins
- Still causes a disconnect
- Needs to be packaged

Better fix: Teach kernel driver to twiddle CBUS
- 3 competing patches already exists​
https://lkml.org/lkml/2015/6/20/205
- Needs to be merged and tested.

g.


>
> Regards,
>
> Leif
>
> On Tue, Aug 11, 2015 at 06:00:01PM +0800, Haojian Zhuang wrote:
> > Hi Leif,
> >
> > If user wants to control hikey board by script file, he can use Grant's
> > tool. For example, give a power reset or power down to hikey board.
> >
> > If user just wants to input/output data by serial console, he doesn't
> > need anything. The FTDI driver is already supported by linux kernel
> > whatever he's using ubuntu or debian.
> >
> > Regards
> > Haojian
> >
> > On Tue, 2015-08-11 at 10:37 +0100, Leif Lindholm wrote:
> > > Hey Grant,
> > >
> > > Thanks for making this thing - means I have actually been able to use
> > > the HiKey board I was given in Hong Kong!
> > > And my feeble attempts with a soldering iron does not appear to have
> > > destroyed it completely!
> > >
> > > Could you share some details on the "Work is being done to solve this
> > > by moving the GPIO control into the kernel driver instead of using
> > > libftdi." bit?
> > >
> > > /
> > >     Leif
> > >
> > > On 5 August 2015 at 12:29, Grant Likely <grant.likely@secretlab.ca> wrote:
> > > > For those of you who have a 96Boards UART adapter board (Sonic
> > > > Screwdriver), I've written a user guide and the design files are
> > > > available on the Linaro git tree.
> > > >
> > > > https://docs.google.com/document/d/1x3g4mfZJ2GxHCUYXp_O-ShwlbhJE2bMRtjcyRPFDkQk/edit?usp=sharing
> > > >
> > > > https://git.linaro.org/people/grant.likely/96boards-uart.git
> > > >
> > > > g.
> > > > _______________________________________________
> > > > Dev mailing list
> > > > Dev@lists.96boards.org
> > > > https://lists.96boards.org/mailman/listinfo/dev
> > > _______________________________________________
> > > Dev mailing list
> > > Dev@lists.96boards.org
> > > https://lists.96boards.org/mailman/listinfo/dev
> >
> >