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.

DM8168 U-boot Issue

Other Parts Discussed in Thread: CCSTUDIO

Dear Sir,

I built u-boot image for custom boards. I can erase and load the u-boot image by CCS v6.0. Once loaded, i am getting message as Application successfully flashed

NAND boot preparation was successful.

After that, disconnect CCS and turn off the board. Again turn on the board and connect the serial port (UART 0) to PC.  nothing is shown on the PC. Can you mail me what could be the problem?

Regards

Balaji

  • Dear Sir,

    How to test the DDR3 Memory? do you have file for executing?

    Regards
    Balaji
  • Balaji,

    Balaji Govindarajan said:

    I built u-boot image for custom boards. I can erase and load the u-boot image by CCS v6.0. Once loaded, i am getting message as Application successfully flashed

    NAND boot preparation was successful.

    Do you mean you are trying to flash the NAND from CCS?

    Balaji Govindarajan said:
    After that, disconnect CCS and turn off the board. Again turn on the board and connect the serial port (UART 0) to PC.  nothing is shown on the PC. Can you mail me what could be the problem?

    Have you change to sys boot pins to NAND boot? Are you sure you have attach console to UART0 in your custom board? As DM816x TI EVM is using UART2 for console, make sure you have follow the instructions from the below wiki page:

    BR
    Pavel

  • Balaji,

    Balaji Govindarajan said:
    How to test the DDR3 Memory?

    You can use the uboot mtest, see the below e2e thread for more info:

    There is also DDR HW diagnostic test (CCStudio based) that can be taken from Spectrum Digital DM816x EVM, slightly modified for your custom board and used.

    BR
    Pavel

  • Dear Pavel,


    I built ti8168_evm_config_nand and load the u-boot-noxip.bin to custom board via JTAG. it was showing that application successfully flashed.
    NAND boot preparation was successful!

    I am not getting any uart display from custom board after power off the board and also removed JTAG. can you mail me what could be problem?


    Regards
    Balaji
  • Balaji,

    Balaji Govindarajan said:
    I built ti8168_evm_config_nand and load the u-boot-noxip.bin to custom board via JTAG.

    Are you using the CCS NAND flasher tool?

    Balaji Govindarajan said:
    I am not getting any uart display from custom board after power off the board and also removed JTAG.

    Do you mean that you do not have UART console messages when you power OFF the board? And what messages you are expecting to have when you power OFF the board?


    BR
    Pavel

  • Dear Pavel,

    I did the program by NAND Flasher Tool and also need to test the mtest on uart console

    Test result:

    Hit any key to stop autoboot: 0
    CPU0#
    CPU0#mtest 0x80000000 0x9fffffff 0xaa55aa55
    Testing 80000000 ... 9fffffff: Running 1. Num words = 0x8000000
    Fill memory range: 0x7fff000
    Fill all specified memory range
    Check memory range: 0x7fff000
    Pass count: 00000000
    Fill memory range: 0x7fff000
    Fill all specified memory range
    Check memory range: 0x7fff000
    Pass count: 00000001
    Errors: 0
    Pass: 268435456
    CPU0#

    Regards

    Balaji

  • Dear Pavel,

    I am not getting any changes in the processor after load the u-boot-noxip.bin to custom board via JTAG. Is there anything to be apart from this?

    Regards
    Balaji
  • Balaji,

    Balaji Govindarajan said:
    and also need to test the mtest on uart console


    To avoid overwriting u-boot, run the below test:

    TI8168_EVM# mtest 0x80800000 0xA0000000 0xaa55aa55 3
    TI8168_EVM# mtest 0xA0000000 0xC0000000 0xaa55aa55 3

    BR
    Pavel

  • Balaji Govindarajan said:
    I am not getting any changes in the processor after load the u-boot-noxip.bin to custom board via JTAG. Is there anything to be apart from this?

    I am not sure I fully understand your request here. What changes in the processor exactly you need? Do you mean that you can not run/start/load the u-boot from NAND?

    BR
    Pavel

  • Dear Pavel,

    I am able to load the u-boot-noxip.bin to custom board via JTAG emualtor using nand-flash-writer.out. After writing complete, the message as "Application successfully Flashed " and "NAND boot preparation was successful!" After power off and power on, i should get message on UART console but i am not getting any message.

    I also read Control Status Regsiter: 0x48140040 - 0x00000312 (NAND boot)
    BootSTAT : 0x48140044 - 0x00000000

    After this, i have also tried configuring boot for UART with boot mode selection 00001

    I also read Control Status Regsiter: 0x48140040 - 0x00000301
    BootSTAT : 0x48140044 - 0x00000000

    I got hyperterminal with some symbols like this " ♬µ♬µ♬µ♬µ♬µ♬µ" with 115200 baudrate also tried with different baudrate like 57600 i am getting "úúúúúúúú"




    Regards
    Balaji
  • Balaji,

    Balaji Govindarajan said:
    I am able to load the u-boot-noxip.bin to custom board via JTAG emualtor using nand-flash-writer.out. After writing complete, the message as "Application successfully Flashed " and "NAND boot preparation was successful!" After power off and power on, i should get message on UART console but i am not getting any message.

    Make sure you set BTMODE[4:0] = 00000 before and during CCS/JTAG NAND flashing procedure. Then after successful CCS/JTAG NAND flash procedure, power off the board, remove JTAG, set BTMODE[4:0] = 10010 (NAND boot mode) and power on the board. Note also that on DM816x TI EVM, there is NAND enable switch (SW4[1:2]), if you have such on your custom board, make sure NAND is enabled.

    Balaji Govindarajan said:
    After this, i have also tried configuring boot for UART with boot mode selection 00001

    DM816x PSP u-boot does not support UART boot by default, you should develop it if you need it.

    BR
    Pavel

  • What is the bus width of your NAND flash chip, 8-bit or 16-bit?

    BR
    Pavel
  • Dear Pavel,

    What is the bus width of your NAND flash chip, 8-bit or 16-bit?
    Answer: 8 bit.

    Regards
    Balaji
  • Make sure you set BTMODE[4:0] = 00000 before and during CCS/JTAG NAND flashing procedure. Then after successful CCS/JTAG NAND flash procedure, power off the board, remove JTAG, set BTMODE[4:0] = 10010 (NAND boot mode) and power on the board. Note also that on DM816x TI EVM, there is NAND enable switch (SW4[1:2]), if you have such on your custom board, make sure NAND is enabled.

    What is the result of the above actions?

    BR
    Pavel
  • Dear Pavel,

    We have followed as you mentioned before the mail. Still we are not getting anything.

    We also read ROM Code Version Register 0x2BFFC value is 0x00002202.

    If i erase NAND Device Completely and disconnect the JTAG, i am getting ♬µ♬µ♬µ♬µ♬µ♬µ on UART0 with Boot mode 10011


    Regards
    Balaji
  • Dear Pavel,

    Any update for above one.

    Regards
    Balaji
  • Balaji,

    When I set BTMODE[4:0] = 00001 (UART boot), I have nothing on the UART console when I power up the DM816x TI EVM.

    When I set BTMODE[4:0] = 10010 (NAND boot), I have the below UART console output:

    host:~$ picocom -b 115200 /dev/ttyUSB1 --send-cmd "sx -vv"
    picocom v1.4

    port is : /dev/ttyUSB1
    flowcontrol : none
    baudrate is : 115200
    parity is : none
    databits are : 8
    escape is : C-a
    noinit is : no
    noreset is : no
    nolock is : no
    send_cmd is : sx -vv
    receive_cmd is : rz -vv

    Terminal ready


    U-Boot 2010.06 (Dec 24 2012 - 20:11:30)

    TI8168-GP rev 1.1

    ARM clk: 987MHz
    DDR clk: 796MHz

    I2C: ready
    DRAM: 2 GiB
    NAND: HW ECC BCH8 Selected
    256 MiB
    MMC: OMAP SD/MMC: 0
    :,;;:;:;;;;;;;;r;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:,;;:;:;;;;;;;;:;;;;;;;;:,;;:;:
    ;,;:::;;;;r;;;rssiSiS552X5252525259GX2X9hX9X9XX2325S55252i5:,;;:;:;;;;;;;;:,;;:
    ;:;;;;;;;rrssSsS52S22h52299GGAAMHMM#BBH#B#HMM#HMBA&&XX2255S2S5Si:,;;:;:;;;;;;;;
    ;:;;r;;rsrrriiXS5S329&A&MH#BMB#A&9XXA252GXiSXX39AAMMMBB&G22S5i2SSiiiisi:,;;:;:;
    ;;;;;r;rr2iisiih393HB#B#AA99i22irrrX3X52AGsisss2Xii2299HBMA&X2S5S5iSiisSsi:,;;:
    r:r;rrsrsihXSi2&##MHB&Ahh3AGHGA9G9h&#H##@@@##MAMMXXX9SSS29&&HGGX2i5iisiiisisi:,
    ;;rrrrsSiiiA&ABH&A9GAGhAhBAMHA9HM@@@@@@@@@@@@@@@@@@@HHhAh2S2SX9&Gh22SSiisiiisii
    r:rrssisiS2XM##&h3AGAX&3GG3Ssr5H@M#HM2; ;2X&&&MHMB###GBB#B&XXSSs529XX55iSsisisi
    r;rsrisSi2XHAhX99A3XXG&&XS;:,rH#HGhAS @@@@3rs2XBM@@A552&&AHA2XiisSS252SSsisSs
    r;issi5S22&&3iSSX292&hXsr;;:;h@&G339&S9@@@@2@MA&9&HB##Xris29ABMAAX2ir;rsSi5iss5
    rrsSi2XhG&9GXh399&X99i;;;;;;r#H&293H9X#@@@@@@@B&9GhAH@XrrsrsiXABHB&HG2rr;rrSiSi
    ;:rsisS599&AA9XG&3A35r;:::;,;BMh&&2iX5A@@@@@@@&392X5GB2;;;r;iSX393A##A&Xi:::rsi
    ;:rss552222X553&XHMhir;;::,:,h#HhGSXhG3#@@@@#AXXS2XAHA;::;;;;ss55XShBA3239r:,;;
    r;ii2S5SSi2i53hirsh2srr::,,,,;MMXX359&Ah3h&Si59SX99A#i:,::::;;sri2,.2r;:SGAr;,:
    ;:;rrrrssiriXGSi::shs;;;,,,:,,rBBA9h5s5h5iS5isi2SAHB5:,,,:::;rrs5&SrisSX5Srrr:,
    ;,r;;;;rsriSSrrrr;;5Xrr;;,:,,.,;9AA2SsisS5323XXXG9&i:.,,::;;r;;;srrrrrr;;:;::::
    :,;r;r;rrissrrr;:;::;s;;;;,:,,..,r293h222hXXAAGGGX;:,,,:,:,::;:;::,:,,,,...,,,,
    ;,;;;;rrrrrrrrirr;,.,,:::::::,,,,.,;SX&ABAB2hhXir:,,.,,.,,:,,,,..,,,..,..,,,..:
    :.:;:;;;:;;;;r;rrs;:.. ,,:::::,:,:,,.::rrsrr;;,,.......,..,....,,,,,,,...,.,,:,
    :.:::,::::::;;r;rrr;:.......,.,.,,:::,,...............,,::.,,,,:,::,,:,:,,,:,;:
    ,.::,:,,,,,;;;;;;;;r;;::,..............................;;;:;::::,:::::::,:,:,,,
    : ,,:,,,,,,,,,,,,,:;rrr;;:;,,,,,,,::,.,.:.,.,;s,:;;;;:;:;;;;;::::,:::,:::,:,:,:
    ,.,,,,,,,...,,.,,....................................:,............:,,,:,:,,,,,

    Net: Detected MACID:40:5f:c2:63:a2:30
    Ethernet PHY: GENERIC @ 0x01
    DaVinci EMAC
    Hit any key to stop autoboot: 0
    TI8168_EVM#

    0x48140040/CONTROL_STATUS = 0x00010312
    0x48140044/BOOTSTS = 0

    0x4031D040 = 0x9E
    0x4031D044 = 0x18000
    0x4031D048 = 0x8

    Can you provide me the values of these registers? Can also try with other boot mode (SPI, NOR, SD, EMAC)?

    Examine also the below resources:

    DM816x TRM, section 25.7.3 NAND
    processors.wiki.ti.com/.../Debug_Tips_for_DM81xx_Boot_Fail
    processors.wiki.ti.com/.../AM335x_board_bringup_tips

    BR
    Pavel
  • Dear Pavel,

    After load the program to nand flash on custom board by Blackhawk USB560V2 system trace emulator in CCSv6 and then change to 10010. nothing is display on UART and also cannot able to read the register from DM8168 since JTAG is not accessible (BTMODE[4:0] = 10010)

    Regards
    Balaji
  • Dear Pavel,

    Can you also mention upto what messages it will print in UART console from OCMC RAM ?

    Can also mention which UART port will print it?

    Regards
    Balaji
  • Balaji Govindarajan said:
    nothing is display on UART

    This means your boot flow stop/hangs before the first print message.

    Balaji Govindarajan said:
    and also cannot able to read the register from DM8168 since JTAG is not accessible (BTMODE[4:0] = 10010)

    This is not true, you should be able to access your board through CCS/JTAG in NAND boot mode.

    Have you tried other boot mode? What is the result there?

  • Balaji,

    Balaji Govindarajan said:
    Can also mention which UART port will print it?

    DM816x TI EVM is using UART2:

    BR
    Pavel

  • Balaji,

    You can also examine the u-boot in the below wiki page, which is for DM814x but valid also for DM816x:
    processors.wiki.ti.com/.../Understanding_u-boot-min_startup_for_DM814x

    You can put breakpoint and see if the flow ever reach the DDR configuration. See the below e2e thread for how to debug the u-boot with CCS/JTAG:

    e2e.ti.com/.../331762

    BR
    Pavel
  • Dear Pavel,

    I have loaded code (u-boot.noxip.bin) to flash by BlackHawk USB560v2 system trace emulator in CCSv6.

    BTMODE configuration : 10100

    I am getting following registers of DM8168 After load the uboot code to flash

    0x48140040/CONTROL_STATUS = 0x00010312
    0x48140044/BOOTSTS = 0

    0x4031D040 = 0x9E
    0x4031D044 = 0x18000
    0x4031D048 = 0x20 (We should get 0x8 for NAND Flash but we are getting configuration for MMCSD1)

    Is there anything to be changes in configuration or programming sequence ?
    Kindly reply for this issue.

    Regards
    Balaji
  • Balaji,

    ROM code can not be changed to workaround your HW issue. You should fix your HW design.

    BR
    Pavel
  • Dear Pavel,

    Can you be specific about what exact problem in hardware..
    because we are reading our 0x48140040/CONTROL_STATUS correctly as we have set on BOOT Config pins (0x00000312 -for 8 bit NAND device).
    also we

    how it could change on that particularly on ROM code register 0x4031D048?

    Regards,
    BALAJI
  • Dear Sir,

    We have bought DVRRDK-8168 from udworks. There also, erase flash and load the uboot code from CCSv6 to Evaluation board using Blackhawk USB560v2 System trace emulator. I do not get any message from UART port after uboot operation done. It is behaving same when do it custom and evaluation board. Can you mail me what could be problem?

    Regards
    Balaji
  • Balaji,

    It is good approach to try first using NAND boot in 8168 udworks board, then proceed to your custom board. Regarding 8168 udworks board NAND boot, see the below e2e threads:

    e2e.ti.com/.../1513591

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/426971

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/423736

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/428101

    https://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/428729
    BR
    Pavel

  • Dear Pavel,

    Yesterday, we had tried with E-MAC boot using Tftpd32 server. U-boot code can load to target board after set the configuration of EMAC but nothing is printing on UART console.

    I got following message from tftpd32 server.

    Rcvd DHCP release Msg for IP 192.168.2.119, Mac 50:46:5D:66:FE:47 [30/07 12:43:52.280]
    Rcvd BootP Msg for IP 0.0.0.0, Mac 90:59:AF:58:D1:66 [30/07 12:44:03.859]
    DHCP: proposed address 192.168.1.250 [30/07 12:44:03.862]
    Connection received from 192.168.1.250 on port 1234 [30/07 12:44:03.869]
    Read request for file <u-boot_dvr.bin>. Mode octet [30/07 12:44:03.876]
    Using local port 51176 [30/07 12:44:03.909]
    <u-boot_dvr.bin>: sent 406 blks, 207376 bytes in 1 s. 0 blk resent [30/07 12:44:04.281]

    Can you resolve this issue?

    Regards
    Balaji
  • Balaji,

    Are you trying this EMAC boot on your custom board or on the udworks board?

    Can you try with SD card boot?

    BR
    Pavel
  • Dear Pavel,

    I tried u-boot code on custom board but didn't get any display on UART console.

    Regards
    Balaji
  • Balaji,

    Can you try on udworks board?
  • Dear Pavel,

    I have tried following steps for udworks board.

    1. Load the u-boot_dvr.bin from tftpd32server.
    2. Got the UART messages from UART console.
    3. Change the EVM SDK 8168 u-boot.bin instead of step 1.
    4. Power off and on the board.
    5. Nothing got the display on UART console.

    Custom board nothing is display on the UART. Can you mail me how to resolve this issue?

    Regards
    Balaji
  • Balaji,

    Regarding u-boot_dvr.bin file, can you test it on your custom board also? Can you also share it, to test it on my side?

    Regarding u-boot.bin file, can you share it, to test it on my side?

    BR
    Pavel
  • Dear Pavel,

              I have attached file of u-boot_dvr.bin (udworks binary) and u-boot.bin7612.bin.rar.

    Regards

    Balaji

  • Regarding u-boot_dvr.bin file, can you test it on your custom board also? What is the result?
  • Is your custom board based on DM816x TI EVM Spectrum Digital or DM816x udworks board?

  • We tried with UDworks Boot. the result was same no display on hyper terminal.
  • we have some changes compared to EVM and UDworks. like we are using one DDR port, 8 bit nand, etc ) but basics like UART port, AVS , are same
    i can provide the list in my next post

    Regards
    Balaji
  • Regarding u-boot_dvr.bin file,
    can you test it on your custom board also? What is the result?
    Ans:
    nothing got from UART console.
    Regards
    Balaji
  • Have you modified your u-boot image to match your custom board design?
  • Dear Pavel,

    No. I have not modified u-boot. As a initial step, i want to get some print messages on hyperterminal. So, without modifying whether it is correct or not. if not, where to be modified. Please reply for this post.

    Regards
    balaji
  • Balaji Govindarajan said:
      I have attached file of u-boot_dvr.bin (udworks binary) and u-boot.bin(Please visit the site to view this file).

    Balaji,


    I can only find empty "bin" folder in this archive that you attached. Can you try again? To attach files in the E2E forum you should follow the below sequence:

    1) "Reply" button

    2) "Use rich formatting" button

    3) Drag and drop the bin files into the E2E forum window


    Regards,
    Pavel

  • When I download 7827.bin.rar and extract at my host, I have only empty bin folder. There are not u-boot bin files there.
  • Dear Pavel,

    how does the execution happen on DM8168?
    Do Uboot requires External RAM (DDR) For execution? (though we are loading UBOOT in internal OCMC RAM)

    Regards
    Balaji
  • Balaji,

    I made some investigation. Yes, u-boot.bin default configuration requires external memory (DDR). In the below thread you will find approach for re-configuration of the u-boot to run only from internal OCMC (no DDR).

    e2e.ti.com/.../721954

    BR
    Pavel
  • Dear Pavel,

    @$(MKCONFIG) -a ti8168_evm arm arm_cortexa8 ti8168 ti ti81xx

    what does above statement says?.
    i was trying truing to edit the Uboot as per my Custom Board. i wanted from where to start/

    Regards,
    balaji
  • Dear Pavel,

    When i connect the JTAG after loading the UBoot, will Uboot configuration is rewritten by GEL file configuration?. Because as soon as i connect target the Scripts runs.

    i just wanted to verify whether and where exactly the uboot is hanging before the print messages. 

    Regards,
    balaji

  • Yes, it is possible GEL file to mess up with u-boot. You should remove this GEL file. Follow these steps:

    1. Start CCS, Launch selected Configuration (from the Target Configuration list)

    2. From menu select: Tools -> GEL files

    3. Select Cortex-A8 core

    4. Remove the gel file (in my case it is evm816x.gel), right click on the GEL file and Remove

    5. Now when you connect to Cortex-A8 core, there will be no GEL file loaded automatically and no scripts will run

    Screen shot attached:

    BR
    Pavel