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.

DM36x EVM | Boot from NAND

Hello, TI,

I'm reading about NAND booting at http://processors.wiki.ti.com/index.php/UG:_DaVinci_PSP_Installation_on_DM365_EVM#Flashing_DM36x_EVM_using_NAND_Writer_utilities_.28CCS_environment.29

And I have a crucial question about Flashing EVM via Serial line.

What was meant under "binary application file"  in the command line "sfh_DM36x.exe -nandflash <UBL binary file> <binary application file>"? I entered U-boot.bin on this place, the application loaded UBL and then constantly gives me a prompt

"Waiting for SFT from DM36x

Target: BOOTME

Target: BOOTME

Target: BOOTME ...".

And nothing else happened. I switched off the board as described in the instruction, set SW4 for NAND boot and switch the board on, but it still boots from MMC. What should I also do? Maybe set some special bootargs?

Upd: I also tried NANDWriter as an application and the result was the same... 

I would really appreciate your help! 

  • Hi,

    What command did you give ?

    Try giving following command in UART mode.. I have attached the UBL and U-Boot files

    $ sfh_DM36x.exe -nandflash UBL_DM36x_NAND.bin u-boot.bin -p /dev/ttyUSB0

    8741.u-boot.txt  (rename to u-boot.bin)

    1���1	��8����	�4��4��4 ��R�� B�B!����� R����������� \E�/������������)����#������
    �������M�����
    ���/�����M�����������\�
    �\���� ����� ��Ѝ��/�Q�(��$��(�������Q����������/�8@-����@���P��0��\�@�����4,�������0�����\�����8���8@-��P��0��@������4,�������0�����\�����8����M�������������\�
    �\�����
    �����������\������	�R�
    ������������ R�������Ѝ��/�
    ˠ��M���/������������A������q�
    \����
    P����
    Ѝ����/����������M����\�����
    �\���	���@Ƞ�Ƞ��� �������������Ѝ��/�@-�
    ˠ�0�����p ������p�����������L�������\�
    @����
    ���\�
    �ϰ�
    �����������A-�@������M�P��\����p����
    ����\����������\����� ��I��� ������E����� ��Q���`������Y�����ᕌ!�g���,������<�/�P�����9������<�/�!����r!�h���,��������<�/���,���
     ��p!������<�/�
    0��� �,����������<�/�������`���E�|�
    (��(���%�����P�0��0�0��S�
    � ���������0��S�
    � ���������`����������P��X�,�������P������,���,���������`���E�|�
    
     ����������P�
    `������ ���������������P��X�!ԁ������ ��������/���P����W���ލ�����A-�@�����p�����\�`����P ������ �������� �����������P��\�����������ᗌ!�����p��0�����b!�����0�����P���G�|�
    
     ���������P�
    P������ ����������0��p��S�!ԁ������ �����������P�������������M�������������\�
    �\�����
    ���������\��������	�R�
    ����������� R������Ѝ��/��A-�@�����`�����\�p����P ��_�����x�����ᗌ!�������P��!����������4��� ��O�����\���P������d�����ᗌ!�r�����0 ��C������P�
    ��������p�����b!������� ������P��A������G�q�
    P�
    
    P������ ��'�����@���� ����"������p��\�!ԁ�������������A-�p���M����P��@��0����� ��������������`������#�����ᕌ!�1������\�
    ��0 ������X���P�,��>�����<�/�P��0������`���E�|�
     ����������P�
    
    `������ ������������� ��������0��P��S�,������`���������<�/�!����r!�F���,��������<�/�
    0����,��������� �<�/���
     ��,���p!������<�/�P�0����
    ��ލ�����A-�p��P��@��`�����0�����P���F�,���
    `��G� ��0��R�
    r��������w��������u��������w����������\�`�����������A-�@��P��p��`����\����@�����\�������� ��0����b���P���,������
    F������Q������
    Q������������B��������������p@-�`�����@��PL����\���p���A������C������B�����# ����K�������t���$ ����E�������n�����p���@-�� ����<���������@-�@�����* ������2������Data verification failed! Block:  page: . First Failing Byte: 
    Erase verification failed! Block: Unprotecting blocks � through .
    Protecting the entire NAND flash.
    ��@-� ����A�M�����@��  ��������S���P�
    0��� ����b��� R����������P��������������P���� �������� ��������8���P�
    0�� ����G��� R��������\�D
    ����� ������ ��������$���P�W�� ��t7��p��l����0���`V���`�������H�����p��������	 � ����P�!��#�!���������^������ ��\�
    R����:R�D���
    h��������%��5�������� ��1�����d�������i���, ����i�����T����������4����������\�
    \��������������� ���,� ����R�A�8��#8��1��+�L���B���	Q�"��������
    ��!���� ��!����A������̠�!�������������8��#8��@�
    ��1���������Q�
    *���Q�'R�������\����������<Q����:�������P����������R����
    ������R�����(�������Q��Ѳ!�����P�����S�
    P��������R������ú�����Aߍ����p@-�P��`��8���@�����P�� ���ğ�P��(���ğ�P��,���ğ���0���ğ�R��4������
    ���$@�R���@�P�����\�����������\�L�
    `������� ��̀����,��������<�/������P�������P������P�
    @����p���@-�p ��������E����������� �����0��@-�` ��������@����������� �����������P������F������d�p@-�@��0����M���P��P�"
     ��`��U��P
    ��b�� P�����
    ��<�/���������P���� ��
    0��������P���
    ��\�����
    0�� L ��������܍�p����@-�P��@�����`��pL����\����������������������������W�:�������P�
    z��������{����������@T�P���������������� L������@-�P��@�����`��pL����\��[������f������e���W�	:����x���P�
    ������@T�P���������������� L�����0@-�@��0���A�M����P��\�
     ���U�����\�
    ��.���,� ��
    0�� P�����0���
    �������<�/�P����� ��
    0�����0���
    �������<�/�P���\�
    �������� L�
    0�����0���
    �������<�/�P�
    ��������������Aߍ�0���Erasing block  Bad Block NO  
    � Erasing is skipped 
     through .
    ONFINO��D E@ED`�������������ȟ�������������� ���(���ϰ����������\�����/�_��������x(��@-�R�����������������������\�:����Dȟ�����<����������������������������������_ˠ�������������/��ǟ�@-����ϰ���������_ˠ�������������ǟ����������������qnj���������������/��@-�'������d7��@��Q��
    Q�3�2��/�&������P��P�`@��`��q��p��q��`V�P���P���� A��(Q��_�����P�@�	���a��P��P�U����P������������Q���������@-�qG��	̄�������ɔ����Ʉ�ɔ�Ʉ�ɔ� ���Ʉ�ɔ������Ʉ���ɔ�K�����Ʉ���ɔ����Ʉ�Q���Ʉ�\Ɵ�	��Ʉ�GȠ�Ʉ�FȠ�Ʉ�Š�Ʉ�AȠ�Ʉ�4Ɵ�(	��Ʉ�,Ɵ�,��Ʉ� Ʉ�`�� ��dɄ�h��l	����p	��K��tɄ�����K��8Ʉ��������|����ɔ������Ʉ����@-�qG��
    ̄�������͔����̈́�͔�̈́�͔� ���̈́�͔�2�����̈́��͔�K�����̈́��͔�T�����̈́�c���̈́�ɠ�
    ��(̈́�GȠ�̈́�FȠ�̈́�Š�̈́�AȠ�̈́�,ş�̈́�ş�̈́� ̈́�ş�`̈́����d
    ����8̈́�b�������|�������\�͔����̈́��ğ���H���������p@-�4����(A���D����A��Q�����R�p��p��`��`��`��`�� ����� ���(������������R����p����@-��Xt�������P�������@E�Q�@�������@-� ����
    ������qǠ���t���t��t��
    ��t��t��	�t����
    ���t��t�������t����� ����
    ����� ��
    �������� ������#���� ��#�� ��#�� ������� ������������ ����
    ����� ��
    ����������\������T����`����`��D�������/�8@-�P��0C��d��0P����
    ���4P���� ������$�����P������������Ÿ�P��0���8������Ÿ��� ���� ��D ��$��������������/���Ÿ���$��0��������$�� ��$���/�p@-�Ÿ�`��@��P�� `��$@��@��@��P��P��P��P��x���Q������qǠ���L"��@�������������~�������� ��z���'������v�������"��r�����8���������Ġ�D������@������@��
    T���@��
    ����@������@������@������@��9�����p�������������/�x������ ���/�h�����������8����� ���$�������/�@��������/�0����������������$����@�� ����$���/�@-��@��$����� �������?�������������(���ΰ����$������ ���$���3������D�������>Y��������������?$'?���@@2HS2�S�S#=#�!$2J�2JSg�@@����'���UUUUUUp�����0@-�����M���@���\�@�������;����#;������0��`D��,ɠ�#C�;����#;��0��0��0�������.K����H��^��A��;��#7��������ğ�.5����LȠ�Ƞ����.2��?0����������,���
    ���
    �� ���\� �����Ѝ�0������ �M�,���
    ��
    ��� ���\� ��������� ������!��������,'����(������,ˁ����\ß��� ��!ˌ���������!��͠���,ˠ�Ō� Ό������������\������ Ѝ��/������ʌ�����/��Ÿ�����M����Ѝ��/�@-��2�� ������������R�ˠ�,ˠ�P��������������������������������������������\�b
    `���ʌ�`���
    ˠ�d�� ������\��P���d���,Ġ���������\�
    ���\�����������������\������C
    d���,Ƞ������������P�-
    P�
    P�
    P���4�� L�(��"(��R������������� �� �������� ��L�(��"(��R������������� �� �������� L�(��"(��R������������� �� �������� ���L��� ��P�������� ��ˠ�,ˠ��,�������������������������������������������/����8@-�\�8���!�������0��@��0��S������:�\������8������@-�\�
    0����� ������� ���^����R����:�\�0��������������`�����������������Q�
    P��2���:P���/�Q��A-����
    �����������P��r���P��@��c������ `�\���V�P�����P��������@T����P����������@-����� ��
    0��0��	\����0��� R����A��������
    ����������C-�p��������\����,R�
    @��4������`�-���V�P�����P����������������������Y�
    \�@�
    ���@��T����:������@-�̠� ��
    �������������O-�P�$�M����
     Q��4
    �������P�����X��� ������pA����`�� @���������������Y�P�����P�����������0@�P������	P��@��'@�������
    �����J����@T����`�����PU������$Ѝ����Q��A-����
    L������I���P�hp�
    P��@���������`����V�P�����P������������\����@T�P�����������P��/��P�����/��������/��������/�����������!������R��3�/1�!������ �������/�@-�0������S��������0S���������R����@-�
    ����0� R�0.�1��,�#������� ���������R�Ƞ�@-�,Ƞ�
    ����0� R�0.�0��0��L�#�������Ƞ�,Ƞ������0��@-���� ���A�@�0S�Ό��� �����������A-�`��p�������������P��L��ϰ�@� ��@(������PU����`��V������:����A-�P��`��p�������������@��(���ǰ��'�������(���������@T�Ƞ�,Ƞ����P��U�������:��� H�������O-�,����|���`��[��6������������������A�Q
    P�����0�� ����
    �����P�Cp��������P�>J������K���������������������������������������4���\�0��\`��F������@�@����[���
    P��2U���������p��������\��������������������
    ��\������� ��������l#�	��}���P����p������P��2U����L����������Starting NAND Copy...
    Valid magicnum, �, found in block .
    No valid boot image found!
    ���Hf����H@-���������@-����P�����@����
    3������P��������������������������������������W���P�
    ������������������`������@-���������A���������������<�/����Aborting...
     initialization passed!
     initialization failed!
    TI UBL Version: �1.50�
    Booting Catalog Boot Loader
    BootMode = NAND
    NAND Boot failed.
       DONE
    Jumping to entry point at �.
    �LE'H@-� ��3
    �� R�(�� R�$���R� � R���R�� R���R�
    � R���R���P���@ P���@ �P���@ P���@ �P���@ P���@ �P���@ P���@ Q�"$�1���:�� ������@���/�P���@���/��/�����@-���� ��
    �������������m���@-�@������h�����������0x���9ks 3 u 5 v 6 y  q@ F V t  �@@�@@�@@�@@�@@�@@�@@�@@� @@� @�
     0@P`p��������
    #P� !0 !X#�#pE������dd`�
    _�KNDM36x�

    (rename  to UBL_DM36x_NAND.bin)

    Rename from .txt to .bin and flash them.

    And nothing else happened. I switched off the board as described in the instruction, set SW4 for NAND boot and switch the board on, but it still boots from MMC. What should I also do? Maybe set some special bootargs?

    Its nothing to do with bootargs. Can you also provide the log when U-Boot comes up..

    Thx

    --Prabhakar Lad

  • Hello, Prabhakar Lad,

    Thanku very much for reply; you know, true miracle happened.

    I downloaded your files and edited the expansion and used it instead of those that I initially found. I entered the command line: "sfh_DM36x.exe -nandflash UBL_DM36x_NAND.bin u-boot.bin" and the same stuff happened as I described previously (Target: BOOTME BOOTME BOOTME, etc...). I just gave exactly the same command and it worked out: UBL and U-boot were written to NAND successfully. I can't get the point in it. BTW, where have you found files you gave me? I took them from PSP-SDK archive that TI supplied. Maybe there is smth with them.

  • Hi,

    I found the UBL_DM36x_NAND.bin in the flasher tool itself, the u-boot.bin I built it from it from( http://git.denx.de/?p=u-boot.git;a=summary )

    upstream u-boot.

    Thx,

    --Prabhakar Lad

  • Ok. And could you please tell me how did you build u-boot? Did you do this especially for DM36x or is it suitable for any processor now?

  • Hi,

    This U-Boot is the mainline branch like how kernel.org is for linux.

    Following are the steps for building for dm365:

    1: clone the entire branch.

    2: $<directory of  u-boot>make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- clean distclean

    3: $<directory of  u-boot>make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- davinci_dm365evm

    This creates u-boot.bin for you.

    Thx,

    --Prabhakar Lad

  • Thanks a lot, Prabhakar Lad!