[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] JFFS2 and MTD
Robert Swindells wrote:
> 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 }
> };
OK thanks I'll check it out. I've copied this map config from the
snapgear board configs - they use uclinux and mtd extensively.
> How did you initialize the JFFS2 partition ?
I haven't - I saw that the output of mkfs.jffs2 when run on an empty
directory was itself empty, so just figured I could mount straight on
top of an empty mtdblock device.
Also another thing that's probably related that I'm unsure about, when
my board boots the JFFS2 driver is trying very hard to do something - I
get a bunch of messages like this:
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000ad024:
0x3630 id
Further such events for this erase block will not be printed
JFFS2: Erase block at 0x000ad000 is not formatted. It will be erased
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x000ae000:
0x2f62 id
jffs2_scan_eraseblock
Is JFFS2 trying to mount some kind of default fdile system? This is all
happening before the shell starts, and before I can do any explicit
mount -t jffs2 commands.
Thanks,
John
___________________________
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/