Files
mu300-linux/rootfs/Dockerfile
T
Abdurrahman Kaan DikeçandClaude Opus 5.5 e832186b57 audio and Ubuntu fixes from bringing audio up on a second board
A clean install on a second F50, with the audio stack added, turned up these:

* sms-pdu.awk used and()/or()/lshift()/rshift(), which busybox awk and gawk have and Ubuntu's mawk does not: every
  USSD answer and every SMS failed to decode on Ubuntu ("function and never defined"). They are b_* helpers in
  plain arithmetic now, without "^" either (busybox awk without math support rejects it). Checked against
  reference output from the old file on decode (GSM7, UCS2, alphanumeric sender, concatenated), encode and USSD:
  identical under mawk and busybox awk.
* /etc/modprobe.d/mu300-audio.conf keeps modprobe away from the 23 audio modules. Once depmod has indexed them,
  udev and request_module() load audio_mem and the card first, without the parameters mu300-audio-dsp passes;
  both are permanent and the card never registers until a reboot.
* mu300-voice holds the AGDSP domain (agdsp_access_en) during a call: closing a voice stream otherwise reads an
  AGCP register after the domain has dropped and panics the kernel (SError in check_agcp_mcdt_clock). It also
  starts the call scene, the hostless FE_VOICE, with the new tools/pcmhost - the HAL's pcm_start(), which aplay
  cannot do. Audio still does not move on this board; FINDINGS 24b has what was measured.
* The Ubuntu image gets alsa-utils (the audio scripts need amixer/aplay) and mu300-audio.service enabled (it skips
  itself without the audio modules). mu300-audio-dsp status no longer dies on an empty status read.

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

22 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 \
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