Files
ssmithxandClaude Opus 5.5 5de6046e8d MT6000: kernel, system, root image and FIT boot image
linux-mt6000: Nonguix linux 6.17 with ARCH_MEDIATEK and the MT7986
drivers, OpenWrt's block NVMEM provider and mac-base patches (WiFi
calibration and MACs from the eMMC factory partition), bootargs-append,
and OpenWrt's GL-MT6000 device tree.

mt6000.scm: the Pi's OpenWrt userland on the MT6000 (lan1-5 + WiFi in
br-lan, eth1 WAN).  Shared pieces move to packages/router-base.scm;
the Pi's system is unchanged.

build-mt6000-root.sh builds the ext4 root for the rootfs partition and,
with scripts/mt6000-fit.sh, the FIT that GL's U-Boot boots from the
kernel partition -- for the system inside the image, whose root is the
partition's UUID.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-15 19:37:33 -04:00

63 lines
2.1 KiB
Plaintext

# Seeded by Guix on first activation (uci-service-type); owned by UCI after
# that (LuCI: Network > DHCP and DNS). `uci commit dhcp; reload_config'
# reloads dnsmasq and odhcpd.
#
# Split as on OpenWrt: dnsmasq serves DHCPv4 and DNS, rendered from this
# file by OpenWrt's init script (openwrt-dnsmasq-service-type); odhcpd
# serves IPv6 -- router advertisements and DHCPv6 -- on lan, from the prefix
# netifd assigns it (the ULA in network.globals until an upstream prefix
# exists). maindhcp 0: odhcpd's DHCPv4 server stays off.
# OpenWrt's stock section, except: resolvfile is where netifd writes the
# upstream servers here (-r /etc/resolv.conf), and nonwildcard 0 -- dnsmasq
# binds the wildcard address, as --bind-dynamic missed br-lan's address at
# boot (PITFALLS #37); localservice and the firewall keep the WAN out.
config dnsmasq
option domainneeded '1'
option boguspriv '1'
option filterwin2k '0'
option localise_queries '1'
option rebind_protection '1'
option rebind_localhost '1'
option local '/lan/'
option domain 'lan'
option expandhosts '1'
option nonegcache '0'
option cachesize '1000'
option authoritative '1'
option readethers '1'
option leasefile '/tmp/dhcp.leases'
option resolvfile '/etc/resolv.conf'
option nonwildcard '0'
option localservice '1'
option ednspacket_max '1232'
option filter_aaaa '0'
option filter_a '0'
config odhcpd 'odhcpd'
option maindhcp '0'
option leasefile '/tmp/odhcpd.leases'
# dnsmasq reads hostsdir (--addn-hosts); the trigger makes it reread.
option leasetrigger '/run/current-system/profile/sbin/odhcpd-update'
option hostsdir '/tmp/hosts'
option piodir '/tmp/odhcpd-piodir'
option loglevel '4'
# DHCPv4 range .100-.200 (dnsmasq); dhcpv4 'server' is for dnsmasq --
# odhcpd ignores it while maindhcp is 0.
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '101'
option leasetime '12h'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config dhcp 'wan'
option interface 'wan'
option ignore '1'