From owner-freebsd-arm@freebsd.org Thu Sep 10 21:02:51 2020 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 3C67F3E3A39 for ; Thu, 10 Sep 2020 21:02:51 +0000 (UTC) (envelope-from greg@unrelenting.technology) Received: from out0.migadu.com (out0.migadu.com [IPv6:2001:41d0:2:267::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4BnWYk2b7bz4dpm for ; Thu, 10 Sep 2020 21:02:49 +0000 (UTC) (envelope-from greg@unrelenting.technology) Date: Fri, 11 Sep 2020 00:03:16 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unrelenting.technology; s=default; t=1599771761; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=/648F/aCYNGGoB+3TCE2eRJBuenUwLiRr5EqA3Oiek4=; b=jjNT97aKojMxRNPFUftLyWh5Qo9NHwlDCZq/2TAu7HZP5BGmCpLbrjYexEz5RnCcqgpqAx Qxstwx1lSzgekgkzvDVxr0eLJXEPBtdWwtBbDCr9/Mu3IE7FPpsodP7Y6jfYhuxx2khPME cD0/SGE1QEi14cqtsEYjt4ZxHivbSYM= X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Greg V Subject: Re: Attempting to install on RPi4B w/ UEFI, having some problems To: Robert Clausecker Cc: freebsd-arm@freebsd.org Message-Id: In-Reply-To: <20200910201146.GA99827@fuz.su> References: <20200910201146.GA99827@fuz.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Spam-Score: -0.10 X-Rspamd-Queue-Id: 4BnWYk2b7bz4dpm X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=unrelenting.technology header.s=default header.b=jjNT97aK; dmarc=pass (policy=none) header.from=unrelenting.technology; spf=pass (mx1.freebsd.org: domain of greg@unrelenting.technology designates 2001:41d0:2:267:: as permitted sender) smtp.mailfrom=greg@unrelenting.technology X-Spamd-Result: default: False [-4.02 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.99)[-0.988]; R_DKIM_ALLOW(-0.20)[unrelenting.technology:s=default]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:41d0:2:267::]; NEURAL_HAM_LONG(-0.99)[-0.994]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[unrelenting.technology:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[unrelenting.technology,none]; NEURAL_HAM_SHORT(-1.04)[-1.040]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2020 21:02:51 -0000 On Thu, Sep 10, 2020 at 22:11, Robert Clausecker wrote: > Greetings! > > I'm trying to install FreeBSD on a Raspberry Pi 4B w/ UEFI [..] > * build CURRENT from source with D25201 manually applied (the other > patches > have apparently already been merged) D25219 hasn't been merged. D25201 *was* merged! Is your source tree up to date? > * if I plug the USB drive into a USB 3.0 port, everything works fine > until > root is mounted. At that point, every further disk access fails > with IO > errors: > > (da0:umass-sim0:0:0:0): READ(10). CDB: 28 00 01 80 a0 c1 00 00 07 00 > (da0:umass-sim0:0:0:0): CAM status: CCB request completed with an > error > (da0:umass-sim0:0:0:0): Retrying command, 3 more tries remain That's what I was seeing when above-3GB DMA was happening, i.e. without D25219. Interesting that 2.0 vs 3.0 port matters for you, I don't think it did to me. > This can be worked around using using..? Some part of the mail was lost here? > * a genet ethernet device does not seem to exist and consequentially, > no network connection can be established. Nobody has written an ACPI attachment for the genet driver yet :( (And for other Pi-specific things for that matter. Meanwhile in NetBSD: https://dmesgd.nycbug.org/index.cgi?do=view&id=5562 'bcmmbox0 at acpi0 (RPIQ, BCM2849-0)' and so on) I wanted to do the genet one but kinda don't have the time/motivation right now. > * pciconf -l yields no PCI devices and dmesg suggests no pci bus was > detected (grepping for pci yields no results) What do you want to do with PCI? Your USB works, forget about PCI. (The ACPI DSDT table presents the XHCI controller that's behind PCIe *as if* it was not behind anything, just directly attached onto the SoC. No PCI support needed at all!) (Yes, this does mean that RPi4-UEFI is not compatible with desoldering the XHCI controller chip and adding a PCIe riser there, lol.)