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.
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
# The ipc017 keeps its vendor U-Boot, whose bootargs carry neither panic= nor
|
||||
# mtdparts=, so append both. Without mtdparts= the kernel falls back to the
|
||||
# vendor MXP table (BOOT, KERNEL, ROOTFS, DATA, CONFIG, FACTORY). These keep its
|
||||
# offsets under OpenIPC's names, so /init and sysupgrade find rootfs_data,
|
||||
# kernel and rootfs, and turn the last 64 KB of the vendor DATA partition into
|
||||
# an env of its own: the vendor environment shares its erase block with the end
|
||||
# of U-Boot and must not be written.
|
||||
CONFIG_CMDLINE="mtdparts=NOR_FLASH:320k(boot)ro,2048k(kernel),7552k(rootfs),6272k(rootfs_data),64k(env),64k(config)ro,64k(factory)ro panic=20"
|
||||
# CONFIG_CMDLINE_FROM_BOOTLOADER is not set
|
||||
CONFIG_CMDLINE_EXTEND=y
|
||||
Reference in New Issue
Block a user