2008-08-12 00:26:22 It can detect the nor flash, but can't see partition information
Zhi Qiang Zhang (CHINA)
Message: 60268
Hi,
I follow the instruction in http://docs.blackfin.uclinux.org/doku.php?id=linux-kernel:mtd&s[]=jffs#memory_technology_devices_mtd to add nor flash partitioning support.
it can detect the nor flash now, but no partition, and I've added partition definition in board resources file in arch/blackfin/mach-bf533/boards, here is the boot message,
eth0: dm9000 at 203fffbc,203fffbe IRQ 43 MAC: 18:0a:fd:01:e4:cd (chip)
Driver 'sd' needs updating - please use bus_type methods
Driver 'sr' needs updating - please use bus_type methods
physmap platform flash device: 00200000 at 20000000
physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Searching for RedBoot partition table in physmap-flash.0 at offset 0x1f0000
No RedBoot partition table detected in physmap-flash.0
bfin-spi bfin-spi.0: Blackfin BF5xx on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@5
116x: driver isp116x-hcd, 03 Nov 2005
what is the problem?
Regards,
ZhangZQ
QuoteReplyEditDelete
2008-08-12 06:19:19 Re: It can detect the nor flash, but can't see partition information
Yi Li (CHINA)
Message: 60289
Maybe you can just add some debug message in physmaps.c to debug:
#ifdef CONFIG_MTD_PARTITIONS
err = parse_mtd_partitions(info->cmtd, part_probe_types, &info->parts, 0);
if (err > 0) {
add_mtd_partitions(info->cmtd, info->parts, err);
return 0;
}
if (physmap_data->nr_parts) {
printk(KERN_NOTICE "Using physmap partition information\n");
add_mtd_partitions(info->cmtd, physmap_data->parts,
physmap_data->nr_parts);
return 0;
}
#endif