rpi5: measure what the firmware leaves for the onboard CYW43455 Bluetooth (BT_ON gio 29, uarta pinmux, 96 MHz clock, bdaddr) before any driver work
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- c, linux, raspberry-pi
調査の方向性
Start with the referenced bcm2712-rpi-5-b.dts, bcm2712.dtsi, bcm2712-rpi.dtsi, and config/rpi5.env. On a Pi 500+, run the listed GPIO, clock, Bluetooth, and dmesg commands, then compare them with ofwdump and devinfo output from NEXTBSD-RPI5. Done means recording all four answers with raw output and identifying which GPIO and pinctrl drivers K8 requires.
索引モデルが issue の本文から書いたものです。
説明
E16 draft id K7 · epic nextbsd/nextbsd#473
Question
The Pi 5 / Pi 500 Bluetooth radio is UART-attached, and every layer between it and ng_hci is missing in FreeBSD 15.1 (K8 has the list). Before sizing that work, three facts have to be read off the board — they decide whether K8 is "a UART compat line and an H4 node" or "three new SoC drivers first":
- Is BT_ON already high? The radio's reset is
shutdown-gpios = <&gio 29 GPIO_ACTIVE_HIGH>(bcm2712-rpi-5-b.dts:377), on the SoC'sbrcm,brcmstb-gpioblock at0x107d508500(bcm2712.dtsi:497-508inrpi-6.6.y), for which FreeBSD has no driver. Linuxhci_bcmtoggles it itself. If the Pi firmware/EEPROM leaves it high, a GPIO driver can wait; if it leaves the chip in reset, K8 needsbrcmstb-gpiofirst. - Are gpio24–27 muxed to
uart0(uarta)?pinctrl-0 = <&uarta_24_pins &bt_shutdown_pins>onbrcm,bcm2712-pinctrlat0x107d504100(bcm2712.dtsi:402-…), also driverless. Linux applies it at probe. - What does
uarta(brcm,bcm7271-uart,0x107d50c000,reg-shift=2,reg-io-width=4,clock-frequency=96000000) actually run at, and doesskip-initmean the firmware already programmed it? Same class of question as the UART10 clock hunt inconfig/rpi5.env(44.2368 MHz measured vs 9.216 MHz claimed) — the number has to come from the hardware, not the DT. - What BD address does the firmware put in the DT?
local-bd-addressis zeros in the source dts; the Pi firmware patches it at boot (bdaddroverride,bcm2712-rpi.dtsi:177). Dump/proc/device-tree/…/bluetooth/local-bd-addressfrom Linux and the FreeBSDofwview.
How
On a Pi 500+ under Raspberry Pi OS: raspi-gpio get 24-29 (or pinctrl get 24-29), gpioinfo for gio line 29 state, cat /sys/kernel/debug/clk/clk_summary | grep -i uart, hcitool dev / btmgmt info for the working baud/bdaddr, and dmesg | grep -i 'hci_uart\|bcm' for the firmware file the kernel loaded (expect brcm/BCM4345C0.hcd or the raspberrypi,5-model-b variant). Then boot NEXTBSD-RPI5 and read the same registers/DT nodes from FreeBSD (ofwdump -a, devinfo -v, a kldstat-free peek via ddb or a tiny /dev/mem read if needed) to see what our boot path leaves.
Acceptance
- The four answers, with the raw command output, on this ticket
- K8's scope updated: which of {brcmstb-gpio, bcm2712-pinctrl} are hard prerequisites vs later
- The measured uarta clock and the firmware file name recorded for K8
Related
- K8 (the bring-up, parked), #99 (WiFi half of the same chip — separate SDIO path, no shared code), #107/#108 (the UART10 clock precedent)
- nextbsd/nextbsd#440 (E7), #473 (E16)
Dependencies (E16)
- Depends on: nothing
- Blocks: nextbsd/nextbsd-kernel#233 (K8)
Draft ids (K = kernel & hardware, B = engine/BLE, D = bluetoothd/CLI, H = HID, A = audio) are listed with their issue numbers in nextbsd/nextbsd#473.
- 主要言語
- C
- スター
- 12
- フォーク
- 3
- 平均マージ
- 1時間 39分
- マージ済み PR(30日)
- 101
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nextbsd/nextbsd-kernel のほかの issue
-
area:vm enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
nextbsd/nextbsd-kernel#390 ·
メンテナーはふだん 1 日以内に返信
-
area:vm enhancement
難易度 4/5 1〜2日 初心者へのやさしさ 35/100
nextbsd/nextbsd-kernel#389 ·
メンテナーはふだん 1 日以内に返信
-
area:boot bug
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
nextbsd/nextbsd-kernel#371 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nextbsd/nextbsd-kernel#361 ·
メンテナーはふだん 1 日以内に返信
-
area:mach area:research enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
nextbsd/nextbsd-kernel#304 ·
メンテナーはふだん 1 日以内に返信
nextbsd/nextbsd-kernel の issue をすべて見る
似ている issue
-
area/docs
難易度 1/5 1時間未満 初心者へのやさしさ 83/100
Clodmony/starship-coop#72 ·
メンテナーはふだん 1 日以内に返信
-
ospf6d: heap-use-after-free in seqnumber_mismatch()/bad_lsreq() when a neighbor is deleted with events pending対応中かも @lichenlang89 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
メンテナーはふだん 2 日以内に返信
-
5700模组网络优先级问题オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
luainkernel/lunatik#2372 ·
メンテナーはふだん 1 日以内に返信