From owner-freebsd-arm@freebsd.org Sun Feb 21 10:51:55 2021 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 E720E552AF8 for ; Sun, 21 Feb 2021 10:51:55 +0000 (UTC) (envelope-from manu@bidouilliste.com) Received: from mx.blih.net (mx.blih.net [212.83.155.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mx.blih.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Dk2F65RQXz4WVX; Sun, 21 Feb 2021 10:51:54 +0000 (UTC) (envelope-from manu@bidouilliste.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bidouilliste.com; s=mx; t=1613904712; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A21PvgY39HaWYRah46IIsLIKXfVAd2wyISw4lJOmJ0s=; b=cBw8dOAP+K9Sg9Ivrr6iY1xBJZwlHaunOhvPyf+H2xSOUvfI7alh4McelItMsW5Kx5qMY9 +fKph8etAscXMsGNirdqEnJlVzaW/xylzPlebeKi4CqiCtmxDsI7Y935KC4LuTI/VQ3LP0 Bb5PPN//nQwWTnQ6t98SokfuNkSyaTg= Received: from amy (lfbn-idf2-1-644-4.w86-247.abo.wanadoo.fr [86.247.100.4]) by mx.blih.net (OpenSMTPD) with ESMTPSA id 33224fec (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 21 Feb 2021 10:51:52 +0000 (UTC) Date: Sun, 21 Feb 2021 11:51:51 +0100 From: Emmanuel Vadot To: Alex Samorukov Cc: freebsd-arm@freebsd.org Subject: Re: RPI4 USB Boot: Unable to find firmware device Message-Id: <20210221115151.bd39f87fcfed396bd48b1060@bidouilliste.com> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd14.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Dk2F65RQXz4WVX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bidouilliste.com header.s=mx header.b=cBw8dOAP; dmarc=pass (policy=none) header.from=bidouilliste.com; spf=pass (mx1.freebsd.org: domain of manu@bidouilliste.com designates 212.83.155.74 as permitted sender) smtp.mailfrom=manu@bidouilliste.com X-Spamd-Result: default: False [-3.50 / 15.00]; RCVD_TLS_ALL(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[bidouilliste.com:s=mx]; FREEFALL_USER(0.00)[manu]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+mx]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; SPAMHAUS_ZRD(0.00)[212.83.155.74:from:127.0.2.255]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DKIM_TRACE(0.00)[bidouilliste.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[bidouilliste.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RBL_DBL_DONT_QUERY_IPS(0.00)[212.83.155.74:from]; ASN(0.00)[asn:12876, ipnet:212.83.128.0/19, country:FR]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[freebsd-arm] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Porting FreeBSD to ARM processors List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Feb 2021 10:51:56 -0000 On Sat, 20 Feb 2021 16:56:26 +0100 Alex Samorukov wrote: > Hello, > > > I am booting FreeBSD generic 13.0-BETA3 from the USB. All works, but on > boot i see "Unable to find firmware device" for the bcm2835_cpufreq0. As > result - powerd is not working. I think it somehow expects firmware on > mmc (which is missing) and fails to load it from USB. I did not found > how to point kernel to the correct firmware device/path. Any hints? > > > Error messages provided below: > > root@generic:/usr/ports # dmesg | grep cpufreq > bcm2835_cpufreq0: on cpu0 > bcm2835_cpufreq0: Unable to find firmware device > device_attach: bcm2835_cpufreq0 attach returned 6 > armv8crypto0: CPU lacks AES instructionsbcm2835_cpufreq0: Control> on cpu0 > bcm2835_cpufreq0: Unable to find firmware device > device_attach: bcm2835_cpufreq0 attach returned 6 This is fixed in head and stable/13 : https://cgit.freebsd.org/src/commit/?id=1cf282363101f5d99b1dadfb0d3250bbe6f482a5 https://cgit.freebsd.org/src/commit/?id=2551d928501fb613dba09b7ffe7e383dba276ca6 I'm waiting on re@ approval for 13.0 Note that you will also need two files provides in an issue on rpi-firmware github, see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252971#c25 for more info. I'm waiting for rpi foundation to release a new version of the firmware file and will commit an update to the port. I hope that they release that early next week to 13.0-RC1 can have them. Cheers, -- Emmanuel Vadot