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.

DM368 Eval board won't boot from NAND

Hi,

We just upgraded to the DM368EVM from the DM365EVM.  We had no problem booting the DM365EVM from NAND, but nothing comes out of the serial head when trying to boot the DM368EVM.  I suspected that maybe there was no UBL/U-boot in the NAND from the factory, so I followed the directions here:

http://processors.wiki.ti.com/index.php/UG:_DaVinci_PSP_Installation_on_DM36x_EVM#Flashing_DM36x_EVM_.28PG_1.2_Silicon_or_newer.29_using_Serial_flash_utilities

...to load the ubl_DM36x_ARM432_DDR340_OSC24_NAND.bin and u-boot.bin to the EVM NAND.  This process appeared successful, but setting SW4 to all OFF and rebooting again produces no output from the serial head. 

If I set SW4 for MMC/SD boot and use the SD card provided with the board, the EVM boots just fine and I see the serial output, so it's not anything to do with cabling.  SPI boot is also fine, since the serial flasher utilities run successfully.

The UBL and U-boot binaries are built from the DaVinci PSP-SDK 03.21.00.04, following the directions under "Rebuilding U-Boot" and "Building the User Boot Loader (UBL)" in the above link..

Any insight appreciated...

  • Update:

    Flashing with the ubl_DM36x_ARM297_DDR243_OSC24_NAND.bin results in a successful NAND boot, so it is something to do with the UBL.  Again, any insight is appreciated.

    -Frank

  • Hi Frank,

    'ubl_DM36x_ARM297_DDR243_OSC24_NAND.bin'  is for setting ARM @297Mhz and DDR @243 Mhz.

    This is used for DM365EVM. The DM368EVM is capable of running at much higher frequency ,

    this UBL 'ubl_DM36x_ARM432_DDR340_OSC24_NAND.bin' sets ARM @432Mhz and DDR@340Mhz.

    Thx,

    --Prabhakar Lad

  • Hi Prabhakar,

    Thanks for your response.  I realize that the ubl_DM36x_ARM297_DDR243_OSC2_NAND.bin file is for the DM365.  If you re-read my original post, the ubl_DM36x_ARM432_DDR340_OSC24_NAND.bin, which as you stated is meant for the DM368, is the one I tried first, and it will not boot.  Nor would the board boot from NAND out of the box.  The one for DM365 will, though.  I'm not sure why the UBL with the faster clock speeds fails.  And, yes, it is actually a DM368 chip on the board :).

    Would you know any reason why the 432/340 UBL fails, but the 297/243 UBL boots just fine?

    Thanks,

    Frank

  • I use the same UBL for DM368 which works for me. Is  the board custom made ?

    I have attached the UBL, could you please try with it(rename it to .bin)

    Thx,

    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�����Ʉ���ɔ����Ʉ�	��d��U���Ʉ�TƟ�\&��Ʉ�GȠ�Ʉ�FȠ�Ʉ�Š�Ʉ�AȠ�Ʉ�0Ɵ�(	����Ʉ� Ʉ�`)��dɄ�Ɵ�hɄ�Ɵ�l	��K��pɄ�t������K��8Ʉ��������|����ɔ������Ʉ����@-�qG��
    ̄�������͔����̈́�͔�̈́�͔� ���̈́�͔�2�����̈́��͔�K�����̈́��͔�G�����̈́�	���̈́�ɠ�̈́�(̈́�
    ��F��
    ����
    ��A��
    ��0��
    ��̈́�ş� ̈́� ş�`̈́�ş���d̈́����8̈́�c�������|�������]�͔����̈́��ğ���H���������p@-�4����(A���D����A��Q�����R�p��p��`��`��`��`�� ����� ���(������������R����p����@-��\t�������P�������@E�Q�@�������@-� ����
    ������qǠ���t���t��t��
    ��t��t��	�t����
    ���t��t�������t����� ����
    ����� ��
    �������� ������#���� ��#�� ��#�� ������� ������������ ����
    ����� ��
    ����������`������X����`����`��H�������/�8@-�P��4C��d��0P����
    ���4P���� ������$�����P������������Ÿ�P��0���8������Ÿ��� ���� ��D ��$��������������/���Ÿ���$��0��������$�� ��$���/�p@-�Ÿ�`��@��P�� `��$@��@��@��P��P��P��P��x���Q������qǠ���P"��@�������������~�������� ��z���'������v�������"��r�����8���������Ġ�D������@������@��
    T���@��
    ����@������@������@������@��9�����p�������������/�|������ ���/�l�����������<����� ���$�������/�D��������/�4����������������$����@�� ����$���/�@-��@��$����� �������@�������������(���ΰ����$������ ���$���4������D�������>Y���������������?$'?���@@2HS2�S�}�WC�.�2J�2JS\
    �@@����'���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��@��b������ `�[���V�P�����P��������@T����P����������@-����� ��
    0��0��	\����0��� R����A��������
    ����������C-�p��������\����,R�
    @��3������`�,���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�����@����
    2������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��������
     #T� !4  !\#�#pE������dd`�
    _�KNDM36x�
    --Prabhakar Lad

  • The board is the DM368EVM from SpectrumDigital... about as un-custom as you can get :).

    The UBL you attached worked... is there a bug in the version supplied with PSP 03.21.00.04, then?  I couldn't find a git repository that had the UBL code anywhere on the Arago site...

  • Hi,

    The board is the DM368EVM from SpectrumDigital... about as un-custom as you can get :).

    Ok.

    The UBL you attached worked... is there a bug in the version supplied with PSP 03.21.00.04, then?  I couldn't find a git repository that had the UBL code anywhere on the Arago site...

    I am not aware of the bug. The UBL source is present in the serial flasher code itself. alteratively

    you can find it on source forge.

    Thx,

    --Prabhakar Lad

  • Prabhakar Lad said:

    I am not aware of the bug. The UBL source is present in the serial flasher code itself. alteratively

    you can find it on source forge.

    Right, I couldn't find the flash-utils code anywhere on the Arago git repo.  Is it there, or only on SourceForge? 

    http://sourceforge.net/projects/dvflashutils/files/

    ^--If that's the location of the flash utils project on SourceForge, I didn't see a DM36x category, just DM35x?

    Thanks for your continued help.

  • Hi,

    AFAIK there is no UBL source in arago(I might be wrong)

    I guess you have the PSP release package you should find the source for UBL in this package too.


    Thx,

    --Prabhakar Lad

  • Prabhakar Lad said:
    I guess you have the PSP release package you should find the source for UBL in this package too.

    Yes, that was the code that produced the UBL image that failed to boot.  I simply ran, 'make' from the DM36x/GNU directory to produce the images.  That's why I was wondering if there was a bug in that version that misconfigured something for the higher DM368 clock rates.  I was hoping to be able to get updated source, if possible. 

    What source produced the image you gave me?

    Thanks again, you've been very helpful.

    Frank

  • Hi,

    Yes, that was the code that produced the UBL image that failed to boot.  I simply ran, 'make' from the DM36x/GNU directory to produce the images.  That's why I was wondering if there was a bug in that version that misconfigured something for the higher DM368 clock rates.  I was hoping to be able to get updated source, if possible. 

    What source produced the image you gave me?

    I'll get back on this with you soon,  by asking my colleges here in TI hopefully by Monday.

    I took a pre-built image I never built it :(

    Thx,

    --Prabhakar Lad

  • OK, I look forward to what you find out.  Thanks again very much for your help!

    Frank

  • May I ask how you put this binary in flash ?

    First, I am assuming that you added the UBL header (2048 bytes) to this file. I have done this using this shell script described there:

    https://linuxlink.timesys.com/docs/gsg/dm365_evm#SECTION00042000000000000000

    Then I do something like this:

    mmc rescan 0 ; fatload mmc 0:2 0x80700000 ubl-nand-arm432-ddr340-osc24.ubl
    nand erase 0x20000 0x20000 ; nand write.ubl 80700000 20000 20000

    I have a pre-cpmpiled UBL binary which works, but it puts the CPU at only 216 MHz...

    I also tried to recompile the UBL with gcc (linux host), but so far, no luck (w/i a JTAG debugger, I have no clue why the UBL is not running, I have nothing displayed on the serial port). Note that I have been able to successfully compile the UBL for MMC boot, using the same environment (gcc under Linux).

    Any help on this would be greatly appreciated!

    Thanks, Olivier

  • Hi,
    I was compile UBL code in CCS generate UBL_DM36x_NAND.out file . how to generate UBL_DM36x_NAND.bin from UBL_DM36x_NAND.out file

    how to set pin muxing ?
    BR
    Tejas