摘要:
答:笔者遇到的这种情况是由于分区表未与nor flash的物理擦除块边界对齐而导致的,因此调整分区表即可解决此问题 阅读全文
posted @ 2018-12-07 17:46
Jello
阅读(668)
评论(0)
推荐(0)
摘要:
1.注意:内核源码版本为4.9 2.首先注意关键字符串"partitions found on MTD device 这句话在drivers/mtd/mtdpart.c的parse_mtd_partitions()中出现 3.mtd_device_parse_register()调用了parse_m 阅读全文
posted @ 2018-12-07 16:26
Jello
阅读(1323)
评论(0)
推荐(0)
摘要:
注意内核版本为4.9 在drivers/mtd/ubi/debug.h中加入DEBUG的定义,如下 #ifndef __UBI_DEBUG_H__#define __UBI_DEBUG_H__#define DEBUG 1 (新增)void ubi_dump_flash(struct ubi_dev 阅读全文
posted @ 2018-12-07 14:39
Jello
阅读(626)
评论(0)
推荐(0)
摘要:
比如要打开某个驱动中的dev_dbg,那么需要在驱动文件.c中这些行"<linux/device.h>"或者"<linux /platfom_device.h>"(device.h包含platform_device.h)之前定义DEBUG 如:drivers/mtd/spi-nor/spi-nor. 阅读全文
posted @ 2018-12-07 13:37
Jello
阅读(3386)
评论(0)
推荐(0)
摘要:
答案:修改内核文件include/linux/printk.h (内核版本为4.9) 修改前 #define CONSOLE_LOGLEVEL_DEFAULT 7 /* anything MORE serious than KERN_DEBUG */ 修改后 #define CONSOLE_LOGL 阅读全文
posted @ 2018-12-07 13:21
Jello
阅读(2309)
评论(0)
推荐(0)
摘要:
答案:在bootargs中加入loglevel=8即可(在进入linux的过程中会输出任何log信息) 阅读全文
posted @ 2018-12-07 12:40
Jello
阅读(1198)
评论(0)
推荐(0)