This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PROCESSOR-SDK-AM335X: AM335 , Kernel 4.14, Flash recovery tool?

Part Number: PROCESSOR-SDK-AM335X

Hi Champs:

Customer has the Flash Read only issue and they know how to get this bad flash sector recovery (Turns Read only --> Format --> Can be written again.)

However, do you know any Linux Flash recovery tool (Open source) can be used by my customer?

Here are the request:

          If the Flash is having bad sector / locked / read-only, this tool will recovery those bad sector to work.

         Any suggestion is welcome.

Thanks.

BR Rio

  • Hi Rio,

    Is this about GPMC NAND?

    Customer has the Flash Read only issue and they know how to get this bad flash sector recovery (Turns Read only --> Format --> Can be written again.)

    However, do you know any Linux Flash recovery tool (Open source) can be used by my customer?

    I am not sure I fully understand the messages here. You said the customer knows how to recover the bad sector, but still looks for tools for the recovery? What is the problem with the current procedure/tool they use to recover?

  • Hi Bin:

    1. Yes, External Flash adapted by AM335. (part number is MT29F16G08ABACAWP-ITZ:C)

    2. Here is the situaion:

             Customer MP shipped product has the fail return. (Their End product.)

             And, they found some sector inside the Flash is locked as "read-only".

             The ECC error bit cannot be reverted, so, they performed Erase and format it.

             But, these steps need to be done by handy.

    3. They are asking this, if you think this is possible.

             Step1. When the system power on and boot into kernel.

             Step2: Activate a tool to do these:

                            A. Scan the entire flash.

                            B. If finding the Section is locked as read-only, do the erase and format it automatically.

                            C. Deal with the Ecc error bit automaitlcally.

             So, the purpose is:

                     my customer no needs to do those in manually, it will be native / persistently / automatically run when each booting. 

    4. Do you know if there is this kind of tool?

        Or TI can implement this as a script to let them launch the script when the system is powered on?

    Thanks.

    BR Rio

    BR Rio

  • Hi Rio,

    Yes, you can put all the steps in a script, and configure Linux to run the script during boot time or periodically.

    If the customer's Linux system uses systemd:

    - to run the script during Linux boot time, you need to create a systemd service run the script;

    - to run the script periodically, you also need to create a systemd timer to call the systemd service created the the previous step;

    If the customer's Linux uses SysVInit:

    - to run the script during Linux boot time, you need to create a SysVInit init.d service to call the script;

    - to run the script periodically, you can configure cronjob to do so.

    There are plenty of information on Internet about systemd service, systemd timer, SysVInit service or cronjob.

  • Hi Bin:

      Sorry, I make my request more clear:

        1. I plan to run this script when the kernel is ready.

        2. May you take some time to write this script for us thus the customer can use it and modify it according their need?

     

    BR Rio

  • Hi Rio,

    This is a customer's application, the customer should be able to implement it base do on my guidelines above.