[#5971] data flash partition size doesn't match with setting
Submitted By: Mingquan Pan
Open Date
2010-03-16 05:47:03 Close Date
2010-03-26 00:25:47
Priority:
Medium Assignee:
Nobody
Status:
Closed Fixed In Release:
N/A
Found In Release:
2010R1 Release:
Category:
N/A Board:
N/A
Processor:
BF537 Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Assigned (Not Start)
Uboot version or rev.:
Toolchain version or rev.:
4.3.4 (ADI-trunk/svn-3815)
App binary format:
N/A
Summary: data flash partition size doesn't match with setting
Details:
data flash partition size doesn't match with setting after updating the kernel.
root:/> versiPHY: 0:01 - Link is Up - 100/Full
on
kernel: Linux release 2.6.33-ADI-2010R1-pre-svn8463, build #4 Tue Mar 16 01:49:52 GMT 2010
toolchain: bfin-uclinux-gcc release gcc version 4.3.4 (ADI-trunk/svn-3771)
user-dist: release svn-9497, build #49 Tue Mar 16 01:48:11 GMT 2010
root:/> successful boot attempt
************** STEP 3: MTD test
cat /proc/mtd
dev: size erasesize name
mtd0: 00040000 00010000 "bootloader(spi)"
mtd1: 000c0000 00010000 "linux kernel(spi)"
mtd2: 00000000 00000000 "file system(spi)"
root:/>
Case 1 ...PASS
Case 1 ...PASS
************** STEP 4: Mount MTD
mount -t jffs2 /dev/mtdblock2 /mnt
root:/>
Case 2 ...PASS************** STEP 9: Writing MTD
cp mtd.img /dev/mtd2
cp: write error: No spac
Last passed time: 2010_Feb_24_17_20, ucdist ver: 9463, kernel ver: 8346
Case 5 ...FAIL
While in stamp.c:
static struct mtd_partition bfin_spi_flash_partitions[] = {
{
.name = "bootloader(spi)",
.size = 0x00040000,
.offset = 0,
.mask_flags = MTD_CAP_ROM
}, {
.name = "linux kernel(spi)",
.size = 0x180000,
.offset = MTDPART_OFS_APPEND,
}, {
.name = "file system(spi)",
.size = MTDPART_SIZ_FULL,
.offset = MTDPART_OFS_APPEND,
}
};
...
Follow-ups
--- Mingquan Pan 2010-03-26 00:24:27
It is ok now on trunk head for bf537-stamp board.
brd: module loaded^M
mtd_dataflash spi0.1: at45db321d (4096 KBytes) pagesize 512 bytes (OTP)^M
Creating 3 MTD partitions on "SPI Dataflash":^M
0x000000000000-0x000000040000 : "bootloader(spi)"^M
0x000000040000-0x0000001c0000 : "linux kernel(spi)"^M
0x0000001c0000-0x000000400000 : "file system(spi)"^M
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0,
regs_base@ffc00500, dma channel@7^M
bfin_mii_bus: probed^M
Close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
No Files Were Found