Re: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-21 Thread Reto Gähwiler
Good Morning Everyone, A little update regarding my initial request. Meanwhile we know a little bit more about one or the other thing. #1 statfs reporting wrong sizes: The current nuttx code doesn't follow the fat32 white paper [1] recommendation of recomputing the number of free clusters

Re: RE: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Reto Gähwiler
> >> It is running on an STM32h743zi version V or Y. The SD-card in use is a > >> SwissBit S-45u. > >> > >> Reto > >> > >> On 2021/05/19 11:11:22, David Sidrane wrote: > >> > hi Reto, > >> > > >> > What SoC is t

RE: RE: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread David Sidrane
dev@nuttx.apache.org > Subject: Re: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free > clusters by statfs > > Hi David, > > It is running on an STM32h743zi version V or Y. The SD-card in use is a > SwissBit S-45u. > > Reto > > On 2021/05/19 11:11:22, David

Re: RE: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Alan Carvalho de Assis
> What is the clock rate to the card and is multiblock enabled? >> >> David >> >> -Original Message- >> From: Reto Gähwiler [mailto:gret.hexa...@gmail.com] >> Sent: Wednesday, May 19, 2021 5:08 AM >> To: dev@nuttx.apache.org >> Subject:

Re: RE: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Reto Gähwiler
te: > > hi Reto, > > > > What SoC is this on? What type of card are you using? > > > > David > > > > -Original Message- > > From: Reto Gähwiler [mailto:gret.hexa...@gmail.com] > > Sent: Wednesday, May 19, 2021 3:22 AM > >

RE: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread David Sidrane
- > From: Reto Gähwiler [mailto:gret.hexa...@gmail.com] > Sent: Wednesday, May 19, 2021 3:22 AM > To: dev@nuttx.apache.org > Subject: Re: Nuttx FAT32 issues - corrupted files, wrongly stated free > clusters by statfs > > Hello Jukka, > > Thanks for your quick rea

Re: RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Reto Gähwiler
gt; From: Reto Gähwiler [mailto:gret.hexa...@gmail.com] > Sent: Wednesday, May 19, 2021 3:22 AM > To: dev@nuttx.apache.org > Subject: Re: Nuttx FAT32 issues - corrupted files, wrongly stated free > clusters by statfs > > Hello Jukka, > > Thanks for your quick reaction. I applied

RE: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread David Sidrane
hi Reto, What SoC is this on? What type of card are you using? David -Original Message- From: Reto Gähwiler [mailto:gret.hexa...@gmail.com] Sent: Wednesday, May 19, 2021 3:22 AM To: dev@nuttx.apache.org Subject: Re: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters

Re: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Reto Gähwiler
Hey Alan, Thanks for your input. See reply to Jukka. About the dd command, I am aware of and make use of it. Also the reason I could test different things with the same image :) Greetings, Reto On 2021/05/18 20:53:39, Alan Carvalho de Assis wrote: > Hi Reto, > > Mr. Jukka just opened a

Re: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-19 Thread Reto Gähwiler
Hello Jukka, Thanks for your quick reaction. I applied your PR to our "outdated" nuttx. Unfortunately, it did not show any impact on the statfs behaviour if the card is corrupted. Though, meanwhile I do have hands on two images. #1 the mentioned one. Although, the files/dirs are all deleted.

Re: Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-18 Thread Alan Carvalho de Assis
Hi Reto, Mr. Jukka just opened a PR that could help the issue related to the cluster issue: https://github.com/apache/incubator-nuttx/pull/3740 When you face an issue with the SDCard a good idea is to do a raw copy of it on Linux using the dd command, then you could duplicated the issue later.

Nuttx FAT32 issues - corrupted files, wrongly stated free clusters by statfs

2021-05-18 Thread Reto Gähwiler
Dear All, First of all, in case a similar thread pops-up authored by myself, please ignore. Recently we discovered some issues with the FAT32 partition on the SD-Card used in our device running on nuttx. There are actually a bunch of issues we are strugle to understand related to the filesystem.