[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] JFFS2 and MTD




John Williams wrote:
>Robert Swindells wrote:
>> John Williams wrote:

>>>I've created a MTD map for the flash devices on the Insight board, and 
>>>can happily do direct access to and from the flash via /dev/mtdXX and 
>>>/dev/mtdblockXX.
>> 
>> 
>> What does your map look like ?

>It's attached - pretty straight forward as far as I can tell.  I'm using 
>the CONFIG_FLASH_8MB config option.

If it were me, I would put the entries in ascending order and remove
the final flash entry.

static struct mtd_partition mbvanilla_8mb[] = {
	{ name: "Bootloader", offset: 0x00000000, size:   0x00020000 },
	{ name: "Bootargs",   offset: 0x00020000, size:   0x00020000 },
	{ name: "MAC",        offset: 0x00040000, size:   0x00020000 },
	{ name: "Spare",      offset: 0x00060000, size:   0x00020000 },
	{ name: "Config",     offset: 0x00080000, size:   0x00080000 },
	{ name: "Image",      offset: 0x00100000, size:   0x00200000 },
	{ name: "JFFS2",      offset: 0x00300000, size:   0x00500000 }
};

How did you initialize the JFFS2 partition ?

Robert Swindells
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/