Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2019 10:37:22 -0800
From:      John-Mark Gurney <jmg@funkthat.com>
To:        ticso@cicely.de
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64
Message-ID:  <20191113183722.GD4552@funkthat.com>
In-Reply-To: <20191113164800.GS43404@cicely7.cicely.de>
References:  <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> <20191015220433.GS96402@funkthat.com> <20191112124539.GM43404@cicely7.cicely.de> <1573571378957-0.post@n6.nabble.com> <20191112221610.GN43404@cicely7.cicely.de> <20191112225251.GB4552@funkthat.com> <20191113075343.GP43404@cicely7.cicely.de> <20191113164800.GS43404@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Bernd Walter wrote this message on Wed, Nov 13, 2019 at 17:48 +0100:
> On Wed, Nov 13, 2019 at 08:53:43AM +0100, Bernd Walter wrote:
> > On Tue, Nov 12, 2019 at 02:52:51PM -0800, John-Mark Gurney wrote:
> > > Bernd Walter wrote this message on Tue, Nov 12, 2019 at 23:16 +0100:
> > > > On Tue, Nov 12, 2019 at 08:09:38AM -0700, Klaus Küchemann via freebsd-arm wrote:
> > > > > <<The u-boot has to go into the SPI-Flash or on the card? >>
> > > > > 
> > > > > onto the uSD :
> > > > > https://www.freshports.org/sysutils/u-boot-rockpro64/
> > > > > Regards 
> > > > > Klaus
> > > > 
> > > > Thank you.
> > > > 
> > > > Do you know the bps rate used by u-boot and later components?
> > > > I do see some output at the usual 115200 bps, but it is messed up.
> > > > Also tried other typical bps rates, including 1.5Mbps as mentioned
> > > > on the RockPro Wiki, but none worked.
> > > > I wouldn't rule out that it is the USB uart failing at 1.5M though,
> > > > but I've tried a PL2303, CP2102 (which refused 1.5Mbps) and
> > > > a CH340.
> > > > Unfortunately I don't have an FTDI based TTL one at hands.
> > > > It also fails with reading the uartt output when booting an Armbian
> > > > image, which as such is booting fine according to the HDMI output.
> > > 
> > > It's 1.5Mbps, aka 1500000.  I'm using the CH340G that they sell:
> > > https://store.pine64.org/?product=padi-serial-console
> > > 
> > > And it works, but it will occasionally drop characters.
> > 
> > Sigh - IMO 1.5M is an insane idea for that and so needless.
> 
> I assume that our driver only allocated one packet per frame.
> This will max out at 64000 Bytes, or with 8n1 at 640kbps.
> If that is the case then maybe the driver should increase the number
> of packets per frame for bps rates over 600kbps.

Don't know USB, but looking at uchcom.c, it looks like it defaults
to a 1k buffer size and 1 frame for transfers.  It also looks like
this is setup at attach time, so we can't (easily) change is based
upon speed.

Would increasing the number of frames do what you're talking about?
Say, to 3?  Would we also need to increase the bufsize to 64k, or
leaving it at 1k is fine?

> I just remembered that I own an FTDI FT4232H module.
> This one is capable of 12Mbps with 2k Buffers and high speed USB.
> I have it at a different location - guess I will have to drive and
> pick it up.
> 
> > > None of my other serial adapters could do the speed necessary.
> > 
> > I just retried with the CH340 - again no success, but noticed that the
> > chip on my adapter is unlabeled.
> > So probably it isn't a genuine.
> > I should have some others, but not at home, and I also have some
> > loose CH340G chips.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191113183722.GD4552>