From nobody Sat Jan 13 19:54:09 2024 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 4TC8Hg0kKzz56Xkd for ; Sat, 13 Jan 2024 19:54:23 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-24.consmr.mail.gq1.yahoo.com (sonic312-24.consmr.mail.gq1.yahoo.com [98.137.69.205]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4TC8Hf5Kpzz4DPY for ; Sat, 13 Jan 2024 19:54:22 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705175660; bh=XgSHwO2vm4pEr6oRH1tW9aOTlQKhyIYgo8R04/3+RBM=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=U24q6PLZeQPAezM9zi5UhctjTmBlXqXTDpDxBSzTGYKO4tAQtx7EliYCb+JKpXTpp8MKtQMg02zmZNfFcKcDbpE09HNp0ky0Jh59XYoRk6oVW/rZZP6id5jkLVGspgV6jLUomR5hcbfQ73B+tndBO5vsQ/dA3Ad14ym86Uh1+osbur6ogMaPqTOhRsF8hZCBXd2c5ZbIhBDirHgLBHp5JA6GjwZUAOeKzZYt1r4nxsVnDOkltL2ylwYBM62YhpkzKsonbVsEbgbHHLUiriPkAK0EtsSTwQjpUGmoKgewLqGsNp3MLKv8nsO9EFrUDlVEa2SmO+Vyv84by/RNeYOGpg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1705175660; bh=E++qs4l/z3MbZDtc+HMVEHiL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v8KNpLKC5nTx_aOK0xJL5a1tFQBK0_zc74PEd3_5_BEZIYeB7tO5p4zeDV.NPAbJ2Wsl TL6GmtvikeUomHRgJg4tLBRisHkDeZHBZ8reETRSwlJy.uuqE7AdYdA0prFjoUFL1E7zglclEra5 XSNRBS3CdoSQ8wXJXpW1WzxlXslSW3Dd61FKvYkAsSSpQVOvrYjcXWhmiRp6BylYzXh_.BcA6kYU e91KUjtPILWiePpCnOohIOezRao6wI0ssUZGiS.o3okwbfyiojA4agrGBWpRQ5nqssCtra2HkpZK Ej65JjeG8rhcKKZzeHRVtxaZQIWo0qkeFp41u6INpxlPDyHbj1akMK9zrRNslvqQ4i2wcqx56E2d Qv4TVuhIRkriRl7P3dQFZAcqR0n2YQogQHHA4BMZoMXY7KJZmMAQmDnZAVncC3FNGEaAjD4M7NqI yiOEwzvRiV.IDySSInyoZcxEUqEyKfH.VhVuYxFkA1cbs3wLUaZ1qY5KGX.xur9z7H6kZB.hsL4q JdUk.a8_xub45KFC04jgGBr6ZTKoiWcrVBjYJoHPzh30rQXcM8PrqkEUisoAW6k_4Vzl_Ro.rFQ- - X-Sonic-MF: X-Sonic-ID: b88414b0-dbe4-4e5c-9f81-e90688863f18 Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sat, 13 Jan 2024 19:54:20 +0000 Received: by hermes--production-gq1-78d49cd6df-xzd4p (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 43a2e2a0f015ec60fc043c218b01b6be; Sat, 13 Jan 2024 19:54:19 +0000 (UTC) Content-Type: text/plain; charset=us-ascii 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 \(3774.300.61.1.2\)) Subject: Re: When will FreeBSD support RPI5? From: Mark Millard In-Reply-To: <9e45c7d7-450c-48e5-8101-c6ea5cb3a023@FreeBSD.org> Date: Sat, 13 Jan 2024 11:54:09 -0800 Cc: Doug Rabson , John Kennedy , ykla , FreeBSD ARM List Content-Transfer-Encoding: quoted-printable Message-Id: References: <5a39810c-5fd8-4969-a222-2561b050b035@FreeBSD.org> <347FE009-A470-4765-A9B9-7C9AB5E954DA@yahoo.com> <76FA010A-338F-4E32-B381-37C7BA63CAFC@yahoo.com> <9e45c7d7-450c-48e5-8101-c6ea5cb3a023@FreeBSD.org> To: Jesper Schmitz Mouridsen X-Mailer: Apple Mail (2.3774.300.61.1.2) X-Rspamd-Queue-Id: 4TC8Hf5Kpzz4DPY X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US] On Jan 13, 2024, at 11:22, Jesper Schmitz Mouridsen = wrote: >=20 > On 13.01.2024 19.32, Mark Millard wrote: >> On Jan 13, 2024, at 07:38, Doug Rabson wrote: >>=20 >>> Getting back to the RPI 5, with a tweak to = arm/broadcom/bcm2835bcm2835_vcbus.c to treat the memory config the same = as RPI 4 and to dev/sdhci/sdhci_fdt.c to treat the RPI 5 sdhci = controllers as generic, I can boot to multiuser mode using the EDK2 = firmware from https://github.com/worproject/rpi5-uefi with ACPI/Device = Tree mode set to Both. >> What does FreeBSD do with "Both"? Does it actually use some ACPI >> and some Device Tree? Or does it just use ACPI? Does your >> combination do anything different than just using ACPI? >=20 > How does the sd card show up? Context below is via use of a aarch64 snapshot image dd'd to USB3 media and use of a microsd card to hold the EDK2: # uname -apKU FreeBSD generic 15.0-CURRENT FreeBSD 15.0-CURRENT #0 = main-n267507-a61d2c7fbd3c: Thu Jan 11 06:26:30 UTC 2024 = root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC = arm64 aarch64 1500008 1500008 # gpart show =3D> 40 249737136 mmcsd0 GPT (119G) 40 2008 - free - (1.0M) 2048 249733120 1 efi (119G) 249735168 2008 - free - (1.0M) # mount -onoatime -tmsdosfs /dev/mmcsd0p1 /mnt # ls -Tlod /mnt/* -rwxr-xr-x 1 root wheel uarch 2031616 Jan 5 18:20:18 2024 = /mnt/RPI_EFI.fd -rwxr-xr-x 1 root wheel uarch 76038 Jan 5 18:21:50 2024 = /mnt/bcm2712-rpi-5-b.dtb -rwxr-xr-x 1 root wheel uarch 388 Jan 5 18:18:24 2024 = /mnt/config.txt # dmesg -a | grep -E "(sdhci|mmc)" sdhci_acpi0: iomem = 0x1000fff000-0x1000fff25f irq 3 on acpi0 mmc0: on sdhci_acpi0 sdhci_acpi1: iomem = 0x1001100000-0x100110025f irq 4 on acpi0 mmc1: on sdhci_acpi1 mmcsd0: 128GB at mmc0 = 50.0MHz/4bit/65535-block mmc1: No compatible cards found on bus # more /mnt/config.txt=20 armstub=3DRPI_EFI.fd device_tree_address=3D0x1f0000 device_tree_end=3D0x210000 # Leave RP1 PCIe configured on hand-off. pciex4_reset=3D0 # Force 32 bpp framebuffer allocation. framebuffer_depth=3D32 # Disable compensation for displays with overscan. disable_overscan=3D1 # Force maximum USB power regardless of the power supply. usb_max_current_enable=3D1 # Force maximum CPU speed. force_turbo=3D1 > BTW i did put some stuff here [1] > I could not get bcm_dma to work anyone planning on getting that to = work? it should be similar to 2711 documented in [2] >=20 >>> This does not have working PCIe or ethernet yet - I think ethernet = ought to work since we seem to have a matching driver in the tree in = dev/cadence. >> Sounds like the same status as booting just ACPI with no such >> adjustments too bcm2835bcm2835_vcbus.c or sdhci_fdt.c ? >>=20 >> I think Mike Karels plans on investigating getting Ethernet >> going based on cgem . I've no clue if this is ACPI, DeviceTree, >> or both. >>=20 >> My usage has been pure ACPI, no software adjustments specific >> to getting the RPi5 operational. Use of a USB3 Ethernet dongle. >>=20 >> =3D=3D=3D >> Mark Millard >> marklmi at yahoo.com >>=20 >>=20 > [1] https://github.com/jsm222/rpi5-stuff >=20 > [2] https://datasheets.raspberrypi.com/bcm2711/bcm2711-peripherals.pdf =3D=3D=3D Mark Millard marklmi at yahoo.com