先看看 Makefile ,确定什么时候会编译 cmdlinepart.c,可知需要配置 CONFIG_MTD_CMDLINE_PARTS=y 开启内核对 mtdparts 参数的支持: obj-$(CONFIG_MTD_CMDLINE_PARTS) += cmdlinepart.o * size is automatically truncated at end of device * if ...