sysfs:|sysfs: duplicate filename 's3c2440-nand' can not be created。linux2.6的内核编译中出现的问题
因为之前我的板子nand分区打印的信息是乱码,后来发现原来是arch/arm/mach-s3c2440/mach-smdk2440.c中和arch/arm/plat-s3c24xx/common-smdk.c中nand重复了。
(1)vim arch/arm/mach-s3c2440/mach-smdk2440.c
static struct platform_device *smdk2440_devices[] __initdata = https://www.it610.com/article/{
&s3c_device_usb,
&s3c_device_lcd,
&s3c_device_wdt,
&s3c_device_i2c,
&s3c_device_iis,
&s3c_device_nand,
};
(2)vim arch/arm/plat-s3c24xx/common-smdk.c
static struct platform_device __initdata *smdk_devs[] = {
&s3c_device_nand,
&smdk_led4,
&smdk_led5,
&smdk_led6,
&smdk_led7,
};
【sysfs:|sysfs: duplicate filename 's3c2440-nand' can not be created。linux2.6的内核编译中出现的问题】将arch/arm/mach-s3c2440/mach-smdk2440.c中&s3c_device_nand,注释掉。重新编译内核,nand分区信息正常打印了。
推荐阅读
- vue报错|vue报错 Duplicate keys detected: '0'.
- Duplicate class com.alipay.a.a.a found in modules classes.jar (:alipaySdk-15.6.2-20190416165036:) an
- linux常用命令记录
- LeetCode|LeetCode 217. Contains Duplicate(C++版)
- verilog 时钟管理模块
- altium designer 网络标签作用范围(Duplicate Net Names Wire解决办法)
- Remove|Remove Duplicates from Sorted List
- awk中gsub的应用
- 文件下载:"Content-disposition","attachment; filename=中文名>>>解决方案
- Java|使用Content-Disposition: attachment; filename=FILENAME,在Firefox浏览器中下载文件,文件名中文乱码问题解决。