Files
mu300-linux/rootfs/Dockerfile
T
Abdurrahman Kaan DikeçandClaude Opus 5.5 a8e529cfcb U30 Air: mu300-nfc writes its NFC tag (the hotspot's Wi-Fi, a URL, text)
- The tag is a Fudan FM11NT08 at I2C 2-0x57, reachable while GPIO 190 is held low (libgpiod). mu300-nfc shows
  it (a Wi-Fi record by its name only), writes the hotspot's name and password as ZTE's firmware does (the same
  bytes), a URL (with the NDEF prefix codes), text, or nothing; each 16-byte page only when it differs, and read
  back after writing.
- sync, at every hotspot start (Ubuntu) and at boot (OpenWrt): the Wi-Fi record again if that is what the tag
  holds, so a changed password reaches it; a URL or text written by hand stays.
- Ubuntu and OpenWrt get i2c-tools and gpiod(-tools); mu300-nfc is on PATH.
- Tested on the U30 Air under 7.2: a phone joined the hotspot and opened a URL written from Linux, once NFC was
  switched on in ZTE's web interface (a setting the tag keeps). Tests: a fake tag, ZTE's record byte for byte,
  long URLs, what sync leaves alone. FINDINGS 33g.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeuDBrAce8rrgSJDbFJQGN
2026-09-28 20:00:24 +03:00

23 lines
1.4 KiB
Docker

# Ubuntu 24.04 LTS arm64 root filesystem for the MU300 (exported with `docker export`, not run as a container).
# BASE swaps the distribution: any arm64 Debian-family image with the same package names works, for example
# docker build --build-arg BASE=debian:13 -t mu300-debian:13 rootfs/
# docker build --build-arg BASE=kalilinux/kali-rolling -t mu300-kali rootfs/
ARG BASE=ubuntu:24.04
FROM ${BASE}
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
systemd systemd-sysv systemd-timesyncd systemd-resolved udev dbus kmod \
iproute2 iputils-ping net-tools nftables dnsmasq-base ethtool \
openssh-server busybox-static \
wpasupplicant hostapd iw wireless-regdb rfkill bluez \
i2c-tools gpiod \
ca-certificates openssl alsa-utils curl wget nano vim-tiny less htop sudo bash-completion \
libcap2-bin locales tzdata e2fsprogs dosfstools file procps psmisc lsof strace usbutils pciutils \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i 's/^# *\(en_US.UTF-8\|tr_TR.UTF-8\)/\1/' /etc/locale.gen && locale-gen \
&& ln -sf /usr/share/zoneinfo/Europe/Istanbul /etc/localtime && echo Europe/Istanbul > /etc/timezone \
&& echo mu300 > /etc/hostname \
&& (id ubuntu >/dev/null 2>&1 || useradd -m -s /bin/bash ubuntu) \
&& usermod -aG sudo ubuntu && echo 'ubuntu:ubuntu' | chpasswd \
&& printf 'LABEL=mu300root / ext4 defaults,noatime 0 1\n' > /etc/fstab