From owner-freebsd-arm@freebsd.org Sun Oct 13 13:10:45 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 E95B6F8C38 for ; Sun, 13 Oct 2019 13:10:45 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 46rhrh69q5z3Pq7; Sun, 13 Oct 2019 13:10:44 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id x9DDAev6075299; Sun, 13 Oct 2019 08:10:40 -0500 (CDT) (envelope-from mike@karels.net) Message-Id: <201910131310.x9DDAev6075299@mail.karels.net> To: Ian Lepore cc: Glen Barber , Emmanuel Vadot , freebsd-arm@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black In-reply-to: Your message of Tue, 08 Oct 2019 19:18:25 -0500. MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <75297.1570972239.1@mail.karels.net> Date: Sun, 13 Oct 2019 08:10:40 -0500 X-Rspamd-Queue-Id: 46rhrh69q5z3Pq7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 216.160.39.52 as permitted sender) smtp.mailfrom=mike@karels.net X-Spamd-Result: default: False [-3.77 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[mike@karels.net]; NEURAL_HAM_MEDIUM(-1.00)[-0.998,0]; RCPT_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:216.160.39.52]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[karels.net]; REPLYTO_ADDR_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; IP_SCORE(-1.58)[ip: (-5.42), ipnet: 216.160.0.0/15(-2.35), asn: 209(-0.06), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.0.0/15, country:US]; 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: Sun, 13 Oct 2019 13:10:46 -0000 Top-posting to avoid the search: has anyone looked at this? Any thoughts on where the problem might lie? Any chance of getting it fixed for 12.1? I could do something like a driver bisection, but a full bisection might be a bit much on this platform. Thanks, Mike > To: Ian Lepore > cc: Glen Barber , > Emmanuel Vadot , freebsd-arm@freebsd.org > From: Mike Karels > Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black > Date: Tue, 08 Oct 2019 19:18:25 -0500 > I trimmed most of the context, the quoting was getting rather deep. > Responding to multiple messages... > > > > > I re-tested 12.1-BETA3 on my BeagleBone Black, and do not see any > > > > > boot > > > > > failures. This is with a class 10 SD card. > > > > > > > > > > Glen > > > > > > > > > > > > > Even when using the button to force booting from sdcard ? > > > > > > > > > > Huh. Yeah, I do see 'sdhci_ti1-slot0: Controller timeout' when using > > > the button. > > > > > > Glen > > > > > BTW, those controller timeouts are non-fatal. If you let it keep > > trying, eventually the board finishes booting (it takes over 2 > > minutes). But you can't access the emmc. If you want a workaround for > > faster booting until the problem is fixed, add dev.sdhci_ti.1.timeout=1 > > to /boot/loader.conf. > > -- Ian > - I have tried multiple SD cards, and they boot other releases; as noted, > they are not the problem. > - I hadn't waited long enough / for enough repeats of the timeout. Looks > like it takes 16 failures, but it does in fact boot. It then prints > mmc1: No compatible cards found on bus > and there is no mmcsd1 in /dev. > - Setting the timeout to 1 makes booting tolerable. I'll keep BETA3 > running now. > Thanks, > Mike From owner-freebsd-arm@freebsd.org Sun Oct 13 17:05:11 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 4E37A13750F for ; Sun, 13 Oct 2019 17:05:11 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound3d.ore.mailhop.org (outbound3d.ore.mailhop.org [54.186.57.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46rp3B48C0z4KXF for ; Sun, 13 Oct 2019 17:05:10 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1570986309; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ronSPXtFAobTj5OzadX4XEi3h3p952B8Lvbh/+sURQcZVUKGSXXHGcSHwYBaeYpn4UxVzQ1F764Np YyBDA6wanjH/PoxRtTVdvAxH9U28tnqWw6k43mzVGJY/7tOk25yFpoB/VYkA1DUWeHvkj6Fo2r3ou0 v5rSGBoqkna7m2Yo64CQpk0+b0udk/Y0e0v6bNIvCvCyQ0xGEcqc3o+UAoFj4ETGLOyBnJsS6GXJiM zQuyVTrJ0O0SrVgQCl7IdZTUNUthEAG+u0zUjsMknUseV0dmVW1a/TBAe3YcAGJm593tQ9+YnAE6sh tLf3mViLVwvZWVlYceowFloCwkrEPPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:dkim-signature:from; bh=QuLrbfqw4A6i995Kn5cwkbP1XSCbpgbZb6pZBMkOZ7E=; b=Lj2N0XTxgADFVXQx+RNFx9/y8vkM3MZPvkZKukdWyb77oLb8LpYxbvKNg0gbzfT8m1MhrfnsZq+wO KBn78HK3037cTgaWudJt7Ruzp6usTq5/6/2GEHmgeNBZQ+ivEqlk4Q47mLAMlrn6e4NkIJaNcEeDWv koULuVdOUDTJKjCIYBhs12O4dwqSJbvM2ZwSg1QZ1qq5xkitux5t0j+ZW+1NKmMnSmdf/N8Sr6vhLW gh7SVfgimDkeFnQQhIyFgE4w9nRpCXSv7HxpqmhCejKzG3l+C5azlRGqaDAmsx/5PgFg0UZfQrK8aS zjD1yW+ERb0A1aMgdReFU+h+pfighJQ== ARC-Authentication-Results: i=1; outbound3.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:cc:to:from:subject:message-id:from; bh=QuLrbfqw4A6i995Kn5cwkbP1XSCbpgbZb6pZBMkOZ7E=; b=vZgs8OQwQ+Cs+2eWlFN7MMacR49DbzPrWZ/wYhD8Qz0FY+ZCLid1dj8nIH41YiQhoTLxVAVxRYEEP CpBa90u4CCCa+h1J/fE1lvSONxSQnEcO0qGvSlv7+5Q20zGBWjiyvQCtXAccIFiG3BatilVf3/eUGM jMiaSjsdJJagDgtQ0ll0TfNTl77XYUciEl1Key3ofsTof4SZibwoZGAk6+n0nMUCqlN0SL0dTpzuTP RggyZdjwBsGnC9oa/qqXypbURfQcZOyDhaNTnyHn9GgDpK6WA49ctlqzhrKWm8LX1rREg82L6meP2i s3Pgn84de8bfVPxB0yNMNxYa8pAQWzA== X-MHO-RoutePath: aGlwcGll X-MHO-User: 9a0ab503-eddb-11e9-955f-dfabc1efb494 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound3.ore.mailhop.org (Halon) with ESMTPSA id 9a0ab503-eddb-11e9-955f-dfabc1efb494; Sun, 13 Oct 2019 17:05:07 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x9DH54Hs002183; Sun, 13 Oct 2019 11:05:04 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <21ca35fea0b47be32022baef29ea67208179f0f3.camel@freebsd.org> Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black From: Ian Lepore To: mike@karels.net Cc: Glen Barber , freebsd-arm@freebsd.org Date: Sun, 13 Oct 2019 11:05:04 -0600 In-Reply-To: <201910131310.x9DDAev6075299@mail.karels.net> References: <201910131310.x9DDAev6075299@mail.karels.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46rp3B48C0z4KXF X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.88 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.88)[-0.879,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; ASN(0.00)[asn:16509, ipnet:54.186.0.0/15, country:US] 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: Sun, 13 Oct 2019 17:05:11 -0000 On Sun, 2019-10-13 at 08:10 -0500, Mike Karels wrote: > Top-posting to avoid the search: has anyone looked at this? Any > thoughts > on where the problem might lie? Any chance of getting it fixed for > 12.1? > > I could do something like a driver bisection, but a full bisection > might > be a bit much on this platform. > > Thanks, > Mike > I was under the impression this was a known problem with a known fix, and we were just waiting for the u-boot port changes to find their way into the release images. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238344 -- Ian > > To: Ian Lepore > > cc: Glen Barber , > > Emmanuel Vadot , freebsd-arm@freebsd.org > > From: Mike Karels > > Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black > > Date: Tue, 08 Oct 2019 19:18:25 -0500 > > I trimmed most of the context, the quoting was getting rather deep. > > Responding to multiple messages... > > > > > > I re-tested 12.1-BETA3 on my BeagleBone Black, and do not > > > > > > see any > > > > > > boot > > > > > > failures. This is with a class 10 SD card. > > > > > > > > > > > > Glen > > > > > > > > > > > > > > > > Even when using the button to force booting from sdcard ? > > > > > > > > > > > > > Huh. Yeah, I do see 'sdhci_ti1-slot0: Controller timeout' when > > > > using > > > > the button. > > > > > > > > Glen > > > > > > > BTW, those controller timeouts are non-fatal. If you let it keep > > > trying, eventually the board finishes booting (it takes over 2 > > > minutes). But you can't access the emmc. If you want a > > > workaround for > > > faster booting until the problem is fixed, add > > > dev.sdhci_ti.1.timeout=1 > > > to /boot/loader.conf. > > > -- Ian > > - I have tried multiple SD cards, and they boot other releases; as > > noted, > > they are not the problem. > > - I hadn't waited long enough / for enough repeats of the > > timeout. Looks > > like it takes 16 failures, but it does in fact boot. It then > > prints > > mmc1: No compatible cards found on bus > > and there is no mmcsd1 in /dev. > > - Setting the timeout to 1 makes booting tolerable. I'll keep > > BETA3 > > running now. > > Thanks, > > Mike > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > " From owner-freebsd-arm@freebsd.org Sun Oct 13 18:42:01 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 4FBC9139875 for ; Sun, 13 Oct 2019 18:42:01 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from sonic316-20.consmr.mail.ne1.yahoo.com (sonic316-20.consmr.mail.ne1.yahoo.com [66.163.187.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46rrBv6gLfz4PXR for ; Sun, 13 Oct 2019 18:41:59 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) X-YMail-OSG: bH6Zhc8VM1neMBwVqrTxAJFWcdtwvosqajJmTtn8kd4mu9Ntop2F8e.BkovWIFf t30ojGHJDHPx6Dyeh5mx_TYokyLmg9wOmkGNOJ5yZtQHKyEM.4a5yhbP7Hgu_AkrqOelcdq9SrHg tqrY7syb25FQZ3XwkRlUc8TJze.Zpc5RLWx5JItVE4BR1ZEEtyCCTVG3AldUwmwK1IjCDVZztpng oPtvecIMpKPSWru5rAUdoZv6hfeHr2P6rB0_0aUzOBmqHwCSRRBKvY0C3.QNIXiNIm9UMyK44_P6 lYHk2COcKPDPVUHuQ4bEzu1R51k35MZkrfA_Yk_D86s6iwJXrV67OZ4ypmxIFpZP.tibH7JdYXAL 2oTqwBJqb82iGo6DT2jACyysmQP9Yc3Ee3RA6Hv72f7OVkBHk_p3rvUaHkWoVCu5ddvi6iPn1yBK cYNsRa6pVcD0KnlM5fQ6b36jcPQxnRmy7Uba0tPt9RoGggNVTO6lcz8sg5TB9iJEoA02E15ooT9y 2oBrTMEb2Emd53S0OxIY7ezD9OWZRQPvFFzZtY0u9Dg4TuT0_1Izfy90xjsoaAXphZRXBG1dIZAP DelTDEXy.D86_hA.gXV40sPnoWl5B6_PGDMIGwT62lYnkXT4KprWwiJLKAJIWQL9h1iEImIYF3d2 bPGxYBD6DtyguIIO__Bjvo7F3gMAUJKyWj4Gq_OUgFpixWdlZZZNDOwxfnkoQpFskGDaoMdmGCGx .dhESR8K2Gtvrhgp7b5tuYdX0qQrBmpqqbGRnq3lfKmWHp2rJ6evpXa22X40wbZ_eYuQsT3MBWSa .Rwx2hkUtQxBCVWOkUL96NhjzliltjMqGuT.JWMPvFK83GYooOujhjFETWBaic6b4VkXTsTvHX6z kZQsI7IfGn4hFDtzvsFDAFURo_bYoyDFgWryPY4SPegVmeDZi2WYQn520Ry7RvBEuKde0Wmx0E1b pzW5PtGLeYeNByJCSiFPRTRNeUkiWAuQfj0Id0jfM06zTeAdV38QbP.25vvnRw7gDs5xmf0Kbd0g F9FWKK_TFOY6DJGbCkr7bpIK7HdJMNPeI6QgJpjcc0d3HiS_LQT.CWkc5G7nbX2XcR4Ks0j9dS4o P1Db9hjQfYguGDV_XlCP3XM2FJYTNqo4C2bPMinreASvDoLBWweBSfTuAQXvL0PbCnAByqe82cEu dfWUImUf4Pqn6R7r_iTCdeKZrZaJq3iYESfLj.tX7TwYr6AuyE2rgIIS20Klr7TCrd5StnYIMcDs neVR5tulupsVYFn..TxrZpqPFIbwKtyW5lozTbg-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Sun, 13 Oct 2019 18:41:58 +0000 Received: by smtp415.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e0cc751a29af39c3e97388d700ce4897; Sun, 13 Oct 2019 18:41:56 +0000 (UTC) From: Thomas Skibo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition Message-Id: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.com> Date: Sun, 13 Oct 2019 11:41:55 -0700 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46rrBv6gLfz4PXR X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.19 / 15.00]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_NONE(0.00)[]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(0.00)[ip: (2.98), ipnet: 66.163.184.0/21(1.32), asn: 36646(1.05), country: US(-0.05)]; NEURAL_SPAM_MEDIUM(0.85)[0.847,0]; RCPT_COUNT_ONE(0.00)[1]; IP_SCORE_FREEMAIL(0.00)[]; NEURAL_SPAM_LONG(0.85)[0.847,0]; RCVD_IN_DNSWL_NONE(0.00)[146.187.163.66.list.dnswl.org : 127.0.5.0]; 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: Sun, 13 Oct 2019 18:42:01 -0000 >=20 > I put FreeBSD-12.1-RC1-arm64-aarch64-PINE64.img on the sd card. It is=20= > created with u-boot 2019-07 and boot correctly. >=20 > If I put u-boot 2019-10 the same problem occurs. Without r352446, loader.efi cannot work with u-boot 2019.10. So, a 12.1 = image isn=E2=80=99t going to be compatible with u-boot 2019.10. I=E2=80=99= ve verified this on a Zynq board. Also, boot1.efi won=E2=80=99t work with u-boot 2019.10 but I tried = Emmanuel=E2=80=99s suggestion to use loader.efi directly and that = worked. Then, as an experiment I backed out change r352446 in the = loader and I got all the same error messages as Henri. =E2=80=94 Thomas Skibo thomasskibo@yahoo.com From owner-freebsd-arm@freebsd.org Sun Oct 13 18:55:08 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 42B67139D83 for ; Sun, 13 Oct 2019 18:55:08 +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 46rrV31mk4z4QCx for ; Sun, 13 Oct 2019 18:55:06 +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 x9DIsgZC076976 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 13 Oct 2019 11:54:43 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id x9DIsg9W076975; Sun, 13 Oct 2019 11:54:42 -0700 (PDT) (envelope-from jmg) Date: Sun, 13 Oct 2019 11:54:42 -0700 From: John-Mark Gurney To: Thomas Skibo Cc: freebsd-arm@freebsd.org, Emmanuel Vadot Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition Message-ID: <20191013185442.GR96402@funkthat.com> Mail-Followup-To: Thomas Skibo , freebsd-arm@freebsd.org, Emmanuel Vadot References: <9840C5F9-64F8-4415-A24E-E62507F14C8D@yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9840C5F9-64F8-4415-A24E-E62507F14C8D@yahoo.com> 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]); Sun, 13 Oct 2019 11:54:43 -0700 (PDT) X-Rspamd-Queue-Id: 46rrV31mk4z4QCx 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.32 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.987,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.53)[ip: (-1.37), ipnet: 208.87.216.0/21(-0.69), asn: 32354(-0.55), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[jmg@funkthat.com,jmg@gold.funkthat.com]; FREEMAIL_TO(0.00)[yahoo.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: Sun, 13 Oct 2019 18:55:08 -0000 Thomas Skibo via freebsd-arm wrote this message on Fri, Oct 11, 2019 at 08:50 -0700: > > > U-Boot SPL 2019.10 (Oct 10 2019 - 18:05:29 +0200) > > DRAM: 2048 MiB > > Trying to boot from MMC1 > > NOTICE: BL31: v2.0(release): > > > > >> > > FreeBSD EFI boot block > > > > Loader path: /boot/loader.efi > > > > Initializing modules: ZFS UFS > > Load Path: /efi\boot\bootaa64.efi > > Load Device: > > /VenHw(e61d73b9-a384-4acc-aeab-82e828f3628b)/SD(0)/SD(0)/HD(1,0x01,0,0x403b,0x20000) > > Probing 3 block devices...... done > > ZFS found no pools > > UFS found no partitions > > Failed to load '/boot/loader.efi' > > panic: No bootable partitions found! > > ## Application terminated, r = 1 > > > I???ve been looking into this. As of u-boot v2019.10, there are some extra checks in efi_disk_read_blocks() and now it will fail with EFI_INVALID_PARAMETER if the buffer isn???t aligned. In my case, efi_disk_read_blocks() was called with a buffer address of 0x1da06040 but with this->media->io_align = 512. (See lib/efi_loader/efi_disk.c line 125.). Evidently,loader.efi is making disk calls with unaligned buffers but it wasn???t an issue until these checks were added. That???s as far as I got debugging this. This would also likely fix the issues I'm seeing w/ the latest RockPro64. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Sun Oct 13 21:00:48 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 14C75B59BC for ; Sun, 13 Oct 2019 21:00:48 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46rvH35M2rz4YFW for ; Sun, 13 Oct 2019 21:00:47 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9C98C22AFA for ; Sun, 13 Oct 2019 21:00:47 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9DL0l5D054205 for ; Sun, 13 Oct 2019 21:00:47 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9DL0lsW054204 for freebsd-arm@FreeBSD.org; Sun, 13 Oct 2019 21:00:47 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201910132100.x9DL0lsW054204@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: freebsd-arm@FreeBSD.org Subject: Problem reports for freebsd-arm@FreeBSD.org that need special attention Date: Sun, 13 Oct 2019 21:00:47 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 13 Oct 2019 21:00:48 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 238576 | Raspberry Pi 3B+ "shutdown -p" does not shut off Open | 239673 | Spurious Interrupt message from /dev/led/led1 2 problems total for which you should take action. From owner-freebsd-arm@freebsd.org Mon Oct 14 00:19:13 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 254ABBB349 for ; Mon, 14 Oct 2019 00:19:13 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (mail.karels.net [216.160.39.52]) by mx1.freebsd.org (Postfix) with ESMTP id 46rzgz70srz3F0d; Mon, 14 Oct 2019 00:19:11 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail.karels.net (localhost [127.0.0.1]) by mail.karels.net (8.15.2/8.15.2) with ESMTP id x9E0J4P3077569; Sun, 13 Oct 2019 19:19:04 -0500 (CDT) (envelope-from mike@karels.net) Message-Id: <201910140019.x9E0J4P3077569@mail.karels.net> To: Ian Lepore cc: Glen Barber , freebsd-arm@freebsd.org From: Mike Karels Reply-to: mike@karels.net Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black In-reply-to: Your message of Sun, 13 Oct 2019 11:05:04 -0600. <21ca35fea0b47be32022baef29ea67208179f0f3.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <77567.1571012344.1@mail.karels.net> Date: Sun, 13 Oct 2019 19:19:04 -0500 X-Rspamd-Queue-Id: 46rzgz70srz3F0d X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mike@karels.net designates 216.160.39.52 as permitted sender) smtp.mailfrom=mike@karels.net X-Spamd-Result: default: False [-3.82 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[mike@karels.net]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:216.160.39.52]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[karels.net]; REPLYTO_ADDR_EQ_FROM(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(-1.62)[ip: (-5.54), ipnet: 216.160.0.0/15(-2.46), asn: 209(-0.06), country: US(-0.05)]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:216.160.0.0/15, country:US]; 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: Mon, 14 Oct 2019 00:19:13 -0000 > On Sun, 2019-10-13 at 08:10 -0500, Mike Karels wrote: > > Top-posting to avoid the search: has anyone looked at this? Any > > thoughts > > on where the problem might lie? Any chance of getting it fixed for > > 12.1? > > > > I could do something like a driver bisection, but a full bisection > > might > > be a bit much on this platform. > > > > Thanks, > > Mike > > > I was under the impression this was a known problem with a known fix, > and we were just waiting for the u-boot port changes to find their way > into the release images. > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238344 > -- Ian Thanks, Ian, I hadn't seen that bug. Mike > > To: Ian Lepore > > cc: Glen Barber , > > Emmanuel Vadot , freebsd-arm@freebsd.org > > From: Mike Karels > > Subject: Re: FreeBSD 12.1-BETA3 won't boot on Beaglebone Black > > Date: Tue, 08 Oct 2019 19:18:25 -0500 > > I trimmed most of the context, the quoting was getting rather deep. > > Responding to multiple messages... > > > > > > I re-tested 12.1-BETA3 on my BeagleBone Black, and do not > > > > > > see any > > > > > > boot > > > > > > failures. This is with a class 10 SD card. > > > > > > > > > > > > Glen > > > > > > > > > > > > > > > > Even when using the button to force booting from sdcard ? > > > > > > > > > > > > > Huh. Yeah, I do see 'sdhci_ti1-slot0: Controller timeout' when > > > > using > > > > the button. > > > > > > > > Glen > > > > > > > BTW, those controller timeouts are non-fatal. If you let it keep > > > trying, eventually the board finishes booting (it takes over 2 > > > minutes). But you can't access the emmc. If you want a > > > workaround for > > > faster booting until the problem is fixed, add > > > dev.sdhci_ti.1.timeout=1 > > > to /boot/loader.conf. > > > -- Ian > > - I have tried multiple SD cards, and they boot other releases; as > > noted, > > they are not the problem. > > - I hadn't waited long enough / for enough repeats of the > > timeout. Looks > > like it takes 16 failures, but it does in fact boot. It then > > prints > > mmc1: No compatible cards found on bus > > and there is no mmcsd1 in /dev. > > - Setting the timeout to 1 makes booting tolerable. I'll keep > > BETA3 > > running now. > > Thanks, > > Mike > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org > " From owner-freebsd-arm@freebsd.org Mon Oct 14 13:13:31 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 9F351FB45A for ; Mon, 14 Oct 2019 13:13:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46sJsR3lzLz4N5v for ; Mon, 14 Oct 2019 13:13:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 656725C5B for ; Mon, 14 Oct 2019 13:13:31 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9EDDVMO014901 for ; Mon, 14 Oct 2019 13:13:31 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9EDDVWc014897 for freebsd-arm@FreeBSD.org; Mon, 14 Oct 2019 13:13:31 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 216093] FreeBSD-11.0-RELEASE-arm-armv6-RPI2.img - ZFS NOTICE: KSTACK_PAGES is 2 Date: Mon, 14 Oct 2019 13:13:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vermaden@interia.pl X-Bugzilla-Status: Closed X-Bugzilla-Resolution: Feedback Timeout X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 14 Oct 2019 13:13:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216093 vermaden@interia.pl changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |Feedback Timeout Status|New |Closed --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Mon Oct 14 18:54:06 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 40B51133ECC for ; Mon, 14 Oct 2019 18:54:06 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46sSQP0qLqz3Fg7 for ; Mon, 14 Oct 2019 18:54:04 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: by mail-qk1-x731.google.com with SMTP id q203so16833783qke.1 for ; Mon, 14 Oct 2019 11:54:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7vGB2yoGefls+4jiXodx7L4MNwKkLNUtnHOlSUMnWjo=; b=MtKnl1yENH0TDrtRRHRqSBPjDIEHBhVktn+lB1erQRuFydetGSqaavF3v+QZkrFXis QsJg88o+BF2Z4nX9zmAblNqa+Yjc/du5FVyhOwU26wl5LnBMOtaY0vJI5gkrfq0tenrs EYwFWFIlhGvAGJx8xFI8jjS+IWxPqiARzR+S15/R8Gtu7oVhfmTpOBXvz4nrJDZK9RTH YAubABSC574gd/IdrA5X9y43nuaKJrMlGIuMbRU9vRlpjoA+MFp8MXOqOxgkxBvRDYYe dK1nHyNXjswbootgnBPwREPCMNDOzX8ej2Vzpm4PuAifSfQT2e3QB8ahNHjdIqqTO/AV d2kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7vGB2yoGefls+4jiXodx7L4MNwKkLNUtnHOlSUMnWjo=; b=QrG0wBmRI7OUGlJexV++ASj6N1+vvPGrWoTV7LYHTJM7j56wzz1NwT7/OTXOqmYHXT cISjRYox7gBaFKASZfg5ZyMSZMy76EOwsvmybFALXVc3vr6sQXeXjppv/FnBvWzjyCtf S9sL+3x5g7ZeYqgR/16hmojr8Q/KdsOyUp/optL93lFOv5IQGAtB8QoNly9yF0qZ+yUP 7UKMM/FIp2qp6tSZV/4LsMV3Xf5OzbSQsJyveQKxpeN0UO6LI+CSmW+TppTBWWKHZMkh Ag2WoQ+gBpI4xyxjS0YPCzUV4eG38iDIRdMyLW2602xdgxsLCTXKf4JMhk5FDtFKFgz1 Asfg== X-Gm-Message-State: APjAAAUog5IOfvMychuy13NoxcN4U7FZ50joiUKsf3Wqn5kxJ6Z/WRrJ mmDqVMC4Qc8ti45WrRTo3fPS//+Q7smTQIO1ddKxRXM0 X-Google-Smtp-Source: APXvYqxJ2Qh13dK/lQsB9m4zTq8MIT6nm/uhqE4BoobTw+XiHiS4sLKcvq6txMVbrtt4cMIcS7atWMm2vJ2D8mRxwCw= X-Received: by 2002:a37:f70f:: with SMTP id q15mr28880819qkj.428.1571079243771; Mon, 14 Oct 2019 11:54:03 -0700 (PDT) MIME-Version: 1.0 From: Gary Otten Date: Mon, 14 Oct 2019 14:46:12 -0400 Message-ID: Subject: GPIO on Olimex A64 board. Bank E not working. To: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 46sSQP0qLqz3Fg7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=MtKnl1yE; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gdotten@gmail.com designates 2607:f8b0:4864:20::731 as permitted sender) smtp.mailfrom=gdotten@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE(0.00)[ip: (-9.31), ipnet: 2607:f8b0::/32(-2.50), asn: 15169(-2.11), country: US(-0.05)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[1.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Mon, 14 Oct 2019 18:54:06 -0000 I have successfully booted the FreeBSD on the Olimex board which has the Allwinner A64. I have been experimenting with the gpios, again with success. However the 40 pin connector on the Olimex board exposes GPIO pins PB0 - PB4 which function normally (voltage corresponds to software setting for that pin) and then PE0-PE17 which don't. I have played with most of the PE0- PE17 pins with various settings, again nothing works, no signs of activity. I have successfully lit the LED (PE17) with the armbian (linux) distribution for this board so I know it should work. Example gpioctl -f /dev/gpioc0 -c PB0 OUT gpioctl -f /dev/gpioc0 PB0 1 The pin PB0 then goes high (1) as expected. gpioctl -f /dev/gpioc0 -c PE17 OUT gpioctl -f /dev/gpioc0 PE17 1 No activity on PE17 I have dug into the the driver code a bit and the files containing the settings for this board/processor, but I have had no luck figuring it out. I have studied the Allwinner a64 manual but I haven't had luck figuring out any other settings that might work. I think I am missing a simple setting but can't figure it out, does anyone know how to get pins PE0 to PE17 to work? Thanks. From owner-freebsd-arm@freebsd.org Tue Oct 15 02:31:36 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 C5A9614C16D for ; Tue, 15 Oct 2019 02:31:36 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from hobbes.arroway.org (hobbes.arroway.org [173.199.118.77]) by mx1.freebsd.org (Postfix) with ESMTP id 46sfZH4ybcz4TyX for ; Tue, 15 Oct 2019 02:31:35 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from [10.1.1.11] (unknown [177.89.5.111]) by hobbes.arroway.org (Postfix) with ESMTPA id 6BFC21CA5BA for ; Mon, 14 Oct 2019 23:31:34 -0300 (BRT) Received: from 10.1.3.102 (SquirrelMail authenticated user matheus) by 10.1.1.11 with HTTP; Mon, 14 Oct 2019 23:31:34 -0300 Message-ID: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> Date: Mon, 14 Oct 2019 23:31:34 -0300 Subject: Choose between Raspberry Pi 4B 4GB and ROCKPro64 From: "Nenhum_de_Nos" To: freebsd-arm@freebsd.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Rspamd-Queue-Id: 46sfZH4ybcz4TyX X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of matheus@eternamente.info has no SPF policy when checking 173.199.118.77) smtp.mailfrom=matheus@eternamente.info X-Spamd-Result: default: False [0.83 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.95)[-0.953,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.94)[-0.941,0]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[eternamente.info]; HAS_X_PRIO_THREE(0.00)[3]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:173.199.116.0/22, country:US]; MID_BARE_IP(2.00)[]; IP_SCORE(-0.28)[asn: 20473(-1.35), country: US(-0.05)] 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, 15 Oct 2019 02:31:36 -0000 Hi, I am about to buy a new arm box and would like it to be the most powerfull I can get and still get to use FreeBSD somewhere not so far from now. I know RPi4 is not supported right now, but as I have both RPi2B and RPi3B and they run fine, my guess is the 4B will have its time also. So it then comes down to 4B or ROCKPro64. I saw Pine64 images, but I could not find much information about the ROCKPro64. I looked for some benchmarks to know the faster CPU, and it looks like the RK3399 is a bit faster. As the board has more features, I am asking here, if this has even an answer, what board has better future in FreeBSD. Thanks in advance :) matheus From owner-freebsd-arm@freebsd.org Tue Oct 15 08:26:36 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 85C7915776A for ; Tue, 15 Oct 2019 08:26:36 +0000 (UTC) (envelope-from hlh@restart.be) Received: from tignes.restart.be (tignes.restart.be [37.187.123.11]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (1024 bits) client-digest SHA256) (Client CN "tignes.restart.be", Issuer "CA master" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46spRv3rT3z3NJC for ; Tue, 15 Oct 2019 08:26:35 +0000 (UTC) (envelope-from hlh@restart.be) X-Comment: SPF check N/A for local connections - client-ip=192.168.25.127; helo=restart.be; envelope-from=hlh@restart.be; receiver= DKIM-Filter: OpenDKIM Filter v2.10.3 tignes.restart.be 46spRk4wCqz13 Received: from restart.be (norquay.tunnel.bel [192.168.25.127]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (1024 bits) server-digest SHA256 client-signature RSA-PSS (1024 bits) client-digest SHA256) (Client CN "smtp.restart.be", Issuer "CA master" (verified OK)) by tignes.restart.be (Postfix) with ESMTPS id 46spRk4wCqz13; Tue, 15 Oct 2019 10:26:25 +0200 (CEST) Received: from morzine.restart.bel (morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1]) (authenticated bits=0) by restart.be (8.15.2/8.15.2) with ESMTPSA id x9F8QOTt000743 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NO); Tue, 15 Oct 2019 10:26:24 +0200 (CEST) (envelope-from hlh@restart.be) X-Authentication-Warning: norquay.restart.bel: Host morzine.restart.be [IPv6:2001:41d0:a:f40b:1:1:0:1] claimed to be morzine.restart.bel Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition To: Thomas Skibo , freebsd-arm@freebsd.org References: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.com> From: Henri Hennebert Message-ID: Date: Tue, 15 Oct 2019 10:26:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 46spRv3rT3z3NJC X-Spamd-Bar: -- X-Spamd-Result: default: False [-2.63 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[restart.be:s=tignes]; NEURAL_HAM_MEDIUM(-0.99)[-0.994,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:37.187.123.11/32]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; HAS_XAW(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[restart.be:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[restart.be,reject]; FREEMAIL_TO(0.00)[yahoo.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.37)[ipnet: 37.187.0.0/16(0.32), asn: 16276(1.51), country: FR(-0.00)]; ASN(0.00)[asn:16276, ipnet:37.187.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[] 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, 15 Oct 2019 08:26:36 -0000 On 10/13/19 8:41 PM, Thomas Skibo via freebsd-arm wrote: >> >> I put FreeBSD-12.1-RC1-arm64-aarch64-PINE64.img on the sd card. It is >> created with u-boot 2019-07 and boot correctly. >> >> If I put u-boot 2019-10 the same problem occurs. > > Without r352446, loader.efi cannot work with u-boot 2019.10. So, a 12.1 image isn’t going to be compatible with u-boot 2019.10. I’ve verified this on a Zynq board. > > Also, boot1.efi won’t work with u-boot 2019.10 but I tried Emmanuel’s suggestion to use loader.efi directly and that worked. Then, as an experiment I backed out change r352446 in the loader and I got all the same error messages as Henri. > > releng/12.1 at r353543 have loader.efi (as bootaa64.efi) booting the kernel with u-boot 2019.10 :-) The error is still there with boot1.efi as bootaa64.efi. Henri From owner-freebsd-arm@freebsd.org Tue Oct 15 10:03:59 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 37A4815A3FE for ; Tue, 15 Oct 2019 10:03:59 +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 46srcF6jtyz40Xg for ; Tue, 15 Oct 2019 10:03:57 +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 35595658; Tue, 15 Oct 2019 12:03:55 +0200 (CEST) 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=bJGJlylnKoCs7exPCpOSMLVG2KY=; b=seZxlKv8nS2bVw5bg5VlMCjGdoew oT0FbuTgadWZaaEEMQwiLC2r99Cg3/h4WU2l1Zgpl9s7+Km08U9D/J3ULq8LRsbs KMuqqsQaQOykIRpPT0c2IQ4wIpMolijM/e88RjoYUI54vKGhCGx7Bq5C1UuftRnR ZVHkvEjkouNGCgY= 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=XYzskallco8CVP+wQpc9nmKsqoMq9ncpt6yVn7BAvY14BhD8KRnwmPp9 txTvIx/qEp6IhzBjHes+fUvwN6ZCk1OTy3fawN/+MyuYz/JW/lADugOMpfrwz01W Iz4ohcWPT4c77IqwH8SSU0BRTrcD8sVabjOZe5D6SFq4zxXhjik= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id d8e58048 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 12:03:55 +0200 (CEST) Date: Tue, 15 Oct 2019 12:03:55 +0200 From: Emmanuel Vadot To: Henri Hennebert Cc: Henri Hennebert via freebsd-arm , Thomas Skibo Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition Message-Id: <20191015120355.91c54cbd23d2bf95c9566f7e@bidouilliste.com> In-Reply-To: References: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.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: 46srcF6jtyz40Xg X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=seZxlKv8; 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 [-1.36 / 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.84)[-0.845,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.997,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.69), ipnet: 212.83.160.0/19(2.46), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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, 15 Oct 2019 10:03:59 -0000 On Tue, 15 Oct 2019 10:26:24 +0200 Henri Hennebert via freebsd-arm wrote: > On 10/13/19 8:41 PM, Thomas Skibo via freebsd-arm wrote: > >> > >> I put FreeBSD-12.1-RC1-arm64-aarch64-PINE64.img on the sd card. It is > >> created with u-boot 2019-07 and boot correctly. > >> > >> If I put u-boot 2019-10 the same problem occurs. > >=20 > > Without r352446, loader.efi cannot work with u-boot 2019.10. So, a 12.= 1 image isn?t going to be compatible with u-boot 2019.10. I?ve verified th= is on a Zynq board. > >=20 > > Also, boot1.efi won?t work with u-boot 2019.10 but I tried Emmanuel?s s= uggestion to use loader.efi directly and that worked. Then, as an experime= nt I backed out change r352446 in the loader and I got all the same error m= essages as Henri. > >=20 > > releng/12.1 at r353543 have loader.efi (as bootaa64.efi) booting the=20 > kernel with u-boot 2019.10 :-) >=20 > The error is still there with boot1.efi as bootaa64.efi. >=20 > Henri This will not be fixed. boot1.efi was never used for arm/arm64 and the main goal is to remove it anyway. --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 10:06:50 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 BEAB515A4D8 for ; Tue, 15 Oct 2019 10:06:50 +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 46srgZ017Wz40hc for ; Tue, 15 Oct 2019 10:06:49 +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 f0b4a325; Tue, 15 Oct 2019 12:06:48 +0200 (CEST) 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=R6dfJD9CN9KsWs4HzDZiA9WHxXY=; b=N0ASf14mV3nKrc0GHohz881WNRRk 4UB3CZ9AHjxSVC7TcYwAti5eNk0GUtaRPVfyvzQZBxVTQum2zUQTYpaaXLOPNhLW HgmWYMykEk+unlUmsfVr6F6n8lazSWzO7t1aS1y4WPvUZltAr4uibZ2gQ47D/Eod K7tLmjbHjQb5h50= 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=XEfzhhRKXsWMWP0RZGV1y6QPHomVF3EaFLEaSyaBln8e/EuE3p2K7SNq o9+5L00s5dMC3zoBKRJ9vnTknu+7BnxXlXShXPN2+wkkb9WfE1Q9JMWK6GmgTJk4 X6gVH0VQbX28p2iZPkQQa0RviOOZpyQDD6YuOhXGcryWNg9jn18= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id cc2b5d18 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 12:06:48 +0200 (CEST) Date: Tue, 15 Oct 2019 12:06:48 +0200 From: Emmanuel Vadot To: Thomas Skibo Cc: Thomas Skibo via freebsd-arm Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition Message-Id: <20191015120648.ca03c451bc95e29f41a336d7@bidouilliste.com> In-Reply-To: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.com> References: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.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: 46srgZ017Wz40hc X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=N0ASf14m; 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 [-1.34 / 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.82)[-0.820,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32:c]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[yahoo.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.68), ipnet: 212.83.160.0/19(2.46), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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, 15 Oct 2019 10:06:50 -0000 On Sun, 13 Oct 2019 11:41:55 -0700 Thomas Skibo via freebsd-arm wrote: > >=20 > > I put FreeBSD-12.1-RC1-arm64-aarch64-PINE64.img on the sd card. It is=20 > > created with u-boot 2019-07 and boot correctly. > >=20 > > If I put u-boot 2019-10 the same problem occurs. >=20 > Without r352446, loader.efi cannot work with u-boot 2019.10. So, a 12.1 = image isn?t going to be compatible with u-boot 2019.10. I?ve verified this= on a Zynq board. >=20 > Also, boot1.efi won?t work with u-boot 2019.10 but I tried Emmanuel?s sug= gestion to use loader.efi directly and that worked. Then, as an experiment= I backed out change r352446 in the loader and I got all the same error mes= sages as Henri. >=20 >=20 > ? > Thomas Skibo > thomasskibo@yahoo.com Yes, thanks for trying 12.1 as I didn't when I updated u-boot. tsoome@ did merge the needed commits in stable/12 and will mfc them in releng/12.1 so 12.1-RELEASE will work with u-boot 2019.10. Note that 12.1 will be shipped with u-boot 2019.07 as this is the version in the latest quarterly but at least it will not break when the next quarterly will be branched and people update their u-boot based on it. As said in another mail forget boot1.efi, this was never supported on arm/arm64. --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 11:18:46 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 767C715BB76 for ; Tue, 15 Oct 2019 11:18:46 +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 46stGY46cCz44QT for ; Tue, 15 Oct 2019 11:18:44 +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 fd7e0a0a; Tue, 15 Oct 2019 13:18:43 +0200 (CEST) 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=yAAYHhL0VGhud6tj8jxZxaK8Kqg=; b=sf/WSpHZpB4g4Ue46UcsA8+Ev550 5Y9ANZ5n5027sdEH2t6DIiNdVGMa2rlQItr68r4I4KaFJJPfXPJ8+8B7loFXt2Ql sFU/Be8gLx10NHxirxE46iZTLv3aA7RLMF9WAfFmI8HaHEU+QtpvRm2SKUV3v5pe Bg+hB1WN2zGHAsM= 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=cNUK4jGb0oGT3iD3NiAnJT0RX3RG6E+qLyZwEA+bkq/DWa26MKtIwvBr +Wv0+Zkqn8b8sR+mkFNZD4MJ9x7CT/qRB6UsKbuJjQn8J5BTG7PGX6EmiQtfZ3i0 5rkCiVI7Fgk8MJXkXFB1bDahgU3G8rjG0EXeFiENf/GHfr57afQ= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 0ad0f53a TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 13:18:43 +0200 (CEST) Date: Tue, 15 Oct 2019 13:18:42 +0200 From: Emmanuel Vadot To: Gary Otten Cc: freebsd-arm@freebsd.org Subject: Re: GPIO on Olimex A64 board. Bank E not working. Message-Id: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46stGY46cCz44QT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=sf/WSpHZ; 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 [-1.33 / 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.81)[-0.810,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.995,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.68), ipnet: 212.83.160.0/19(2.46), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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, 15 Oct 2019 11:18:46 -0000 Hi Gary, On Mon, 14 Oct 2019 14:46:12 -0400 Gary Otten wrote: > I have successfully booted the FreeBSD on the Olimex board which has the > Allwinner A64. I have been experimenting with the gpios, again with > success. However the 40 pin connector on the Olimex board exposes GPIO pins > PB0 - PB4 which function normally (voltage corresponds to software setting > for that pin) and then PE0-PE17 which don't. I have played with most > of the PE0- PE17 pins with various settings, again nothing works, no signs > of activity. I have successfully lit the LED (PE17) with the armbian > (linux) distribution for this board so I know it should work. > > Example > gpioctl -f /dev/gpioc0 -c PB0 OUT > gpioctl -f /dev/gpioc0 PB0 1 > > The pin PB0 then goes high (1) as expected. > > gpioctl -f /dev/gpioc0 -c PE17 OUT > gpioctl -f /dev/gpioc0 PE17 1 > > No activity on PE17 > > > I have dug into the the driver code a bit and the files containing the > settings for this board/processor, but I have had no luck figuring it out. > I have studied the Allwinner a64 manual but I haven't had luck figuring > out any other settings that might work. I think I am missing a simple > setting but can't figure it out, does anyone know how to get pins PE0 to > PE17 to work? Thanks. What version of FreeBSD are you booting on this board ? PE is a bit special on the Olinuxino as it's also used for MIPI-CSI and it's drived at 2.8V by default. It's using the regulator ALDO1 from the AXP PMIC and you should be able to confirm that it's enabled by doing sysctl hw.regulator.vcc-pe Check for the .enable sysctl It should be on as there is the always-on property in the DTS. By default I think that the gpio pins are configured for 20mA so I don't know if it would be enough for this led. If you have a multimeter it would be good to confirm if you have any voltage on the ext connector (you can use any PE pins, from what I see from the schematics they are all safe to play with). -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 11:49:20 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 AB74C15C1B9 for ; Tue, 15 Oct 2019 11:49:20 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46stxq0ynJz45ZP for ; Tue, 15 Oct 2019 11:49:18 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x334.google.com with SMTP id 3so19953425wmi.3 for ; Tue, 15 Oct 2019 04:49:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:message-id:date:to; bh=6kBy6UttC9x4V8PkAoOBvAWnfagpQEGIH8eieLzfFf4=; b=sS1ET0AIbY9dMdStEvbZruOKa+TwDd04bgG7r4d5La8lT5Z+72nmGg5ep3aArgEn85 2d5rg6LqJJ9XOL5GWQ9QHs4XaHR2VmLl2n0RtaqukXr775cB6pEeAuTmAWm4nK080wlQ N3KPal1ThvHSAXhzeE0IMop+qg9fn4o7i6ogSiDGT7BRswQBORY2LetZqBGoCyUCa91U /1GZaXcERUMODYWZ80PrWghRF1uZhaE9jLwcqBRQe95GO//vC4BnGw3KrttzFg2bQDEg Yc0jE0Y7iV8Qb2t6+EaiJqDQ4XEj2HySXOp2u3WsrF/sBPj8b2CbbCa1aGlJKv2SyWgq CnUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:message-id:date:to; bh=6kBy6UttC9x4V8PkAoOBvAWnfagpQEGIH8eieLzfFf4=; b=R0oETJvA7pFydMx3dtVUmJgq/PmgvWMDPEKHE/M7qDIPxVweqLbyCW/y9py5UEaDU1 DeWCcDSFB71cmSnd40Z6yvkjK7nJRmcVaWOXtpWn+DI5Xkc5Bm7oSoE2PBKRm/l129R4 1QLrWH6LtghuQuETjLjbaOCIuqhEOYtDE3rRrBEsimFVyPqQ9djSzeZL/vCl7TvXj5lk rYu/nMlxNuto9hECNekn1GX/Vvgs+ftSpTTGNDNO7mhdrNCpJ93A+SN5FfcVghqpTobX e9b4GjYxSCBR1CW1w8eiiEZvIgcuikSUyFuXKVPfK7ICVtZw1LmaFtRVw40lW2cZMK+y pnuA== X-Gm-Message-State: APjAAAWoJHDL+1bsrXW8cpVWl9p/MnJndfByOnJofpkxw8yYqL1jVDwF J2RCIBNcVwyKu5f0lWeoSmVvCBvE X-Google-Smtp-Source: APXvYqwvVeHtqDqcIZbXM72g6sdgxT7ARFmE4RFp09h5aOL4s6xEAPjhp1HaVLo+Cgkl+o7XNsllyw== X-Received: by 2002:a05:600c:10ce:: with SMTP id l14mr19301033wmd.102.1571140157364; Tue, 15 Oct 2019 04:49:17 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id o18sm52990820wrw.90.2019.10.15.04.49.16 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 04:49:16 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: =?utf-8?Q?Trouble_starting_AP_cpu=27s_on_all_winner_R40/V40_chip?= =?utf-8?Q?=2C_help_needed=E2=80=A6?= Message-Id: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> Date: Tue, 15 Oct 2019 13:49:15 +0200 To: freebsd-arm X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46stxq0ynJz45ZP X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=sS1ET0AI; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-2.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-8.93), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.11), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[4.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 11:49:20 -0000 Hi all I found some time to wrestle the allwinner R40/v40 I=E2=80=99ve sitting = around, but I=E2=80=99m bashing my head against getting the AP=E2=80=99s = booted properly. I don=E2=80=99t seem to be able to get the CPU to run at all, or (more = likely) I don=E2=80=99t have a way to get them startet at =E2=80=9Cmpentry= =E2=80=9D to get them going correctly. I=E2=80=99m not sure I understand how those AP=E2=80=99s gets their = starting address, the only reference to =E2=80=9Cmpentry=E2=80=9D is = aw_mp.c: bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0, pmap_kextract((vm_offset_t)mpentry)); This is used on all all winner cpu=E2=80=99s (more or less) but = according til the R40/v40 docs that register doesn=E2=80=99t exist which = would explain the failure=E2=80=A6 Any help is most welcome. PS: Board is BananaPi M2 berry, I=E2=80=99ve gotten USB, SATA etc = running, missing SMP and network. -S=C3=B8ren From owner-freebsd-arm@freebsd.org Tue Oct 15 12:02:13 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 6F0C415CF19 for ; Tue, 15 Oct 2019 12:02:13 +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 46svDh3l0Dz46d3 for ; Tue, 15 Oct 2019 12:02:11 +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 5ad2c01a; Tue, 15 Oct 2019 14:02:10 +0200 (CEST) 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=suqgMwH+S99Yr/b1yKx1sAZXIhM=; b=dUWT45StApoD64D7zIeGBbAyBIvM E4Kdqcxxz8j1lwTYMhGsGX1Eh1l8inH0MUYrXQPRLEwCVH5gL0IvsDkvuEEHcyH4 xOULVirpSVj6z0eEXBbEtuq25xTfP2mhGC+xMSUReoS1sBUDBf8A0UCzqMLj3gky u/5pwZF+Uz33MbM= 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=pIvdAh0ysKM+dxpnrsgIdCVTWKHzoEG4Lv1Hi+1o0G/gAuxWMJrzNpYE YDauA3oGujMaQDGHUbr4YVJ8tBNoN8R5pSR4zw1ddQl9dvWDoWM9F2/NN4GZlLUp nFoyI/WFoyzQqfe9c8pacluZu2g2OyPUKzqAE59NbAWDpy42B04= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 9905f1a5 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 14:02:10 +0200 (CEST) Date: Tue, 15 Oct 2019 14:02:10 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help =?ISO-8859-1?Q?needed=3F?= Message-Id: <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> In-Reply-To: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.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: 46svDh3l0Dz46d3 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=dUWT45St; 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 [4.00 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mail]; 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_SPAM_MEDIUM(0.42)[0.420,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.90)[0.900,0]; SUBJ_EXCESS_QP(1.20)[]; IP_SCORE(0.38)[ip: (-0.68), ipnet: 212.83.160.0/19(2.46), asn: 12876(0.11), country: FR(-0.00)]; FREEMAIL_TO(0.00)[gmail.com]; 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]; 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, 15 Oct 2019 12:02:13 -0000 Hi S=F8ren, On Tue, 15 Oct 2019 13:49:15 +0200 S=F8ren Schmidt wrote: > Hi all >=20 > I found some time to wrestle the allwinner R40/v40 I?ve sitting around, b= ut I?m bashing my head against getting the AP?s booted properly. >=20 > I don?t seem to be able to get the CPU to run at all, or (more likely) I = don?t have a way to get them startet at ?mpentry? to get them going correct= ly. >=20 > I?m not sure I understand how those AP?s gets their starting address, the= only reference to ?mpentry? is aw_mp.c: >=20 >=20 > bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0, > pmap_kextract((vm_offset_t)mpentry)); >=20 > This is used on all all winner cpu?s (more or less) but according til the= R40/v40 docs that register doesn?t exist which would explain the failure? >=20 > Any help is most welcome. >=20 >=20 > PS: Board is BananaPi M2 berry, I?ve gotten USB, SATA etc running, missin= g SMP and network. >=20 > -S=F8ren >=20 > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" R40 seems to use different registers for cpu bringup, so you will need to define a new platform for it in aw_machdep.c and defines some new function for ap bringup in aw_mp.c The User Manual section 3.2 of the R40 have all the needed info. Cheers, --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 12:27:42 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 E9EA315D7FA for ; Tue, 15 Oct 2019 12:27:42 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46svp61qC4z484V for ; Tue, 15 Oct 2019 12:27:42 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x32f.google.com with SMTP id p7so20668094wmp.4 for ; Tue, 15 Oct 2019 05:27:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rYyiUv9Q601/QW/7m8iNGLjMVSEdPy2XC7hzaCOWfyY=; b=lhZLKKy0CktILl8Os/6w2/myVQy/8YSsp4qXliNY6bn40U1yoKel94+7baIV8FW5Hy cW3KQqUN+dJFh1xf4QE6P+pdDa0Daoen6upux0KiMqqjKRVoWJACA7iG44oljyqWKkrU DYvXe98IeqydYziQ6KNGNlD1GZYRvxWMTeiq8WdEFzkM9GoKTwFWH8fGE8hMNq0L/oDN gN6I2n1VxggNTFaHaa3dzLXDSjgfYcbb4uqdg8k45+pGWKq9eYXkjl5PhMCNmDhiaNX3 nm3M8foIx3QkYgYTOJRujXaUeGu1uHNPfH+0KsUaKBDyBT4A2SGlzPxRtt+wvCqU8W6u wpyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rYyiUv9Q601/QW/7m8iNGLjMVSEdPy2XC7hzaCOWfyY=; b=s69nX2Xv2LxoAV3LGpXX/7bDh/Kk/Gzj+OUBimmyyb3Nga1VmMnAArO0wKhRm7XTzk l2Jx0L2InkrmQjHatpRkMkrRyHHyVPRIyJ9AnYoR6+piZzd5FMkgekbqnDFabkxboTMf OlG6L+U9IxZzVzp5npMWZEjAQPBcywh4zFNBrtqcxIIR/4enNnx2Iuxl9frTjv6NwyO/ g4klChxyQZ5NQtnvKiXX9gEizVcnwwFFPaIfope/WOJrs+QrXgG9lmhmAQaPfRq39uHH q+V2HXcgbOeoHFzQ0GW1HvT/fyD0zg7El2RSjH/lQWKjHgB2xig9w/aXoCP3I6mFdcZD thaw== X-Gm-Message-State: APjAAAUY+t5/0lTR9g3gnDQDKTYfjdFVhAgZAcpEB47BRPvie16KvPTH 9SX/SJPYeGmMfGsqKnBbwFnBmEJA X-Google-Smtp-Source: APXvYqxc5BZZcpZ9fBOU/Q7dM88EzKOOt3QP9UcW2/OCFbSEjQ/o8BR2wiyOzeXF9YarF5VnCF4ABA== X-Received: by 2002:a1c:1f8d:: with SMTP id f135mr19108871wmf.156.1571142460706; Tue, 15 Oct 2019 05:27:40 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id h7sm19718914wrs.15.2019.10.15.05.27.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 05:27:40 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? From: =?utf-8?Q?S=C3=B8ren_Schmidt?= In-Reply-To: <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> Date: Tue, 15 Oct 2019 14:27:39 +0200 Cc: freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> To: Emmanuel Vadot X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46svp61qC4z484V X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=lhZLKKy0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::32f as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[f.2.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.91), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.11), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] 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, 15 Oct 2019 12:27:43 -0000 Hi Manu >=20 >> Hi all >>=20 >> I found some time to wrestle the allwinner R40/v40 I?ve sitting = around, but I?m bashing my head against getting the AP?s booted = properly. >>=20 >> I don?t seem to be able to get the CPU to run at all, or (more = likely) I don?t have a way to get them startet at ?mpentry? to get them = going correctly. >>=20 >> I?m not sure I understand how those AP?s gets their starting address, = the only reference to ?mpentry? is aw_mp.c: >>=20 >>=20 >> bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0, >> pmap_kextract((vm_offset_t)mpentry)); >>=20 >> This is used on all all winner cpu?s (more or less) but according til = the R40/v40 docs that register doesn?t exist which would explain the = failure? >=20 > R40 seems to use different registers for cpu bringup, so you will need > to define a new platform for it in aw_machdep.c and defines some new > function for ap bringup in aw_mp.c > The User Manual section 3.2 of the R40 have all the needed info. >=20 Yeps, already did that, and I can reset the cores etc, that seems to = work (register bits flips), but there are no mention of regs to put the = starting address into. Chap 3.2 doesn=E2=80=99t mention anything in that regard (at least in = the docs I=E2=80=99ve found online) its moved to chap 4.2 in the latest = R40/V40/T3 docs I=E2=80=99ve found bu still no mention of starting = address. I looks somewhat like the A20 ie it has control for 2 cpu=E2=80=99s the = last two are missing from the register ref, which suggests to me that = the docs might be inaccurate at best. I looked into =E2=80=9CTina-linux=E2=80=9D that they made for it, but I = havn=E2=80=99t found out how they start it there either.. I might also just have stared me blind at it :) -S=C3=B8ren From owner-freebsd-arm@freebsd.org Tue Oct 15 12:55:12 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 E303215E194 for ; Tue, 15 Oct 2019 12:55:12 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46swPr1gSkz49Z8 for ; Tue, 15 Oct 2019 12:55:11 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x334.google.com with SMTP id y135so2275537wmc.1 for ; Tue, 15 Oct 2019 05:55:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=yFN2M9iUEXfyf5GUUr7Up4Mto77YeRySgJJgiluKI5w=; b=nPFf9vT0lREgf1J+uSqT93XpJzLuwADLdcRx4H0GoHv1HHqDy9RvE6UtfCXw8J3h9t Eib0D6FKV2h2Fm65n1uk+MS5oKDpvWtgncXRvKZBx+J6lAAGzELD/CBkR+ts2yKqq28Q IH5Zc41UwmxPfeIrMTf4MxBUQHOH/FbgR+S2ve2XCrb/L1AdRKSh1vpflC9qADfeGAMF 5NR5eAvep2eji1WDA1whc5mx3VPPfBmdP2VGWQefvkK1KBqHy2HQj8eIHbiSuPkjOq/N 5PtUvM4sqYP1N1wWf9Qxp5Z2p3pgOjF3CMOOVhRP20jTt2PhDVsQ7P0UNrxbxY9NMED+ IjsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=yFN2M9iUEXfyf5GUUr7Up4Mto77YeRySgJJgiluKI5w=; b=cLAl9QTajUpJn+SOclk8qkGaQw0u6GehTu8yEcoPMTYmTO4sTuoJbaZCXDjopVky8z ugIj7lUK0O5Xy8XIR+4xuQNe9Rekn4Swh0iYKcHf3xCZF6O2xOCn+1wnRweXZgT3snfi 0KqNTQHIzjgoJSzwLFN9Y8SmqXsWtqWMK7+2kNWFkiCYdHmY0RxiBl0Q4MjjhHliwqF5 zdmG3L7kcuJtvRI40+IkfGNNml3NmhmfxpkEM9blg+5JP0mZmG82m/LHlPclx73k7Bx3 /5mV9RY86l4T6+uhVp9UtfTaH3TLBcKOYMvN7UWoA0gem8HO2n8zujcMhq8IVjE0A0Z8 tFmA== X-Gm-Message-State: APjAAAWBh3WdsljDpK/+5fXVKhE3MTuFMEM5BVe/hlGDD6NoF2i+6f/o 4K2vUVFYjCGeVuicTweNo20= X-Google-Smtp-Source: APXvYqzMAPggrocFX6QRg2S6JKDIRDdw2eXdXsV60JvrH/cJSqMx9alvFrTW47XjyJ4r59t34+NwOA== X-Received: by 2002:a1c:a708:: with SMTP id q8mr17752225wme.86.1571144109895; Tue, 15 Oct 2019 05:55:09 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id e3sm20301089wme.39.2019.10.15.05.55.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 05:55:09 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Date: Tue, 15 Oct 2019 14:55:08 +0200 In-Reply-To: Cc: freebsd-arm To: Emmanuel Vadot References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46swPr1gSkz49Z8 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=nPFf9vT0; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::334 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[4.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.90), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.11), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 12:55:13 -0000 > On 15 Oct 2019, at 14.27, S=C3=B8ren Schmidt = wrote: >=20 > Hi Manu >=20 >>=20 >>> Hi all >>>=20 >>> I found some time to wrestle the allwinner R40/v40 I?ve sitting = around, but I?m bashing my head against getting the AP?s booted = properly. >>>=20 >>> I don?t seem to be able to get the CPU to run at all, or (more = likely) I don?t have a way to get them startet at ?mpentry? to get them = going correctly. >>>=20 >>> I?m not sure I understand how those AP?s gets their starting = address, the only reference to ?mpentry? is aw_mp.c: >>>=20 >>>=20 >>> bus_space_write_4(fdtbus_bs_tag, cpucfg, CPUCFG_P_REG0, >>> pmap_kextract((vm_offset_t)mpentry)); >>>=20 >>> This is used on all all winner cpu?s (more or less) but according = til the R40/v40 docs that register doesn?t exist which would explain the = failure? >=20 >>=20 >> R40 seems to use different registers for cpu bringup, so you will = need >> to define a new platform for it in aw_machdep.c and defines some new >> function for ap bringup in aw_mp.c >> The User Manual section 3.2 of the R40 have all the needed info. >>=20 >=20 > Yeps, already did that, and I can reset the cores etc, that seems to = work (register bits flips), but there are no mention of regs to put the = starting address into. >=20 > Chap 3.2 doesn=E2=80=99t mention anything in that regard (at least in = the docs I=E2=80=99ve found online) its moved to chap 4.2 in the latest = R40/V40/T3 docs I=E2=80=99ve found bu still no mention of starting = address. >=20 > I looks somewhat like the A20 ie it has control for 2 cpu=E2=80=99s = the last two are missing from the register ref, which suggests to me = that the docs might be inaccurate at best. >=20 > I looked into =E2=80=9CTina-linux=E2=80=9D that they made for it, but = I havn=E2=80=99t found out how they start it there either.. >=20 > I might also just have stared me blind at it :) Found that the start adresse is somewhere else: CPU software entry register offset 00bc in sysctl instead of cpuctl=E2=80=A6= I=E2=80=99ll try that when I get home later today,,, -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Tue Oct 15 14:19:03 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 1FC1414822B for ; Tue, 15 Oct 2019 14:19:03 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46syGZ0LHCz4GW2 for ; Tue, 15 Oct 2019 14:19:01 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (v-critter.freebsd.dk [192.168.55.3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by phk.freebsd.dk (Postfix) with ESMTPS id 664BE1AF3CA for ; Tue, 15 Oct 2019 14:18:59 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.15.2/8.15.2) with ESMTPS id x9FEIxNU002103 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Tue, 15 Oct 2019 14:18:59 GMT (envelope-from phk@critter.freebsd.dk) Received: (from phk@localhost) by critter.freebsd.dk (8.15.2/8.15.2/Submit) id x9FEIxIv002102; Tue, 15 Oct 2019 14:18:59 GMT (envelope-from phk) To: freebsd-arm@freebsd.org Subject: uboot USB-disk reboot hang on RPI2 & workaround From: Poul-Henning Kamp MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2100.1571149139.1@critter.freebsd.dk> Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Oct 2019 14:18:59 +0000 Message-ID: <2101.1571149139@critter.freebsd.dk> X-Rspamd-Queue-Id: 46syGZ0LHCz4GW2 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk X-Spamd-Result: default: False [-1.91 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.97)[-0.967,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[freebsd.dk]; IP_SCORE(0.06)[ip: (0.08), ipnet: 130.225.0.0/16(0.10), asn: 1835(0.13), country: EU(-0.01)]; FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU]; FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk]; RCVD_TLS_ALL(0.00)[] 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, 15 Oct 2019 14:19:03 -0000 I wanted to use an RPI2 with two 1TB USB disks as offline backup and all those parts worked fine. The disks are obviously plugged into a powered USB hub. What didn't work fine was rebooting. In the end I boiled it down to the following: Booting after power-on always worked. If I interrupt uboot and give it the 'reset' command, it fails to reboot: MMC: mmc@7e300000: 1 Loading Environment from FAT... In: serial Out: vidconsole Err: vidconsole Net: No ethernet found. starting USB... Bus usb@7e980000: scanning bus usb@7e980000 for devices... 7 USB D= evice(s) found scanning usb for storage devices... 2 Storage Device(s) fou= nd Hit any key to stop autoboot: 0 = MMC Device 0 not found no mmc device at slot 0 switch to partitions #0, OK mmc1 is current device Scanning mmc 1:1... Found EFI removable media binary efi/boot/bootarm.efi libfdt fdt_check_header(): FDT_ERR_BADMAGIC Scanning disk mmc@7e300000.blk... Then after a couple of seconds: Scanning disk usb_mass_storage.lun0... and then it just stops. So obviously this is entirely a uboot problem. If I plug in two 64GB flash-sticks, the problem is not there, so it is probably some kind of timing related to disk-spinup. I tried 12.0-R, 12.1-SNAP and 13.0-SNAP, same problem everywhere. Some experimentation finally revealed a usable workaround: If I interrupt uboot, and give it the `usb stop` command before `reset`, then it reliably resets and boots the kernel. I tried to find a way to write a file to the SD card with instructions to uboot, but utterly failed to get it to react to anything. (Theory: It tries to load env from mmc0 where the RPI2 uses mmc1 ?) In the end this py3 script became my workaround, it patches the u-boot.bin binary to change the built in preboot variable: #!/usr/bin/env python3 import sys assert len(sys.argv) =3D=3D 3 a =3D open(sys.argv[1], "rb").read() a =3D bytearray(a) idx =3D a.find(b'preboot=3Dusb start') assert idx > 0 print(idx, a[idx:idx+18]) a[idx + 14:idx + 17] =3D b'op ' print(idx, a[idx:idx+18]) open(sys.argv[2], "wb").write(a) Poul-Henning -- = Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence= . From owner-freebsd-arm@freebsd.org Tue Oct 15 15:36:22 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 5961D14AA78 for ; Tue, 15 Oct 2019 15:36:22 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from hobbes.arroway.org (hobbes.arroway.org [173.199.118.77]) by mx1.freebsd.org (Postfix) with ESMTP id 46szzm4QgCz4N2J for ; Tue, 15 Oct 2019 15:36:20 +0000 (UTC) (envelope-from matheus@eternamente.info) Received: from net.dyn.arroway.org (unknown [177.89.5.111]) by hobbes.arroway.org (Postfix) with ESMTPA id 13F5C1C83AC; Tue, 15 Oct 2019 12:36:16 -0300 (BRT) Received: from 186.229.5.58 (SquirrelMail authenticated user matheus) by net.dyn.arroway.org with HTTP; Tue, 15 Oct 2019 12:36:18 -0300 Message-ID: <730d80b78639a2054b1df18821d5fd76.squirrel@net.dyn.arroway.org> In-Reply-To: References: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> Date: Tue, 15 Oct 2019 12:36:18 -0300 Subject: Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64 From: "Nenhum_de_Nos" To: "Denis Polygalov" Cc: freebsd-arm@freebsd.org User-Agent: SquirrelMail/1.4.23 [SVN] MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Rspamd-Queue-Id: 46szzm4QgCz4N2J X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of matheus@eternamente.info has no SPF policy when checking 173.199.118.77) smtp.mailfrom=matheus@eternamente.info X-Spamd-Result: default: False [-1.20 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.937,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; NEURAL_HAM_LONG(-0.98)[-0.980,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[eternamente.info]; AUTH_NA(1.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; HAS_X_PRIO_THREE(0.00)[3]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:20473, ipnet:173.199.116.0/22, country:US]; IP_SCORE(-0.28)[asn: 20473(-1.34), country: US(-0.05)] 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, 15 Oct 2019 15:36:22 -0000 On Tue, October 15, 2019 01:15, Denis Polygalov wrote: > This might be useful for you: > > http://freebsd.1045724.x6.nabble.com/raspberry-pi-4-td6338266.html > > Regards, > Denis. Thanks, it was really useful. Still researching, but it looks so far that the RPi4B is the safest choice. Will hold the order for a bit longer. Thanks! matheus From owner-freebsd-arm@freebsd.org Tue Oct 15 15:54:06 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 496A614B817 for ; Tue, 15 Oct 2019 15:54:06 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t0NF48VLz4PhD for ; Tue, 15 Oct 2019 15:54:05 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: by mail-qk1-x730.google.com with SMTP id 201so19616335qkd.13 for ; Tue, 15 Oct 2019 08:54:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TlNMmFt+sbEp78wYGJY/WDHqwP5X03DpJ6lXcedbY24=; b=eZ1d8hM7D3ZQQyuSqoS9TqgAmlk6sncnGXWUwTUOwYXzZciUq707JCbpx+wydgvg6V 5/xHtQwESsq25CMkrQ48cIKKgzYfg96X/BHypReTVY8ctcxjtU4im/VoTYUqn6UM6u/o C/7MPcYq9dSsPl3pphk2o4Ic6bM90Pg7t/9QKf6fHZElmUyvWVt4YRWvjKcgTdIcSHOC MCdmDFkbtpdcdBL8RHvccI/dRJCyvqKPcS3XNt0Jaxaq1Lm5NfD/FzyhXKF0JxpXO6Ws ASVSW6e/BfA+ChQdnpq43cnZn2m3U4QSC3oXY3GYxWiU/IVR6La9n0q3ZTWmeHYZW+/K HgyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=TlNMmFt+sbEp78wYGJY/WDHqwP5X03DpJ6lXcedbY24=; b=I15VuRvw+AzLEAYwnvi91fC+iwJXg6SSjPqZS6YBOCNFrORAvbzJTAZCUTf7AYYjgR qsC9/JH3V84vomkOILeo4gJ3O0gdTuNi8o39SOqepEZDhFh7GUmaicNZCDKr9A4QzVLA YzQcIW8KV8DzexjsX38KCpVhINVe2BxKs5oiZIFEFe4aisuLeB+LiPwSYNWaUHjKIPR1 UNcnAqf+UH0nWe1Ws8vtR10xzGU3OVmFm8os1BNB2iXkkdUEbHrba9GSyBLD6mP867kL aPAoUx3W8SkBBi9dP9UX9VvgFsJKW8DcZzL/qgXyFuUr+b/3Vm8vL8XGWKdljcMHjBI1 mGvw== X-Gm-Message-State: APjAAAXu2Oe/DXoMhjEHIuCRB7NUr9yoL3KdETEAhNIFBIwXI8MLFmXP d2d9DI/yX2Xug3gHwdQ4Xqc5kWn9IzRlzBGSVvVxBB7q X-Google-Smtp-Source: APXvYqxAjYoQzVUiujM0RRazoUE3MeERG0fZCTbti2jxeBV4ZO2f98VtqkvNul/hg0Wwhkfs0CFP59gLG0YsAqYs/Wg= X-Received: by 2002:ae9:ed57:: with SMTP id c84mr35355134qkg.426.1571154844318; Tue, 15 Oct 2019 08:54:04 -0700 (PDT) MIME-Version: 1.0 References: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> In-Reply-To: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> From: Gary Otten Date: Tue, 15 Oct 2019 11:46:14 -0400 Message-ID: Subject: Re: GPIO on Olimex A64 board. Bank E not working. To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 46t0NF48VLz4PhD X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=eZ1d8hM7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gdotten@gmail.com designates 2607:f8b0:4864:20::730 as permitted sender) smtp.mailfrom=gdotten@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[0.3.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.37), ipnet: 2607:f8b0::/32(-2.48), asn: 15169(-2.10), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 15:54:06 -0000 Thanks for your response. Freebsd Version 12.0-STABLE root@:/dev # sysctl hw.regulator.vcc-pe hw.regulator.vcc-pe.uvolt: 2800000 hw.regulator.vcc-pe.always_on: 1 hw.regulator.vcc-pe.boot_on: 0 hw.regulator.vcc-pe.enable_cnt: 0 hw.regulator.vcc-pe.enable_delay: 0 hw.regulator.vcc-pe.ramp_delay: 0 hw.regulator.vcc-pe.max_uamp: 0 hw.regulator.vcc-pe.min_uamp: 0 hw.regulator.vcc-pe.max_uvolt: 2800000 hw.regulator.vcc-pe.min_uvolt: 2800000 Yes I am testing the pins with a multimeter, I am not seeing any voltage swings at all on Port E. On the external connector I see 5V on pin 1, 3.3 on pin 3 and the correct voltage( software setting) on the other pins, except bank E. PB0-PB4 voltage corresponds to software setting. PC4,PC7 voltage corresponds to software setting. PE0-PE17 no voltage swings, doesn't work. PL7-PL12 voltage corresponds to software setting. I don't know if it will help, but if I make output on a pin low, still when I switch the that pin from In to out, , I see a small voltage swing in the milli volt range, but when I switch the PE pins from in to out, I don't see that small swing. Its as if they is no software connection to the PE pins. On Tue, Oct 15, 2019 at 7:18 AM Emmanuel Vadot wrote: > > Hi Gary, > > On Mon, 14 Oct 2019 14:46:12 -0400 > Gary Otten wrote: > > > I have successfully booted the FreeBSD on the Olimex board which has the > > Allwinner A64. I have been experimenting with the gpios, again with > > success. However the 40 pin connector on the Olimex board exposes GPIO > pins > > PB0 - PB4 which function normally (voltage corresponds to software > setting > > for that pin) and then PE0-PE17 which don't. I have played with most > > of the PE0- PE17 pins with various settings, again nothing works, no > signs > > of activity. I have successfully lit the LED (PE17) with the armbian > > (linux) distribution for this board so I know it should work. > > > > Example > > gpioctl -f /dev/gpioc0 -c PB0 OUT > > gpioctl -f /dev/gpioc0 PB0 1 > > > > The pin PB0 then goes high (1) as expected. > > > > gpioctl -f /dev/gpioc0 -c PE17 OUT > > gpioctl -f /dev/gpioc0 PE17 1 > > > > No activity on PE17 > > > > > > I have dug into the the driver code a bit and the files containing the > > settings for this board/processor, but I have had no luck figuring it > out. > > I have studied the Allwinner a64 manual but I haven't had luck figuring > > out any other settings that might work. I think I am missing a simple > > setting but can't figure it out, does anyone know how to get pins PE0 to > > PE17 to work? Thanks. > > What version of FreeBSD are you booting on this board ? > PE is a bit special on the Olinuxino as it's also used for MIPI-CSI > and it's drived at 2.8V by default. It's using the regulator ALDO1 from > the AXP PMIC and you should be able to confirm that it's enabled by > doing sysctl hw.regulator.vcc-pe > Check for the .enable sysctl > It should be on as there is the always-on property in the DTS. > By default I think that the gpio pins are configured for 20mA so I > don't know if it would be enough for this led. If you have a multimeter > it would be good to confirm if you have any voltage on the ext > connector (you can use any PE pins, from what I see from the schematics > they are all safe to play with). > > -- > Emmanuel Vadot > From owner-freebsd-arm@freebsd.org Tue Oct 15 15:59: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 3635514C024 for ; Tue, 15 Oct 2019 15:59:05 +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 46t0Tz5rbDz4QMT for ; Tue, 15 Oct 2019 15:59:03 +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 d9e73c45; Tue, 15 Oct 2019 17:59:01 +0200 (CEST) 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=GT8M0k3yuvryIjq+n+mXHd3QhUA=; b=gILC2cPzTYyq4vdVLOKzm7uDWzpz SOcKQ32jMLMi/denmNfBe7semwF16JlRnMV1FtJOMtFnpeEU+/sul1tiJCd8uz4A yvgaaFPH/ycJnXIQrPuiJtXm0RpCuTqqZKiTvWgOAwinux2sOwTTN5kGFtEgGHan mnOEZYfr9hylvSg= 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=IuAWI+EsZjha/qunYCsXpcOscb604IhKE5/L98BRGZCbze3MzdohbHQb C8tyft7bPA9kwlzKfNfV7UI2yv90mLycMq+/l55qpBd3bxSUDXtDTbdeqmCgRZ5H /xu9Vo5MSBYSYduVUKFgPIft9lUB0mhvtz65/yIDLz/Ph+Ioepo= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id a22a7b2f TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 17:59:01 +0200 (CEST) Date: Tue, 15 Oct 2019 17:59:01 +0200 From: Emmanuel Vadot To: Gary Otten Cc: freebsd-arm@freebsd.org Subject: Re: GPIO on Olimex A64 board. Bank E not working. Message-Id: <20191015175901.1d0173f27798f15c25c037de@bidouilliste.com> In-Reply-To: References: <20191015131842.370e113b9f494ead760b9b6f@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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46t0Tz5rbDz4QMT X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=gILC2cPz; 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 [-1.24 / 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.73)[-0.726,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-1.00)[-0.996,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.67), ipnet: 212.83.160.0/19(2.45), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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, 15 Oct 2019 15:59:05 -0000 On Tue, 15 Oct 2019 11:46:14 -0400 Gary Otten wrote: > Thanks for your response. > > Freebsd Version 12.0-STABLE > > root@:/dev # sysctl hw.regulator.vcc-pe > hw.regulator.vcc-pe.uvolt: 2800000 > hw.regulator.vcc-pe.always_on: 1 > hw.regulator.vcc-pe.boot_on: 0 > hw.regulator.vcc-pe.enable_cnt: 0 That's the problem. Can you try with hw.regulator.disable_unused=0 in /boot/loader.conf ? Something is wrong somewhere as we should enable this regulator as the always-on prop is set. I'll try to have a look this week. > hw.regulator.vcc-pe.enable_delay: 0 > hw.regulator.vcc-pe.ramp_delay: 0 > hw.regulator.vcc-pe.max_uamp: 0 > hw.regulator.vcc-pe.min_uamp: 0 > hw.regulator.vcc-pe.max_uvolt: 2800000 > hw.regulator.vcc-pe.min_uvolt: 2800000 > > Yes I am testing the pins with a multimeter, I am not seeing any voltage > swings at all on Port E. On the external connector I see 5V on pin 1, 3.3 > on pin 3 and the correct voltage( software setting) on the other pins, > except bank E. > > PB0-PB4 voltage corresponds to software setting. > PC4,PC7 voltage corresponds to software setting. > PE0-PE17 no voltage swings, doesn't work. > PL7-PL12 voltage corresponds to software setting. > > I don't know if it will help, but if I make output on a pin low, still > when I switch the that pin from In to out, , I see a small voltage swing > in the milli volt range, but when I switch the PE pins from in to out, I > don't see that small swing. Its as if they is no software connection to > the PE pins. > > On Tue, Oct 15, 2019 at 7:18 AM Emmanuel Vadot > wrote: > > > > > Hi Gary, > > > > On Mon, 14 Oct 2019 14:46:12 -0400 > > Gary Otten wrote: > > > > > I have successfully booted the FreeBSD on the Olimex board which has the > > > Allwinner A64. I have been experimenting with the gpios, again with > > > success. However the 40 pin connector on the Olimex board exposes GPIO > > pins > > > PB0 - PB4 which function normally (voltage corresponds to software > > setting > > > for that pin) and then PE0-PE17 which don't. I have played with most > > > of the PE0- PE17 pins with various settings, again nothing works, no > > signs > > > of activity. I have successfully lit the LED (PE17) with the armbian > > > (linux) distribution for this board so I know it should work. > > > > > > Example > > > gpioctl -f /dev/gpioc0 -c PB0 OUT > > > gpioctl -f /dev/gpioc0 PB0 1 > > > > > > The pin PB0 then goes high (1) as expected. > > > > > > gpioctl -f /dev/gpioc0 -c PE17 OUT > > > gpioctl -f /dev/gpioc0 PE17 1 > > > > > > No activity on PE17 > > > > > > > > > I have dug into the the driver code a bit and the files containing the > > > settings for this board/processor, but I have had no luck figuring it > > out. > > > I have studied the Allwinner a64 manual but I haven't had luck figuring > > > out any other settings that might work. I think I am missing a simple > > > setting but can't figure it out, does anyone know how to get pins PE0 to > > > PE17 to work? Thanks. > > > > What version of FreeBSD are you booting on this board ? > > PE is a bit special on the Olinuxino as it's also used for MIPI-CSI > > and it's drived at 2.8V by default. It's using the regulator ALDO1 from > > the AXP PMIC and you should be able to confirm that it's enabled by > > doing sysctl hw.regulator.vcc-pe > > Check for the .enable sysctl > > It should be on as there is the always-on property in the DTS. > > By default I think that the gpio pins are configured for 20mA so I > > don't know if it would be enough for this led. If you have a multimeter > > it would be good to confirm if you have any voltage on the ext > > connector (you can use any PE pins, from what I see from the schematics > > they are all safe to play with). > > > > -- > > Emmanuel Vadot > > -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 17:34:39 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 55B4E14F402 for ; Tue, 15 Oct 2019 17:34:39 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t2cF4qS5z4ZR7 for ; Tue, 15 Oct 2019 17:34:37 +0000 (UTC) (envelope-from gdotten@gmail.com) Received: by mail-qk1-x72a.google.com with SMTP id x134so19982224qkb.0 for ; Tue, 15 Oct 2019 10:34:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=VGLbTrs6+MPZYTLiQeEhDEyWlijVKi1aYZKmnsa+jkQ=; b=AIe28OkGbfq/Uup1sH3GaFdCdCaHMyjT311pZR0gYFG6JKVX/Dwy5yHbbUDs2ykR3c /VdAa44SPsFvsFSHp5lX07mje0G4cEL7BnDo8KQng+MaXeDGD2UjzSjMQBNlsWjsJzJo AWK4rIloE+ZgJha/G33UW9PVSZwLLhtpu+uIkh1B/2gDjAVGs4HPhlQWymLP3dDyrKzt g0wi7qJsjGYYjbsx3j0qJm1futrGA7Ap3kd71we6pNza1TK/VVKrMpCh5s66Kta9QK1S Rbl6vtXhFUUUeTgSfcxt1YyFaA2zSmyEc6EpP82ZhhCWvdE7Cd9t7XgeSm/tnrFRF0VX BVVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=VGLbTrs6+MPZYTLiQeEhDEyWlijVKi1aYZKmnsa+jkQ=; b=gUffOaYmRaWv55le4xOyVkoeFTslWllVc0SkVoF/vJfwkIXWvq+11MlcwsXHuQj2zi lcK7a6e6mW9ztFtWMKYk6xHByeDCjeiH1WbeentqWEIxE1RV+uAgWOVYfJ+im+x1IJ3N M/HaqXqymSt8YWjc8fIHwOB+MJv4MDhv2gmYLcRvnB5cA/MF6k/CoUwBxxYYKkX+nNGG mLmNheUtxStff1MzZoZv9RjjG2JEotFGkBaY9pCCwxZTSMOuq1BPWEc5Y6+sIBtCW7TT C1o0SRE1vrKBey4ka41FzIeADjJ2zsXnUziQhlkR9iNRdU1UnOAUUgmd0XnliDp23Yzp WICA== X-Gm-Message-State: APjAAAV0xIj7W+GguzPooIpbR2c+WA8hB30JFXsZX+m19pJKmXFBjOdq dVDSMC1BTULocuH/BTqr8LsY21rj1TvBbCuNuPYcliV1 X-Google-Smtp-Source: APXvYqwAGcLZdJcSrpUDjM24tMV3zx/pRPmj9c10FYq3FnN4akrbajvKfUmJ2bratwPRPoLkVBrmqUU8KLWBH9U0k0Q= X-Received: by 2002:a37:f70f:: with SMTP id q15mr33691151qkj.428.1571160876019; Tue, 15 Oct 2019 10:34:36 -0700 (PDT) MIME-Version: 1.0 References: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> <20191015175901.1d0173f27798f15c25c037de@bidouilliste.com> In-Reply-To: <20191015175901.1d0173f27798f15c25c037de@bidouilliste.com> From: Gary Otten Date: Tue, 15 Oct 2019 13:26:46 -0400 Message-ID: Subject: Re: GPIO on Olimex A64 board. Bank E not working. To: Emmanuel Vadot Cc: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 46t2cF4qS5z4ZR7 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=AIe28OkG; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of gdotten@gmail.com designates 2607:f8b0:4864:20::72a as permitted sender) smtp.mailfrom=gdotten@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[a.2.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-9.36), ipnet: 2607:f8b0::/32(-2.48), asn: 15169(-2.10), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 17:34:39 -0000 Ok, I placed hw.regulator.disable_unused=0 in /boot/loader.conf. Here is the results, also still no output on the E bank. root@:/dev # sysctl hw.regulator hw.regulator.dc1sw.uvolt: 0 hw.regulator.dc1sw.always_on: 0 hw.regulator.dc1sw.boot_on: 0 hw.regulator.dc1sw.enable_cnt: 0 hw.regulator.dc1sw.enable_delay: 0 hw.regulator.dc1sw.ramp_delay: 0 hw.regulator.dc1sw.max_uamp: 0 hw.regulator.dc1sw.min_uamp: 0 hw.regulator.dc1sw.max_uvolt: 0 hw.regulator.dc1sw.min_uvolt: 0 hw.regulator.ldo-io1.always_on: 0 hw.regulator.ldo-io1.boot_on: 0 hw.regulator.ldo-io1.enable_cnt: 0 hw.regulator.ldo-io1.enable_delay: 0 hw.regulator.ldo-io1.ramp_delay: 0 hw.regulator.ldo-io1.max_uamp: 0 hw.regulator.ldo-io1.min_uamp: 0 hw.regulator.ldo-io1.max_uvolt: 3300000 hw.regulator.ldo-io1.min_uvolt: 700000 hw.regulator.ldo-io0.always_on: 0 hw.regulator.ldo-io0.boot_on: 0 hw.regulator.ldo-io0.enable_cnt: 0 hw.regulator.ldo-io0.enable_delay: 0 hw.regulator.ldo-io0.ramp_delay: 0 hw.regulator.ldo-io0.max_uamp: 0 hw.regulator.ldo-io0.min_uamp: 0 hw.regulator.ldo-io0.max_uvolt: 3300000 hw.regulator.ldo-io0.min_uvolt: 700000 hw.regulator.vdd-cpus.uvolt: 1100000 hw.regulator.vdd-cpus.always_on: 1 hw.regulator.vdd-cpus.boot_on: 0 hw.regulator.vdd-cpus.enable_cnt: 0 hw.regulator.vdd-cpus.enable_delay: 0 hw.regulator.vdd-cpus.ramp_delay: 0 hw.regulator.vdd-cpus.max_uamp: 0 hw.regulator.vdd-cpus.min_uamp: 0 hw.regulator.vdd-cpus.max_uvolt: 1100000 hw.regulator.vdd-cpus.min_uvolt: 1100000 hw.regulator.vcc-1v2-hsic.uvolt: 1200000 hw.regulator.vcc-1v2-hsic.always_on: 0 hw.regulator.vcc-1v2-hsic.boot_on: 0 hw.regulator.vcc-1v2-hsic.enable_cnt: 0 hw.regulator.vcc-1v2-hsic.enable_delay: 0 hw.regulator.vcc-1v2-hsic.ramp_delay: 0 hw.regulator.vcc-1v2-hsic.max_uamp: 0 hw.regulator.vcc-1v2-hsic.min_uamp: 0 hw.regulator.vcc-1v2-hsic.max_uvolt: 1200000 hw.regulator.vcc-1v2-hsic.min_uvolt: 1200000 hw.regulator.eldo3.always_on: 0 hw.regulator.eldo3.boot_on: 0 hw.regulator.eldo3.enable_cnt: 0 hw.regulator.eldo3.enable_delay: 0 hw.regulator.eldo3.ramp_delay: 0 hw.regulator.eldo3.max_uamp: 0 hw.regulator.eldo3.min_uamp: 0 hw.regulator.eldo3.max_uvolt: 1900000 hw.regulator.eldo3.min_uvolt: 700000 hw.regulator.vcc-dvdd-csi.uvolt: 1800000 hw.regulator.vcc-dvdd-csi.always_on: 0 hw.regulator.vcc-dvdd-csi.boot_on: 0 hw.regulator.vcc-dvdd-csi.enable_cnt: 0 hw.regulator.vcc-dvdd-csi.enable_delay: 0 hw.regulator.vcc-dvdd-csi.ramp_delay: 0 hw.regulator.vcc-dvdd-csi.max_uamp: 0 hw.regulator.vcc-dvdd-csi.min_uamp: 0 hw.regulator.vcc-dvdd-csi.max_uvolt: 1800000 hw.regulator.vcc-dvdd-csi.min_uvolt: 1800000 hw.regulator.cpvdd.uvolt: 1800000 hw.regulator.cpvdd.always_on: 0 hw.regulator.cpvdd.boot_on: 0 hw.regulator.cpvdd.enable_cnt: 0 hw.regulator.cpvdd.enable_delay: 0 hw.regulator.cpvdd.ramp_delay: 0 hw.regulator.cpvdd.max_uamp: 0 hw.regulator.cpvdd.min_uamp: 0 hw.regulator.cpvdd.max_uvolt: 1800000 hw.regulator.cpvdd.min_uvolt: 1800000 hw.regulator.vcc-pll-avcc.uvolt: 3000000 hw.regulator.vcc-pll-avcc.always_on: 1 hw.regulator.vcc-pll-avcc.boot_on: 0 hw.regulator.vcc-pll-avcc.enable_cnt: 0 hw.regulator.vcc-pll-avcc.enable_delay: 0 hw.regulator.vcc-pll-avcc.ramp_delay: 0 hw.regulator.vcc-pll-avcc.max_uamp: 0 hw.regulator.vcc-pll-avcc.min_uamp: 0 hw.regulator.vcc-pll-avcc.max_uvolt: 3000000 hw.regulator.vcc-pll-avcc.min_uvolt: 3000000 hw.regulator.vcc-pl.uvolt: 3300000 hw.regulator.vcc-pl.always_on: 1 hw.regulator.vcc-pl.boot_on: 0 hw.regulator.vcc-pl.enable_cnt: 0 hw.regulator.vcc-pl.enable_delay: 0 hw.regulator.vcc-pl.ramp_delay: 0 hw.regulator.vcc-pl.max_uamp: 0 hw.regulator.vcc-pl.min_uamp: 0 hw.regulator.vcc-pl.max_uvolt: 3300000 hw.regulator.vcc-pl.min_uvolt: 3300000 hw.regulator.vcc-pe.uvolt: 2800000 hw.regulator.vcc-pe.always_on: 1 hw.regulator.vcc-pe.boot_on: 0 hw.regulator.vcc-pe.enable_cnt: 0 hw.regulator.vcc-pe.enable_delay: 0 hw.regulator.vcc-pe.ramp_delay: 0 hw.regulator.vcc-pe.max_uamp: 0 hw.regulator.vcc-pe.min_uamp: 0 hw.regulator.vcc-pe.max_uvolt: 2800000 hw.regulator.vcc-pe.min_uvolt: 2800000 hw.regulator.vcc-wifi-io.uvolt: 3300000 hw.regulator.vcc-wifi-io.always_on: 0 hw.regulator.vcc-wifi-io.boot_on: 0 hw.regulator.vcc-wifi-io.enable_cnt: 0 hw.regulator.vcc-wifi-io.enable_delay: 0 hw.regulator.vcc-wifi-io.ramp_delay: 0 hw.regulator.vcc-wifi-io.max_uamp: 0 hw.regulator.vcc-wifi-io.min_uamp: 0 hw.regulator.vcc-wifi-io.max_uvolt: 3300000 hw.regulator.vcc-wifi-io.min_uvolt: 3300000 hw.regulator.vcc-avdd-csi.uvolt: 2800000 hw.regulator.vcc-avdd-csi.always_on: 0 hw.regulator.vcc-avdd-csi.boot_on: 0 hw.regulator.vcc-avdd-csi.enable_cnt: 0 hw.regulator.vcc-avdd-csi.enable_delay: 0 hw.regulator.vcc-avdd-csi.ramp_delay: 0 hw.regulator.vcc-avdd-csi.max_uamp: 0 hw.regulator.vcc-avdd-csi.min_uamp: 0 hw.regulator.vcc-avdd-csi.max_uvolt: 2800000 hw.regulator.vcc-avdd-csi.min_uvolt: 2800000 hw.regulator.vcc-mipi.uvolt: 3300000 hw.regulator.vcc-mipi.always_on: 0 hw.regulator.vcc-mipi.boot_on: 0 hw.regulator.vcc-mipi.enable_cnt: 0 hw.regulator.vcc-mipi.enable_delay: 0 hw.regulator.vcc-mipi.ramp_delay: 0 hw.regulator.vcc-mipi.max_uamp: 0 hw.regulator.vcc-mipi.min_uamp: 0 hw.regulator.vcc-mipi.max_uvolt: 3300000 hw.regulator.vcc-mipi.min_uvolt: 3300000 hw.regulator.vcc-hdmi.uvolt: 3300000 hw.regulator.vcc-hdmi.always_on: 0 hw.regulator.vcc-hdmi.boot_on: 0 hw.regulator.vcc-hdmi.enable_cnt: 0 hw.regulator.vcc-hdmi.enable_delay: 0 hw.regulator.vcc-hdmi.ramp_delay: 0 hw.regulator.vcc-hdmi.max_uamp: 0 hw.regulator.vcc-hdmi.min_uamp: 0 hw.regulator.vcc-hdmi.max_uvolt: 3300000 hw.regulator.vcc-hdmi.min_uvolt: 3300000 hw.regulator.vdd-sys.uvolt: 1100000 hw.regulator.vdd-sys.always_on: 1 hw.regulator.vdd-sys.boot_on: 0 hw.regulator.vdd-sys.enable_cnt: 0 hw.regulator.vdd-sys.enable_delay: 0 hw.regulator.vdd-sys.ramp_delay: 0 hw.regulator.vdd-sys.max_uamp: 0 hw.regulator.vdd-sys.min_uamp: 0 hw.regulator.vdd-sys.max_uvolt: 1100000 hw.regulator.vdd-sys.min_uvolt: 1100000 hw.regulator.vcc-ddr3.uvolt: 1360000 hw.regulator.vcc-ddr3.always_on: 1 hw.regulator.vcc-ddr3.boot_on: 0 hw.regulator.vcc-ddr3.enable_cnt: 0 hw.regulator.vcc-ddr3.enable_delay: 0 hw.regulator.vcc-ddr3.ramp_delay: 0 hw.regulator.vcc-ddr3.max_uamp: 0 hw.regulator.vcc-ddr3.min_uamp: 0 hw.regulator.vcc-ddr3.max_uvolt: 1360000 hw.regulator.vcc-ddr3.min_uvolt: 1360000 hw.regulator.dcdc4.uvolt: 1100000 hw.regulator.dcdc4.always_on: 0 hw.regulator.dcdc4.boot_on: 0 hw.regulator.dcdc4.enable_cnt: 0 hw.regulator.dcdc4.enable_delay: 0 hw.regulator.dcdc4.ramp_delay: 0 hw.regulator.dcdc4.max_uamp: 0 hw.regulator.dcdc4.min_uamp: 0 hw.regulator.dcdc4.max_uvolt: 1300000 hw.regulator.dcdc4.min_uvolt: 500000 hw.regulator.dcdc3.uvolt: 1100000 hw.regulator.dcdc3.always_on: 0 hw.regulator.dcdc3.boot_on: 0 hw.regulator.dcdc3.enable_cnt: 0 hw.regulator.dcdc3.enable_delay: 0 hw.regulator.dcdc3.ramp_delay: 0 hw.regulator.dcdc3.max_uamp: 0 hw.regulator.dcdc3.min_uamp: 0 hw.regulator.dcdc3.max_uvolt: 1300000 hw.regulator.dcdc3.min_uvolt: 500000 hw.regulator.vdd-cpux.uvolt: 1100000 hw.regulator.vdd-cpux.always_on: 1 hw.regulator.vdd-cpux.boot_on: 0 hw.regulator.vdd-cpux.enable_cnt: 0 hw.regulator.vdd-cpux.enable_delay: 0 hw.regulator.vdd-cpux.ramp_delay: 0 hw.regulator.vdd-cpux.max_uamp: 0 hw.regulator.vdd-cpux.min_uamp: 0 hw.regulator.vdd-cpux.max_uvolt: 1300000 hw.regulator.vdd-cpux.min_uvolt: 1040000 hw.regulator.vcc-3v3.uvolt: 3300000 hw.regulator.vcc-3v3.always_on: 1 hw.regulator.vcc-3v3.boot_on: 0 hw.regulator.vcc-3v3.enable_cnt: 2 hw.regulator.vcc-3v3.enable_delay: 0 hw.regulator.vcc-3v3.ramp_delay: 0 hw.regulator.vcc-3v3.max_uamp: 0 hw.regulator.vcc-3v3.min_uamp: 0 hw.regulator.vcc-3v3.max_uvolt: 3300000 hw.regulator.vcc-3v3.min_uvolt: 3300000 hw.regulator.usb1-vbus.uvolt: 5000000 hw.regulator.usb1-vbus.always_on: 0 hw.regulator.usb1-vbus.boot_on: 1 hw.regulator.usb1-vbus.enable_cnt: 1 hw.regulator.usb1-vbus.enable_delay: 0 hw.regulator.usb1-vbus.ramp_delay: 0 hw.regulator.usb1-vbus.max_uamp: 0 hw.regulator.usb1-vbus.min_uamp: 0 hw.regulator.usb1-vbus.max_uvolt: 5000000 hw.regulator.usb1-vbus.min_uvolt: 5000000 On Tue, Oct 15, 2019 at 11:59 AM Emmanuel Vadot wrote: > On Tue, 15 Oct 2019 11:46:14 -0400 > Gary Otten wrote: > > > Thanks for your response. > > > > Freebsd Version 12.0-STABLE > > > > root@:/dev # sysctl hw.regulator.vcc-pe > > hw.regulator.vcc-pe.uvolt: 2800000 > > hw.regulator.vcc-pe.always_on: 1 > > hw.regulator.vcc-pe.boot_on: 0 > > hw.regulator.vcc-pe.enable_cnt: 0 > > That's the problem. > Can you try with hw.regulator.disable_unused=0 in /boot/loader.conf ? > Something is wrong somewhere as we should enable this regulator as the > always-on prop is set. I'll try to have a look this week. > > > hw.regulator.vcc-pe.enable_delay: 0 > > hw.regulator.vcc-pe.ramp_delay: 0 > > hw.regulator.vcc-pe.max_uamp: 0 > > hw.regulator.vcc-pe.min_uamp: 0 > > hw.regulator.vcc-pe.max_uvolt: 2800000 > > hw.regulator.vcc-pe.min_uvolt: 2800000 > > > > Yes I am testing the pins with a multimeter, I am not seeing any voltage > > swings at all on Port E. On the external connector I see 5V on pin 1, > 3.3 > > on pin 3 and the correct voltage( software setting) on the other pins, > > except bank E. > > > > PB0-PB4 voltage corresponds to software setting. > > PC4,PC7 voltage corresponds to software setting. > > PE0-PE17 no voltage swings, doesn't work. > > PL7-PL12 voltage corresponds to software setting. > > > > I don't know if it will help, but if I make output on a pin low, still > > when I switch the that pin from In to out, , I see a small voltage swing > > in the milli volt range, but when I switch the PE pins from in to out, I > > don't see that small swing. Its as if they is no software connection to > > the PE pins. > > > > On Tue, Oct 15, 2019 at 7:18 AM Emmanuel Vadot > > wrote: > > > > > > > > Hi Gary, > > > > > > On Mon, 14 Oct 2019 14:46:12 -0400 > > > Gary Otten wrote: > > > > > > > I have successfully booted the FreeBSD on the Olimex board which has > the > > > > Allwinner A64. I have been experimenting with the gpios, again with > > > > success. However the 40 pin connector on the Olimex board exposes > GPIO > > > pins > > > > PB0 - PB4 which function normally (voltage corresponds to software > > > setting > > > > for that pin) and then PE0-PE17 which don't. I have played with > most > > > > of the PE0- PE17 pins with various settings, again nothing works, no > > > signs > > > > of activity. I have successfully lit the LED (PE17) with the armbian > > > > (linux) distribution for this board so I know it should work. > > > > > > > > Example > > > > gpioctl -f /dev/gpioc0 -c PB0 OUT > > > > gpioctl -f /dev/gpioc0 PB0 1 > > > > > > > > The pin PB0 then goes high (1) as expected. > > > > > > > > gpioctl -f /dev/gpioc0 -c PE17 OUT > > > > gpioctl -f /dev/gpioc0 PE17 1 > > > > > > > > No activity on PE17 > > > > > > > > > > > > I have dug into the the driver code a bit and the files containing > the > > > > settings for this board/processor, but I have had no luck figuring it > > > out. > > > > I have studied the Allwinner a64 manual but I haven't had luck > figuring > > > > out any other settings that might work. I think I am missing a > simple > > > > setting but can't figure it out, does anyone know how to get pins > PE0 to > > > > PE17 to work? Thanks. > > > > > > What version of FreeBSD are you booting on this board ? > > > PE is a bit special on the Olinuxino as it's also used for MIPI-CSI > > > and it's drived at 2.8V by default. It's using the regulator ALDO1 from > > > the AXP PMIC and you should be able to confirm that it's enabled by > > > doing sysctl hw.regulator.vcc-pe > > > Check for the .enable sysctl > > > It should be on as there is the always-on property in the DTS. > > > By default I think that the gpio pins are configured for 20mA so I > > > don't know if it would be enough for this led. If you have a multimeter > > > it would be good to confirm if you have any voltage on the ext > > > connector (you can use any PE pins, from what I see from the schematics > > > they are all safe to play with). > > > > > > -- > > > Emmanuel Vadot > > > > > > -- > Emmanuel Vadot > From owner-freebsd-arm@freebsd.org Tue Oct 15 17:56:48 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 90FD814FEC0 for ; Tue, 15 Oct 2019 17:56:48 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t35q3Cfwz4c1p for ; Tue, 15 Oct 2019 17:56:47 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: by mail-qt1-x835.google.com with SMTP id m15so31901986qtq.2 for ; Tue, 15 Oct 2019 10:56:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gqzgbP59qNjWYECzbyKkWAXfbsLZG0heP24JAsBB3fk=; b=XFEI+H3fdLE1jovqvA/9etzJgwjFHWU2lC6z6S1KgTCYnLYI2pBIFi859ofAFmfMoG mOU96f/bpwX9O0nkI85zZRUbd18SfwzyT85TgJEGi1s7xlJjxJIGAx5KrwiNX/mNhE9+ opg0AjWt1TeBAbftctGdgSNz491JjTmcJ7k5MBDQS2AvhEXrsUxgHN09VwWujQgWiRTT ADLm0iHxbMCWK/3Eel4dGGuFdLVvLNF0FgPSwHkvZdHyh7WZs/x4bJ/tEvOlWW2FFKdk GTUQBRH9dTqMjbOWk2fWEK7rQXZVkZ48i/SAAgzidBDUhcEGyXm5gI+HJ1z2Rs73tB0F 4+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gqzgbP59qNjWYECzbyKkWAXfbsLZG0heP24JAsBB3fk=; b=fuXCc6rpPWfdP8Lxp/2NbDB/U46oFVPkl8+YIjWZwuUvBlsng8OyncF4iVl2itaThd qgljKqbE1l/C3y30aRZR11ctdx24BFlHtFA5b30e76/FU9hmSGr10t8kznSju+9g71yN +uDNZAJHPMj8G6Ct5iQN4RYuYcuwh4+lIr2FnGW/S3MDSLTamHq4y45IrgqPUvWiwBTK 0zQNldabxQYauwSk+v15gznqkoxo2Q6O/TPso7z2lgSlkbfSX1mhJjtRGaYYcjr8+Xwz gfXVQ0fMgXoO2aGcaIwA3uKkN0Lr7lbIS1D/0GpP9ovGcX7fRZ7QRuw3eF09V6u3su6E 3tTg== X-Gm-Message-State: APjAAAXLeeQSXr9GXWKpq7jby6mNHv3X+e1x0VHwstv67gD0gbpnI4mE g/Fayma3PgcPABVYag+qzRWIRWlt6VhC10EJDgAm3A== X-Google-Smtp-Source: APXvYqygG28sL+ut84EHN+w+yO6LTPPF3uXKOOhVzuvKM30jcHzLbb5Am9aCXAH2A/XFvzvStwJrwHW1oXF7vtaGIN8= X-Received: by 2002:ac8:554c:: with SMTP id o12mr40966633qtr.388.1571162206063; Tue, 15 Oct 2019 10:56:46 -0700 (PDT) MIME-Version: 1.0 References: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> <730d80b78639a2054b1df18821d5fd76.squirrel@net.dyn.arroway.org> In-Reply-To: <730d80b78639a2054b1df18821d5fd76.squirrel@net.dyn.arroway.org> From: Ganbold Tsagaankhuu Date: Wed, 16 Oct 2019 01:56:34 +0800 Message-ID: Subject: Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64 To: Nenhum_de_Nos Cc: Denis Polygalov , "freebsd-arm@freebsd.org" X-Rspamd-Queue-Id: 46t35q3Cfwz4c1p X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=XFEI+H3f; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of ganbold@gmail.com designates 2607:f8b0:4864:20::835 as permitted sender) smtp.mailfrom=ganbold@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.38), ipnet: 2607:f8b0::/32(-2.48), asn: 15169(-2.10), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[5.3.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; FREEMAIL_CC(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 17:56:48 -0000 On Tue, Oct 15, 2019 at 11:36 PM Nenhum_de_Nos wrote: > On Tue, October 15, 2019 01:15, Denis Polygalov wrote: > > This might be useful for you: > > > > http://freebsd.1045724.x6.nabble.com/raspberry-pi-4-td6338266.html > > > > Regards, > > Denis. > > Thanks, > > it was really useful. Still researching, but it looks so far that the > RPi4B is the safest choice. Will hold the order for a bit longer. > Not sure if someone successfully has booted FreeBSD on RPI4B yet. As for RK3399, there are some boards are available and few people have booted FreeBSD on it. So if it is not very urgent please wait a bit. Ganbold > > Thanks! > > matheus > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > From owner-freebsd-arm@freebsd.org Tue Oct 15 20:26:40 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 0B7A0153A99 for ; Tue, 15 Oct 2019 20:26:40 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t6Ql2Jk9z3Jyr for ; Tue, 15 Oct 2019 20:26:39 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-wm1-x333.google.com with SMTP id r19so442691wmh.2 for ; Tue, 15 Oct 2019 13:26:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=iKDHG63bxDJXMrPw6l5F1mbMdTG0G/NBDXsHPax7nsE=; b=hRyu0IKwxiqWD+BioiZEd8ETk7SylccI7VdRwjgkqLs6S8K3YrNcNWI+9nWz6xFEJl 9lelIeEeqbZFveEKUz4VpGtrxRNCSq7nWWcY/0qvIyXA/nCbZAnsOiK2z7XtHUrrVXtw 36TAPxWI1F1gJsJrpxHCgpMw/tHNajookQM76SdaQcgAIfOavdYDxe3YeQB/nGPWvlRO CrKruc18zOYwy5FO42lg/LfAuFdeyzdt7dDhBRo0LjYAuZZ6RCr/GC2B7ywkpqWLeaIb B8/j3P+eEUx53+ezDM52isAvviZJNzhGj/YNWJMxfc7cwMH76hYQTfFSejiu0MbwWFWc nKGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=iKDHG63bxDJXMrPw6l5F1mbMdTG0G/NBDXsHPax7nsE=; b=p040n3BsBvganIApdR7LdqQ7YptcXQCTA6Sa2cx94IZUswiWvTfwSZzFSKqgj/6YZ4 qEK9Xngag2SAZkHAQdbdM2mhi55LRbq0rNgXzYdM2hDbqvuNFla4XfdEXR6ddlJUAaul oGikwAv4HVX6FYwd6ZpYLYnMS9LwpUXrbfXCcwrMe2uQKhq3r+lRfqjLLrHiDPsUxbzj o1lNFozKBhex7Q/UsvqH/CchvYqajdloqJidc0INPJI4iS8I2XX5/HQqOeOOE6kxlTeb bVKQpTE2WwDMzpQ3xkGGvF0MJIUBzEIHzn5DKrhx0Lz3/OrucX2y13KFbEISHtWBP1VE KdKg== X-Gm-Message-State: APjAAAV2ze38/LkyWiqbJZpKOqixWPo3OIr8htv0guu2yCR5vfxbNgO8 kIbcD3Vxqe8PCUh5oXqZFUkEWTYJ X-Google-Smtp-Source: APXvYqy0Gs/LVFWbfbuqKld+GSiZhCE2d+H+e8FqavFaOixPAcop18OWxGJVTtz3jDeCbXXgfQVmCQ== X-Received: by 2002:a1c:f201:: with SMTP id s1mr273845wmc.59.1571171197679; Tue, 15 Oct 2019 13:26:37 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id x129sm490323wmg.8.2019.10.15.13.26.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 13:26:36 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Date: Tue, 15 Oct 2019 22:26:35 +0200 In-Reply-To: <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> Cc: freebsd-arm To: Emmanuel Vadot References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46t6Ql2Jk9z3Jyr X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=hRyu0IKw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::333 as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.3.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-8.88), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.10), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 20:26:40 -0000 >>=20 >>>=20 >>> R40 seems to use different registers for cpu bringup, so you will = need >>> to define a new platform for it in aw_machdep.c and defines some new >>> function for ap bringup in aw_mp.c >>> The User Manual section 3.2 of the R40 have all the needed info. >>>=20 >>=20 >> Yeps, already did that, and I can reset the cores etc, that seems to = work (register bits flips), but there are no mention of regs to put the = starting address into. >>=20 >> Chap 3.2 doesn=E2=80=99t mention anything in that regard (at least in = the docs I=E2=80=99ve found online) its moved to chap 4.2 in the latest = R40/V40/T3 docs I=E2=80=99ve found bu still no mention of starting = address. >>=20 >> I looks somewhat like the A20 ie it has control for 2 cpu=E2=80=99s = the last two are missing from the register ref, which suggests to me = that the docs might be inaccurate at best. >>=20 >> I looked into =E2=80=9CTina-linux=E2=80=9D that they made for it, but = I havn=E2=80=99t found out how they start it there either.. >>=20 >> I might also just have stared me blind at it :) >=20 > Found that the start adresse is somewhere else: >=20 > CPU software entry register offset 00bc in sysctl instead of cpuctl=E2=80= =A6 >=20 > I=E2=80=99ll try that when I get home later today,,, Success, I now have all 4 cores running, took a little experimenting = though, release the power switch/clamp is non-std too. Now to the last part, the gmac 1G ether controller :) PS: I have had to add devices to the .dtsi and dts files for the r40/v40 = for this to work at all, std-linux doesn=E2=80=99t support this setup = either. PPS: when this is all done, any chance for it to get into the official = sources ? (Yeah I retired my src commit bit long ago :))=20 -S=C3=B8ren From owner-freebsd-arm@freebsd.org Tue Oct 15 20:46:23 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 9D22F15436B for ; Tue, 15 Oct 2019 20:46:23 +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 46t6sV0QCdz3LDp for ; Tue, 15 Oct 2019 20:46:21 +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 cee4e913; Tue, 15 Oct 2019 22:46:18 +0200 (CEST) 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=nwkKvqHVireDcQQlz0mYfWDnvFI=; b=Skw+Qik4fXGlVVZViZp1WMKoDXet e1Sr025uN3GwH2sY7ll0tbGT3XWb5U22FFiik3ylZmnRtSgTonmlK/gGim74nkCv MjwiU8gabLfCFGkcojwU/z30jWgE3jm3JM2QePvLP32y3Ag8jMizJRWOfz47GjCI p7q0mP4MivEvAVk= 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=m3Q6FqA7g197yxNSZGPGtVqp9/umq76WWcjsIS8AlHMM7FirXIOPMWww 4bU8D5JoZ6ic1v5R8eCwY+/jd83k8nQjD8bT1YsN3rubMUQ16ACw8AeXsbNRr6S1 OgRi7goF5P6y1hrLAbfQRZI80/AFpo6BgNyMdRaoRUlvMQhKVYQ= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id c853d701 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 22:46:18 +0200 (CEST) Date: Tue, 15 Oct 2019 22:46:18 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Message-Id: <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> In-Reply-To: <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.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: 46t6sV0QCdz3LDp X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=Skw+Qik4; 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.09 / 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.70)[-0.700,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.87)[-0.867,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.38)[ip: (-0.66), ipnet: 212.83.160.0/19(2.45), asn: 12876(0.11), country: FR(-0.00)]; FREEMAIL_TO(0.00)[gmail.com]; 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]; 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, 15 Oct 2019 20:46:23 -0000 On Tue, 15 Oct 2019 22:26:35 +0200 S=F8ren Schmidt wrote: >=20 >=20 > >>=20 > >>>=20 > >>> R40 seems to use different registers for cpu bringup, so you will need > >>> to define a new platform for it in aw_machdep.c and defines some new > >>> function for ap bringup in aw_mp.c > >>> The User Manual section 3.2 of the R40 have all the needed info. > >>>=20 > >>=20 > >> Yeps, already did that, and I can reset the cores etc, that seems to w= ork (register bits flips), but there are no mention of regs to put the star= ting address into. > >>=20 > >> Chap 3.2 doesn?t mention anything in that regard (at least in the docs= I?ve found online) its moved to chap 4.2 in the latest R40/V40/T3 docs I?v= e found bu still no mention of starting address. > >>=20 > >> I looks somewhat like the A20 ie it has control for 2 cpu?s the last t= wo are missing from the register ref, which suggests to me that the docs mi= ght be inaccurate at best. > >>=20 > >> I looked into ?Tina-linux? that they made for it, but I havn?t found o= ut how they start it there either.. > >>=20 > >> I might also just have stared me blind at it :) > >=20 > > Found that the start adresse is somewhere else: > >=20 > > CPU software entry register offset 00bc in sysctl instead of cpuctl? > >=20 > > I?ll try that when I get home later today,,, >=20 > Success, I now have all 4 cores running, took a little experimenting thou= gh, release the power switch/clamp is non-std too. Cool. > Now to the last part, the gmac 1G ether controller :) What's missing ? is it dwc or awg ? > PS: I have had to add devices to the .dtsi and dts files for the r40/v40 = for this to work at all, std-linux doesn?t support this setup either. What was missing ? > PPS: when this is all done, any chance for it to get into the official so= urces ? (Yeah I retired my src commit bit long ago :))=20 Sure open a review on phabricator and add me as a reviewer. > -S=F8ren >=20 >=20 --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 21:03:00 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 4145E1547B8 for ; Tue, 15 Oct 2019 21:03:00 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46t7Dg3Ngwz3M58 for ; Tue, 15 Oct 2019 21:02:59 +0000 (UTC) (envelope-from soren.schmidt@gmail.com) Received: by mail-lf1-x12c.google.com with SMTP id r22so15617574lfm.1 for ; Tue, 15 Oct 2019 14:02:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=w2azKC1tEDrp0vJ56tqocwcCzifkIkyFAXl2AvzBkgQ=; b=DZcnTaN7RHn6XX5kDxSpX9Kg4/YEpusNkCT6P9SmNqxC8S8GLGY7UlwtBmcyU/SyFM UTLkj7rAtNPh3yfbKB74x6r8O8bph8y4N6uK3uzzkwpZT/5ytTOJ371Ta5lL4C4ZjsUa PIgClmRmX5XH74wYkzLeBBnlYANgTrdqYk5l9z3xHrgM/QCHE1k5NlaoNlMEA0VDOM5o DgSelRGgK4FZgknwKFl+JQGckv+VN5tJz35xOfZQNjLhyIw8GmcXbm2nuzevnEszOzaA Rs9sWyQNLu0LIIIIUTFoGxvAYAU3D0vBfBjJ6ixqLF+IfYsOz/2PqH/UsptYLQjv0Rq+ bTyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=w2azKC1tEDrp0vJ56tqocwcCzifkIkyFAXl2AvzBkgQ=; b=GwSU1apPI5hmIzPxznv4BVEXJJG4chjTo9VUMELmrGbx4nrub9+1ZRMdX/3AUfc1Xa TBxmfOPFbVnh9qORM/81ULy8S3ie87EPMgdxXvZsrSQeomVbnjLv8Cl6myjKIVG4eq9z EIlHG5PD/hn3tDpY9UowZahuQlnLILPNEcw2TENaV3vT0Q4smxnOwivYZFPr+TkB8e+R aZ5JdaF43aijBkNqX9P5OlPecEzJh8KM1dT/pxlOyg9bmJpJJWJ13GKcfGBk+5P2Ub8+ w4fgWp3hHquezkA5in8H1lmTo/w15rgab1ro4CMhGsFXHumxoss44v24zF6McA3kjN4A 23bA== X-Gm-Message-State: APjAAAWt2hXIsUxHgElmbFuk8Sc71bfmVnTPLJTMd2WnYrOKLFaW/czU fUQ4oYk1oE26ajw8a5x+6hPBwXBl X-Google-Smtp-Source: APXvYqxmtwh00TGlg/rQJAgtK4KNxzgVYMvF3HHS7ja7YmOiwpW3cUZFSezYD9NRmMQ2bkSDhrTBrA== X-Received: by 2002:a19:fc0b:: with SMTP id a11mr22282302lfi.105.1571173376253; Tue, 15 Oct 2019 14:02:56 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id j28sm5270403lfh.57.2019.10.15.14.02.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Oct 2019 14:02:55 -0700 (PDT) From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Date: Tue, 15 Oct 2019 23:02:54 +0200 In-Reply-To: <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> Cc: freebsd-arm To: Emmanuel Vadot References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 46t7Dg3Ngwz3M58 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DZcnTaN7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sorenschmidt@gmail.com designates 2a00:1450:4864:20::12c as permitted sender) smtp.mailfrom=sorenschmidt@gmail.com X-Spamd-Result: default: False [-1.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; MV_CASE(0.50)[]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[c.2.1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (-9.38), ipnet: 2a00:1450::/32(-2.85), asn: 15169(-2.10), country: US(-0.05)]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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, 15 Oct 2019 21:03:00 -0000 >>=20 >> Success, I now have all 4 cores running, took a little experimenting = though, release the power switch/clamp is non-std too. >=20 > Cool. >=20 >> Now to the last part, the gmac 1G ether controller :) >=20 > What's missing ? is it dwc or awg ? As far as I can tell it is awg type, but possibly with its own = deficiencies :) >> PS: I have had to add devices to the .dtsi and dts files for the = r40/v40 for this to work at all, std-linux doesn?t support this setup = either. >=20 > What was missing ? It misses the dma controller and iosc clock, and possibly the gmac = clocks in sun8i-r40.dtsi, ahci, echi2, and the gmac stuff in = sun8i-v40-m2-berry.dts >=20 >> PPS: when this is all done, any chance for it to get into the = official sources ? (Yeah I retired my src commit bit long ago :))=20 >=20 > Sure open a review on phabricator and add me as a reviewer. OK, will do, but I=E2=80=99ll give the gmac a try first and get more = testing done, its compiling world now on a SATA SSD, that will take some = time :) -S=C3=B8ren= From owner-freebsd-arm@freebsd.org Tue Oct 15 21:20: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 301A9154C39 for ; Tue, 15 Oct 2019 21:20: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 46t7cq18Ypz3Mxm for ; Tue, 15 Oct 2019 21:20:26 +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 313e90ff; Tue, 15 Oct 2019 23:20:25 +0200 (CEST) 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=quaZtero8T/okAsSJGIkm1nLMcE=; b=CFTNOSeIs2MsGvOwWxKuiLE4iqY1 WCL1PxxqCwhXcI2yOJTbGzJs2gCd6JHXiTn90FN7h9xZQleE0C+11xwPR+PQWLnw rfOTW/lUK3hu1B3RW0k1mgSV0vpgQ7hUYpX5ZaYsQ8t8zjfsZr80dxtWy3KYpelB CwQTRcJij+CU7MI= 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=iITTirkZJEnM31I11HzJSzYANQQ3mYb2H+FlzGWsbvOlyl04xDpFWh0N YJCekeSLP0d7+ZkOfN4LwpG2VwisIWFkto0r7Tn+41IFgGG0tzw3V//k0j7q9UDj cfnWvXUIotmNaAGE5YiNs7tE/MaltteE3IH8fS3eyk2vcNnqkw8= Received: from sonic.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id c4047deb TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Tue, 15 Oct 2019 23:20:25 +0200 (CEST) Date: Tue, 15 Oct 2019 23:20:26 +0200 From: Emmanuel Vadot To: =?ISO-8859-1?Q?S=F8ren?= Schmidt Cc: freebsd-arm Subject: Re: Trouble starting AP cpu's on all winner R40/V40 chip, help needed? Message-Id: <20191015232026.4b25b064c358eb6ae1e4d711@bidouilliste.com> In-Reply-To: <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.com> References: <0AE907CC-0CBC-4A8A-A2D3-71EF37330503@gmail.com> <20191015140210.82d406d7a7b86720e4771206@bidouilliste.com> <07E4329F-3DFD-49FB-A3BC-A63790DCC798@gmail.com> <184A8618-F027-42F2-B930-C3331DB43A50@gmail.com> <20191015224618.3448bd3496ec15df60b64f58@bidouilliste.com> <4A09598C-3097-4F52-A21F-E82F5D84A72C@gmail.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: 46t7cq18Ypz3Mxm X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=CFTNOSeI; 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.12 / 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.72)[-0.720,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32:c]; MV_CASE(0.50)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.88)[-0.884,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.38)[ip: (-0.66), ipnet: 212.83.160.0/19(2.44), asn: 12876(0.11), country: FR(-0.00)]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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, 15 Oct 2019 21:20:28 -0000 On Tue, 15 Oct 2019 23:02:54 +0200 S=F8ren Schmidt wrote: >=20 >=20 > >>=20 > >> Success, I now have all 4 cores running, took a little experimenting t= hough, release the power switch/clamp is non-std too. > >=20 > > Cool. > >=20 > >> Now to the last part, the gmac 1G ether controller :) > >=20 > > What's missing ? is it dwc or awg ? >=20 > As far as I can tell it is awg type, but possibly with its own deficienci= es :) I guess it's awg since it's sun8i. The dts seems to say that it needs the ccu to be a syscon interface which will be not hard to do but seems very wrong. > >> PS: I have had to add devices to the .dtsi and dts files for the r40/v= 40 for this to work at all, std-linux doesn?t support this setup either. > >=20 > > What was missing ? >=20 > It misses the dma controller and iosc clock, and possibly the gmac clocks= in sun8i-r40.dtsi, ahci, echi2, and the gmac stuff in sun8i-v40-m2-berry.d= ts For what I can see the gmac clocks are there.=20 Is the iosc the 16MHz clock that I see in the clock diagram ? If yes I wonder why it's not present in the dts ... > >=20 > >> PPS: when this is all done, any chance for it to get into the official= sources ? (Yeah I retired my src commit bit long ago :))=20 > >=20 > > Sure open a review on phabricator and add me as a reviewer. >=20 > OK, will do, but I?ll give the gmac a try first and get more testing done= , its compiling world now on a SATA SSD, that will take some time :) >=20 > -S=F8ren --=20 Emmanuel Vadot From owner-freebsd-arm@freebsd.org Tue Oct 15 22:04:58 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 72F86155ABC for ; Tue, 15 Oct 2019 22:04:58 +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 46t8c90Xghz3QmD for ; Tue, 15 Oct 2019 22:04:56 +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 x9FM4Xbn052248 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 Oct 2019 15:04:34 -0700 (PDT) (envelope-from jmg@gold.funkthat.com) Received: (from jmg@localhost) by gold.funkthat.com (8.15.2/8.15.2/Submit) id x9FM4Xsl052247; Tue, 15 Oct 2019 15:04:33 -0700 (PDT) (envelope-from jmg) Date: Tue, 15 Oct 2019 15:04:33 -0700 From: John-Mark Gurney To: Nenhum_de_Nos Cc: freebsd-arm@freebsd.org Subject: Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64 Message-ID: <20191015220433.GS96402@funkthat.com> Mail-Followup-To: Nenhum_de_Nos , freebsd-arm@freebsd.org References: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> 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]); Tue, 15 Oct 2019 15:04:34 -0700 (PDT) X-Rspamd-Queue-Id: 46t8c90Xghz3QmD 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.94)[-0.938,0]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; IP_SCORE(-0.52)[ip: (-1.34), ipnet: 208.87.216.0/21(-0.67), asn: 32354(-0.54), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[funkthat.com]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.997,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: Tue, 15 Oct 2019 22:04:58 -0000 Nenhum_de_Nos wrote this message on Mon, Oct 14, 2019 at 23:31 -0300: > I am about to buy a new arm box and would like it to be the most powerfull > I can get and still get to use FreeBSD somewhere not so far from now. I > know RPi4 is not supported right now, but as I have both RPi2B and RPi3B > and they run fine, my guess is the 4B will have its time also. > > So it then comes down to 4B or ROCKPro64. I saw Pine64 images, but I could > not find much information about the ROCKPro64. I looked for some > benchmarks to know the faster CPU, and it looks like the RK3399 is a bit > faster. As the board has more features, I am asking here, if this has even > an answer, what board has better future in FreeBSD. > > Thanks in advance :) RockPro64 work is still ongoing. It is coming along though, and it does boot. There is still lots of work to do, like properly support the big.little cores and the like. I have mine booting from SD card, but it isn't yet full speed (though I need to test some of the fixes that have been committed. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-arm@freebsd.org Tue Oct 15 22:40:24 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 781E61563DB for ; Tue, 15 Oct 2019 22:40:24 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from sonic306-3.consmr.mail.bf2.yahoo.com (sonic306-3.consmr.mail.bf2.yahoo.com [74.6.132.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46t9P30mYGz3xJ6 for ; Tue, 15 Oct 2019 22:40:22 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) X-YMail-OSG: KwChusMVM1nf05ifFxYNIu5.UMYFDeJ1gX5AaZUoSjLDMhXZI9ewB.dSG6acTW_ Rr8yYelUFXwtXnzHjG1KLNBZWD0M1tH4t_cW3tFpl6JL86c9ixK5ZPqhnz1borVQUe6SHXE3Twuk oNFpWrcbV50GKtK_vHVNFMhwMaVUgsekwMq.pH0Ej3_V2VNlETf27tIc3ajvIKTkChJ3LfzqU5zG xQm9.pjoPkspHA91XtF5naMvEfMVOfC9ekdf26sHWLjDZxiIdwhsTWWSxhTFF.xu6WUcnblh42ur AcFjnuPXuEY4bKgmoc.Bf4Jyzus7c5hW9iyaOCvPrVTDvfL1Uj1VCSAi8paunO8UNzDkoaS46hH0 dWGS8pGlmR2dSmd6NVxhKhSKBrUOQBVl.JjXCgfmqc3QVbc0DuWR7jepwANeasv85WLBTiSv7lyX Z2lK7j4RjKY8b112MTpI56Fe.flPGnGl7_E.hY18p8w6p4HZno5vxKR_OZtf8rwexgx6G9SzWgPW 4e_94F5PR.p4TYTwfh2IjJNZ8gIpFUP2xbhcYWhY7p7NnsP7PcOJWUri..Rgak9mSAJ14blo99.F _APVPc8ZDRS6OaYqzy.o9oxGRWw62LYINh8cf594rEwRmREFXNMWHTbdJ5e3jYKD1oCDteb3tfL6 QVsvhJWzt1sSHpMTh3hF23DHuwmlAegoEfyAs15X1qVmWRoPiL43W28qcwR3Ib9.PqmQwasedGQK RO6k0s77mtex97gU5UlCdfIbycyki_SnHnAeLK527uRHCBB8Vgz7ZX9e7dN98ackI20fFtGkxAPQ XSQg4.zO9DswXLhHC8MB0Hv.3qyCmS2tctVaQGKtHXGAupNWVM74_Vk_fk2U5oLYqQm.tDeqVVuo Np1jYZotFBVDh_Lni_68f6gqcoQnLnTbqXX_WijwMcKYPmhIGcFAAVDojF_TMXcafO.B8Ve3j8S2 fDh_P4i_Amog3JuZNTP2.iO8032lLHvrO8IK0gg.pC5.sTmBe4vjteK0YzD0EXfhQgYviBXc3Cfe h_iym5kgcb3Nz7WBv0cjKx.r3nFJSetMuUnl63qx3Pd7qN9TfCniNFfps9BnBvX2QGqy4gpmaohx bpYr6aOvvlhL028W7l3qHHId0D1V6GwOQnbYibAuzcrs_58mPLCOs6Xw5QGLwbvcUoQV2HPbqD1R Q3cob4yXKd_xA0E9V9XW998x7neojWBQQ3KXC9AbE0uqMzK2pEkeZGCeIJUYr1ULUfYcpvkBIeMw 1K_rvMbGCaKmdB5IHuE8nc7hBAUjgVeEEm0.1ZYtLXat5U_heu3iDlFFh Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.bf2.yahoo.com with HTTP; Tue, 15 Oct 2019 22:40:21 +0000 Received: by smtp432.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ed9e2edd9cf8830116b33a54b936c76d; Tue, 15 Oct 2019 22:40:21 +0000 (UTC) From: Thomas Skibo Content-Type: multipart/mixed; boundary="Apple-Mail=_1CEC9CAA-972E-4568-8B55-DFCA59FE86E5" Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: PINE64+ 2GB - with U-Boot SPL 2019.10 - bootaa64.efi do not find UFS partition Date: Tue, 15 Oct 2019 15:40:19 -0700 References: <15D5331A-C76D-4EBC-8992-9B04A0C0EDC5@yahoo.com> <20191015120648.ca03c451bc95e29f41a336d7@bidouilliste.com> To: Emmanuel Vadot , freebsd-arm@freebsd.org In-Reply-To: <20191015120648.ca03c451bc95e29f41a336d7@bidouilliste.com> Message-Id: <0DBE74C9-CEB1-4E9C-9EE4-6AC0C1131F45@yahoo.com> X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 46t9P30mYGz3xJ6 X-Spamd-Bar: ++ X-Spamd-Result: default: False [2.47 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; HAS_ATTACHMENT(0.00)[]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~,3:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:26101, ipnet:74.6.128.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[multipart/mixed,text/plain]; MIME_BAD_ATTACHMENT(1.60)[spl]; NEURAL_SPAM_MEDIUM(0.60)[0.597,0]; IP_SCORE_FREEMAIL(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.78)[0.776,0]; RCVD_IN_DNSWL_NONE(0.00)[42.132.6.74.list.dnswl.org : 127.0.5.0]; IP_SCORE(0.00)[ip: (3.76), ipnet: 74.6.128.0/21(1.46), asn: 26101(1.17), country: US(-0.05)]; 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, 15 Oct 2019 22:40:24 -0000 --Apple-Mail=_1CEC9CAA-972E-4568-8B55-DFCA59FE86E5 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Oct 15, 2019, at 3:06 AM, Emmanuel Vadot = wrote: >=20 >=20 > Yes, thanks for trying 12.1 as I didn't when I updated u-boot. > tsoome@ did merge the needed commits in stable/12 and will mfc them in > releng/12.1 so 12.1-RELEASE will work with u-boot 2019.10. > Note that 12.1 will be shipped with u-boot 2019.07 as this is the > version in the latest quarterly but at least it will not break when = the > next quarterly will be branched and people update their u-boot based = on > it. Great! I just tested an image generated with u-boot 2019.10 and = releng/12.1 at r353565 and it works. > As said in another mail forget boot1.efi, this was never supported on > arm/arm64. I had been using boot1.efi since I switched over from ubldr but I = didn=E2=80=99t know boot1.efi was unnecessary. I=E2=80=99ve updated my = build script. Now that I can say it works, can we fix the broken u-boot-zedboard and = u-boot-zybo ports? This attached patch file goes into = sysutils/u-boot-master/files. Thanks, =E2=80=94Thomas =E2=80=94=E2=80=94 Thomas Skibo ThomasSkibo@yahoo.com --Apple-Mail=_1CEC9CAA-972E-4568-8B55-DFCA59FE86E5 Content-Disposition: attachment; filename=patch-scripts_Makefile.spl Content-Type: application/octet-stream; x-unix-mode=0644; name="patch-scripts_Makefile.spl" Content-Transfer-Encoding: 7bit --- scripts/Makefile.spl.orig 2019-10-14 22:32:06 UTC +++ scripts/Makefile.spl @@ -200,7 +200,7 @@ MKIMAGEFLAGS_boot.bin = -T zynqmpimage -R $(srctree)/$ endif $(obj)/$(SPL_BIN)-align.bin: $(obj)/$(SPL_BIN).bin - @dd if=$< of=$@ conv=block,sync bs=4 2>/dev/null; + @dd if=$< of=$@ conv=sync bs=4 2>/dev/null; spl/boot.bin: $(obj)/$(SPL_BIN)-align.bin FORCE $(call if_changed,mkimage) --Apple-Mail=_1CEC9CAA-972E-4568-8B55-DFCA59FE86E5 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii --Apple-Mail=_1CEC9CAA-972E-4568-8B55-DFCA59FE86E5-- From owner-freebsd-arm@freebsd.org Wed Oct 16 14:44:53 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 6473F166AFA for ; Wed, 16 Oct 2019 14:44:53 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh505-vm10.bullet.mail.kks.yahoo.co.jp (nh505-vm10.bullet.mail.kks.yahoo.co.jp [183.79.57.112]) by mx1.freebsd.org (Postfix) with SMTP id 46tZnt6NNJz3LbP for ; Wed, 16 Oct 2019 14:44:50 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [183.79.100.138] by nh505.bullet.mail.kks.yahoo.co.jp with NNFMP; 16 Oct 2019 14:44:47 -0000 Received: from [183.79.100.133] by t501.bullet.mail.kks.yahoo.co.jp with NNFMP; 16 Oct 2019 14:44:47 -0000 Received: from [127.0.0.1] by omp502.mail.kks.yahoo.co.jp with NNFMP; 16 Oct 2019 14:44:47 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 201057.71291.bm@omp502.mail.kks.yahoo.co.jp X-YMail-OSG: sv7TWPcVM1kXnEDNl1zA7oRz15T6YOOntzfWshGR2IJYiSSXIvlU45pt4.FC8ck hflB7Zw_PInFboZEWLZYxTRu2vNpjP63QTI5dgX7HCXSO5XMmAaysf3MExJ73F3ugvaboKagI4Ka hu2U75WDlc5rufhuP5NHE_FC9kym.vD5pGDsm6.oYVddU.kZyEGY9DXPdISa8ytwHe5WDdR8kJUt Rm3BEiELLDn_plgwXy_wLL9yjHpW1bLUQILwyjb9ZG.bOwy6p.Q.AMGy_w93Js9P2cAhV1LwWK3t QpxZevMZrQmHlIJARJqbTNbb5WRwnI6Rplu4gMy8jx0YHZkMlG437RjaTRjTma6t82N6Ayk8LkKC yNHIPu_HZRVyDNmTgu7MiwahzeaDPta2D2nFgznYG1O7rpQPHfwPq3LrFhiIsCe8ZsSRt4hv0DSt xzW6govtyDbRck09cx7rde_zBkdluiEew.X4urWZRv5QxWIeDkW.lxij9wrCfP9I.miISWdBe2Es d4GOdo7G4UDZjJe5lebBW0B43zMnS6OgXbqfIftLDkrdss2EwIgkToM0o4rcac4jCWHUIQMoVjrE xnL8cEoZuhqLBplgBN.LjZu0REBSLHm7hb8GUk17KXQde.5mOVuxUEoh3J.wRPT_aM7pJOZbMaX3 2fvP1NbJ1LSR3jbSYizEa.DE_6ZN69LhMTy6F8w-- Received: from jws704104.mail.ssk.yahoo.co.jp by sendmailws620.mail.ssk.yahoo.co.jp; Wed, 16 Oct 2019 23:44:46 +0000; 1571237086.618 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1571237087; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:References; bh=1dxzi2eFa3twCFEHb0+1u7I6ItDZ9fmvkVVk75DmRio=; b=U/LcqNBI6qJS/eQB4oTa/FVr6/lH0g6qbulvuJy20e/nMsPHjvtE1bVdawkzQDic D6KHlV2WQQJe0F7mlTeV0uhcyHT6rEs7TMKNjNU5kT3BK0hQwx3A1/OY9I8l+fqkzXi CxPu6kltVMN6hbZ2lq4khas8sozGh5IuwHO733rc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Date:From:Reply-To:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:References; b=AdO3CfoXEsOAJyi+BSY4LxPUprBYM6qBVq0Jbn4AzynKXUTCxTAo2LuZsN/w+TjR 3KqAP2MEDIm9psxwr4kzvsk2sxiYQ1RdPmUwND1o1HoDlqd/2/3prNXuglXnX10eM4r rbERYS56n2Fl/FPmAr5GA+KYRXHliORIFu1i/UtY=; Date: Wed, 16 Oct 2019 23:44:46 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki To: "freebsd-arm@freebsd.org" Message-ID: <821489575.32133.1571237086035.JavaMail.yahoo@mail.yahoo.co.jp> Subject: fine clang 9 on armv5t MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit References: <821489575.32133.1571237086035.JavaMail.yahoo.ref@mail.yahoo.co.jp> X-Rspamd-Queue-Id: 46tZnt6NNJz3LbP X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.co.jp header.s=yj20110701 header.b=U/LcqNBI; dmarc=pass (policy=none) header.from=yahoo.co.jp; spf=pass (mx1.freebsd.org: domain of yamori813@yahoo.co.jp designates 183.79.57.112 as permitted sender) smtp.mailfrom=yamori813@yahoo.co.jp X-Spamd-Result: default: False [-2.71 / 15.00]; HAS_REPLYTO(0.00)[yamori813@yahoo.co.jp]; R_SPF_ALLOW(-0.20)[+ip4:183.79.0.0/16]; FREEMAIL_FROM(0.00)[yahoo.co.jp]; DKIM_TRACE(0.00)[yahoo.co.jp:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.co.jp,none]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (2.04), ipnet: 183.79.0.0/16(1.46), asn: 24572(1.17), country: JP(-0.00)]; FREEMAIL_ENVFROM(0.00)[yahoo.co.jp]; ASN(0.00)[asn:24572, ipnet:183.79.0.0/16, country:JP]; MIME_TRACE(0.00)[0:+]; DWL_DNSWL_NONE(0.00)[yahoo.co.jp.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.84)[-0.837,0]; R_DKIM_ALLOW(-0.20)[yahoo.co.jp:s=yj20110701]; RCVD_COUNT_FIVE(0.00)[5]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; NEURAL_HAM_LONG(-0.97)[-0.970,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[yahoo.co.jp]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[112.57.79.183.list.dnswl.org : 127.0.5.0]; TO_DN_EQ_ADDR_ALL(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[112.57.79.183.rep.mailspike.net : 127.0.0.17] 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, 16 Oct 2019 14:44:53 -0000 Hi This is dmesg. http://dmesgd.nycbug.org/index.cgi?do=view&id=5151 Thanks Hiroki Mori From owner-freebsd-arm@freebsd.org Wed Oct 16 15:49:06 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 7DFBD148A50 for ; Wed, 16 Oct 2019 15:49:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tcD22lCXz3wZg for ; Wed, 16 Oct 2019 15:49:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3D38293CF for ; Wed, 16 Oct 2019 15:49:06 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id x9GFn6iC078476 for ; Wed, 16 Oct 2019 15:49:06 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id x9GFn60U078475 for freebsd-arm@FreeBSD.org; Wed, 16 Oct 2019 15:49:06 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 241301] Beaglebone black eMMC not detected, sdhci_ti1 controller timeout errors Date: Wed, 16 Oct 2019 15:49:06 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: ian@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 16 Oct 2019 15:49:06 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D241301 Bug ID: 241301 Summary: Beaglebone black eMMC not detected, sdhci_ti1 controller timeout errors Product: Base System Version: CURRENT Hardware: arm OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: ian@FreeBSD.org When booting a beaglebone black with the SD-boot button held down, the eMMC connected to the sdhci_ti1 device does not work. Booting without holding d= own the SD-boot button does work, presumably because that causes the am335x ROM= to configure the hardware. This was originally thought to be bug 238344, because the symptoms are the same, but in this case the problem is in freebsd code, not u-boot. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Wed Oct 16 16:46:26 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 6B32314AC6B for ; Wed, 16 Oct 2019 16:46:26 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2m.ore.mailhop.org (outbound2m.ore.mailhop.org [54.149.155.156]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46tdV961wXz41Gk for ; Wed, 16 Oct 2019 16:46:25 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1571244384; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=TYMlChZqcf+Bsy5lvBy5uYk4KBqBdurBeGStiOha1km3A9rksANrdCZcXfgNVSNufb5WgMBWEAaV8 y8BxDfBoHFSVPRrfNh/U2ydwodS7SI7QPlnbxZQrz4X9i/P9qwuOjnuSN8aMabPMlDim5nS/gbjREZ /UXhFX/UuZB0OTnlFf8OFgbHWvsFO0SoUpyPd67J5Q3F2ydayNILBo+LVpubTwCMgOT2AAlBhOFytz LMYsIiksNTCThSYYyYf9QmAjbBqLAj3hDmRgRRtIG2jO4Gv34wyzlGmvlQxwc2Mf11dENH0bLtCFGc xYJUz3UXNLK+Q65nH9Zs6VxfAesRxBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=KvwhBNe/9cQJ4M0ar5nlAcFdiBm7vpdTGWtDhBH11Ws=; b=fZD3EYaiElqCpcZwxzNImkDV40bOuSjcR4Z/T6T9sRpTW3pMTCi7CROBu070z3y4pCXjvIfZuFu05 jlCr3lBJxNoAQTE9BoDkFqn62j5Gzqckjwg8Ur7LrbMsQpZZeXPjNRk5jZp4KwH1B7LlNqYzRa8Wll Se1ampEZgpcxbaeOHbsaTnbbGlCG2vvQWKoY/R1LxX1UXvACSi4NeuhEJLvDcrTQuRaTfNcMce+igz 2cqBIAi2Ow5afSNa0iOs0qokKxWQqcv5Kmxv8EimqYZEDZ4weS7SGtEvpy68Xtbs7mQx31EqyOcyGO 6FOsbCmd/Qto5Z1VSdvQcKMOXOeKEeQ== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=KvwhBNe/9cQJ4M0ar5nlAcFdiBm7vpdTGWtDhBH11Ws=; b=VikMBAzEs7UY0TMyAHUcvwnHt8KBa1BR6d+AWSRLQv4W+OqJAFToBgIHerYahFTASK9Fmo1HqJ983 S4eY8LyH4VFI1DHI+tag1vB0zJzQqEUZkH6c78tYVXrQsCnywr5F/uBa7LdH2/aJZxXU0UsiMytVPP iaojOOfdnEhp42mDvuqqCvDLfUmUbq5dFkGKR7+IA9RPd1K1pCfuCTDFjZ7GG9TUnrnr4csWidWgzy dqfNcOWKE2rcnxNv8nzvoNMn5vhFSTkz096tk/Q0lfmBbHwlGzjLHfTOy/xdl4FsFP8Y0ePMo2EeWm RheCXVT9SNuWI+l/CfUdXTXw5Td6W9Q== X-MHO-RoutePath: aGlwcGll X-MHO-User: 7be72d62-f034-11e9-85ed-13b9aae3a1d2 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 7be72d62-f034-11e9-85ed-13b9aae3a1d2; Wed, 16 Oct 2019 16:46:22 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id x9GGkLAZ013957 for ; Wed, 16 Oct 2019 10:46:21 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <0a79e17247e88655480b327d0e9bb97acab1ce52.camel@freebsd.org> Subject: Re: [Bug 241301] Beaglebone black eMMC not detected, sdhci_ti1 controller timeout errors From: Ian Lepore To: freebsd-arm@FreeBSD.org Date: Wed, 16 Oct 2019 10:46:21 -0600 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46tdV961wXz41Gk X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-1.41 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_MEDIUM(-0.41)[-0.410,0]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] 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, 16 Oct 2019 16:46:26 -0000 On Wed, 2019-10-16 at 15:49 +0000, bugzilla-noreply@freebsd.org wrote: > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241301 > > Bug ID: 241301 > Summary: Beaglebone black eMMC not detected, sdhci_ti1 > controller timeout errors > Product: Base System > Version: CURRENT > Hardware: arm > OS: Any > Status: New > Severity: Affects Some People > Priority: --- > Component: arm > Assignee: freebsd-arm@FreeBSD.org > Reporter: ian@FreeBSD.org > > When booting a beaglebone black with the SD-boot button held down, the eMMC > connected to the sdhci_ti1 device does not work. Booting without holding down > the SD-boot button does work, presumably because that causes the am335x ROM to > configure the hardware. > > This was originally thought to be bug 238344, because the symptoms are the > same, but in this case the problem is in freebsd code, not u-boot. > FYI, I've now committed a pair of changes (r353651 and r353652) that fix this problem. I'll get them merged to 12-stable, and hopefully to 12.1-release asap. -- Ian From owner-freebsd-arm@freebsd.org Wed Oct 16 16:51:50 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 A77B314AF63 for ; Wed, 16 Oct 2019 16:51:50 +0000 (UTC) (envelope-from 0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com) Received: from a8-52.smtp-out.amazonses.com (a8-52.smtp-out.amazonses.com [54.240.8.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46tdcP4ZvJz41YH for ; Wed, 16 Oct 2019 16:51:49 +0000 (UTC) (envelope-from 0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1571244706; h=From:Subject:To:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=BEOtDUV+yhxhVx61pWLp6J26veYj/1CNowcbo5W2Yw4=; b=lqBOICdJu76FxHSzVNz/lo2GjP+fpdSRJca+ufeqtAIyhULzP5tIqdh6txRIZEY3 SkdrlqzGgF7iesKmLzYYTvPzzVXlVSeRXrC+Vs40nOp+tpASaYSWmiOpkIbvxL5Y74l OXlBxaRpeUc14xCfIbEzmNPBtW0ToIkrnmARq5KI= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1571244706; h=From:Subject:To:Message-ID:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=BEOtDUV+yhxhVx61pWLp6J26veYj/1CNowcbo5W2Yw4=; b=TpHbUP1CdjJb2342lriIEozjdnIZ51e6kgHLqV1CFuR9FHLyJ+n21vGW+cONHiba iwSbX2cSneg3HWNwlsojM4hYr2tBaLB6kd78Ps0Zrg2rEJMCofhmqCpYKVVCX9IVLua 4LJMCe/0094SDqIwcpOI1w9Q7fowlyzxNPwQ+eLk= From: Colin Percival Subject: EC2 ARM64 "bare metal" instances To: freebsd-arm@freebsd.org Openpgp: preference=signencrypt Autocrypt: addr=cperciva@tarsnap.com; prefer-encrypt=mutual; keydata= mQGhBElrAAcRBACDfDys4ZtK+ErCJ1HAzYeteKpm3OEsvT/49AjUTLihkF79HhIKrCQU+1KC zv7BwHCMLb6hq30As9L7iFKG7n5QFLFC4Te/VcITUnWHMG/c3ViLOfJGvi+9/nOEHaM1dVJY D6tEp5yM1nHmVQpo9932j4KGuGFR0LhOK5IHXOSfGwCgxSFDPdgxe2OEjWxjGgY+oV3EafcD +JROXCTjlcQiG/OguQH4Vks3mhHfFnEppLxTkDuYgHZQiUtpcT9ssH5khgqoTyMar05OUdAj ZIhNbWDh4LgTj+7ZmvLhXT5Zxw8LX9d7T36aTB8XDQSenDqEtinMWOb0TCBBLbsB8EFG1WTT ESbZci9jJS5yhtktuZoY/eM8uXMD/3k4FWFO80VRRkELSp+XSy/VlSQjyi/rhl2nQq/oOA9F oJbDaB0yq9VNhxP+uFBzBWSqeIX0t1ZWLtNfVFr4TRP5hihI5ICrg/0OpqgisKsU2NFe9xyO hyJLYmfD8ebpDJ/9k30C7Iju9pVrwLm1QgS4S2fqJRcR+U4WbjvP7CgStCVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFAdGFyc25hcC5jb20+iGEEExECACEFAklrALYCGwMHCwkIBwMCAQQV AggDBBYCAwECHgECF4AACgkQOM7KaQxqam6/igCgn+z2k3V5ggNppmWrZstt1U2lugsAoL7L wS9V9yLtil3oWmHtwpUqYruEuQINBElrAAcQCAD3ZLMIsP4CIDoJORg+YY0lqLVBgcnF7pFb 4Uy2+KvdWofN+DKH61rZLjgXXkNE9M4EQC1B4lGttBP8IY2gs41y3AUogGdyFbidq99rCBz7 LTsgARHwFxZoaHmXyiZLEU1QZuMqwPZV1mCviRhN5E3rRqYNXVcrnXAAuhBpvNyj/ntHvcDN 2/m+ochiuBYueU4kX3lHya7sOj+mTsndcWmQ9soOUyr8O0r/BG088bMn4qqtUw4dl5/pglXk jbl7uOOPinKf0WVd2r6M0wLPJCD4NPHrCWRLLLAjwfjrtoSRvXxDbXhCdgGBa72+K8eYLzVs hgq7tJOoBWzjVK6XRxR7AAMGB/9Mo3iJ2DxqDecd02KCB5BsFDICbJGhPltU7FwrtbC7djSb XUrwsEVLHi4st4cbdGNCWCrp0BRezXZKohKnNAPFOTK++ZfgeKxrV2sJod+Q9RILF86tQ4XF 7A7Yme5hy92t/WgiU4vc/fWbgP8gV/19f8nunaT2E9NSa70mZFjZNu4iuwThoUUO5CV3Wo0Y UISsnRK8XD1+LR3A2qVyLiFRwh/miC1hgLFCTGCQ3GLxZeZzIpYSlGdQJ0L5lixW5ZQD9r1I 8i/8zhE6qRFAM0upUMI3Gt1Oq2w03DiXrZU0Fu/R8Rm8rlnkQKA+95mRTUq1xL5P5NZIi4gJ Z569OPMFiEkEGBECAAkFAklrAAcCGwwACgkQOM7KaQxqam41igCfbaldnFTu5uAdrnrghESv EI3CAo8AoLkNMks1pThl2BJNRm4CtTK9xZeH Message-ID: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> Date: Wed, 16 Oct 2019 16:51:46 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2019.10.16-54.240.8.52 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-Rspamd-Queue-Id: 46tdcP4ZvJz41YH X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tarsnap.com header.s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57 header.b=lqBOICdJ; dkim=pass header.d=amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=TpHbUP1C; dmarc=none; spf=pass (mx1.freebsd.org: domain of 0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com designates 54.240.8.52 as permitted sender) smtp.mailfrom=0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com X-Spamd-Result: default: False [-1.41 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tarsnap.com:s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57,amazonses.com:s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tarsnap.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; DKIM_TRACE(0.00)[tarsnap.com:+,amazonses.com:+]; RCVD_IN_DNSWL_NONE(0.00)[52.8.240.54.list.dnswl.org : 127.0.15.0]; FORGED_SENDER(0.30)[cperciva@tarsnap.com,0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.71)[ip: (-0.56), ipnet: 54.240.8.0/21(-4.62), asn: 14618(-3.30), country: US(-0.05)]; ASN(0.00)[asn:14618, ipnet:54.240.8.0/21, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_NEQ_ENVFROM(0.00)[cperciva@tarsnap.com, 0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@amazonses.com] 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, 16 Oct 2019 16:51:50 -0000 Hi ARM experts, FreeBSD does not currently boot on Amazon's recently released "bare metal" ARM64 instances. It might be useful to get these working, since they're reasonably powered hardware (16 cores, 32 GB RAM) and should be able to run bhyve (that's the "bare metal" part). Right now the boot is failing because FreeBSD is not finding the disk (or the network adapter, for that matter): http://www.daemonology.net/tmp/a1.metal.boot_verbose Ed suggested that I get a listing of PCI devices from Linux (which does boot on these systems), and it looks like the missing devices are attached to PCI domains 2 and 3 (aka pci0 and pci1): http://www.daemonology.net/tmp/a1.metal.lspci-v I'm aware of a few patches these systems needed in order to work on Linux: 1. Respecting ACPI _DSM "PCI Boot Configuration": https://github.com/torvalds/linux/commit/a78cf9657ba5426f54aa93a067c10d097944c082 2. Adding the Annapurna Labs PCIe controller driver: https://github.com/torvalds/linux/commit/4166bfe53093b687a0b1b22e5d943e143b8089b2 https://github.com/torvalds/linux/commit/a8daea94754989f6c48dafda840482cbc9f882f9 3. Something I don't understand at all about MSI: https://github.com/torvalds/linux/commit/90b4c55586155cf13bbafbd4e55327f89681859d Can someone who knows more me about ARM64 / ACPI / PCIe / MSI take a look at these and figure out how to get this working in FreeBSD? I'll be happy to test patches or to walk someone through the process of using EC2 so you can hack on this directly. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From owner-freebsd-arm@freebsd.org Wed Oct 16 18:26:07 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 8F5D814CFF5 for ; Wed, 16 Oct 2019 18:26:07 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tgjB3KHVz46yF for ; Wed, 16 Oct 2019 18:26:05 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from mb.fritz.box (pD9F97D9F.dip0.t-ipconnect.de [217.249.125.159]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id A8898721E282E; Wed, 16 Oct 2019 20:25:59 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: EC2 ARM64 "bare metal" instances From: Michael Tuexen In-Reply-To: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> Date: Wed, 16 Oct 2019 20:25:59 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> To: Colin Percival X-Mailer: Apple Mail (2.3594.4.19) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 46tgjB3KHVz46yF X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of Michael.Tuexen@macmic.franken.de has no SPF policy when checking 2001:638:a02:a001:20e:cff:fe4a:feaa) smtp.mailfrom=Michael.Tuexen@macmic.franken.de X-Spamd-Result: default: False [-0.92 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.72)[-0.725,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-0.50)[ip: (-4.85), ipnet: 2001:638::/32(2.27), asn: 680(0.11), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[franken.de]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.998,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[a.a.e.f.a.4.e.f.f.f.c.0.e.0.2.0.1.0.0.a.2.0.a.0.8.3.6.0.1.0.0.2.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:680, ipnet:2001:638::/32, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] 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, 16 Oct 2019 18:26:07 -0000 > On 16. Oct 2019, at 18:51, Colin Percival = wrote: >=20 > Hi ARM experts, >=20 > FreeBSD does not currently boot on Amazon's recently released "bare = metal" > ARM64 instances. It might be useful to get these working, since = they're > reasonably powered hardware (16 cores, 32 GB RAM) and should be able = to run > bhyve (that's the "bare metal" part). Not sure we have bhyve support for arm64 in tree right now... >=20 > Right now the boot is failing because FreeBSD is not finding the disk = (or > the network adapter, for that matter): Isn't your device similar to https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4813 Best regards Michael >=20 > http://www.daemonology.net/tmp/a1.metal.boot_verbose >=20 > Ed suggested that I get a listing of PCI devices from Linux (which = does boot > on these systems), and it looks like the missing devices are attached = to PCI > domains 2 and 3 (aka pci0 and pci1): >=20 > http://www.daemonology.net/tmp/a1.metal.lspci-v >=20 > I'm aware of a few patches these systems needed in order to work on = Linux: >=20 > 1. Respecting ACPI _DSM "PCI Boot Configuration": > = https://github.com/torvalds/linux/commit/a78cf9657ba5426f54aa93a067c10d097= 944c082 >=20 > 2. Adding the Annapurna Labs PCIe controller driver: > = https://github.com/torvalds/linux/commit/4166bfe53093b687a0b1b22e5d943e143= b8089b2 > = https://github.com/torvalds/linux/commit/a8daea94754989f6c48dafda840482cbc= 9f882f9 >=20 > 3. Something I don't understand at all about MSI: > = https://github.com/torvalds/linux/commit/90b4c55586155cf13bbafbd4e55327f89= 681859d >=20 > Can someone who knows more me about ARM64 / ACPI / PCIe / MSI take a = look > at these and figure out how to get this working in FreeBSD? >=20 > I'll be happy to test patches or to walk someone through the process = of > using EC2 so you can hack on this directly. >=20 > --=20 > Colin Percival > Security Officer Emeritus, FreeBSD | The power to serve > Founder, Tarsnap | www.tarsnap.com | Online backups for the truly = paranoid > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Wed Oct 16 18:39:00 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 EAC3014D46A for ; Wed, 16 Oct 2019 18:39:00 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from sonic317-32.consmr.mail.ne1.yahoo.com (sonic317-32.consmr.mail.ne1.yahoo.com [66.163.184.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46th034zl1z47n7 for ; Wed, 16 Oct 2019 18:38:59 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) X-YMail-OSG: oIFNbBUVM1k2SFHMY9RHJz3sEYMjHeeE30EOeUiDh5VgLaMB10fX2hBXa2_F1kw SILhqKIDEzdslCjRXywX5cpnWrjucL0OGw1qaMu_HYJv3nf1u1VbgZo2XrJ4C286hnX33ljvp3O9 vQUrl9FtB3RmVOmyUN1Sdf8QjKWovISXGwxuIONhXz4TQIGBVBwnVRYcIVEXNgE0oeKO5efHHzKD F_eq82V6VuojYZmRq_RrLL8HIkBaICsk8O2ryDPI4Y2P_6R03RpnOcyHd5dffSAG9ARKDJ_B8Kyy 2eaJZ29zTsjn5_y7hOWSpKhE5Hj96Bt13SL_rR0ny1mhMxPjjRk9hq5cRpmob4oqIVybunBGJzjK k.nThs3P00i3.pUoumwik5..5WV9JVHa59xT5EgkINI7FShFnzvoPzsLSmAUjwngzHLc5K7fKfjW Y8BU1N2QlfR7mrFriIQQxQuzG3u1rATNw0nYcmN89zh.ACQDTe1..jTirtiVEhf1FtLB60yW3zsG 4ORGTb8989V7xeYom.PT_IhPe1049sV9mk3fzI_W76tvowWAcGbis85X63hpCxyYMwNYYm.luVIS _FWGRIOKamarW9rYAZLoGDupWJN0b94rEgLKqWHnaH39jVG6wmtAdTOdL1lGmMy4bEBvcJ9pEmmZ lO__Ov394mm5D7duPP_VuN6GgL96xJqQP7VmCx9oT9ITm6agmMyPHLC6hb4J4F62SL1RGeRBdK8V dyoxoYAPn9ga6v6drVCYPymz9u84NB100twU_XGeodm9tN4xI0p8nu0yPDMLHNL7A1i5llMIPy17 IL1pj2F2hEKn4oCDvh5sfalwMtRvvy7wQHOxxw1CyplQyNrDnq6Ez3XEx2qUnUH3jlfMGcMYuFUO 3UoqOxq.6xhFN.9YG8xcZLArck_2OMIpavCSbHQwmiz1gdUyMQjAfdKyFVJjREY4cWmCbdzx1psn N4W06kJeL_1n3D9zLWyFqX46wGM6Nw3gbRiYsFenwYXWXq855Wo8MAAcRYbDJ3TwMOSWEJfa_j22 SI5oa5Bm7l3jLKSBtp9ZJjaOrQnejtPzcdV6nl4NSxCtXI_0BbyenH1Fow6gy1ZcGC4CT123G8QH EyRNbzECv8OOBgMtAtXd5UTqTEYar7RCE8Vwr9kMqAQcu5BRjXqRWqkZIsP9mgukDto.8KUHyQy2 CcgNl04Gxcy3bFyz6g7ud7BbXB9gmwcQN9arSHaAQ7CNdh33zc.zCbKVwwRB6Ax4KUsyanaZY0Br RddQJIbI- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.ne1.yahoo.com with HTTP; Wed, 16 Oct 2019 18:38:57 +0000 Received: by smtp425.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID ae8ed57b3086d2b04db245ae08f06402; Wed, 16 Oct 2019 18:38:52 +0000 (UTC) From: Thomas Skibo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Fixes for Zynq u-boot ports up on Phabricator. Message-Id: <03334BCB-CC77-4D42-BE3C-686260B5948A@yahoo.com> Date: Wed, 16 Oct 2019 11:38:51 -0700 To: freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.9.1) X-Rspamd-Queue-Id: 46th034zl1z47n7 X-Spamd-Bar: / X-Spamd-Result: default: False [-0.58 / 15.00]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; FREEMAIL_FROM(0.00)[yahoo.com]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-0.36)[-0.356,0]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.28)[0.280,0]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[43.184.163.66.list.dnswl.org : 127.0.5.0]; MV_CASE(0.50)[]; IP_SCORE(0.00)[ip: (2.52), ipnet: 66.163.184.0/21(1.32), asn: 36646(1.06), country: US(-0.05)]; IP_SCORE_FREEMAIL(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0] 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, 16 Oct 2019 18:39:01 -0000 Hello. I=E2=80=99ve put my fixes for the u-boot-zedboard and u-boot-zybo ports = up on Phabricator. Does anybody want to review it? https://reviews.freebsd.org/D22060 Thanks, Thomas =E2=80=94=E2=80=94 Thomas Skibo ThomasSkibo@yahoo.com From owner-freebsd-arm@freebsd.org Wed Oct 16 20:27:57 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 226C514F253 for ; Wed, 16 Oct 2019 20:27:57 +0000 (UTC) (envelope-from 0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com) Received: from a8-56.smtp-out.amazonses.com (a8-56.smtp-out.amazonses.com [54.240.8.56]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46tkPm0vGhz4DbG for ; Wed, 16 Oct 2019 20:27:55 +0000 (UTC) (envelope-from 0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57; d=tarsnap.com; t=1571257674; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=1JfLYvAYmLWMvhnoo9vJx/xRiZ+cbd7Max230OMOwD8=; b=lZ3mrZxfDhyFoCkNpEFJQFW9VvZR7LZb/yjTLFxiTfdDB4IoSZ+YpLt+1qq4j+iS 8T86MtfXO5P4lHMhkaKORaM7VngsI2PcZOg/m6foFuJhTxq+b8STC8OVWwLIJjtwxap f+c6yHtGejaZ8lFG6n/MOo+iGUqYG6fawYVRWwTI= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1571257674; h=Subject:To:Cc:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding:Feedback-ID; bh=1JfLYvAYmLWMvhnoo9vJx/xRiZ+cbd7Max230OMOwD8=; b=UdEfXUPj/57H6TVvA+w7BflM534rhScIi7S9b29qnq518R1PdNm3JOs5euJRuCDX InYKEOCZpQ6f7NmrlUpLPlj/lUv8koMIvlmePcl3sydtUqAiOSx/u21+c5kHZbhqQmz qgnsuy/J1dciA2MgXNVNKI60DVeNwoUk3Cf/H8oI= Subject: Re: EC2 ARM64 "bare metal" instances To: Michael Tuexen Cc: freebsd-arm@freebsd.org References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> From: Colin Percival Openpgp: preference=signencrypt Autocrypt: addr=cperciva@tarsnap.com; prefer-encrypt=mutual; keydata= mQGhBElrAAcRBACDfDys4ZtK+ErCJ1HAzYeteKpm3OEsvT/49AjUTLihkF79HhIKrCQU+1KC zv7BwHCMLb6hq30As9L7iFKG7n5QFLFC4Te/VcITUnWHMG/c3ViLOfJGvi+9/nOEHaM1dVJY D6tEp5yM1nHmVQpo9932j4KGuGFR0LhOK5IHXOSfGwCgxSFDPdgxe2OEjWxjGgY+oV3EafcD +JROXCTjlcQiG/OguQH4Vks3mhHfFnEppLxTkDuYgHZQiUtpcT9ssH5khgqoTyMar05OUdAj ZIhNbWDh4LgTj+7ZmvLhXT5Zxw8LX9d7T36aTB8XDQSenDqEtinMWOb0TCBBLbsB8EFG1WTT ESbZci9jJS5yhtktuZoY/eM8uXMD/3k4FWFO80VRRkELSp+XSy/VlSQjyi/rhl2nQq/oOA9F oJbDaB0yq9VNhxP+uFBzBWSqeIX0t1ZWLtNfVFr4TRP5hihI5ICrg/0OpqgisKsU2NFe9xyO hyJLYmfD8ebpDJ/9k30C7Iju9pVrwLm1QgS4S2fqJRcR+U4WbjvP7CgStCVDb2xpbiBQZXJj aXZhbCA8Y3BlcmNpdmFAdGFyc25hcC5jb20+iGEEExECACEFAklrALYCGwMHCwkIBwMCAQQV AggDBBYCAwECHgECF4AACgkQOM7KaQxqam6/igCgn+z2k3V5ggNppmWrZstt1U2lugsAoL7L wS9V9yLtil3oWmHtwpUqYruEuQINBElrAAcQCAD3ZLMIsP4CIDoJORg+YY0lqLVBgcnF7pFb 4Uy2+KvdWofN+DKH61rZLjgXXkNE9M4EQC1B4lGttBP8IY2gs41y3AUogGdyFbidq99rCBz7 LTsgARHwFxZoaHmXyiZLEU1QZuMqwPZV1mCviRhN5E3rRqYNXVcrnXAAuhBpvNyj/ntHvcDN 2/m+ochiuBYueU4kX3lHya7sOj+mTsndcWmQ9soOUyr8O0r/BG088bMn4qqtUw4dl5/pglXk jbl7uOOPinKf0WVd2r6M0wLPJCD4NPHrCWRLLLAjwfjrtoSRvXxDbXhCdgGBa72+K8eYLzVs hgq7tJOoBWzjVK6XRxR7AAMGB/9Mo3iJ2DxqDecd02KCB5BsFDICbJGhPltU7FwrtbC7djSb XUrwsEVLHi4st4cbdGNCWCrp0BRezXZKohKnNAPFOTK++ZfgeKxrV2sJod+Q9RILF86tQ4XF 7A7Yme5hy92t/WgiU4vc/fWbgP8gV/19f8nunaT2E9NSa70mZFjZNu4iuwThoUUO5CV3Wo0Y UISsnRK8XD1+LR3A2qVyLiFRwh/miC1hgLFCTGCQ3GLxZeZzIpYSlGdQJ0L5lixW5ZQD9r1I 8i/8zhE6qRFAM0upUMI3Gt1Oq2w03DiXrZU0Fu/R8Rm8rlnkQKA+95mRTUq1xL5P5NZIi4gJ Z569OPMFiEkEGBECAAkFAklrAAcCGwwACgkQOM7KaQxqam41igCfbaldnFTu5uAdrnrghESv EI3CAo8AoLkNMks1pThl2BJNRm4CtTK9xZeH Message-ID: <0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@email.amazonses.com> Date: Wed, 16 Oct 2019 20:27:54 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-SES-Outgoing: 2019.10.16-54.240.8.56 Feedback-ID: 1.us-east-1.Lv9FVjaNvvR5llaqfLoOVbo2VxOELl7cjN0AOyXnPlk=:AmazonSES X-Rspamd-Queue-Id: 46tkPm0vGhz4DbG X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=tarsnap.com header.s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57 header.b=lZ3mrZxf; dkim=pass header.d=amazonses.com header.s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw header.b=UdEfXUPj; dmarc=none; spf=pass (mx1.freebsd.org: domain of 0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com designates 54.240.8.56 as permitted sender) smtp.mailfrom=0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com X-Spamd-Result: default: False [-1.66 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[tarsnap.com:s=vnqrkfnvu6csdl6mwgk5t6ix3nnepx57,amazonses.com:s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:54.240.0.0/18]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[tarsnap.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[tarsnap.com:+,amazonses.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[56.8.240.54.list.dnswl.org : 127.0.15.0]; FORGED_SENDER(0.30)[cperciva@tarsnap.com,0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com]; RCVD_COUNT_ZERO(0.00)[0]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-1.96)[ip: (-1.81), ipnet: 54.240.8.0/21(-4.62), asn: 14618(-3.30), country: US(-0.05)]; ASN(0.00)[asn:14618, ipnet:54.240.8.0/21, country:US]; FORGED_MUA_THUNDERBIRD_MSGID_UNKNOWN(2.50)[]; FROM_NEQ_ENVFROM(0.00)[cperciva@tarsnap.com, 0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@amazonses.com] 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, 16 Oct 2019 20:27:57 -0000 On 2019-10-16 11:25, Michael Tuexen wrote: >> On 16. Oct 2019, at 18:51, Colin Percival wrote: >> FreeBSD does not currently boot on Amazon's recently released "bare metal" >> ARM64 instances. It might be useful to get these working, since they're >> reasonably powered hardware (16 cores, 32 GB RAM) and should be able to run >> bhyve (that's the "bare metal" part). > Not sure we have bhyve support for arm64 in tree right now... Maybe not, but I'm pretty sure someone was working on it? >> Right now the boot is failing because FreeBSD is not finding the disk (or >> the network adapter, for that matter): > Isn't your device similar to > https://dmesgd.nycbug.org/index.cgi?do=view&id=4813 Very similar, yes. That link concerns the same physical hardware, but running inside Amazon's KVM-like hypervisor. When running on the "bare metal" version of the EC2 instance we need to set up PCI controllers etc. ourselves since we don't have a hypervisor doing it for us. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid From owner-freebsd-arm@freebsd.org Wed Oct 16 21:05:26 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 0A6F314FD8C for ; Wed, 16 Oct 2019 21:05:26 +0000 (UTC) (envelope-from crowston@protonmail.com) Received: from mail2.protonmail.ch (mail2.protonmail.ch [185.70.40.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "protonmail.com", Issuer "SwissSign Server Gold CA 2014 - G22" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tlF06fzPz4GHH for ; Wed, 16 Oct 2019 21:05:24 +0000 (UTC) (envelope-from crowston@protonmail.com) Date: Wed, 16 Oct 2019 21:05:16 +0000 From: Robert Crowston Cc: "freebsd-arm@freebsd.org" Reply-To: Robert Crowston Subject: Re: Choose between Raspberry Pi 4B 4GB and ROCKPro64 Message-ID: <_rpAq1MDHv4HsLGo4UKtp_IKbfTKtGl8mjgeDL70o05AtFplcPOfrik_xdEMAw8AJv8jHFO6B4ShexeSjLtT8G_Y1bJpGsEfMUeFFEWIU0s=@protonmail.com> In-Reply-To: References: <7b75e2ed23e334878fbb3c1d585ffc51.squirrel@10.1.1.11> <730d80b78639a2054b1df18821d5fd76.squirrel@net.dyn.arroway.org> Feedback-ID: 2OVbcR1yHYpdkD8cgQllkFwcuMVZg_LiVMMPvptooFDfHD_03MuQO4ZaF626jWHZYFEhNR2cmIbZ53j4QGWMBQ==:Ext:ProtonMail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=1.6 required=7.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, MALFORMED_FREEMAIL,MISSING_HEADERS,URI_HEX autolearn=no autolearn_force=no version=3.4.2 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.protonmail.ch X-Rspamd-Queue-Id: 46tlF06fzPz4GHH X-Spamd-Bar: - X-Spamd-Result: default: False [-1.10 / 15.00]; HAS_REPLYTO(0.00)[crowston@protonmail.com]; R_SPF_ALLOW(-0.20)[+ip4:185.70.40.0/24]; FREEMAIL_FROM(0.00)[protonmail.com]; DKIM_TRACE(0.00)[protonmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[protonmail.com,quarantine]; MISSING_TO(2.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.00)[ip: (-9.66), ipnet: 185.70.40.0/24(-4.90), asn: 19905(-3.91), country: US(-0.05)]; RCVD_IN_DNSWL_LOW(-0.10)[22.40.70.185.list.dnswl.org : 127.0.5.1]; ASN(0.00)[asn:19905, ipnet:185.70.40.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[protonmail.com:s=default]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[protonmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999,0]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[protonmail.com]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_EQ_ADDR_ALL(0.00)[] 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, 16 Oct 2019 21:05:26 -0000 I have 13-Current arm64 running on my Pi4 (2 GB model, only the first 1 GB = of RAM is detected) in multi-user SMP mode. Some patches are required, incl= uding to the pi firmware; I put them on my github. However, there are almost no drivers (no ethernet and no PCI-E so no USB). = I made a stab at writing a driver for the on board ethernet controller, but= it is beyond my area of expertise. =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Tuesday, 15 October 2019 18:56, Ganbold Tsagaankhuu = wrote: > On Tue, Oct 15, 2019 at 11:36 PM Nenhum_de_Nos matheus@eternamente.info > wrote: > > > On Tue, October 15, 2019 01:15, Denis Polygalov wrote: > > > > > This might be useful for you: > > > http://freebsd.1045724.x6.nabble.com/raspberry-pi-4-td6338266.html > > > Regards, > > > Denis. > > > > Thanks, > > it was really useful. Still researching, but it looks so far that the > > RPi4B is the safest choice. Will hold the order for a bit longer. > > Not sure if someone successfully has booted FreeBSD on RPI4B yet. > As for RK3399, there are some boards are available and few people have > booted FreeBSD on it. > So if it is not very urgent please wait a bit. > > Ganbold > > > Thanks! > > matheus > > > > freebsd-arm@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" > > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Wed Oct 16 22:41:12 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 15CDC15203B for ; Wed, 16 Oct 2019 22:41:12 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46tnMV5QqQz4NBH for ; Wed, 16 Oct 2019 22:41:10 +0000 (UTC) (envelope-from Michael.Tuexen@macmic.franken.de) Received: from [IPv6:2003:cd:6f01:7200:59ca:27c1:c7c:36f4] (p200300CD6F01720059CA27C10C7C36F4.dip0.t-ipconnect.de [IPv6:2003:cd:6f01:7200:59ca:27c1:c7c:36f4]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id C6666721E282F; Thu, 17 Oct 2019 00:41:06 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3594.4.19\)) Subject: Re: EC2 ARM64 "bare metal" instances From: Michael Tuexen In-Reply-To: <0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@email.amazonses.com> Date: Thu, 17 Oct 2019 00:41:06 +0200 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <0249F9E9-E25F-40D7-96AD-EA8947DD2A91@macmic.franken.de> References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> <0100016dd6416a96-9fd7b02a-7ad0-4713-aca2-9df99123f6fe-000000@email.amazonses.com> To: Colin Percival X-Mailer: Apple Mail (2.3594.4.19) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-Rspamd-Queue-Id: 46tnMV5QqQz4NBH X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of Michael.Tuexen@macmic.franken.de has no SPF policy when checking 193.175.24.27) smtp.mailfrom=Michael.Tuexen@macmic.franken.de X-Spamd-Result: default: False [-2.35 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-0.99)[-0.986,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; IP_SCORE(-1.67)[ip: (-8.54), ipnet: 193.174.0.0/15(0.10), asn: 680(0.11), country: DE(-0.01)]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[franken.de]; AUTH_NA(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[27.24.175.193.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:680, ipnet:193.174.0.0/15, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] 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, 16 Oct 2019 22:41:12 -0000 > On 16. Oct 2019, at 22:27, Colin Percival = wrote: >=20 > On 2019-10-16 11:25, Michael Tuexen wrote: >>> On 16. Oct 2019, at 18:51, Colin Percival = wrote: >>> FreeBSD does not currently boot on Amazon's recently released "bare = metal" >>> ARM64 instances. It might be useful to get these working, since = they're >>> reasonably powered hardware (16 cores, 32 GB RAM) and should be able = to run >>> bhyve (that's the "bare metal" part). >> Not sure we have bhyve support for arm64 in tree right now... >=20 > Maybe not, but I'm pretty sure someone was working on it? Yes, that is correct. Not sure about the timeframe of getting it into = head. >=20 >>> Right now the boot is failing because FreeBSD is not finding the = disk (or >>> the network adapter, for that matter): >> Isn't your device similar to >> https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D4813 >=20 > Very similar, yes. That link concerns the same physical hardware, but = running > inside Amazon's KVM-like hypervisor. When running on the "bare metal" = version > of the EC2 instance we need to set up PCI controllers etc. ourselves = since we > don't have a hypervisor doing it for us. Ahh, I see. Thanks for the clarification. Best regards Michael >=20 > --=20 > Colin Percival > Security Officer Emeritus, FreeBSD | The power to serve > Founder, Tarsnap | www.tarsnap.com | Online backups for the truly = paranoid > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Thu Oct 17 21:03:06 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 3D30615D8D8 for ; Thu, 17 Oct 2019 21:03:06 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out.migadu.com (out.migadu.com [91.121.223.63]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.migadu.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vM7r3dLGz3DtN for ; Thu, 17 Oct 2019 21:03:03 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: (Migadu outbound); Thu, 17 Oct 2019 21:03:01 +0000 Received: from wms0-eu-central.migadu.com (wms0-eu-central.migadu.com [139.162.159.86]) by out.migadu.com (Haraka/2.8.16) with ESMTPSA id 1F54909C-44FB-4C09-B023-048464D88750.1 envelope-from (authenticated bits=0) (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 verify=FAIL); Thu, 17 Oct 2019 21:03:00 +0000 MIME-Version: 1.0 Date: Thu, 17 Oct 2019 21:03:00 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: RainLoop/1.12.1 From: greg@unrelenting.technology Message-ID: <120f10da37ee104ea0fb82adeac59c63@unrelenting.technology> Subject: Re: EC2 ARM64 "bare metal" instances To: "Colin Percival" , freebsd-arm@freebsd.org In-Reply-To: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> DKIM-Signature: v=1; a=rsa-sha256; bh=WI7aHwUISwAdKRm2eC9cHiXxfYJ+zUrTcDAY2S9dPiQ=; c=relaxed/simple; d=unrelenting.technology; h=from:subject:date:to; s=default; b=aGXVQAhCyGgq1k/vmkalAKSsN6iO3a1f96u3L+Ph7KVY4MMvKuzprMOsnVH958C4CdV/oRLDATBoQ8YleR61jiabzbGdmTrlge7GcU8mHNk4A3UVFImp1usCTPfTS/w7soMT1dXp4N0/P7AwpXuqbHddKqdlnzzM+aOiMhTnA4s= X-Rspamd-Queue-Id: 46vM7r3dLGz3DtN X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=aGXVQAhC; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 91.121.223.63 as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-5.52 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:91.121.223.63]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[63.223.121.91.list.dnswl.org : 127.0.10.0]; FROM_NO_DN(0.00)[]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-2.52)[ip: (-9.85), ipnet: 91.121.0.0/16(-4.26), asn: 16276(1.51), country: FR(-0.00)]; ASN(0.00)[asn:16276, ipnet:91.121.0.0/16, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(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: Thu, 17 Oct 2019 21:03:06 -0000 October 16, 2019 7:51 PM, "Colin Percival" wrote:= =0A=0A> Hi ARM experts,=0A> =0A> FreeBSD does not currently boot on Amazo= n's recently released "bare metal"=0A> ARM64 instances. It might be usefu= l to get these working, since they're=0A> reasonably powered hardware (16= cores, 32 GB RAM) and should be able to run=0A> bhyve (that's the "bare = metal" part).=0A=0AI know bhyvearm64 only supports GICv3 right now, so I = wonder how bhyvearm64=0Ais going to interact with the GICv2m-on-GICv3 thi= ng they've done=0A(WTF are they smoking?!).. =0A=0A> I'm aware of a few p= atches these systems needed in order to work on Linux=0A=0ANetBSD got sup= port recently too (yes yes I'm checking dmesgd.nycbug quite often :D)=0A= =0Ahttps://github.com/NetBSD/src/commits?author=3Djaredmcneill=0A=0AAppar= ently "downstream ports" in general only have a single device, so this=0A= filtering thing doesn't have to be a Graviton quirk:=0Ahttps://github.com= /NetBSD/src/commit/5969d36d314e797f3ce439a3fd445e5ba9d268f1=0A=0ABut we d= o need the AMZN0001 thing and the GIC thing. From owner-freebsd-arm@freebsd.org Thu Oct 17 22:06:55 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 116DF15ED5A for ; Thu, 17 Oct 2019 22:06:55 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vNYT1SLQz3JYs for ; Thu, 17 Oct 2019 22:06:52 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-qt1-x844.google.com with SMTP id t20so5928194qtr.10 for ; Thu, 17 Oct 2019 15:06:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=txqTMocjOgecR9kmsFGnOO0tVOAlkCtwMZ/DpIQW7r0=; b=DfyCJVL7rk69gghlVaV8YMRO34ya1U9znX1/ZlwO5HWzs9TujYQBVCEKwE+0Jm52Qh PuXG1aqDZKWUth4q7/i/skN3VTDK0kxgI2u8o5Vsg+t23DmPfTlW3fiWMur0gSUecn63 v09AA7q4qZMUm54FQKWfxNTWfyktI8m08GOCqJE1cbwW1MmS1ugGYSgeEZQyN8GnFsbF luaFxHPkTIpFRCvT8o2ewHf5biIzuEkHlkU0NGfi1QniRgjmo5kTqqZ2Kev7jlBZFiZe s+38X/kLn/vQkcy8LC778QhY71Zx5tU7yOEtY0nfU/8IgQc1CVr3p8IKeBH6qyQqenfY p1IA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=txqTMocjOgecR9kmsFGnOO0tVOAlkCtwMZ/DpIQW7r0=; b=Fv1WMNZInZCejw/6EPpB5w1rJQfwwbzuhINLHV8GQac8+ZhXYj9Jm+EPjmzgZKc5sx Yc9FceErY5AgZCNYCswFeIzaIGupSrcb8ZhnZR1g43AF6OBijtlUYZ+hlwrSvOMyF0oJ KpX6mn+PHCiht/XMnsTG293BPQyUQihz+bytOyGWVjvbI0Q06WiBj6MX+hg3gXJQ81Op v89a3OMNA19zc7PC47Hh3qK8p932z7MJeoqa6X2UjwOpky8JpDTaEZTC/QcwgRMoDtHZ F22RJXciqAQzqG/Z3GARELR52cKxVeAHjhr0XNcBLWYlNlC6Yd8WXJ4TVlRE0axT3+uQ b/HA== X-Gm-Message-State: APjAAAUVa1fG9z0z0me+zy32XK1RvB1tIyu2zDGPE8cneC2XOn8tg6iQ qlCMza4uKA92xO3rdZ5HRqUaxJ0fz33apx3tdzEULw== X-Google-Smtp-Source: APXvYqylYFhgIkPkIIPvF4uIbFsKi6oNH6U4geVN1vMuv8okH5vXFrX6li95ZQ9Ymau62IK5HrZOcr7VcQ8ILmG2a6k= X-Received: by 2002:ac8:33d4:: with SMTP id d20mr6256488qtb.204.1571350011491; Thu, 17 Oct 2019 15:06:51 -0700 (PDT) MIME-Version: 1.0 References: <0100016dd57b89f3-034edaf3-4ae3-46f6-96ad-a3f0cf202c05-000000@email.amazonses.com> <120f10da37ee104ea0fb82adeac59c63@unrelenting.technology> In-Reply-To: <120f10da37ee104ea0fb82adeac59c63@unrelenting.technology> From: Marcin Wojtas Date: Fri, 18 Oct 2019 00:06:39 +0200 Message-ID: Subject: Re: EC2 ARM64 "bare metal" instances To: Greg V Cc: Colin Percival , freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46vNYT1SLQz3JYs X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=DfyCJVL7; dmarc=none; spf=none (mx1.freebsd.org: domain of mw@semihalf.com has no SPF policy when checking 2607:f8b0:4864:20::844) smtp.mailfrom=mw@semihalf.com X-Spamd-Result: default: False [-2.71 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[semihalf-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[semihalf.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[semihalf-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[4.4.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.41)[ip: (2.54), ipnet: 2607:f8b0::/32(-2.47), asn: 15169(-2.10), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Thu, 17 Oct 2019 22:06:55 -0000 Hi Greg, czw., 17 pa=C5=BA 2019 o 23:03 napisa=C5=82(a= ): > > October 16, 2019 7:51 PM, "Colin Percival" wrote: > > > Hi ARM experts, > > > > FreeBSD does not currently boot on Amazon's recently released "bare met= al" > > ARM64 instances. It might be useful to get these working, since they're > > reasonably powered hardware (16 cores, 32 GB RAM) and should be able to= run > > bhyve (that's the "bare metal" part). > > I know bhyvearm64 only supports GICv3 right now, so I wonder how bhyvearm= 64 > is going to interact with the GICv2m-on-GICv3 thing they've done > (WTF are they smoking?!).. Afaik, the bhyvearm64 has been developed in virtual environment. In Semihalf, we gave it a shot a couple of months ago on a real HW (CA72 + GICv3), but it crashed on the very first context switch from host to VM space, so we dropped it. > > > I'm aware of a few patches these systems needed in order to work on Lin= ux > > NetBSD got support recently too (yes yes I'm checking dmesgd.nycbug quite= often :D) > > https://github.com/NetBSD/src/commits?author=3Djaredmcneill > > Apparently "downstream ports" in general only have a single device, so th= is > filtering thing doesn't have to be a Graviton quirk: > https://github.com/NetBSD/src/commit/5969d36d314e797f3ce439a3fd445e5ba9d2= 68f1 > > But we do need the AMZN0001 thing and the GIC thing. > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Thu Oct 17 22:40:51 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 2BE7B15F63B for ; Thu, 17 Oct 2019 22:40:51 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46vPJf0WYBz3Kxr for ; Thu, 17 Oct 2019 22:40:49 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from [10.137.113.129] (108-169-4-232.dynamic.dsl.sonic.net [108.169.4.232] (may be forged)) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id x9HMejuA014723 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 17 Oct 2019 15:40:46 -0700 From: glenn Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: ClearFog Base serial console on FreeBSD 11.2? Date: Thu, 17 Oct 2019 15:40:45 -0700 References: To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3445.9.1) X-Sonic-CAuth: UmFuZG9tSVYCaY1+A7nHftxuhbaSksV8r4pnp1rCo+kyRipoQRrS4ref8lGRYReVlH1cMLJ/ogkoYuAn2uoAIxGRT4P/z/xj X-Sonic-ID: C;+hl2KC/x6RGsLrhhg01YJw== M;diy/KC/x6RGsLrhhg01YJw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Rspamd-Queue-Id: 46vPJf0WYBz3Kxr X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of pygr@sonic.net has no SPF policy when checking 64.142.111.80) smtp.mailfrom=pygr@sonic.net X-Spamd-Result: default: False [3.94 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[232.4.169.108.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.91)[0.912,0]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-0.02)[asn: 7065(-0.04), country: US(-0.05)]; NEURAL_SPAM_LONG(0.74)[0.744,0]; DMARC_NA(0.00)[sonic.net]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[80.111.142.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7065, ipnet:64.142.96.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Thu, 17 Oct 2019 22:40:51 -0000 FreeBSD12.0 and 12.1 can be made to work properly on a ClearFog Base, = but so far, for 11.2, I haven=E2=80=99t been able to get an interactive = serial console after control is passed to the kernel during the boot = process. U-boot and ubldr.bin seem to work well. ... U-Boot env: loaderdev not set, will probe all devices. Found U-Boot device: disk Probing all disk devices... Checking unit=3D0 slice=3D partition=3D... good. Booting from disk0s3a: /boot/kernel/kernel data=3D0x82c5e4+0xaba1c = syms=3D[0x4+0x8cd30+0x4+0xe2c1f] /boot/dtb/armada-388-clearfog.dtb size=3D0x675c Loading /boot/defaults/loader.conf / Hit [Enter] to boot immediately, or any other key for command prompt. Booting [/boot/kernel/kernel]... =20 Using DTB from loaded file '/boot/dtb/armada-388-clearfog.dtb'. Kernel entry at 0xc00100... Kernel args: (null) =20 The reason for wanting to get 11.2 working is that, currently, OPNsense = doesn=E2=80=99t run on 12.0 or 12.1. What does it take to get a serial console driver like uart-dev-snps.c to = work with 11.2? From owner-freebsd-arm@freebsd.org Thu Oct 17 23:03: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 C75D015FB22 for ; Thu, 17 Oct 2019 23:03:28 +0000 (UTC) (envelope-from mw@semihalf.com) Received: from mail-qk1-x744.google.com (mail-qk1-x744.google.com [IPv6:2607:f8b0:4864:20::744]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vPpl3plqz3Ls6 for ; Thu, 17 Oct 2019 23:03:27 +0000 (UTC) (envelope-from mw@semihalf.com) Received: by mail-qk1-x744.google.com with SMTP id u184so3531389qkd.4 for ; Thu, 17 Oct 2019 16:03:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semihalf-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=UcjkfBT1dd37Idg4hTPZUhGXQ3xYBe2gKNUcw3oqoV0=; b=jxuOY5InHYLyXJ7Bie+tEleq2TyGiVbCdjwNHmX63GVXUlQZIQjz/DkfcNKQsr88zW yO6nkApPWSi0jsbSw/ihmLP2bm+LhY5zP3tBcWaHxm7fmU+eJ2kpMI4CpaNPBsR1Qzfu 4dwkkOGUOQm40waDXy2YNGzLCn8QoL/AgKZ06WhKwBxikuD90Dw/wsjDZBjH1sG0bu9I 2oGw5qcs+js6JhuTcTGKJq6Cv2MPR8ShJ+63VZpxUVj5RCf/mhim8LKn+I6FRgZ4seqU 4Gix4+hk/WmubwpV53dz77MZGYbPFXVQSK0leTJ+OO2oh8vveG/Z3MxRO2hjO+bhX0fi jK2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=UcjkfBT1dd37Idg4hTPZUhGXQ3xYBe2gKNUcw3oqoV0=; b=Fwqwk+tMpKE27p6RCUaq1YijqBAaKBSgzqCfEkx3LTM2Ichlnx4ZrPD1avpvg/Ag+S yx9gJUN5jiuupAayf+rTIOOR5kxpLOwjD62sGYr4jFhjwSinUB9ETOmus7Q7zo5o9UVR 58aWE2CIn7ZkiGW9xuRsb1pYk2ECrerNZpBF3cDzRSSoUhJH+yqOQuTjqkRk0nvSZm/w C3QROPPRbSyPXup93osSHlPFMHPUIr9VIMIJ5+M5sS6JHWypkhYMrh2JydrSYya1G0Fj xUyzYrbBFgBf11WLWsbC7DHa2SeCdwMHYNmKnqzTfmpw49wDhCsoyf052XkuXSBwlelj BN5w== X-Gm-Message-State: APjAAAWYwHOrZXehHnPv+mg4kafJ0qMpLF22+mUxUXpyYO/m5aJIi+rS 0a31CAr/D6ZyMaa/M4+jWwOToj/AlnIHZhTFmY+jUw== X-Google-Smtp-Source: APXvYqzYBiOncVMe1s4xhiEZvDEfNefbK88lAyW+JoTRhG71fg9zz14dxYvKLbLAVntWjYeosq/oMgZ6MCFHBnGRVRA= X-Received: by 2002:a37:4d8e:: with SMTP id a136mr5637390qkb.109.1571353405996; Thu, 17 Oct 2019 16:03:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marcin Wojtas Date: Fri, 18 Oct 2019 01:03:12 +0200 Message-ID: Subject: Re: ClearFog Base serial console on FreeBSD 11.2? To: glenn Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 46vPpl3plqz3Ls6 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=semihalf-com.20150623.gappssmtp.com header.s=20150623 header.b=jxuOY5In; dmarc=none; spf=none (mx1.freebsd.org: domain of mw@semihalf.com has no SPF policy when checking 2607:f8b0:4864:20::744) smtp.mailfrom=mw@semihalf.com X-Spamd-Result: default: False [-1.75 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[semihalf-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; IP_SCORE(-0.45)[ip: (2.35), ipnet: 2607:f8b0::/32(-2.47), asn: 15169(-2.10), country: US(-0.05)]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; DMARC_NA(0.00)[semihalf.com]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[semihalf-com.20150623.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[4.4.7.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] 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: Thu, 17 Oct 2019 23:03:28 -0000 Hi Glenn, The release/11.2.0 is missing a huge amount of patches for a38x, which were merged later. However the initial support should work - please try dts from sys/boot/fdt/dts/arm/. At that time the port was not compatible with the Linux bindings from sys/gnu/dts/arm. Please let know if it helped. Best regards, Marcin pt., 18 pa=C5=BA 2019 o 00:40 glenn napisa=C5=82(a): > > FreeBSD12.0 and 12.1 can be made to work properly on a ClearFog Base, but= so far, for 11.2, I haven=E2=80=99t been able to get an interactive serial= console after control is passed to the kernel during the boot process. U-b= oot and ubldr.bin seem to work well. > > ... > U-Boot env: loaderdev not set, will probe all devices. > Found U-Boot device: disk > Probing all disk devices... > Checking unit=3D0 slice=3D partition=3D... good. > Booting from disk0s3a: > /boot/kernel/kernel data=3D0x82c5e4+0xaba1c syms=3D[0x4+0x8cd30+0x4+0xe2c= 1f] > /boot/dtb/armada-388-clearfog.dtb size=3D0x675c > Loading /boot/defaults/loader.conf > / > Hit [Enter] to boot immediately, or any other key for command prompt. > Booting [/boot/kernel/kernel]... > Using DTB from loaded file '/boot/dtb/armada-388-clearfog.dtb'. > Kernel entry at 0xc00100... > Kernel args: (null) > > > > The reason for wanting to get 11.2 working is that, currently, OPNsense d= oesn=E2=80=99t run on 12.0 or 12.1. > > What does it take to get a serial console driver like uart-dev-snps.c to = work with 11.2? > > > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Fri Oct 18 11:31:40 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 38C5614D79E for ; Fri, 18 Oct 2019 11:31:40 +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 46vkQ26dXTz4SGW for ; Fri, 18 Oct 2019 11:31:38 +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 8c33fa5c; Fri, 18 Oct 2019 13:31:31 +0200 (CEST) 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=Y7eFLM2gKvKNIMX2NKsiAhyzpV8=; b=MISkdY6aGd6LFTypjxm7ivBFBdsd VAXv5314SqmGLb1waRCmMN8RTCQLTkX6abhdYNMK0SUUKlIosEIuhy56OS4MQJZV l5TCFrQ4Yw+yO2iORbJXoSIb6F7onLNBb0ydafabY/WX+CzoMQ9V8cK2Ax9gZB7x 2TfaYuHFko5lx9E= 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=VaDtb1qJrI63DIEc+0qBuPurWA2pYJ7bsi710fuwz8KuLnZNJ4LvePFb ph+GjDMzsOFVql6ufgDIAF+mn1JMLS/iJIAVlphJHGDuE24uE/Idk7x4gUHuIulX CWBCWnqfFq8brWye8AVUIRjYwi5NTkGiIhty/+ULZiK8PFfw5Yw= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 4f0b8616 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 18 Oct 2019 13:31:31 +0200 (CEST) Date: Fri, 18 Oct 2019 13:31:31 +0200 From: Emmanuel Vadot To: Gary Otten Cc: freebsd-arm@freebsd.org Subject: Re: GPIO on Olimex A64 board. Bank E not working. Message-Id: <20191018133131.3063a80860e4906e0fd67f2c@bidouilliste.com> In-Reply-To: References: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> <20191015175901.1d0173f27798f15c25c037de@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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46vkQ26dXTz4SGW X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=MISkdY6a; 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.93 / 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.44)[-0.441,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.97)[-0.973,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.65), ipnet: 212.83.160.0/19(2.44), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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: Fri, 18 Oct 2019 11:31:40 -0000 On Tue, 15 Oct 2019 13:26:46 -0400 Gary Otten wrote: > Ok, I placed hw.regulator.disable_unused=0 in /boot/loader.conf. Here is > the results, also still no output on the E bank. > > root@:/dev # sysctl hw.regulator > hw.regulator.dc1sw.uvolt: 0 > hw.regulator.dc1sw.always_on: 0 > hw.regulator.dc1sw.boot_on: 0 > hw.regulator.dc1sw.enable_cnt: 0 > hw.regulator.dc1sw.enable_delay: 0 > hw.regulator.dc1sw.ramp_delay: 0 > hw.regulator.dc1sw.max_uamp: 0 > hw.regulator.dc1sw.min_uamp: 0 > hw.regulator.dc1sw.max_uvolt: 0 > hw.regulator.dc1sw.min_uvolt: 0 > hw.regulator.ldo-io1.always_on: 0 > hw.regulator.ldo-io1.boot_on: 0 > hw.regulator.ldo-io1.enable_cnt: 0 > hw.regulator.ldo-io1.enable_delay: 0 > hw.regulator.ldo-io1.ramp_delay: 0 > hw.regulator.ldo-io1.max_uamp: 0 > hw.regulator.ldo-io1.min_uamp: 0 > hw.regulator.ldo-io1.max_uvolt: 3300000 > hw.regulator.ldo-io1.min_uvolt: 700000 > hw.regulator.ldo-io0.always_on: 0 > hw.regulator.ldo-io0.boot_on: 0 > hw.regulator.ldo-io0.enable_cnt: 0 > hw.regulator.ldo-io0.enable_delay: 0 > hw.regulator.ldo-io0.ramp_delay: 0 > hw.regulator.ldo-io0.max_uamp: 0 > hw.regulator.ldo-io0.min_uamp: 0 > hw.regulator.ldo-io0.max_uvolt: 3300000 > hw.regulator.ldo-io0.min_uvolt: 700000 > hw.regulator.vdd-cpus.uvolt: 1100000 > hw.regulator.vdd-cpus.always_on: 1 > hw.regulator.vdd-cpus.boot_on: 0 > hw.regulator.vdd-cpus.enable_cnt: 0 > hw.regulator.vdd-cpus.enable_delay: 0 > hw.regulator.vdd-cpus.ramp_delay: 0 > hw.regulator.vdd-cpus.max_uamp: 0 > hw.regulator.vdd-cpus.min_uamp: 0 > hw.regulator.vdd-cpus.max_uvolt: 1100000 > hw.regulator.vdd-cpus.min_uvolt: 1100000 > hw.regulator.vcc-1v2-hsic.uvolt: 1200000 > hw.regulator.vcc-1v2-hsic.always_on: 0 > hw.regulator.vcc-1v2-hsic.boot_on: 0 > hw.regulator.vcc-1v2-hsic.enable_cnt: 0 > hw.regulator.vcc-1v2-hsic.enable_delay: 0 > hw.regulator.vcc-1v2-hsic.ramp_delay: 0 > hw.regulator.vcc-1v2-hsic.max_uamp: 0 > hw.regulator.vcc-1v2-hsic.min_uamp: 0 > hw.regulator.vcc-1v2-hsic.max_uvolt: 1200000 > hw.regulator.vcc-1v2-hsic.min_uvolt: 1200000 > hw.regulator.eldo3.always_on: 0 > hw.regulator.eldo3.boot_on: 0 > hw.regulator.eldo3.enable_cnt: 0 > hw.regulator.eldo3.enable_delay: 0 > hw.regulator.eldo3.ramp_delay: 0 > hw.regulator.eldo3.max_uamp: 0 > hw.regulator.eldo3.min_uamp: 0 > hw.regulator.eldo3.max_uvolt: 1900000 > hw.regulator.eldo3.min_uvolt: 700000 > hw.regulator.vcc-dvdd-csi.uvolt: 1800000 > hw.regulator.vcc-dvdd-csi.always_on: 0 > hw.regulator.vcc-dvdd-csi.boot_on: 0 > hw.regulator.vcc-dvdd-csi.enable_cnt: 0 > hw.regulator.vcc-dvdd-csi.enable_delay: 0 > hw.regulator.vcc-dvdd-csi.ramp_delay: 0 > hw.regulator.vcc-dvdd-csi.max_uamp: 0 > hw.regulator.vcc-dvdd-csi.min_uamp: 0 > hw.regulator.vcc-dvdd-csi.max_uvolt: 1800000 > hw.regulator.vcc-dvdd-csi.min_uvolt: 1800000 > hw.regulator.cpvdd.uvolt: 1800000 > hw.regulator.cpvdd.always_on: 0 > hw.regulator.cpvdd.boot_on: 0 > hw.regulator.cpvdd.enable_cnt: 0 > hw.regulator.cpvdd.enable_delay: 0 > hw.regulator.cpvdd.ramp_delay: 0 > hw.regulator.cpvdd.max_uamp: 0 > hw.regulator.cpvdd.min_uamp: 0 > hw.regulator.cpvdd.max_uvolt: 1800000 > hw.regulator.cpvdd.min_uvolt: 1800000 > hw.regulator.vcc-pll-avcc.uvolt: 3000000 > hw.regulator.vcc-pll-avcc.always_on: 1 > hw.regulator.vcc-pll-avcc.boot_on: 0 > hw.regulator.vcc-pll-avcc.enable_cnt: 0 > hw.regulator.vcc-pll-avcc.enable_delay: 0 > hw.regulator.vcc-pll-avcc.ramp_delay: 0 > hw.regulator.vcc-pll-avcc.max_uamp: 0 > hw.regulator.vcc-pll-avcc.min_uamp: 0 > hw.regulator.vcc-pll-avcc.max_uvolt: 3000000 > hw.regulator.vcc-pll-avcc.min_uvolt: 3000000 > hw.regulator.vcc-pl.uvolt: 3300000 > hw.regulator.vcc-pl.always_on: 1 > hw.regulator.vcc-pl.boot_on: 0 > hw.regulator.vcc-pl.enable_cnt: 0 > hw.regulator.vcc-pl.enable_delay: 0 > hw.regulator.vcc-pl.ramp_delay: 0 > hw.regulator.vcc-pl.max_uamp: 0 > hw.regulator.vcc-pl.min_uamp: 0 > hw.regulator.vcc-pl.max_uvolt: 3300000 > hw.regulator.vcc-pl.min_uvolt: 3300000 > hw.regulator.vcc-pe.uvolt: 2800000 > hw.regulator.vcc-pe.always_on: 1 > hw.regulator.vcc-pe.boot_on: 0 > hw.regulator.vcc-pe.enable_cnt: 0 > hw.regulator.vcc-pe.enable_delay: 0 > hw.regulator.vcc-pe.ramp_delay: 0 > hw.regulator.vcc-pe.max_uamp: 0 > hw.regulator.vcc-pe.min_uamp: 0 > hw.regulator.vcc-pe.max_uvolt: 2800000 > hw.regulator.vcc-pe.min_uvolt: 2800000 I've just realized that boot_on isn't 1 so u-boot will not enabled the regulator and we won't too. I guess that Linux (or armbian) hack on this. We are not supposed to enable a regulator if boot-on is set, only the bootloader is supposed to do that. And the always-on property is only there so we don't disable it if no device "claimed" it. The proper patch would be to set the boot-on property in the dts used by u-boot. Easiest way to test that is to : $ cd freebsd-ports/sysutils/u-boot-a64-olinuxino/ $ make patch ... $ edit work/u-boot-2019.07/arch/arm/dts/sun50i-a64-olinuxino.dts and add 'regulator-boot-on;' under the '®_aldo1' node. $ make $ dd the new u-boot > hw.regulator.vcc-wifi-io.uvolt: 3300000 > hw.regulator.vcc-wifi-io.always_on: 0 > hw.regulator.vcc-wifi-io.boot_on: 0 > hw.regulator.vcc-wifi-io.enable_cnt: 0 > hw.regulator.vcc-wifi-io.enable_delay: 0 > hw.regulator.vcc-wifi-io.ramp_delay: 0 > hw.regulator.vcc-wifi-io.max_uamp: 0 > hw.regulator.vcc-wifi-io.min_uamp: 0 > hw.regulator.vcc-wifi-io.max_uvolt: 3300000 > hw.regulator.vcc-wifi-io.min_uvolt: 3300000 > hw.regulator.vcc-avdd-csi.uvolt: 2800000 > hw.regulator.vcc-avdd-csi.always_on: 0 > hw.regulator.vcc-avdd-csi.boot_on: 0 > hw.regulator.vcc-avdd-csi.enable_cnt: 0 > hw.regulator.vcc-avdd-csi.enable_delay: 0 > hw.regulator.vcc-avdd-csi.ramp_delay: 0 > hw.regulator.vcc-avdd-csi.max_uamp: 0 > hw.regulator.vcc-avdd-csi.min_uamp: 0 > hw.regulator.vcc-avdd-csi.max_uvolt: 2800000 > hw.regulator.vcc-avdd-csi.min_uvolt: 2800000 > hw.regulator.vcc-mipi.uvolt: 3300000 > hw.regulator.vcc-mipi.always_on: 0 > hw.regulator.vcc-mipi.boot_on: 0 > hw.regulator.vcc-mipi.enable_cnt: 0 > hw.regulator.vcc-mipi.enable_delay: 0 > hw.regulator.vcc-mipi.ramp_delay: 0 > hw.regulator.vcc-mipi.max_uamp: 0 > hw.regulator.vcc-mipi.min_uamp: 0 > hw.regulator.vcc-mipi.max_uvolt: 3300000 > hw.regulator.vcc-mipi.min_uvolt: 3300000 > hw.regulator.vcc-hdmi.uvolt: 3300000 > hw.regulator.vcc-hdmi.always_on: 0 > hw.regulator.vcc-hdmi.boot_on: 0 > hw.regulator.vcc-hdmi.enable_cnt: 0 > hw.regulator.vcc-hdmi.enable_delay: 0 > hw.regulator.vcc-hdmi.ramp_delay: 0 > hw.regulator.vcc-hdmi.max_uamp: 0 > hw.regulator.vcc-hdmi.min_uamp: 0 > hw.regulator.vcc-hdmi.max_uvolt: 3300000 > hw.regulator.vcc-hdmi.min_uvolt: 3300000 > hw.regulator.vdd-sys.uvolt: 1100000 > hw.regulator.vdd-sys.always_on: 1 > hw.regulator.vdd-sys.boot_on: 0 > hw.regulator.vdd-sys.enable_cnt: 0 > hw.regulator.vdd-sys.enable_delay: 0 > hw.regulator.vdd-sys.ramp_delay: 0 > hw.regulator.vdd-sys.max_uamp: 0 > hw.regulator.vdd-sys.min_uamp: 0 > hw.regulator.vdd-sys.max_uvolt: 1100000 > hw.regulator.vdd-sys.min_uvolt: 1100000 > hw.regulator.vcc-ddr3.uvolt: 1360000 > hw.regulator.vcc-ddr3.always_on: 1 > hw.regulator.vcc-ddr3.boot_on: 0 > hw.regulator.vcc-ddr3.enable_cnt: 0 > hw.regulator.vcc-ddr3.enable_delay: 0 > hw.regulator.vcc-ddr3.ramp_delay: 0 > hw.regulator.vcc-ddr3.max_uamp: 0 > hw.regulator.vcc-ddr3.min_uamp: 0 > hw.regulator.vcc-ddr3.max_uvolt: 1360000 > hw.regulator.vcc-ddr3.min_uvolt: 1360000 > hw.regulator.dcdc4.uvolt: 1100000 > hw.regulator.dcdc4.always_on: 0 > hw.regulator.dcdc4.boot_on: 0 > hw.regulator.dcdc4.enable_cnt: 0 > hw.regulator.dcdc4.enable_delay: 0 > hw.regulator.dcdc4.ramp_delay: 0 > hw.regulator.dcdc4.max_uamp: 0 > hw.regulator.dcdc4.min_uamp: 0 > hw.regulator.dcdc4.max_uvolt: 1300000 > hw.regulator.dcdc4.min_uvolt: 500000 > hw.regulator.dcdc3.uvolt: 1100000 > hw.regulator.dcdc3.always_on: 0 > hw.regulator.dcdc3.boot_on: 0 > hw.regulator.dcdc3.enable_cnt: 0 > hw.regulator.dcdc3.enable_delay: 0 > hw.regulator.dcdc3.ramp_delay: 0 > hw.regulator.dcdc3.max_uamp: 0 > hw.regulator.dcdc3.min_uamp: 0 > hw.regulator.dcdc3.max_uvolt: 1300000 > hw.regulator.dcdc3.min_uvolt: 500000 > hw.regulator.vdd-cpux.uvolt: 1100000 > hw.regulator.vdd-cpux.always_on: 1 > hw.regulator.vdd-cpux.boot_on: 0 > hw.regulator.vdd-cpux.enable_cnt: 0 > hw.regulator.vdd-cpux.enable_delay: 0 > hw.regulator.vdd-cpux.ramp_delay: 0 > hw.regulator.vdd-cpux.max_uamp: 0 > hw.regulator.vdd-cpux.min_uamp: 0 > hw.regulator.vdd-cpux.max_uvolt: 1300000 > hw.regulator.vdd-cpux.min_uvolt: 1040000 > hw.regulator.vcc-3v3.uvolt: 3300000 > hw.regulator.vcc-3v3.always_on: 1 > hw.regulator.vcc-3v3.boot_on: 0 > hw.regulator.vcc-3v3.enable_cnt: 2 > hw.regulator.vcc-3v3.enable_delay: 0 > hw.regulator.vcc-3v3.ramp_delay: 0 > hw.regulator.vcc-3v3.max_uamp: 0 > hw.regulator.vcc-3v3.min_uamp: 0 > hw.regulator.vcc-3v3.max_uvolt: 3300000 > hw.regulator.vcc-3v3.min_uvolt: 3300000 > hw.regulator.usb1-vbus.uvolt: 5000000 > hw.regulator.usb1-vbus.always_on: 0 > hw.regulator.usb1-vbus.boot_on: 1 > hw.regulator.usb1-vbus.enable_cnt: 1 > hw.regulator.usb1-vbus.enable_delay: 0 > hw.regulator.usb1-vbus.ramp_delay: 0 > hw.regulator.usb1-vbus.max_uamp: 0 > hw.regulator.usb1-vbus.min_uamp: 0 > hw.regulator.usb1-vbus.max_uvolt: 5000000 > hw.regulator.usb1-vbus.min_uvolt: 5000000 > > On Tue, Oct 15, 2019 at 11:59 AM Emmanuel Vadot > wrote: > > > On Tue, 15 Oct 2019 11:46:14 -0400 > > Gary Otten wrote: > > > > > Thanks for your response. > > > > > > Freebsd Version 12.0-STABLE > > > > > > root@:/dev # sysctl hw.regulator.vcc-pe > > > hw.regulator.vcc-pe.uvolt: 2800000 > > > hw.regulator.vcc-pe.always_on: 1 > > > hw.regulator.vcc-pe.boot_on: 0 > > > hw.regulator.vcc-pe.enable_cnt: 0 > > > > That's the problem. > > Can you try with hw.regulator.disable_unused=0 in /boot/loader.conf ? > > Something is wrong somewhere as we should enable this regulator as the > > always-on prop is set. I'll try to have a look this week. > > > > > hw.regulator.vcc-pe.enable_delay: 0 > > > hw.regulator.vcc-pe.ramp_delay: 0 > > > hw.regulator.vcc-pe.max_uamp: 0 > > > hw.regulator.vcc-pe.min_uamp: 0 > > > hw.regulator.vcc-pe.max_uvolt: 2800000 > > > hw.regulator.vcc-pe.min_uvolt: 2800000 > > > > > > Yes I am testing the pins with a multimeter, I am not seeing any voltage > > > swings at all on Port E. On the external connector I see 5V on pin 1, > > 3.3 > > > on pin 3 and the correct voltage( software setting) on the other pins, > > > except bank E. > > > > > > PB0-PB4 voltage corresponds to software setting. > > > PC4,PC7 voltage corresponds to software setting. > > > PE0-PE17 no voltage swings, doesn't work. > > > PL7-PL12 voltage corresponds to software setting. > > > > > > I don't know if it will help, but if I make output on a pin low, still > > > when I switch the that pin from In to out, , I see a small voltage swing > > > in the milli volt range, but when I switch the PE pins from in to out, I > > > don't see that small swing. Its as if they is no software connection to > > > the PE pins. > > > > > > On Tue, Oct 15, 2019 at 7:18 AM Emmanuel Vadot > > > wrote: > > > > > > > > > > > Hi Gary, > > > > > > > > On Mon, 14 Oct 2019 14:46:12 -0400 > > > > Gary Otten wrote: > > > > > > > > > I have successfully booted the FreeBSD on the Olimex board which has > > the > > > > > Allwinner A64. I have been experimenting with the gpios, again with > > > > > success. However the 40 pin connector on the Olimex board exposes > > GPIO > > > > pins > > > > > PB0 - PB4 which function normally (voltage corresponds to software > > > > setting > > > > > for that pin) and then PE0-PE17 which don't. I have played with > > most > > > > > of the PE0- PE17 pins with various settings, again nothing works, no > > > > signs > > > > > of activity. I have successfully lit the LED (PE17) with the armbian > > > > > (linux) distribution for this board so I know it should work. > > > > > > > > > > Example > > > > > gpioctl -f /dev/gpioc0 -c PB0 OUT > > > > > gpioctl -f /dev/gpioc0 PB0 1 > > > > > > > > > > The pin PB0 then goes high (1) as expected. > > > > > > > > > > gpioctl -f /dev/gpioc0 -c PE17 OUT > > > > > gpioctl -f /dev/gpioc0 PE17 1 > > > > > > > > > > No activity on PE17 > > > > > > > > > > > > > > > I have dug into the the driver code a bit and the files containing > > the > > > > > settings for this board/processor, but I have had no luck figuring it > > > > out. > > > > > I have studied the Allwinner a64 manual but I haven't had luck > > figuring > > > > > out any other settings that might work. I think I am missing a > > simple > > > > > setting but can't figure it out, does anyone know how to get pins > > PE0 to > > > > > PE17 to work? Thanks. > > > > > > > > What version of FreeBSD are you booting on this board ? > > > > PE is a bit special on the Olinuxino as it's also used for MIPI-CSI > > > > and it's drived at 2.8V by default. It's using the regulator ALDO1 from > > > > the AXP PMIC and you should be able to confirm that it's enabled by > > > > doing sysctl hw.regulator.vcc-pe > > > > Check for the .enable sysctl > > > > It should be on as there is the always-on property in the DTS. > > > > By default I think that the gpio pins are configured for 20mA so I > > > > don't know if it would be enough for this led. If you have a multimeter > > > > it would be good to confirm if you have any voltage on the ext > > > > connector (you can use any PE pins, from what I see from the schematics > > > > they are all safe to play with). > > > > > > > > -- > > > > Emmanuel Vadot > > > > > > > > > > -- > > Emmanuel Vadot > > -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Fri Oct 18 11:43:30 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 4BADB14DC0A for ; Fri, 18 Oct 2019 11:43:30 +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 46vkgh6cctz4Sfm; Fri, 18 Oct 2019 11:43:28 +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 a1d78953; Fri, 18 Oct 2019 13:43:27 +0200 (CEST) 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=feWmfaF/uGOyGp3oe5EWhQolSf0=; b=lC2VZ0rBGB2MvuSgsQk6wJw4CVV/ sb7s0oRT3EG5WPzS0ruCNb+EtWoKIj92OByNBJqfiMxaxPLCGydzO41sAK9xNWd4 iX4QKF9Kjnlao7SqKdRCZX5I8t5EGY57qBM7Qwr+puaiSAV9YrBXnoYj0gKWY+NR 9uiQokGe05miPp4= 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=EEYKmJqHCk/F6/ZAR+mp1oFNG9nEsUzIewvYHDJY+wImJ8pezgkYMCu2 cMDyp1lc+yM7LBjlUv1b923rj3eL4kv9g9/TDTkVxtNbdJ0uHkHsR43J9ojTTNs9 Fe8aN4Yrq/CKIHDlVeNvNcbodopmiXy+gk9IvyTKOMeenS5RMpc= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id a29c590c TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 18 Oct 2019 13:43:27 +0200 (CEST) Date: Fri, 18 Oct 2019 13:43:26 +0200 From: Emmanuel Vadot To: Emmanuel Vadot Cc: Gary Otten , freebsd-arm@freebsd.org, mmel@freebsd.org Subject: Re: GPIO on Olimex A64 board. Bank E not working. Message-Id: <20191018134326.dce3f37b8418ea9a2c0095a1@bidouilliste.com> In-Reply-To: <20191018133131.3063a80860e4906e0fd67f2c@bidouilliste.com> References: <20191015131842.370e113b9f494ead760b9b6f@bidouilliste.com> <20191015175901.1d0173f27798f15c25c037de@bidouilliste.com> <20191018133131.3063a80860e4906e0fd67f2c@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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46vkgh6cctz4Sfm X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=lC2VZ0rB; 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.88 / 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.51)[-0.514,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; R_SPF_ALLOW(-0.20)[+ip4:212.83.177.182/32]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[bidouilliste.com]; NEURAL_HAM_LONG(-0.84)[-0.843,0]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.65), ipnet: 212.83.160.0/19(2.44), asn: 12876(0.11), country: FR(-0.00)]; 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: Fri, 18 Oct 2019 11:43:30 -0000 On Fri, 18 Oct 2019 13:31:31 +0200 Emmanuel Vadot wrote: > On Tue, 15 Oct 2019 13:26:46 -0400 > Gary Otten wrote: > > > Ok, I placed hw.regulator.disable_unused=0 in /boot/loader.conf. Here is > > the results, also still no output on the E bank. > > > > root@:/dev # sysctl hw.regulator > > hw.regulator.dc1sw.uvolt: 0 > > hw.regulator.dc1sw.always_on: 0 > > hw.regulator.dc1sw.boot_on: 0 > > hw.regulator.dc1sw.enable_cnt: 0 > > hw.regulator.dc1sw.enable_delay: 0 > > hw.regulator.dc1sw.ramp_delay: 0 > > hw.regulator.dc1sw.max_uamp: 0 > > hw.regulator.dc1sw.min_uamp: 0 > > hw.regulator.dc1sw.max_uvolt: 0 > > hw.regulator.dc1sw.min_uvolt: 0 > > hw.regulator.ldo-io1.always_on: 0 > > hw.regulator.ldo-io1.boot_on: 0 > > hw.regulator.ldo-io1.enable_cnt: 0 > > hw.regulator.ldo-io1.enable_delay: 0 > > hw.regulator.ldo-io1.ramp_delay: 0 > > hw.regulator.ldo-io1.max_uamp: 0 > > hw.regulator.ldo-io1.min_uamp: 0 > > hw.regulator.ldo-io1.max_uvolt: 3300000 > > hw.regulator.ldo-io1.min_uvolt: 700000 > > hw.regulator.ldo-io0.always_on: 0 > > hw.regulator.ldo-io0.boot_on: 0 > > hw.regulator.ldo-io0.enable_cnt: 0 > > hw.regulator.ldo-io0.enable_delay: 0 > > hw.regulator.ldo-io0.ramp_delay: 0 > > hw.regulator.ldo-io0.max_uamp: 0 > > hw.regulator.ldo-io0.min_uamp: 0 > > hw.regulator.ldo-io0.max_uvolt: 3300000 > > hw.regulator.ldo-io0.min_uvolt: 700000 > > hw.regulator.vdd-cpus.uvolt: 1100000 > > hw.regulator.vdd-cpus.always_on: 1 > > hw.regulator.vdd-cpus.boot_on: 0 > > hw.regulator.vdd-cpus.enable_cnt: 0 > > hw.regulator.vdd-cpus.enable_delay: 0 > > hw.regulator.vdd-cpus.ramp_delay: 0 > > hw.regulator.vdd-cpus.max_uamp: 0 > > hw.regulator.vdd-cpus.min_uamp: 0 > > hw.regulator.vdd-cpus.max_uvolt: 1100000 > > hw.regulator.vdd-cpus.min_uvolt: 1100000 > > hw.regulator.vcc-1v2-hsic.uvolt: 1200000 > > hw.regulator.vcc-1v2-hsic.always_on: 0 > > hw.regulator.vcc-1v2-hsic.boot_on: 0 > > hw.regulator.vcc-1v2-hsic.enable_cnt: 0 > > hw.regulator.vcc-1v2-hsic.enable_delay: 0 > > hw.regulator.vcc-1v2-hsic.ramp_delay: 0 > > hw.regulator.vcc-1v2-hsic.max_uamp: 0 > > hw.regulator.vcc-1v2-hsic.min_uamp: 0 > > hw.regulator.vcc-1v2-hsic.max_uvolt: 1200000 > > hw.regulator.vcc-1v2-hsic.min_uvolt: 1200000 > > hw.regulator.eldo3.always_on: 0 > > hw.regulator.eldo3.boot_on: 0 > > hw.regulator.eldo3.enable_cnt: 0 > > hw.regulator.eldo3.enable_delay: 0 > > hw.regulator.eldo3.ramp_delay: 0 > > hw.regulator.eldo3.max_uamp: 0 > > hw.regulator.eldo3.min_uamp: 0 > > hw.regulator.eldo3.max_uvolt: 1900000 > > hw.regulator.eldo3.min_uvolt: 700000 > > hw.regulator.vcc-dvdd-csi.uvolt: 1800000 > > hw.regulator.vcc-dvdd-csi.always_on: 0 > > hw.regulator.vcc-dvdd-csi.boot_on: 0 > > hw.regulator.vcc-dvdd-csi.enable_cnt: 0 > > hw.regulator.vcc-dvdd-csi.enable_delay: 0 > > hw.regulator.vcc-dvdd-csi.ramp_delay: 0 > > hw.regulator.vcc-dvdd-csi.max_uamp: 0 > > hw.regulator.vcc-dvdd-csi.min_uamp: 0 > > hw.regulator.vcc-dvdd-csi.max_uvolt: 1800000 > > hw.regulator.vcc-dvdd-csi.min_uvolt: 1800000 > > hw.regulator.cpvdd.uvolt: 1800000 > > hw.regulator.cpvdd.always_on: 0 > > hw.regulator.cpvdd.boot_on: 0 > > hw.regulator.cpvdd.enable_cnt: 0 > > hw.regulator.cpvdd.enable_delay: 0 > > hw.regulator.cpvdd.ramp_delay: 0 > > hw.regulator.cpvdd.max_uamp: 0 > > hw.regulator.cpvdd.min_uamp: 0 > > hw.regulator.cpvdd.max_uvolt: 1800000 > > hw.regulator.cpvdd.min_uvolt: 1800000 > > hw.regulator.vcc-pll-avcc.uvolt: 3000000 > > hw.regulator.vcc-pll-avcc.always_on: 1 > > hw.regulator.vcc-pll-avcc.boot_on: 0 > > hw.regulator.vcc-pll-avcc.enable_cnt: 0 > > hw.regulator.vcc-pll-avcc.enable_delay: 0 > > hw.regulator.vcc-pll-avcc.ramp_delay: 0 > > hw.regulator.vcc-pll-avcc.max_uamp: 0 > > hw.regulator.vcc-pll-avcc.min_uamp: 0 > > hw.regulator.vcc-pll-avcc.max_uvolt: 3000000 > > hw.regulator.vcc-pll-avcc.min_uvolt: 3000000 > > hw.regulator.vcc-pl.uvolt: 3300000 > > hw.regulator.vcc-pl.always_on: 1 > > hw.regulator.vcc-pl.boot_on: 0 > > hw.regulator.vcc-pl.enable_cnt: 0 > > hw.regulator.vcc-pl.enable_delay: 0 > > hw.regulator.vcc-pl.ramp_delay: 0 > > hw.regulator.vcc-pl.max_uamp: 0 > > hw.regulator.vcc-pl.min_uamp: 0 > > hw.regulator.vcc-pl.max_uvolt: 3300000 > > hw.regulator.vcc-pl.min_uvolt: 3300000 > > hw.regulator.vcc-pe.uvolt: 2800000 > > hw.regulator.vcc-pe.always_on: 1 > > hw.regulator.vcc-pe.boot_on: 0 > > hw.regulator.vcc-pe.enable_cnt: 0 > > hw.regulator.vcc-pe.enable_delay: 0 > > hw.regulator.vcc-pe.ramp_delay: 0 > > hw.regulator.vcc-pe.max_uamp: 0 > > hw.regulator.vcc-pe.min_uamp: 0 > > hw.regulator.vcc-pe.max_uvolt: 2800000 > > hw.regulator.vcc-pe.min_uvolt: 2800000 > > I've just realized that boot_on isn't 1 so u-boot will not enabled the > regulator and we won't too. > I guess that Linux (or armbian) hack on this. We are not supposed to > enable a regulator if boot-on is set, only the bootloader is supposed > to do that. And the always-on property is only there so we don't > disable it if no device "claimed" it. So, after asking on some linux-related irc channel, it seems that the Linux kernel enable a regulator if always-on or boot-on is set which doesn't reflect what the binding docs says and the regulator framework on FreeBSD is based on what the doc says ... I guess we should do the same. mmel@ what's your view on this ? > The proper patch would be to set the boot-on property in the dts used > by u-boot. Easiest way to test that is to : > > $ cd freebsd-ports/sysutils/u-boot-a64-olinuxino/ > $ make patch > ... > $ edit work/u-boot-2019.07/arch/arm/dts/sun50i-a64-olinuxino.dts and > add 'regulator-boot-on;' under the '®_aldo1' node. > $ make > $ dd the new u-boot > > > hw.regulator.vcc-wifi-io.uvolt: 3300000 > > hw.regulator.vcc-wifi-io.always_on: 0 > > hw.regulator.vcc-wifi-io.boot_on: 0 > > hw.regulator.vcc-wifi-io.enable_cnt: 0 > > hw.regulator.vcc-wifi-io.enable_delay: 0 > > hw.regulator.vcc-wifi-io.ramp_delay: 0 > > hw.regulator.vcc-wifi-io.max_uamp: 0 > > hw.regulator.vcc-wifi-io.min_uamp: 0 > > hw.regulator.vcc-wifi-io.max_uvolt: 3300000 > > hw.regulator.vcc-wifi-io.min_uvolt: 3300000 > > hw.regulator.vcc-avdd-csi.uvolt: 2800000 > > hw.regulator.vcc-avdd-csi.always_on: 0 > > hw.regulator.vcc-avdd-csi.boot_on: 0 > > hw.regulator.vcc-avdd-csi.enable_cnt: 0 > > hw.regulator.vcc-avdd-csi.enable_delay: 0 > > hw.regulator.vcc-avdd-csi.ramp_delay: 0 > > hw.regulator.vcc-avdd-csi.max_uamp: 0 > > hw.regulator.vcc-avdd-csi.min_uamp: 0 > > hw.regulator.vcc-avdd-csi.max_uvolt: 2800000 > > hw.regulator.vcc-avdd-csi.min_uvolt: 2800000 > > hw.regulator.vcc-mipi.uvolt: 3300000 > > hw.regulator.vcc-mipi.always_on: 0 > > hw.regulator.vcc-mipi.boot_on: 0 > > hw.regulator.vcc-mipi.enable_cnt: 0 > > hw.regulator.vcc-mipi.enable_delay: 0 > > hw.regulator.vcc-mipi.ramp_delay: 0 > > hw.regulator.vcc-mipi.max_uamp: 0 > > hw.regulator.vcc-mipi.min_uamp: 0 > > hw.regulator.vcc-mipi.max_uvolt: 3300000 > > hw.regulator.vcc-mipi.min_uvolt: 3300000 > > hw.regulator.vcc-hdmi.uvolt: 3300000 > > hw.regulator.vcc-hdmi.always_on: 0 > > hw.regulator.vcc-hdmi.boot_on: 0 > > hw.regulator.vcc-hdmi.enable_cnt: 0 > > hw.regulator.vcc-hdmi.enable_delay: 0 > > hw.regulator.vcc-hdmi.ramp_delay: 0 > > hw.regulator.vcc-hdmi.max_uamp: 0 > > hw.regulator.vcc-hdmi.min_uamp: 0 > > hw.regulator.vcc-hdmi.max_uvolt: 3300000 > > hw.regulator.vcc-hdmi.min_uvolt: 3300000 > > hw.regulator.vdd-sys.uvolt: 1100000 > > hw.regulator.vdd-sys.always_on: 1 > > hw.regulator.vdd-sys.boot_on: 0 > > hw.regulator.vdd-sys.enable_cnt: 0 > > hw.regulator.vdd-sys.enable_delay: 0 > > hw.regulator.vdd-sys.ramp_delay: 0 > > hw.regulator.vdd-sys.max_uamp: 0 > > hw.regulator.vdd-sys.min_uamp: 0 > > hw.regulator.vdd-sys.max_uvolt: 1100000 > > hw.regulator.vdd-sys.min_uvolt: 1100000 > > hw.regulator.vcc-ddr3.uvolt: 1360000 > > hw.regulator.vcc-ddr3.always_on: 1 > > hw.regulator.vcc-ddr3.boot_on: 0 > > hw.regulator.vcc-ddr3.enable_cnt: 0 > > hw.regulator.vcc-ddr3.enable_delay: 0 > > hw.regulator.vcc-ddr3.ramp_delay: 0 > > hw.regulator.vcc-ddr3.max_uamp: 0 > > hw.regulator.vcc-ddr3.min_uamp: 0 > > hw.regulator.vcc-ddr3.max_uvolt: 1360000 > > hw.regulator.vcc-ddr3.min_uvolt: 1360000 > > hw.regulator.dcdc4.uvolt: 1100000 > > hw.regulator.dcdc4.always_on: 0 > > hw.regulator.dcdc4.boot_on: 0 > > hw.regulator.dcdc4.enable_cnt: 0 > > hw.regulator.dcdc4.enable_delay: 0 > > hw.regulator.dcdc4.ramp_delay: 0 > > hw.regulator.dcdc4.max_uamp: 0 > > hw.regulator.dcdc4.min_uamp: 0 > > hw.regulator.dcdc4.max_uvolt: 1300000 > > hw.regulator.dcdc4.min_uvolt: 500000 > > hw.regulator.dcdc3.uvolt: 1100000 > > hw.regulator.dcdc3.always_on: 0 > > hw.regulator.dcdc3.boot_on: 0 > > hw.regulator.dcdc3.enable_cnt: 0 > > hw.regulator.dcdc3.enable_delay: 0 > > hw.regulator.dcdc3.ramp_delay: 0 > > hw.regulator.dcdc3.max_uamp: 0 > > hw.regulator.dcdc3.min_uamp: 0 > > hw.regulator.dcdc3.max_uvolt: 1300000 > > hw.regulator.dcdc3.min_uvolt: 500000 > > hw.regulator.vdd-cpux.uvolt: 1100000 > > hw.regulator.vdd-cpux.always_on: 1 > > hw.regulator.vdd-cpux.boot_on: 0 > > hw.regulator.vdd-cpux.enable_cnt: 0 > > hw.regulator.vdd-cpux.enable_delay: 0 > > hw.regulator.vdd-cpux.ramp_delay: 0 > > hw.regulator.vdd-cpux.max_uamp: 0 > > hw.regulator.vdd-cpux.min_uamp: 0 > > hw.regulator.vdd-cpux.max_uvolt: 1300000 > > hw.regulator.vdd-cpux.min_uvolt: 1040000 > > hw.regulator.vcc-3v3.uvolt: 3300000 > > hw.regulator.vcc-3v3.always_on: 1 > > hw.regulator.vcc-3v3.boot_on: 0 > > hw.regulator.vcc-3v3.enable_cnt: 2 > > hw.regulator.vcc-3v3.enable_delay: 0 > > hw.regulator.vcc-3v3.ramp_delay: 0 > > hw.regulator.vcc-3v3.max_uamp: 0 > > hw.regulator.vcc-3v3.min_uamp: 0 > > hw.regulator.vcc-3v3.max_uvolt: 3300000 > > hw.regulator.vcc-3v3.min_uvolt: 3300000 > > hw.regulator.usb1-vbus.uvolt: 5000000 > > hw.regulator.usb1-vbus.always_on: 0 > > hw.regulator.usb1-vbus.boot_on: 1 > > hw.regulator.usb1-vbus.enable_cnt: 1 > > hw.regulator.usb1-vbus.enable_delay: 0 > > hw.regulator.usb1-vbus.ramp_delay: 0 > > hw.regulator.usb1-vbus.max_uamp: 0 > > hw.regulator.usb1-vbus.min_uamp: 0 > > hw.regulator.usb1-vbus.max_uvolt: 5000000 > > hw.regulator.usb1-vbus.min_uvolt: 5000000 > > > > On Tue, Oct 15, 2019 at 11:59 AM Emmanuel Vadot > > wrote: > > > > > On Tue, 15 Oct 2019 11:46:14 -0400 > > > Gary Otten wrote: > > > > > > > Thanks for your response. > > > > > > > > Freebsd Version 12.0-STABLE > > > > > > > > root@:/dev # sysctl hw.regulator.vcc-pe > > > > hw.regulator.vcc-pe.uvolt: 2800000 > > > > hw.regulator.vcc-pe.always_on: 1 > > > > hw.regulator.vcc-pe.boot_on: 0 > > > > hw.regulator.vcc-pe.enable_cnt: 0 > > > > > > That's the problem. > > > Can you try with hw.regulator.disable_unused=0 in /boot/loader.conf ? > > > Something is wrong somewhere as we should enable this regulator as the > > > always-on prop is set. I'll try to have a look this week. > > > > > > > hw.regulator.vcc-pe.enable_delay: 0 > > > > hw.regulator.vcc-pe.ramp_delay: 0 > > > > hw.regulator.vcc-pe.max_uamp: 0 > > > > hw.regulator.vcc-pe.min_uamp: 0 > > > > hw.regulator.vcc-pe.max_uvolt: 2800000 > > > > hw.regulator.vcc-pe.min_uvolt: 2800000 > > > > > > > > Yes I am testing the pins with a multimeter, I am not seeing any voltage > > > > swings at all on Port E. On the external connector I see 5V on pin 1, > > > 3.3 > > > > on pin 3 and the correct voltage( software setting) on the other pins, > > > > except bank E. > > > > > > > > PB0-PB4 voltage corresponds to software setting. > > > > PC4,PC7 voltage corresponds to software setting. > > > > PE0-PE17 no voltage swings, doesn't work. > > > > PL7-PL12 voltage corresponds to software setting. > > > > > > > > I don't know if it will help, but if I make output on a pin low, still > > > > when I switch the that pin from In to out, , I see a small voltage swing > > > > in the milli volt range, but when I switch the PE pins from in to out, I > > > > don't see that small swing. Its as if they is no software connection to > > > > the PE pins. > > > > > > > > On Tue, Oct 15, 2019 at 7:18 AM Emmanuel Vadot > > > > wrote: > > > > > > > > > > > > > > Hi Gary, > > > > > > > > > > On Mon, 14 Oct 2019 14:46:12 -0400 > > > > > Gary Otten wrote: > > > > > > > > > > > I have successfully booted the FreeBSD on the Olimex board which has > > > the > > > > > > Allwinner A64. I have been experimenting with the gpios, again with > > > > > > success. However the 40 pin connector on the Olimex board exposes > > > GPIO > > > > > pins > > > > > > PB0 - PB4 which function normally (voltage corresponds to software > > > > > setting > > > > > > for that pin) and then PE0-PE17 which don't. I have played with > > > most > > > > > > of the PE0- PE17 pins with various settings, again nothing works, no > > > > > signs > > > > > > of activity. I have successfully lit the LED (PE17) with the armbian > > > > > > (linux) distribution for this board so I know it should work. > > > > > > > > > > > > Example > > > > > > gpioctl -f /dev/gpioc0 -c PB0 OUT > > > > > > gpioctl -f /dev/gpioc0 PB0 1 > > > > > > > > > > > > The pin PB0 then goes high (1) as expected. > > > > > > > > > > > > gpioctl -f /dev/gpioc0 -c PE17 OUT > > > > > > gpioctl -f /dev/gpioc0 PE17 1 > > > > > > > > > > > > No activity on PE17 > > > > > > > > > > > > > > > > > > I have dug into the the driver code a bit and the files containing > > > the > > > > > > settings for this board/processor, but I have had no luck figuring it > > > > > out. > > > > > > I have studied the Allwinner a64 manual but I haven't had luck > > > figuring > > > > > > out any other settings that might work. I think I am missing a > > > simple > > > > > > setting but can't figure it out, does anyone know how to get pins > > > PE0 to > > > > > > PE17 to work? Thanks. > > > > > > > > > > What version of FreeBSD are you booting on this board ? > > > > > PE is a bit special on the Olinuxino as it's also used for MIPI-CSI > > > > > and it's drived at 2.8V by default. It's using the regulator ALDO1 from > > > > > the AXP PMIC and you should be able to confirm that it's enabled by > > > > > doing sysctl hw.regulator.vcc-pe > > > > > Check for the .enable sysctl > > > > > It should be on as there is the always-on property in the DTS. > > > > > By default I think that the gpio pins are configured for 20mA so I > > > > > don't know if it would be enough for this led. If you have a multimeter > > > > > it would be good to confirm if you have any voltage on the ext > > > > > connector (you can use any PE pins, from what I see from the schematics > > > > > they are all safe to play with). > > > > > > > > > > -- > > > > > Emmanuel Vadot > > > > > > > > > > > > > > -- > > > Emmanuel Vadot > > > > > > -- > Emmanuel Vadot > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Fri Oct 18 13:10:18 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 EF0D71505AB for ; Fri, 18 Oct 2019 13:10:18 +0000 (UTC) (envelope-from s199p.wa1k9r@gmail.com) Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46vmbs6cSRz4Y6F for ; Fri, 18 Oct 2019 13:10:17 +0000 (UTC) (envelope-from s199p.wa1k9r@gmail.com) Received: by mail-lj1-x234.google.com with SMTP id n14so6149625ljj.10 for ; Fri, 18 Oct 2019 06:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=3YvAKcv4jWlgrwkIFdrRo8GSd3D9rU5kvPIOL+JI2u4=; b=ER4pER4wF6JnBYTlkDocdW9lCNcVO22vDiEHP7jkPIAG9lVEK3JO/UrD+CEtSzKcHG uw8e35+qiaU8v2ee5p4aGTTAvbSoHO7Qk/cSbbYUQexMPXXi+/R/A/lbSna3G+FiulnI esx/W3WG4ce+wxSQxDFfExBE2A/BxFKyVvy1CXCLlpRee3Pzi2MXWz4WHaYW7023+Zg6 Ayo45PAVn9Ees2er0eW2Ft8Yu92YwRRZaBopCJy8c7guRYioOvuzbp/pBYGJY6Mf6pqb rW+g7hYk2yv5SWpgl/jXZoUu9cG3pKOXeM72ebnJFeVouMgjiyAE3q9ju9VeOKtV0UBH xJVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=3YvAKcv4jWlgrwkIFdrRo8GSd3D9rU5kvPIOL+JI2u4=; b=GKEWRFX5FRKWmbFxa5adBpIfZCCTKx2zSy52nkA32rshmYITSAOIXdMM1jwmG2O9gu 80AxUYyudiYJvWiDhXqhtbLWfeoaFi07XH5Syn2Wdpyaqs27MbpDpD7DYW94LZfq2mPT eGba+RcK07ilU+c4x70EHKicyiVyU3336NDVmGEsHOSDtnzWfTnTafOgvHxsmgid+ecf I052mgXv822REFsny7jOCYBF4FHwFVxGqQzp3fF3T+1qpRHVqKys5h54bPDC3BXhEiLc Lc2NBOQQIJs3gdWgcStsseELmHhSnrvd1qxYuyxXGA4Ut4o4k6uD4aB4Qvjg8+sM3nG3 fCxA== X-Gm-Message-State: APjAAAWgPHS9imclY9g10JHluhHdYBgYHzPeILZq9KdEHMQPNIuIgvwh rWaLQ+x8J5gwymyoBybibR+1GP6s3NXJneg9qnJ/xZm6 X-Google-Smtp-Source: APXvYqzJC7JWc1uNKCswsMlipsKS6Vf74BEn2hcIpywMswQqh3zx7HuuEH0nCxU76tYf8YfnXqeFEQ3mUtqZxa+daaM= X-Received: by 2002:a2e:286:: with SMTP id y6mr6308013lje.184.1571404215403; Fri, 18 Oct 2019 06:10:15 -0700 (PDT) MIME-Version: 1.0 From: Sleep Walker Date: Fri, 18 Oct 2019 16:10:04 +0300 Message-ID: Subject: FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 To: freebsd-arm@freebsd.org X-Rspamd-Queue-Id: 46vmbs6cSRz4Y6F X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ER4pER4w; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of s199pwa1k9r@gmail.com designates 2a00:1450:4864:20::234 as permitted sender) smtp.mailfrom=s199pwa1k9r@gmail.com X-Spamd-Result: default: False [-2.00 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(0.00)[ip: (-9.42), ipnet: 2a00:1450::/32(-2.84), asn: 15169(-2.09), country: US(-0.05)]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; IP_SCORE_FREEMAIL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[4.3.2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Fri, 18 Oct 2019 13:10:19 -0000 I successfully launched FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 https://dmesgd.nycbug.org/index.cgi?do=view&id=5154 Regards Sergey Tyuryukanv From owner-freebsd-arm@freebsd.org Fri Oct 18 13:39:15 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 05D11150FB2 for ; Fri, 18 Oct 2019 13:39:15 +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 46vnFF1yL3z4ZKB for ; Fri, 18 Oct 2019 13:39:12 +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 02d55b75; Fri, 18 Oct 2019 15:39:10 +0200 (CEST) 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=BGdmikakckhHl8Xit17O8/2ub54=; b=qvC6XsD2Df7GMU5wGTU7ZFgysUsA Dr0Ogdc4ElynyiROMWKLW6MDRAlEoiZEZn7qzkOiBSu1Y03L4I8JYfbbGbxVIUq9 RjHEIB9aeakYaaA5YzTOCINxcmQipfVXKONA4JEhC74cs8GGcTrp1HRCgyc4JKYz dM+LJXsr2GZ69ww= 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=XqJc87BIk3nYw9t2oLERW+9HAqX4DadmGbpRfCq+espVNwnXu7owNFFD MWl55akaYT17FleDp+ZVrVlTzfOFU26COX299lLkE1CLBDrqbwwpMZX0FtpTpB4l vHPkTzZI2gcoYzdTKnM84j5IJGzVdJr2xdo4Q35jLyYo0I3zj6M= Received: from skull.home.blih.net (ip-9.net-89-3-105.rev.numericable.fr [89.3.105.9]) by mail.blih.net (OpenSMTPD) with ESMTPSA id 67d68cf1 TLS version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO; Fri, 18 Oct 2019 15:39:10 +0200 (CEST) Date: Fri, 18 Oct 2019 15:39:10 +0200 From: Emmanuel Vadot To: Sleep Walker Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 Message-Id: <20191018153910.d0788e7736131ae514f74c0e@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46vnFF1yL3z4ZKB X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mail header.b=qvC6XsD2; 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 [-1.00 / 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.59)[-0.594,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(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.89)[-0.889,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_NO_TLS_LAST(0.10)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.38)[ip: (-0.64), ipnet: 212.83.160.0/19(2.43), asn: 12876(0.11), country: FR(-0.00)]; ASN(0.00)[asn:12876, ipnet:212.83.160.0/19, country:FR]; 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: Fri, 18 Oct 2019 13:39:15 -0000 On Fri, 18 Oct 2019 16:10:04 +0300 Sleep Walker wrote: > I successfully launched > FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 > > https://dmesgd.nycbug.org/index.cgi?do=view&id=5154 > > Regards > Sergey Tyuryukanv Nice ! Any patches needed ? -- Emmanuel Vadot From owner-freebsd-arm@freebsd.org Fri Oct 18 18:17:22 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 7A6BF158270 for ; Fri, 18 Oct 2019 18:17:22 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from c.mail.sonic.net (c.mail.sonic.net [64.142.111.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46vvQ943gFz3P4m for ; Fri, 18 Oct 2019 18:17:21 +0000 (UTC) (envelope-from pygr@sonic.net) Received: from [10.137.113.129] (108-169-4-232.dynamic.dsl.sonic.net [108.169.4.232] (may be forged)) (authenticated bits=0) by c.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id x9IIHG0Z008411 (version=TLSv1.2 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 18 Oct 2019 11:17:17 -0700 From: glenn Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: ClearFog Base serial console on FreeBSD 11.2? Date: Fri, 18 Oct 2019 11:17:16 -0700 References: To: freebsd-arm@freebsd.org In-Reply-To: Message-Id: <7478894E-DF5D-49D9-AFD5-4D6ADE1A2084@sonic.net> X-Mailer: Apple Mail (2.3445.9.1) X-Sonic-CAuth: UmFuZG9tSVZkj6ZwpTeHeTQyXp8hmxKtNkljhVKX/WnH9N4MEc4xBFqOfG6O36kgIWExX7hdQM6eEoEcAbaVBKvbTzldavl3 X-Sonic-ID: C;PlMbhNPx6RGVuLhhg01YJw== M;WK9jhNPx6RGVuLhhg01YJw== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-Rspamd-Queue-Id: 46vvQ943gFz3P4m X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of pygr@sonic.net has no SPF policy when checking 64.142.111.80) smtp.mailfrom=pygr@sonic.net X-Spamd-Result: default: False [4.14 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[232.4.169.108.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.10]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_DN_NONE(0.00)[]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_SPAM_MEDIUM(0.90)[0.899,0]; MIME_TRACE(0.00)[0:+]; IP_SCORE(-0.02)[asn: 7065(-0.04), country: US(-0.05)]; NEURAL_SPAM_LONG(0.96)[0.961,0]; DMARC_NA(0.00)[sonic.net]; R_SPF_NA(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[80.111.142.64.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:7065, ipnet:64.142.96.0/19, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] 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: Fri, 18 Oct 2019 18:17:22 -0000 Hi Marcin, Thank you for your quick response and suggestion, but it=E2=80=99s not = clear to me how to proceed. Attempts to compile (with dtc) the file = armada-388-gp.dts located in 11.2 sys/boot/fdt/dts/arm failed to include = files (like skeleton.dtsi and = dt-bindings/interrupt-controller/arm-gic.h) that weren=E2=80=99t there = but were in sys/gnu/dts. If dts files in 12.0 source are used to create dtb files, shouldn=E2=80=99= t those dtb files work with 11.2? I=E2=80=99ve also tried to get into a fresh install and boot of the OS = on the device via ssh, but without success. To that end, there is the = following /etc/rc.conf: hostname=3D=E2=80=9CFreeBSD11.2=E2=80=9D defaultrouter=3D=E2=80=9C10.137.113.1=E2=80=9D syslog_flags=3D=E2=80=9C-ss=E2=80=9D sshd_enable=3D=E2=80=9CYES=E2=80=9D ifconfig_mvneta0=3D=E2=80=9Cinet 10.137.113.200/24=E2=80=9D Pings to 10.137.113.200 fail as if nothing is there. Glenn > On Oct 17, 2019, at 4:03 PM, Marcin Wojtas wrote: >=20 > Hi Glenn, >=20 > The release/11.2.0 is missing a huge amount of patches for a38x, which > were merged later. However the initial support should work - please > try dts from sys/boot/fdt/dts/arm/. At that time the port was not > compatible with the Linux bindings from sys/gnu/dts/arm. >=20 > Please let know if it helped. >=20 > Best regards, > Marcin >=20 > pt., 18 pa=C5=BA 2019 o 00:40 glenn napisa=C5=82(a): >>=20 >> FreeBSD12.0 and 12.1 can be made to work properly on a ClearFog Base, = but so far, for 11.2, I haven=E2=80=99t been able to get an interactive = serial console after control is passed to the kernel during the boot = process. U-boot and ubldr.bin seem to work well. >>=20 >> ... >> U-Boot env: loaderdev not set, will probe all devices. >> Found U-Boot device: disk >> Probing all disk devices... >> Checking unit=3D0 slice=3D partition=3D... good. >> Booting from disk0s3a: >> /boot/kernel/kernel data=3D0x82c5e4+0xaba1c = syms=3D[0x4+0x8cd30+0x4+0xe2c1f] >> /boot/dtb/armada-388-clearfog.dtb size=3D0x675c >> Loading /boot/defaults/loader.conf >> / >> Hit [Enter] to boot immediately, or any other key for command prompt. >> Booting [/boot/kernel/kernel]... >> Using DTB from loaded file '/boot/dtb/armada-388-clearfog.dtb'. >> Kernel entry at 0xc00100... >> Kernel args: (null) >>=20 >>=20 >>=20 >> The reason for wanting to get 11.2 working is that, currently, = OPNsense doesn=E2=80=99t run on 12.0 or 12.1. >>=20 >> What does it take to get a serial console driver like uart-dev-snps.c = to work with 11.2? >>=20 >>=20 >> _______________________________________________ >> freebsd-arm@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-arm >> To unsubscribe, send any mail to = "freebsd-arm-unsubscribe@freebsd.org" >=20 From owner-freebsd-arm@freebsd.org Sat Oct 19 12:16:22 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 3D7F6163BC1 for ; Sat, 19 Oct 2019 12:16:22 +0000 (UTC) (envelope-from me@mko.io) Received: from sender4-of-o59.zoho.com (sender4-of-o59.zoho.com [136.143.188.59]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46wMM86wzfz4BS9 for ; Sat, 19 Oct 2019 12:16:20 +0000 (UTC) (envelope-from me@mko.io) ARC-Seal: i=1; a=rsa-sha256; t=1571487376; cv=none; d=zohomail.com; s=zohoarc; b=kyro7L52BM8MaWS4o1OWDKn4iboHIRrJneVTCJkE0aR3QSPeLSmgbIuesAerfJ8K0Jf07c+HRQ/cRB6tYKDX+Eo2Dxxs65UvwFnYpPS8dXCKmZJipMU6j4ZpekM4+Y9IhswOxUNi1M8t6xf74OzRxQYnGOrX6TuTz337xEaRH34= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1571487376; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:MIME-Version:Message-ID:References:Subject:To; bh=Ne3DenFMQEEDAvLhjIDINxybpjuoqH8mMKhpdxSUZxI=; b=B5+jFtYx1GewXKbGGIwsiHmFEmO/o/e5QY/RusSnuQGiJDJX7ZAv0uId99cmWtAQbPX6Q3PS+fV3QmYn8JgW4SzrLxklQDDeAaR6R0ITrTc+mPygR9cCZuaTktlVWVdkTVEJ9gYPqqu87K2dCUaHaqrNFbgypAkn+Q5tngtOzDk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=mko.io; spf=pass smtp.mailfrom=me@mko.io; dmarc=pass header.from= header.from= Received: from yorda.hub (121-75-96-62.dyn.vf.net.nz [121.75.96.62]) by mx.zohomail.com with SMTPS id 15714873755001023.5254379642952; Sat, 19 Oct 2019 05:16:15 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 From: mko In-Reply-To: Date: Sun, 20 Oct 2019 01:16:12 +1300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Sleep Walker X-Mailer: Apple Mail (2.3445.104.11) X-ZohoMailClient: External X-Rspamd-Queue-Id: 46wMM86wzfz4BS9 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of me@mko.io has no SPF policy when checking 136.143.188.59) smtp.mailfrom=me@mko.io X-Spamd-Result: default: False [-4.26 / 15.00]; RCVD_TLS_LAST(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; ARC_ALLOW(-1.00)[i=1]; RECEIVED_SPAMHAUS_PBL(0.00)[62.96.75.121.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[mko.io]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[59.188.143.136.list.dnswl.org : 127.0.15.0]; R_SPF_NA(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:2639, ipnet:136.143.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(-1.66)[ipnet: 136.143.188.0/24(-4.87), asn: 2639(-3.36), country: US(-0.05)]; 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: Sat, 19 Oct 2019 12:16:22 -0000 Bravo! I=E2=80=99m still straggling with crochet build, could you share how to = build? > On 19/10/2019, at 2:10 AM, Sleep Walker = wrote: >=20 > I successfully launched > FreeBSD 13-CURRENT on Khadas-EDGE-V RK3399 >=20 > https://dmesgd.nycbug.org/index.cgi?do=3Dview&id=3D5154 >=20 > Regards > Sergey Tyuryukanv > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"