feat: optional HackerGadgets AIO V1/V2 extension board support - #5
Merged
Conversation
Add an opt-in AIO_BOARD build-time toggle (unset / v1 / v2) that enables the HackerGadgets uConsole AIO board (RTL-SDR / LoRa SX1262 / GPS / PCF85063A RTC / USB hub). Unset leaves the image byte-for-byte unchanged. - build.sh: AIO_BOARD setting + validation; apply_aio_config() appends the board's CM4 overlays (i2c-rtc,pcf85063a / spi1-1cs; GPS via existing enable_uart=1) to /boot/config.txt after reapply_boot_config. v2 also drives the GPIO-gated GPS/LoRa/SDR/internal-USB rails high (gpio=7,16,23,27=op,dh, verified against the vendor guide). AIO_BOARD is threaded into the chroot env. - build-kernel.sh: enable rtc-pcf85063 and spidev modules unconditionally (only load when the board is present). - customize.sh: gated /etc/modprobe.d blacklist of the RTL2832 DVB drivers so libusb SDR tools can claim the dongle. - Docs (README/MAINTAINING, EN+JA): usage, env-var row, and the on-device update caveat (update.sh reinstalls config.txt, resetting AIO lines). Hardware enablement only; userspace SDR/LoRa apps (SDR++/meshtasticd) are left to the user since the vendor's apt/.deb packages don't exist on Arch. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要 / Summary
HackerGadgets uConsole AIO V1/V2 拡張ボード(RTL-SDR / LoRa SX1262 / GPS / PCF85063A RTC / USB ハブ)をオプトインで有効化できるようにします。
SKIP_CHROOTと同じ流儀のビルド時トグルAIO_BOARD(未設定 /v1/v2)を追加。未設定なら既定イメージは完全に不変です。公式セットアップガイド
変更点 / Changes
build.sh:AIO_BOARD設定+バリデーション。apply_aio_config()が CM4 用オーバーレイ(i2c-rtc,pcf85063a/spi1-1cs、GPS は既存のenable_uart=1)をreapply_boot_configの後に/boot/config.txtへ追記。v2は GPIO 制御の GPS/LoRa/SDR/内部USB ラインを high に(gpio=7,16,23,27=op,dh)。AIO_BOARDを chroot 環境へ受け渡し。scripts/build-kernel.sh:rtc-pcf85063/spidevをモジュールとして常時有効化(ボードが無ければロードされないので無害)。scripts/customize.sh:AIO_BOARD設定時のみ RTL2832 系 DVB ドライバを/etc/modprobe.dでブラックリスト化(libusb SDR ツールがドングルを掴めるように)。update.shがconfig.txtを再配置し AIO 行をリセットする点)。スコープ / Scope
ハードウェア有効化のみ。ユーザ空間 SDR/LoRa アプリ(SDR++/meshtasticd)はベンダの apt/.deb が Arch に存在しないため焼き込まず、README で AUR を案内。
検証 / Verification
bash -n build.sh scripts/*.shOKAIO_BOARD未設定 → config.txt md5 不変(既定パス安全)v1/v2で正しいブロック追記(v2 はgpio=行あり)、不正値は拒否dmesg/timedatectlのrtc-pcf85063、/dev/spidev1.*、rtl_testでの確認が必要。🤖 Generated with Claude Code