JFFS2 summary update

Wagner Popov wagner.popov at autotrac.com.br
Wed Dec 16 07:06:17 EST 2020


Hi,

I'm searching for a method to auto-update JFFS2's summary for a partition that was generated with an erase block size less than the NAND ONFI parameters. The idea is to do this only in the first boot.

To try to solve this, I've forced the Garbage Collector - GC thread to wake up sending a SIGHUP signal to its PID. That works, but it seems like that JFFS2 GC thread doesn't know about the NAND addresses that were already updated because it stays updating the blocks more than one time. So, it stays trying to update the partition using the GC thread indefinitely.

I've found another problem that was the messages: "uncorrectable bit-flips found" printed by the Kernel. But, by the end, I've seen that all files appear to stay consistente (md5sum equal).

Could you please suggest any method to do this and tell me what are the consequences of using it?

Best regards,
Wagner Popov

'

Esta mensagem e qualquer anexo a ela são documentos confidenciais e direcionados exclusivamente ao(s) destinatário(s). Qualquer uso, desvio, sonegação, supressão, revelação ou divulgação não autorizada é proibida e sujeita às sanções e/ou reparações legais por ato ilícito (Código Penal, Artigos 151 e 152). Caso não seja um dos destinatários expressamente indicados, por favor entre em contato com o remetente, respondendo este e-mail e destrua quaisquer cópias da mensagem original. Qualquer opinião, crítica ou análise descrita nesta mensagem é de responsabilidade única do remetente, a menos quando estiver explicitamente expresso que seja da empresa remetente.

A Autotrac pode tratar os seus dados pessoais para prestar serviços, se comunicar com você e em outras hipóteses permitidas pela legislação aplicável. Para obter mais informações sobre as nossas práticas de proteção de dados, consulte a política de privacidade disponível no site da Autotrac (www.autotrac.com.br).

This message and any attachment are confidential information for the sole use of the intended recipients. Any unauthorized use, deviation, withholdment, suppression, disclosure or distribution is prohibited and is subjected to legal sanctions and/or compensations per illicit act (Penal Code, articles 151 and 152). If you are not one of the intended recipients, please contact the sender by reply e-mail and destroy any copy of the original message. Any view, comment or analysis expressed in this message is sole responsibility from the sender, except when it’s specifically expressed that it’s the view, comment or analysis of the company.

Autotrac may process your personal data in order to provide services, communicate with you and in other cases permitted by applicable law. For more information on our data protection practices, see the privacy policy available on our website (www.autotrac.com.br).


'


More information about the linux-mtd mailing list