[mtdblock] reading regions where %512 != 0

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

 



Hello guys!

first of all - thank you for your great work!

I've been experimenting an issue with OpenWRt on a TP-Link Archer C60 V2 device, where an mtd region has been defined so that it's not 512-bytes aligned:

mac: partition@1fb00 {
 	label = "mac";
 	reg = <0x01fb00 0x000500>;
 	read-only;
};

So the region is 1280 bytes long; still reading from the exported mtdblock device will results in a 1024 bytes read.
This prevents users from making proper backups of flash regions. I don't know how many instances of this exist in the OpenWRt tree right now, but it's not clear wether we should fix this issue in the mtdblock or defining regions differently, changing their sizes.
Any help, suggestions or ideas very welcome and apreciated.

Thank you very much,
Enrico



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux