Flash and configure a Raspberry Pi 5 SD card for the dual-camera CT scanner server.
Flash a Raspberry Pi 5 SD card with the camera server image, configure WiFi access point mode, and install the dual 4K camera firmware. Runs scripts/flash-pi.sh for automated setup.
Identify the SD card
# macOS
diskutil list
# Linux
lsblk
/dev/disk4 on macOS, /dev/sdb on Linux)Run the flash script
bash scripts/flash-pi.sh --device /dev/diskN --hostname ct-pi
Configure WiFi Access Point
bash scripts/flash-pi.sh --configure-ap \
--ssid "CT-Scanner" \
--password "scanner-secure-pw" \
--channel 36 \
--ip 10.0.0.1
Install camera firmware
bash scripts/flash-pi.sh --install-camera \
--camera0 imx477 \
--camera1 imx477
Set environment variables
PORT=4801
HOSTNAME=0.0.0.0
CAMERA_0=/dev/video0
CAMERA_1=/dev/video2
RESOLUTION=3840x2160
FPS=30
CT_PC_URL=http://10.0.0.2:4802
Eject and boot
# macOS
diskutil eject /dev/diskN
# Linux
sudo eject /dev/sdX
Verify Pi is running
curl -s http://10.0.0.1:4801/health
curl -s http://10.0.0.1:4801/cameras
/autopilot-health — Verify all 4 nodes see each other on the network/autopilot-scan — Run a test scan using the newly configured Pi/autopilot-deploy — Deploy CT-PC API if not yet installed on the Windows PC