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.

Can I get help to start?

Hello,

I installed the EZSDK and built an image by following "EZ Software Developer Guide.pdf". ( and booted from an SD image which contains the newly built image. )

Now, what I want to do is to try some source code, build it and try to debug it to get familiar with the environment.

However, I'm stuck with very early stage.

Here are my goals and problems I see.

1. Goal

    Would like to boot from Linux kernel is either from TFTP or SD image and mount  a file system on a directory on my Linux host. According to the document, it's said "NSF mounting" or something like that in the document.

2. Problems


    I believe that setup is easier to develop S/W for. By issuing "setup.sh" in a ti-ezsdk)dm816x-evm..." directory, it allowed to set those : where a linux image is ( either TFTP or SD card ) and where a file system is ( SD card and NFS ). After doing that, as a last step, it invoked a minicom with setup_uimage-tftp_fs-nfs.minicom. But it hangs there.

I confirmed that the serial connection is established Ok by booting from a bundled SD card and I could connect from a Windows host over RS-232C.

But if I do it on a Linux ( living in a Virtual Box ), it doesn't /dev/ttyS0 was changed to /dev/ttyO2 and tried it, but it didn't work also. In one of the document, in recent SDK, ttyS0 is changed to ttyO2. Anyway, the setup.sh said it would automatically detect a right one. but it hangs. I checked if ttyO2 was really there in /dev but it didn't. Probably ttyO2 is a kind of alias in TI's environment setup script. Am I right?

I figured out that the port is not /dev/ttyS0, but /dev/ttyUSB0, because I use a USB->Serial cable.Although the VirtualBox setting is COM6 ( which is the recognized COM port on Windows side. ) and assigned it as COM1, inside of Linux, it is only recognized when /dev/ttyUSB0 is used. Then I need to map ttyUSB0 to ttyO2, right?

When using a sample SD card, I could connect it on a Linux (in a virtualBox) using /dev/ttyUSB0.

However, when it is turned off and the SD card is pulled out and turned on ( hoping that it is to be booted from TFTP and the NFS fileshare on the Linux), it didn't look to be booted correctly. I can't see any prompt when using minicom or Windows based terminal program. Can you tell me what to do?

Additionally, according to the document, it said :

"Boot the Linux file system from your development host using NFS. On your development host the
Linux target file system is located at ${HOME}/targetfs" -- from the Software Developer Guide
But when I looked up "T181XX_PSP_U-Boot.pdf" or "T181XX_PSP_User_Guide.pdf", there doesn't look to have any special dip switch setting for NFS boot. Actually there are only NOR/NAND/SPI/UART/SD/EMAC boot options for SW3 and SW4.
Proably it is UART because UART is a chip for RS232C? But anyway, it's not clear. So, if there is a dip switch setting, what is it?

Also, according to the "U-Boot.pdf", it says :

"Note: Uboot supports only Ethernet on Port 1 (J14), Port 2 (J27) is not supported in current release. ( on page 30, U-Boot Network configuration )"

However, on a DaVinci board, there is no J27 port. I have J10 and J10 Ethernet port. The J10 is on a mainboard on which an ARM processor is, while J14 is on its daughter board.
However, when I used a sample SD card, it's the J10 ethernet port is enabled and gets IP address from my NAT box.

So, are you sure only J14 is allowed for "SDK" although the built image enables "J10"?
Or does it just happen to contain sentence for older board?


Is the document up-to-date?

Please, somebody turn a guiding light for me.

Thank you.

  • Hi Park,

    Are you using the latest EZSDK 5.05.01.04?

    For how to use VirtualBox, check here:

    http://processors.wiki.ti.com/index.php/How_to_Build_a_Ubuntu_Linux_host_under_VirtualBox

    Please check also the below links, which should give answers to your questions:

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_EMAC_Boot

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#Using_The_Correct_Console_Device

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_User_Guide#Boot_over_Network_.28Ethernet.29_2

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#U-Boot_Network_configuration

    http://processors.wiki.ti.com/index.php/TI81XX_PSP_U-Boot#Environment_Settings_for_NFS_Filesystem

    If you still face some issues, please provide the new status and full log file from the console input/output.

    Regards,

    Pavel

  • Hi, Pavel.

    Thanks for your reply, but I already passed that step.

    Problem is that those document are not written well. For example, to boot from TFTP/NFS, the Software Development Guide, for example, mentioned PSP User Guide saying that probable DIP switch setting is explained there. But it was not. After a few days of struggle, I found out that booting from TFTP/NFS was described in a document named "Modifying U-Boot"

    Anyway, I figured out most of things and was able to retrieve boot image from TFTP and NFS was mounted. But the booting procedure is not fully finished. It dumped in accessing virtual memory.

    If you have time, can you go to this post and answer to my question?

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/p/236732/830039.aspx#830039

    Thank you.

  • I see that Badri has already answered.

    Regards,

    Pavel

  • I am a newbie but I really like developing using tftp to boot and NFS to mount the filesystem on my host.  It makes it extremely easy to try new things out.

    I am not using the EVM board, however the RidgeRun docs helped me figure out how to get tftp boot and NFS file system working for me using a Ubuntu 10.04 LTS host and a Z3-DM8168-RPS-LITE.  They have a doc for the DM8168 EVM.  In case it may offer clues for you I pasted below:

    Getting Started Guide for DM8168 EVM

    On my board there are no dip switch settings controlling NFS boot.  There are a number of environment variables I had to set at the uboot prompt to get tftp and NFS to boot.  The TI SDK setup.sh apparently builds you a minicom script to do this (which I have not used).  I set my target's environment variable manually (after holding down space bar and booting ) from the uboot prompt.  Example:

    Z3-DM8168-MOD# setenv ipaddr 192.168.1.9         <-My DM8168 target
    Z3-DM8168-MOD# setenv serverip 192.168.1.6      <-My Ubuntu host
    Z3-DM8168-MOD# setenv nfsserver 192.168.1.6 
    Z3-DM8168-MOD# setenv nfs_root /home/z3/z3-netra/filesys/fs
    Z3-DM8168-MOD# setenv tftp_root z3/z3-netra/images
    Z3-DM8168-MOD# saveenv
    Saving Environment to NAND...
    Erasing Nand...
    Warning: Erase size 0x00002000 smaller than one erase block 0x00020000
             Erasing 0x00020000 instead
    Erasing at 0x260000 -- 100% complete.
    Writing to Nand... done
    Z3-DM8168-MOD#
  • Hew... I came back to my study on DaVinci board.

    Yup.. I noticed that. Thanks for you time. :)

  • Thank you for the information. In my case, my board doesn't have the NAND memory to save those U-boot environmental variables.

    Your setup looks interesting, though. It's not complicated as mine, but.. it made your board booted. Probably the boot image name was consistent n your case, because there is no such thing in those command lines..

    But anyway.. probably this thread can be good for beginners.

    I got information from this page, Modifying U-Boot

    Thank you again.