From owner-freebsd-arm@freebsd.org Tue Dec 31 21:24:28 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 1AAD51DDA3B for ; Tue, 31 Dec 2019 21:24:28 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.blih.net", Issuer "mail.blih.net" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 47nS3s6LSrz3D6w for ; Tue, 31 Dec 2019 21:24:25 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mail.blih.net (mail.blih.net [212.83.177.182]) by mail.blih.net (OpenSMTPD) with ESMTP id b05d393d; Tue, 31 Dec 2019 22:24:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; s=mail; bh=tV9z4jWZ/q96xjvSO/AWo3k+Ddw=; b=fRBDtDkNxE8/7BeAuTFIRAQGtoMF YACIqo0APT46Hgxwa3EoDfD3xn/A2m7+nY3En8rIfZxPd5JR1DXpjSuuxqOgP9f+ rhCOazHLLnOrDWMR+5Nuya0f1Jpu2gdG2VV3j+yxJfJgzDKY8GVzseawSy7La+Oa J1ewv1FA2F7Flak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=bidouilliste.com; h=date :from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; q=dns; s= mail; b=VoPLGPGZHEnIK5WqZgIU3WQ2owH03WuwMtmmBi7Xydj/ku+bh80mGXAU ZexyGEJCSjqlUewBhOoyJ13mxwWYZStXdEqJF13ymDDq6Rh/gCU2ttYbsvp4ZMwF vKhsxqeLeHKVU7LGlS/HFIV1Bh8bgCplpv23JAS5RmbI3ndi/Gg= Received: from skull.home.blih.net (lfbn-idf2-1-1164-130.w90-92.abo.wanadoo.fr [90.92.223.130]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 1901684e TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 31 Dec 2019 22:24:17 +0100 (CET) Date: Tue, 31 Dec 2019 22:24:15 +0100 From: Emmanuel Vadot To: freebsd-arm Subject: Re: Pinebook Pro, any progress as of yet ? Message-Id: <20191231222415.0314787f51b0918f7223dd2c@bidouilliste.com> In-Reply-To: <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> References: <20191230234910.9a02d7e3bd43d72f1250a780@bidouilliste.com> <20191231001119.68f0c3865ac520388ade5ecf@bidouilliste.com> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 47nS3s6LSrz3D6w X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=fRBDtDkN; dmarc=none; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.177.182 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [0.74 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; NEURAL_HAM_MEDIUM(-0.22)[-0.217,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.56)[-0.565,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(0.42)[ip: (-0.54), ipnet: 212.83.160.0/19(2.41), asn: 12876(0.25), country: FR(0.00)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; FREEMAIL_CC(0.00)[gmail.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: Tue, 31 Dec 2019 21:24:28 -0000 On Tue, 31 Dec 2019 00:11:19 +0100 Emmanuel Vadot wrote: > On Tue, 31 Dec 2019 00:06:04 +0100 > S=F8ren Schmidt wrote: >=20 > >=20 > >=20 > > > On 30 Dec 2019, at 23.49, Emmanuel Vadot wrot= e: > > >=20 > > > On Mon, 30 Dec 2019 21:18:14 +0100 > > > S=F8ren Schmidt wrote: > > >=20 > > >> Hi gang > > >>=20 > > >> Just received my pinebook pro today (nice little machine btw), and t= hought I?d better ask here how much if any support we have allready ? > > >=20 > > > I received mine today too. > > >=20 > > >> It is more or less just a rock64pro in a laptop enclosure, so I gues= s the rudimentary support is there. > > >=20 > > > No, it's not a rockpro64 in a laptop enclosure. > >=20 > > Ahh, what I meant was that it uses same CPU etc as the rockpro64, so I = assumed (wrongly ?) that they are at least somewhat similar. >=20 > Sure it's similar but still not the same. >=20 > > >=20 > > >> However, it does not like the stock 13-arm64 image, so before I dig = in, has anyone else gotten this cutie to boot ? > > >=20 > > > What image are you refering too ? What do you mean by "it does not > > > like" ? > >=20 > > I just tried the latest current image "FreeBSD-13.0-CURRENT-arm64-aarch= 64-20191226-r356085-memstick.img", and it just seems to hang without any ou= tput to the console, but alas if it needs a new u-boot/dts that?s to be exp= ected. >=20 > And you put this image on what ? an sdcard ? Yes that needs u-boot. >=20 > > I also grapped a pinebookpro.dts from some site I forgot, they look mor= e or less identical. > >=20 > > > I've been able to boot to multiuser using mainline u-boot + mainline > > > atf with this patch for u-boot : > > > https://patchwork.ozlabs.org/patch/1194525/ > >=20 > > Hmm, OK, going to look into that one, does that still boot the ahem, li= nux its born with ? >=20 > No idea and I don't care about the linux present on the eMMC, it was > deleted from it 10 min after I've received the unit. >=20 > > > I have some weird issue on the console like weird char are drawn from > > > time to time (looks like it's when there is a lot of output from the > > > console). It's a bit better with an FTDI adapter compared to the > > > Prolific one that is in the Pine64 Uart<->Jack Adapter. > >=20 > > Yeah, getting 1500000 baud is a pain, I had to try several picks from t= he bunch of cheap Chinese adapters here as well, settled on a FT232 clone t= hat seems to work. >=20 > 1.5Mbps works great on the rock64 and rockpro64, which is why I still > don't know what's happening. >=20 > > > USB Doesn't work. The right port gives some USB_ERR_IOERROR, don't > > > know the cause yet. The left port is tried to the dwc3 controller but > > > in OTG mode and we don't support that. The USB-C port is also not > > > supported for now. > > > Both the SDCard and eMMC seems to work correctly. > >=20 > > OK; I?l get at build evn setup here so I can play with it, lets see how= far I get then. > >=20 > > >=20 > > > There is, of course, no video support for now. > >=20 > > Endeed, that would be one of the really nice things to get working. > >=20 > > Anyhow its actually a nice piece of kit, amazing what you can get for 2= 00$ nowadays. > >=20 > > -S=F8ren I know have something that can be booted correctly and with usb. U-Boot is the same but I've switched the uart baudrate to 115200 as it's way too noisy at 1.5Mbps for me (https://people.freebsd.org/~manu/pbp_uart.jpeg vs https://people.freebsd.org/~manu/rockpro_uart.jpeg). I'll push the patches somewhere at one point, in the meantime people can use a precompiled version from https://people.freebsd.org/~manu/pinebookpro/ Refer to the readme from the u-boot-rockpro64 port to install it. I've also pushed some commit there https://github.com/evadot/freebsd/tree/pinebookpro This have the dts needed for booting (based on the dts included in u-boot with some fixes to it). And also some fixes to the regulator framework and PMIC driver that I will put up to review soon. --=20 Emmanuel Vadot