Re: RPi4B: emmc2bus dma-range handling does not track the boot-time-FDT (u-boot based booting)
Mark Millard via freebsd-arm <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.arm |
|---|---|
| Message-ID | <[email protected]> |
On 2020-Oct-9, at 17:17, Klaus Cucinauomo <[email protected]> wrote: >> Am 09.10.2020 um 23:25 schrieb Mark Millard <[email protected]>: >> >> FreeBSD imports lots of linux-dts material that it does not put >> to use. Only some of the imported material is used. >> >> release/arm64/RPI3.conf indicates use of: >> (There is not RPi4 release yet.) >> >> DTB_DIR="/usr/local/share/rpi-firmware" >> DTB="bcm2709-rpi-2-b.dtb bcm2710-rpi-3-b.dtb bcm2710-rpi-3-b-plus.dtb bcm2711-rpi-4-b.dtb" >> . . . >> EMBEDDEDPORTS="sysutils/u-boot-rpi3 sysutils/rpi-firmware" >> . . . >> UBOOT_DIR="/usr/local/share/u-boot/u-boot-rpi3“ >> …………. >> >> It is not using sys/gnu/dts/arm64/broadcom/ material. > > > ah, `forgot to mention : > [dtb = DeviceTree-Blob == compiled dts(DeviceTreeSource)] > So the dtb`s you mention are compiled off of the dts. > So I GUESS ;-) that sys/gnu/dts/arm64/broadcom/ isn’t a dead unused directory … Look at the sysutils/rpi-firmware port that creates and fills in /usr/local/share/rpi-firmware/ with the .dtb files that are copied by the above procedure. It makes no use of sys/gnu/dts/arm64/broadcom/ at all. Instead it does things like the following in its Makefile: USE_GITHUB= yes GH_ACCOUNT= raspberrypi (I omit a 2nd account that is also listed.) GH_PROJECT= firmware (I omit a 2nd project that is also listed.) FW_TAG= 2042453 . . . GH_TAGNAME= ${FW_TAG} (I omit a 2nd TAGNAME that is also listed.) and in its distinfo it has: TIMESTAMP = 1596906388 SHA256 (raspberrypi-firmware-1.20200723.g20200723-2042453_GH0.tar.gz) = a90ce74236fa04cbb11232c077a1271afdeefb5b0af417a88076c4948e569cd4 SIZE (raspberrypi-firmware-1.20200723.g20200723-2042453_GH0.tar.gz) = 186178244 (I omit a 2nd file that is also listed.) So it gets a .tar.gz from github that supplies the material, in a already compiled/built form as it turns out. No use is made of FreeBSD's sys/gnu/dts/arm64/broadcom/ by this technique. === Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-arm To unsubscribe, send any mail to "[email protected]"