-
Notifications
You must be signed in to change notification settings - Fork 123
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Will it be feasible to use little file system(LFS) along with the use of dhara file translation layer(FTL) on Micron NAND flash MT29F4G08AB #13
Comments
On Mon, Oct 12, 2020 at 10:33:13PM -0700, pavzz-14 wrote:
So, we are trying to upgrade our existing Micron MT29 NAND flash from 2Gb to 4Gb on Atmel controller. The existing file system used is FAT32. But now we are in an need to change the file system to little file system(lfs). Will it be feasible to use this file system alone or should i also consider using the file translation layer from dhara. I admire with @hchaudhary1 and @geky for thier insightful conversation.
I'm not familiar with LFS, but from a quick read of their documentation
it looks like it takes care of flash management too, so you wouldn't
need to also use Dhara.
…--
Daniel Beer <dlbeer@gmail.com> http://dlbeer.co.nz/
PGP: BA6E 0B26 1F89 246C E3F3 C910 1E58 C43A 160A 553B
|
I think in a perfect world you wouldn't need Dhara with LittleFS. But for better or worse, LittleFS is far from perfect. Two cases come to mind where you may want to use LittleFS+Dhara:
Dhara is nice in that it treats the underlying block device as one continuous log. This makes it more flexible and predictable than LittleFS, which uses the erase blocks as data structure elements. |
Hello Mr.pavzz, currently I also use Micron MT29 NAND flash 2Gb and I wirte I/O interface with it which works good (It can be erase, write and read normally) but I still stuck on dhara layer. The problem is when I find journal.root, it always returns j->root = DHARA_PAGE_NONE (0xFFFFFFFF). I don't know what exactly problem is, should I tune some parameters from dhara like gc_ratio, or DHARA_META_SIZE (I use all as default values). So many thanks for helping me!!! |
@TatChung68 did you solved the problem? |
Yes, I did. I'm using FATFS + dhara but my littlefs porting on NAND flash be working well too!!! If you wanna use little fs on raw nand flash you must only write correctly 4 functions to glue between nand flash and littlefs. No trick needed! |
@TatChung68 could you share what was the actual problem and how did you solved it? I have been stuck with the same problem "journal.root, it always returns j->root = DHARA_PAGE_NONE (0xFFFFFFFF)" or I am making some mistakes. It would be very helpful to have some insightful direction on what can I do or what should I keep in mind. I am trying to follow this flash_management work by @aloebs29 and using QSPI for communicating with the flash. I have check and confirmed the low level functions are working correctly. |
I think you should post the problem that you're stucking with, and I'll
give you a solution!
…On Sat, Mar 16, 2024, 12:29 PM Atanu Kumar Dey ***@***.***> wrote:
@TatChung68 <https://github.com/TatChung68> could you share what was the
actual problem and how did you solved it? I have been stuck with the same
problem or I am making some mistakes. It would be very helpful to have some
insightful direction on what can I do or what should I keep in mind.
—
Reply to this email directly, view it on GitHub
<#13 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AL5J3K4DRGXDHZSNFXMC5ODYYPKD3AVCNFSM4SODNTAKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQGE3TGNZYHE3A>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think the problem is on your write and read, copy functions directly from NAND flash!!! You can refer this link. It run properly!!! |
You are right, there were some problem with our write function, and after solving it everything is working fine. Thank you, for your response. |
So, we are trying to upgrade our existing Micron MT29 NAND flash from 2Gb to 4Gb on Atmel controller. The existing file system used is FAT32. But now we are in an need to change the file system to little file system(lfs). Will it be feasible to use this file system along with the file translation layer from dhara. I admire with @hchaudhary1 and @geky for thier insightful conversation.
The text was updated successfully, but these errors were encountered: