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

[microblaze-uclinux] Flatfsd, partitions and MTD



Hi all,

I thought this would be simple, but I can't find the info I need - can anyone help?

If it matters, I am using several serial flash devices on two separate SPI buses - but the MTD setup seems to be doing what I expect, and I can use the /dev/mtd? devices to write to the flash and it goes into the places I expect it to.  Because of this, XILINX_FLASH_START is not set at all (I assume it's for memory-mapped flash ony...)

1) It appears that flatfsd uses /dev/flash/config for its configuration - is that changeable anywhere or is it just "a given"?

2) If I use a "standard uclinux ROMFS moved to EBSS" configuration, it creates an MTD for it during boot at mtd0.  This seems to mean that the minor numbers associated with the /dev/flash/* mtd references are out by 2 (ie by 1 mtd device).  Is that right, or have a messed something else up?
  Example - my kernel image is at /dev/mtd2 
  I defined this as as CONFIG_SYSTEM_PARTITION2_NAME="kernel", which I would expect to be at node 90,4... but my rootfs has it at 90,2

3) As an aside - I want concat two of my mtd partitions (across two of the SPI chips)... which looks straightforward, but I have to ensure it happens after all the SPI setup is done (which registers the flash chips with MTD).  I'm using spi_register_board_info() to register the SPI flash devices.  Can I achieve this in it's current form, or do I have to stop mtd detecting everything and manually add my own mtd partitions?  Or I guess I could write a tiny module which would do the concat, and not load it during the startup scripts, which should be late enough!

Thanks!
Martin
-- 

Martin Thompson CEng MIET
TRW Conekt, Stratford Road, Solihull, B90 4GW. UK
+44 (0)121-627-3569 : martin.j.thompson@xxxxxxx
http://www.conekt.net/

Conekt is a trading division of TRW Limited 
Registered in England, No. 872948 
Registered Office Address: Stratford Road, Solihull B90 4AX

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