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.

install linux on EVM6678 Using Jtaq And CCSV5

Other Parts Discussed in Thread: TMS320C6678

hi

after compiling linux kernel, which file must be loaded on core0 using Jtaq and CCSV5.

i have tried vmlinux* but there are errors on loading it any

help plz

thanks.

  • Hi,

    vmlinux* is the correct one to load.

    Rex

  • Hi Rex

    i have done the following steps:

    1. load Gel file (Run Global_setup_default from script menu)
    2. Run->load->load program (and load vmlinux*)
    3. Resume

    but after resume this massage is show in console

    "Target not run as the symbol "main" is not defined"

    what is the problem?

    thanks dido

  • Hi, Dido,

    I usually don't run the GEL file. I recall seeing the message of symbol "main' is not defined shown on one of the CCS screen, but not "Target not run". I'll need to reconnect the EVM and CCS, and see exact message. Could you try not to run the Gel script and see if it makes any difference?

    Rex

  • Hi Rex

    if i dont load Gel file it failed to load.

    i have load "vmlinux-2.6.34-evmc6678.el-linux-c6x-2.0.0", from the following  link 

    http://software-dl.ti.com/sdoemb/sdoemb_public_sw/linux_mcsdk/latest/index_FDS.html

    is it correct?

    what do u mean with "Target not run"  ?

  • Hi, Dido,

    The Could you double check if the message "Target not run as the symbol "main" is not defined" is shown before the resume is hit? I tried it and that is my case.

    Rex

  • hi Rex

    u are right, the message is shown shown before the resume is hit, whats yr opnion?

    do u loaded a gel file, before loading vmlinux? it failed to load vmlinux before loading the gel file?

    thanks

  • Hi, Dido,

    The message simply says that it could not find the symbol "main", otherwise, it would have started the auto-run and paused at main. Since the symbol is not found, it didn't auto-run the init code.  I checked my set up that I had the gel file inserted in the CPU property in the Advanced Target Configuration. When loading program, it automatically execute the global default setup. So, yes, it is needed to run the gel script.

    Rex

  • hi Rex

    But still after load Gel file, it couldn't find main symbol.

    could u please tell me all the step u have done to load vmlinux on core0 (from creating new target configuration )?

    which gel file u have loaded? and after load vmlinux and run it , how can find the linux kernel is properly runnig (can i connect to board via serial)?

    thanks


  • Hi, Dido,

    It won't find the symbol unless the code is compiled to include symbol. That should not be a concern. I used the gel file in program_evm/gel directory. You can connect a UART cable come with the package and run either minicom or teraterm for a console screen on /dev/ttyS0 or COM port. Please see "Serial Port Setup" Section in the User's Guide in linux-c6x.org for detail info,

      http://linux-c6x.org/files/releases/linux-c6x-2.0.0.63/linux-c6x-2.0.0.63-users-guide.pdf.

    Once you click resume, you should see kernel starts booting on the Serial console screen.

    The steps I did:

    1) create new Target. 2) In Basic configuration, choose Connection: Blackhawk XDS560v2-USB Mezzanine, board type: TMS320C6678. 3) in Advanced configuration, highlighted C66xx_0, and select the gel in initialization script. 4) Click Save 5) launch the target 6) selet core 0 and connect, 7) load program vmlinux* ( you will see global default setup running in CCS console) 8) Click resume.

    I would suggest you to follow User's Guide and try NAND boot.

    Rex

  • Hi again Rex,

    after Click resume and running linux, How I can get access to running Linux command line?

    I have run linux From NAND and there is no problem, i can configuer eth0 on EVM and connect to it from my ubuntu Box, I can use "ls" to list directory contents and ...

    but how can i do these with a linux runnig from Jtag? thanks

  • Hi, Dido,

    Please refer to the section of "Serial Port Setup" in the User's Guide, http://linux-c6x.org/files/releases/linux-c6x-2.0.0.63/linux-c6x-2.0.0.63-users-guide.pdf, to get a console for Linux prompt.

    Rex

  • Hi Rex

    When I load vmlinux with Jtag and click Resume there are some unreadable characters send to minicom !

    but when it boots from NAND there is no problem.

    what is the correct SW3-6 settings to load with jtag?( i have set them to no boot mode (only SW3[1] is OFF and all others are ON)

    I use XDS100 onboard jtag is there any special issue with that?

  • Hi, Dido,

    Please refer to the C6678 TRM, http://www.advantech.com/Support/TI-EVM/6678le_download.aspx (Section 3.2.4).

    Jjumper COM_SEL1 enables either the Serial or usb port. If using CCS, you may want to change the kernel command line to have console=cio. The console printing will be on CCS console window.

    Rex