From nobody Mon Oct 31 13:15:56 2022 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N1DDh1JFfz4gBrT; Mon, 31 Oct 2022 13:16:04 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N1DDh0XC9z3F8W; Mon, 31 Oct 2022 13:16:04 +0000 (UTC) (envelope-from otis@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667222164; 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=L9iTP6eUXkKPvgDzWv7N5O4t6bZJus2uk4INRb0Qaq0=; b=SrYNAKTUrdYumDQZtlPRTQlBVow5lkWHP9LI0BMNB0vLMkBmEwK0ZSLUHpvL9cA4g1uqSK 7O7BAl/pJ9/2CTmwpM+g7jth51CEPsIOBg6ExUjnA8xNP+kbT4VIvor0wwoOcIzZcFjQT4 R37dBIAE6EzzrXm11NZC3lkNGm0Ag5zqlWqTUWu9wbwUtDtCRCS5PpLNl+eJU8EtEMJNjj Cdv9UI+AMBJ1rwqPye4rkuGkvb/9HwaGMLe8uo7ddGrSg6qRd06MpiswGwRl8PhOZOrv/E 5eFEbiNR2wGcILB2XqpZn1hrpA704dxdPfQnTXvb0FmvnyDmjKSbkNP0pr80Gg== Received: from ns2.wilbury.net (ns2.wilbury.net [IPv6:2a01:b200:0:1:f816:3eff:fecd:13e6]) (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 "svc.wilbury.net", Issuer "R3" (verified OK)) (Authenticated sender: otis) by smtp.freebsd.org (Postfix) with ESMTPSA id 4N1DDg61hbzWPV; Mon, 31 Oct 2022 13:16:03 +0000 (UTC) (envelope-from otis@FreeBSD.org) Received: from smtpclient.apple (unknown [217.73.28.193]) (Authenticated sender: juraj@lutter.sk) by svc.wilbury.net (Postfix) with ESMTPSA id 0B21E45D158; Mon, 31 Oct 2022 14:15:57 +0100 (CET) Content-Type: text/plain; charset=utf-8 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: sysutils/rpi-firmware update From: Juraj Lutter In-Reply-To: Date: Mon, 31 Oct 2022 14:15:56 +0100 Cc: "uboot@freebsd.org" , freebsd-arm Content-Transfer-Encoding: quoted-printable Message-Id: <4A881278-6206-482D-97E4-BE15D7DCB298@FreeBSD.org> References: <82FEA78C-96BC-4B6B-AB90-2CF521250FA8@FreeBSD.org> To: Mark Millard X-Mailer: Apple Mail (2.3696.120.41.1.1) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1667222164; 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=L9iTP6eUXkKPvgDzWv7N5O4t6bZJus2uk4INRb0Qaq0=; b=t4EW1nFRJg4tUQdy9ZVEBhgIPOf2VXZOobizrSNEevkHt7JPs+f3e1NO6uxuGirPT2GX3V 55dzIQxgpiMETsyPsWOzlHhPsLwpI1jEVsLkqzsb71Ij+RJz0NJCvmTyuqGvimMCAWS8yM zWkxOvw3voUQRAEBgdqP1yXum2ebGiNw3enik3Od7wTGwHb4cRIFohoOlDO9JaGJkpybkq b6ecXKIWnPsadJKfRKos5nscgyO1sMItVg6vOXVzr8dzPA4fXaadVK/1PyLgmjYb/FJQlm QJQFH3O/eEPdhDk8iuHBq7eTbvGNxutYtISsmivpAkUoDqm3ENuTPAH6S8MR6w== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1667222164; a=rsa-sha256; cv=none; b=WYsiN02XKPiBryQ+cY8WcEXN9FhNxVy/ISBmlsmtfJnVyA0znsS8OG97/QZ3aCvUDqUffK d8GGNkdke2IckWa6ufLs7r3JZVLskUrKd5LN7o+Fc0MSCczU9WEJQsVICdpNyQ7nbYOZhe k0LuYqT7NJQvILXb5p6/DhW7Y428T1Ktss12JuN/9AxJeYaX2JMXurWCw9cHRX+tK7iEiM OLCNdy9aj/Jzz1QRR4rrdtXzSs8DCVcSAc/axZlISmGlwhIKQfQ3bi+oLsGdKkrM7z33hZ zJtaeJUMFo42YaVcJPF9wDfVMHRCtbABznF2vbGBnIrw3rQHWE7aXiGx82ietw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N > On 31 Oct 2022, at 12:20, Mark Millard wrote: >=20 > On 2022-Oct-31, at 01:17, Juraj Lutter wrote: >=20 >> what should be done to update sysutils/rpi-firmware to the recent = version? >> I=E2=80=99ve tried to naively update the PORTVERSION but I=E2=80=99ve = not been able to boot (I only tried one time) the RPI-4-B. >=20 > To my knowledge, no one is actively working on support of the > RPi* related code base in FreeBSD. >=20 Good to know. Can I help somehow? > It is not clear what you are looking to make work observably > differently by updating just the RPi* firmware to more recent > than FreeBSD officially supports. >=20 The problem I=E2=80=99m observing is: = https://files.wilbury.net/s/A7jWesNiHQ7GM9e My initial approach was to make use of DHT20 sensor that I=E2=80=99ve = got. It is an i2c-connected (compared to GPIO-connected DHT11/DHT22) sensor. So one of the first things I did was to take i2c-sensor.dtbo from the recent rpi-firmware ( There is no i2c-sensor in 20210805 version of = firmware, that=E2=80=99s why I took the recent version), decompiled dtbo to dts, = added AHT10/AHT20 lines (similar to = https://github.com/raspberrypi/linux/commit/c20376da5e61323410d1ffb076db1a= e818ccbf59), compiled back to dtbo, only to find out that the device is not = recognized at all. It did not appear even in devinfo. So i=E2=80=99ve also added fragments for DHT10 and DHT20, then the = devices at least appeared in devinfo output (the device is seemingly marketed as AHT20 but present = itself as DHT20 on the bus). Then I=E2=80=99ve written a =E2=80=9Cstub=E2=80=9D driver, just to test = whether it will at least probe and attach (and it did!) :-) otis =E2=80=94 Juraj Lutter otis@FreeBSD.org