TyMeew / tinyos-main

Automatically exported from code.google.com/p/tinyos-main
1 stars 0 forks source link

at45db support for non-power-of-two page sizes #141

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Rev. 5944 of /tos/chips/at45db/BlockStorageP.nc supported page sizes other that 
256, however, it caused Deluge and TOSBoot to malfunction. Because of this, we 
reverted to the previous version of BlockStorageP.nc until Deluge/TOSBoot is 
fixed.

Specifically, ExtFlash.startRead() in tos/lib/tosboot/at45db/ExtFlashC.nc needs 
to be updated to support page size other than 256 and tested against all 
platforms that wire against it.

Probably tos/lib/tosboot/epic/ExtFlashC.nc and 
tos/lib/tosboot/tinynode/ExtFlashC.nc have this issue, as well.

Also StorageMap.getPhysicalAddress() in 
tos/lib/net/Deluge/BlockStorageManager/BlockStorageManagerP.nc is assuming a 
page size that is a power of 2. This needs to be fixed.

Thanks to Yann El Corre for reporting this issue.

Original issue reported on code.google.com by sallai.j...@gmail.com on 27 Jul 2012 at 5:25