From owner-freebsd-arm@freebsd.org Wed Nov 13 18:38:05 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 313F21B8033 for ; Wed, 13 Nov 2019 18:38:05 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (gate2.funkthat.com [208.87.223.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gate2.funkthat.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47Ctf4222wz4N9y for ; Wed, 13 Nov 2019 18:38:03 +0000 (UTC) (envelope-from jmg@gold.funkthat.com) Received: from gold.funkthat.com (localhost [127.0.0.1]) by gold.funkthat.com (8.15.2/8.15.2) with ESMTPS id xADIbNdR039828 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 13 Nov 2019 10:37:23 -0800 (PST) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id xADIbM0h039827; Wed, 13 Nov 2019 10:37:22 -0800 (PST) (envelope-from jmg) Date: Wed, 13 Nov 2019 10:37:22 -0800 From: John-Mark Gurney 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> Mail-Followup-To: ticso@cicely.de, freebsd-arm@freebsd.org 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> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191113164800.GS43404@cicely7.cicely.de> X-Operating-System: FreeBSD 11.0-RELEASE-p7 amd64 X-PGP-Fingerprint: D87A 235F FB71 1F3F 55B7 ED9B D5FF 5A51 C0AC 3D65 X-Files: The truth is out there X-URL: https://www.funkthat.com/ X-Resume: https://www.funkthat.com/~jmg/resume.html X-TipJar: bitcoin:13Qmb6AeTgQecazTWph4XasEsP7nGRbAPE X-to-the-FBI-CIA-and-NSA: HI! HOW YA DOIN? can i haz chizburger? User-Agent: Mutt/1.6.1 (2016-04-27) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (gold.funkthat.com [127.0.0.1]); Wed, 13 Nov 2019 10:37:23 -0800 (PST) X-Rspamd-Queue-Id: 47Ctf4222wz4N9y X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of jmg@gold.funkthat.com has no SPF policy when checking 208.87.223.18) smtp.mailfrom=jmg@gold.funkthat.com X-Spamd-Result: default: False [-1.25 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.976,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; IP_SCORE(-0.48)[ip: (-1.23), ipnet: 208.87.216.0/21(-0.61), asn: 32354(-0.49), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-0.99)[-0.995,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:32354, ipnet:208.87.216.0/21, country:US]; FROM_NEQ_ENVFROM(0.00)[jmg@funkthat.com,jmg@gold.funkthat.com]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Nov 2019 18:38:05 -0000 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: > > > > > <> > > > > > > > > > > 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."