Files
Jaro MarvalandGitHub 7f7a9575f1 ssc325: add Chuangmi IPC017 device profile (SSC323, GC2053, MT7601U, 16M NOR) (#168)
Xiaomi/Chuangmi ipc017 kept on its vendor U-Boot. A kernel fragment appends mtdparts= with the vendor MXP offsets under OpenIPC's names plus panic=20, and carves a separate 64 KB env out of the end of the vendor DATA partition, because the vendor environment shares its erase block with the end of U-Boot. S01fwenv points fw_env.config at that partition. wireless/usb powers the MT7601U on GPIO 14 and bind-mounts a /tmp copy of MT7601USTA.dat with the factory MAC from FACTORY. S41eth0 takes the connector-less eth0 down so ONVIF discovery goes out on wlan0. Tested on hardware.
2026-09-26 09:58:04 +03:00

23 lines
462 B
Bash
Executable File

#!/bin/sh
#
# The ipc017 has no Ethernet connector, but the SoC still registers eth0 and
# S40network gives it a fallback address, so majestic sends its ONVIF discovery
# there instead of on wlan0. Take eth0 down while it has no carrier.
case "$1" in
start)
if [ "$(cat /sys/class/net/eth0/carrier 2>/dev/null)" = 0 ]; then
ip addr flush dev eth0
ip link set dev eth0 down
fi
;;
stop)
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac