WARNING: 100% AI SLOP, not intended for human consumption.
OpenStick makes it possible to run Linux on an inexpensive UZ801 LTE stick. Its community image provides the board support needed to boot, but it also comes with a preassembled Debian filesystem whose bundled files and SSH identity are harder to trace. Building stock Debian userspace directly from signed Debian archives gives the installation a clearer software supply chain: the package versions can be checked against a manifest, and the small set of board customizations can be inspected separately.
The setup runs Debian 13.8 arm64 with 195 Debian packages and uses per-device SSH host keys and requires public-key authentication. The kernel is the main exception to stock Debian: the standard arm64 kernel expands to about 36 MiB, beyond the installed LK bootloader’s 32 MiB limit, so a board-specific build of Debian’s 6.12.118 source brought it down to 14 MiB. The existing boot chain, proprietary Qualcomm LTE modem and Wi-Fi firmware, and per-device radio calibration are retained. Those components sit outside Debian’s update and verification process.
Reproduction instructions for an LLM agent #
1. Identify the stick and capture recovery images. Confirm the device is a Qualcomm MSM8916 UZ801 and that LK reports yiming,uz801-v3. This identifies the device tree used for boot. Before writing anything, enter Qualcomm EDL mode and dump the entire eMMC user area. Check the dump’s byte count against the device capacity, validate both GPT copies, and record its SHA-256 digest. Save the target’s radio calibration separately. For a stick already running OpenStick Linux, also save its working boot and root partitions as a matching recovery pair.
2. Establish the boot and partition layout. On factory Android, use OpenStick Installer with the UZ801 community image as the starting point. Fit a copy of the image to the actual eMMC sector count, relocate the backup GPT to the last sector, and inject the calibration from that stick. Verify the write and boot the community image. On the recorded layout, /dev/mmcblk0p13 is a 64 MiB ext2 boot volume mounted at /boot/lk2nd, and /dev/mmcblk0p14 is the ext4 root. Confirm those assignments on the target, record the root partition’s PARTUUID, and save the working extlinux.conf before editing it.
3. Cross-compile the kernel. Obtain Debian Security’s linux 6.12.118-1 source through authenticated Debian source indexes and extract it with dpkg-source -x to apply Debian’s patches. Decompress /proc/config.gz from the working OpenStick kernel into .config, set CONFIG_LOCALVERSION="-openstick-uz801", and run make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- olddefconfig after editing the configuration. Build eMMC, ext4, and the necessary MSM8916 clock and pin control drivers into the kernel. Retain Qualcomm Wi-Fi (wcn36xx), Bluetooth (btqcomsmd), modem remoteproc (qcom_q6v5_mss), BAM DMUX, RPMSG WWAN, and USB ECM/RNDIS. Trim unused display, audio, camera, PCI, virtualization, and tracing features. Build Image, qcom/msm8916-yiming-uz801v3.dtb, and the matching modules. Check both the Image file size and the runtime size encoded in its ARM64 header against the 32 MiB limit. The recorded build measured 14,633,472 and 15,138,816 bytes respectively.
4. Build stock Debian userspace and add the board configuration. Use mmdebstrap with QEMU user emulation on a trusted host to build an arm64 root filesystem from signed trixie, trixie-updates, and trixie-security repositories. Include openssh-server, network-manager, modemmanager, and wireless-regdb. Install the matching kernel modules under /lib/modules/6.12.118-openstick-uz801. Carry over the working msm-firmware-loader service and its read-only firmware mount configuration from the community installation. Configure a dedicated service to bring up USB ECM with a static management address, such as 192.168.5.1/24, and give the USB host a separate address on that subnet. Use RSN with CCMP for the Wi-Fi access point. Give each stick a fresh SSH host key, authorize the intended client key, and disable password and keyboard-interactive login. Save the signed release metadata, package manifest, and board overlay checksums, then build an ext4 image that fits the verified root partition.
5. Write the root image and configure LK. Write the ext4 image offline and compare the exact byte range written with the source image before booting. On the ext2 boot volume, install Image.gz, the matching DTB, and a gzip-compressed newc cpio archive containing lib/firmware/regulatory.db and lib/firmware/regulatory.db.p7s from Debian’s wireless-regdb package. The archive contains no /init. It makes the signed regulatory database available early while the kernel mounts root directly. Use one active entry in /boot/lk2nd/extlinux/extlinux.conf with linux, fdt, and initrd paths relative to the ext2 volume. Include root=PARTUUID=<target-root-partuuid> rw rootwait in the append line. Keep the verified boot snapshot available for Fastboot recovery if the kernel fails before systemd starts.
6. Verify the system after deployment and again after a normal reboot. Check uname -r, /etc/debian_version, and the root and boot mounts with findmnt. Connect over USB ECM using the newly pinned SSH host key. Test the Wi-Fi access point, check the kernel log for regulatory database loading, confirm the Bluetooth controller appears, run mmcli -L to check modem enumeration, and verify that the firmware mounts are read-only. Compare the live package inventory with the build manifest. Remove any temporary recovery initramfs or rollback timer and reboot again. The recorded modem status was sim-missing. Cellular registration and data, Bluetooth pairing, and USB RNDIS were untested.
7. Keep the update and trust boundaries explicit. The original kernel source archives matched Debian’s published SHA-256 hashes, but the build host lacked the key needed to verify the .dsc signature independently. Use authenticated source indexes for subsequent builds and retain that evidence. APT updates Debian userspace, while fixes to the active kernel require rebuilding, deploying, and checking the kernel and its matching modules. The proprietary Qualcomm modem and Wi-Fi binaries come from the existing device firmware partitions and were not independently audited. The calibration is per-device data, and the retained LK bootloader is a separate dependency outside the rebuild’s provenance checks. The partition read-back confirms what was written before boot. No verified boot chain, runtime attestation, or independent reproducible build was established.