Skip to content

标签:SBC

Partition Layout Planning for Production Firmware

Partitions aren’t just space allocation — they determine upgrade strategy, data safety and recoverability. Four principles Separate by function: boot, rootfs, userdata, recovery and oem as distinct partitions so upgrades don’t touch user data; Headroom: leave 15-20% spare in rootfs and userdata, and extra space for staging an OTA image; Alignment and performance: align partitions […]

阅读全文 →

systemd Services: Turn a Script into a Reliable Boot Service

rc.local causes three production problems: it starts too early, it doesn’t restart on crash, and it logs nothing. systemd fixes all three. Script vs service Write the unit: /etc/systemd/system/myapp.service with ExecStart, Restart=always, RestartSec=5 and a non-root User; Ordering: After=network-online.target plus Wants=network-online.target so you don’t start before the network is up; Logs: journalctl -u myapp -f […]

阅读全文 →

USB Networking for Debug: Into the System Without an Ethernet Cable

When a device is racked with no spare Ethernet, USB networking is the lifeline. Linux’s gadget mode makes it plug-and-play. Why USB networking Gadget mode: configure a usb0 virtual NIC (ECM/RNDIS) on the device; a new NIC appears on the host for ssh; Addressing convention: fix a private pair like 10.55.0.1/10.55.0.2 and document it — […]

阅读全文 →

Firmware Image Pipelines: Turning Manual Steps into Reproducible Builds

Image customization must be versioned, reproducible and traceable, or two devices with the same version number will eventually differ. From manual to pipeline Configuration as code: describe partitioning, services, defaults and preinstalled apps in scripts and config files under version control; Automated builds: CI triggers the build and produces an image tagged with version and […]

阅读全文 →

Production Test Fixtures: The First Guarantee of Line Yield

Line testing aims to verify all functions in minimal time while every unit is judged by the same standard. Fixtures deliver speed and consistency Test items: power-on current, interface loopbacks, Wi-Fi and Bluetooth connectivity, storage read/write, buttons and LEDs, sequenced to the takt; Automatic verdicts: pass or fail is decided and logged automatically with the […]

阅读全文 →