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.

OMAP-L138 LCDK

Other Parts Discussed in Thread: OMAP-L138, OMAPL138

Hai Raghul,

 I got the "Linux host shell" (Serial Terminal Window) to enter the commands started with "host $" , but where i can found the "U-Boot Shell" and "LCDK- Linux Shell" to enter commands starting with "EVM #" and "target $" respectively ?

Thanks and Regards,

Ilayaraja

  • If you can enter linux commands like ls, pwd, you are in a linux shell.  If you want to see u-boot on the LCDK, you can remove the SD card and boot.

  • Do you have your host PC connected to J3 on the target LCDK?  

    What terminal program are you using?

    Instructions to connect to a windows host for teraterm or hyperterm are here

    http://processors.wiki.ti.com/index.php/LCDK_User_Guide#Debug

    If you are connected to a Linux host you can use minicom

  • Hi Aaron,

     Thank you for your answer. And i missed my LCDK "Quick Start Guide" booklet, so where can i find the new one? Whether we can search in net? Is there any link available for Quick Start Guide.

    Thanks Again. 

  • I have connected my PC with the LCDK BOARD through USB connector to J3, and started the Minicom and i did the necessary settings(115200, 8N1 &  port name as ttyUSB0), but nothing displayed on the minicom window. What maybe the problem?

  • Are you sure it is ttyUSB0?  After you connect type dmesg in a linux host window and check to see if it shows up as ttyUSB0, ttyUSB1 etc.

    You can flash the NAND back to factory condition following instructions here

    http://processors.wiki.ti.com/index.php/OMAP-L138_LCDK_Linux_Software_Developer%27s_Guide#Restoring_U-Boot_on_a_bricked_LCDK

    If you remove the sdcard and reboot after you restore, you should at least see U-boot messages.

  • I studied from the Linux_Software_Developers_Guide#Restoring_U-Boot_on_a_bricked_LCDK  page and i executed the command as given, below i showed you, what i have executed,

    ilay@ilay-G41M-Combo:~$ sudo /home/ilay/ti-sdk-omapl138-lcdk-01.00.00/host-tools/flash_utils/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p /dev/ttyUSB0 -flash_noubl u-boot-lcdk_ais.bin

    [sudo] password for ilay:
    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Single boot image
    [BOOT IMAGE] u-boot-lcdk_ais.bin
    [TARGET] OMAPL138_LCDK
    [DEVICE] NAND
    [NAND Block] 1

    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)

    |

    these are the lines i got when i executed that command. After this i power cycled my board once and checked, and restarted once and checked, but nothing is happening after this. But, when i press "Enter" button, its showing as "Aborting Program". I waited after this for more than 1 hour, but no respponse, i dont know, whether its flashing or not?.

    Thanks,

    Ilayaraja.

  • Make sure the output of dmesg in linux shows that /dev/ttyUSB0 is connected.  It might be called something else like /dev/ttyUSB1 for example.

    Also make sure you set the switches correctly for UART2 (J3) booting the LCDK 

    http://processors.wiki.ti.com/index.php/LCDK_User_Guide#Switches_.28SW1.29

    After checking all that, remove the power connector and connect again when it says Waiting for BOOTME...

    It should only take a few seconds.

  • Hi Aaron,

    I checked the USB connection, (it is ttyUSB0 connected to UART J3 on the board) and settings as (115200 8N1), SW1 switch no.2 as ON(for UART booting mode) and i executed this command(sudo /home/ilay/ti-sdk-omapl138-lcdk-01.00.00/host-tools/flash_utils/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p /dev/ttyUSB0 -flash_noubl u-boot-lcdk_ais.bin), it is showing as,

    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Single boot image
    [BOOT IMAGE] u-boot-lcdk_ais.bin
    [TARGET] OMAPL138_LCDK
    [DEVICE] NAND
    [NAND Block] 1

    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)

    |

    and after this i power cycled the board, but now also its taking much time but no result.  

    And the another thing is, i am calling the "MINICOM Window" as, 

    sudo minicom ttyUSB0

    it is displaying as,

    Welcome to minicom 2.5

    OPTIONS: I18n
    Compiled on May 2 2011, 00:39:27.
    Port /dev/ttyUSB0

    Press CTRL-A Z for help on special keys

    i am getting these lines, but after this no information about U-boot or Linux running on the LCDK. What i have to do?.


    Thanks,

    Ilayaraja.

  • What are your switch settings on SW1?

    Also, are you sure you don't have another device connected at ttyUSB0?  Are any other serial ports active?

    One way to check is to use this command before you connect the serial port

    $ tail -f /var/log/messages

    You should see a bunch of activity and one line like this:

    Jul 16 05:02:48 ubuntu kernel: [ 126.733797] usb 2-2.1: FTDI USB Serial Device converter now attached to ttyUSB0

  • Hi Aaron,

     My SW1 switch setting was(switch no.2 is ON and remaining switches 1,3,4,5,6,7,8 are OFF). And my serial port is ttyUSB0 only, no other devices are connected. Then, i think the bootloader in the LCDK is corrupted, thats why the U-boot messages are not shown in the minicom window. Now, i am trying to reboot the NAND by using the command,

    root@ilay-G41M-Combo:/home/ilay# mono /home/ilay/ti-sdk-omapl138-lcdk-01.00.00/host-tools/flash_utils/OMAP-L138_FlashAndBootUtils_2_40/OMAP-L138/GNU/sfh_OMAP-L138.exe -targettype OMAPL138_LCDK -flashtype NAND -p /dev/ttyUSB0 -flash_noubl u-boot-lcdk_ais.bin

    it is displaying as,

    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Single boot image
    [BOOT IMAGE] u-boot-lcdk_ais.bin
    [TARGET] OMAPL138_LCDK
    [DEVICE] NAND
    [NAND Block] 1

    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)

    |

    After this i pressed the restart button, and also i switched OFF and switched ON the board, but there is no change, it still remains in that line, i don't know whether the process (flashing the NAND)  is taking place or not ???... 

    Thanks,

    Ilayaraja.

  • Switches 1,2,3 and 4 on SW1 set the boot method, you need to have both 2 and 4 on for uart2.

    http://processors.wiki.ti.com/index.php/L138/C6748_Development_Kit_(LCDK)#Features

  • Hi Aaron,

    Thanks for your answer. i made the switches 2 &4 of SW1 as ON, and i executed the command, now it is showing as,

    -----------------------------------------------------
    TI Serial Flasher Host Program for OMAP-L138
    (C) 2012, Texas Instruments, Inc.
    Ver. 1.67
    -----------------------------------------------------


    [TYPE] Single boot image
    [BOOT IMAGE] u-boot-lcdk_ais.bin
    [TARGET] OMAPL138_LCDK
    [DEVICE] NAND
    [NAND Block] 1

    Attempting to connect to device /dev/ttyUSB0...
    Press any key to end this program at any time.

    (AIS Parse): Read magic word 0x41504954.
    (AIS Parse): Waiting for BOOTME... (power on or reset target now)
    (AIS Parse): BOOTME received!
    (AIS Parse): Performing Start-Word Sync...
    (AIS Parse): Performing Ping Opcode Sync...
    (AIS Parse): Processing command 0: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 14372-Byte section to address 0x80000000.
    (AIS Parse): Processing command 1: 0x58535901.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Loading section...
    (AIS Parse): Loaded 1324-Byte section to address 0x80003824.
    (AIS Parse): Processing command 2: 0x58535906.
    (AIS Parse): Performing Opcode Sync...
    (AIS Parse): Performing jump and close...
    (AIS Parse): AIS complete. Jump to address 0x80000000.
    (AIS Parse): Waiting for DONE...
    (AIS Parse): Boot completed successfully.

    Waiting for SFT on the OMAP-L138...
    File u-boot-lcdk_ais.bin is not present.


    Interfacing to the OMAP-L138 via UART failed.
    Please reset or power-cycle the board and try again...

    What i have todo?.

     Thanks Again,

    Ilayaraja.

  • The path for the file u-boot-lcdk_ais.bin is not correct.  You can copy it to the current directory or use the full path.

  • Hi Aaron,

    Thanks. I entered the full path and then i executed it, now it is working properly. And also i booted Linux Kernel from SD Card also, it is also working properly. But the Ethernet Port i connected from my PC to the LCDK board is not showing up any ethernet connections, connection is not established between my PC and the Board, but when i connect the ethernet cable to my PC it is displaying as,

    root@omapl138-lcdk:~# PHY: 0:07 - Link is Up - 100/Full

    But in my PC, connection is not shown up.

    Then, how can i find the IP Address of the LCDK Board? I used the command,

    root@omapl138-lcdk:~# ifconfig

    the following lines are displayed, in that i don't know what is the IP Address of the Board,

    root@omapl138-lcdk:~# ifconfig
    eth0 Link encap:Ethernet HWaddr 9E:A9:0C:45:66:CE
    inet6 addr: fe80::9ca9:cff:fe45:66ce/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
    RX packets:85 errors:0 dropped:0 overruns:0 frame:0
    TX packets:258 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:13842 (13.5 KiB) TX bytes:149148 (145.6 KiB)
    Interrupt:33

    lo Link encap:Local Loopback
    inet addr:127.0.0.1 Mask:255.0.0.0
    inet6 addr: ::1/128 Scope:Host
    UP LOOPBACK RUNNING MTU:16436 Metric:1
    RX packets:12 errors:0 dropped:0 overruns:0 frame:0
    TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:0
    RX bytes:872 (872.0 B) TX bytes:872 (872.0 B)


    Now, what i want to do is, i have to find the IP Address of the Board, then i need to copy the "Hello World" program to LCDK by using that IP address

    host $ scp hello root@<LCDK IP address>:/home/root/

     and i want to see the output from the LCDK Board.

    Thanks,

    Ilayaraja.

  • Dear Ilayaraja,

    I'm having the same problems setting up connection between the host and the LCDK. The lights of the ethernet connector are working properly so i guess that it's not a solder problem (http://e2e.ti.com/support/embedded/linux/f/354/t/198486.aspx).

    Any tips?

    Thanks in advance,

    Víctor. 

  • Hi,

    I manage to test my board using the DHCP server of Mac OS and it worked just fine so i'm guessing it should be some problem with my DHCP Server configuration in the virtual machine. I'm using a virtual machine with Ubuntu 10.04 as described in the docs. My dhcpd.conf:

    allow bootp;
    subnet 192.168.1.0 netmask 255.255.255.0 {
    # range of ip addresses in the server to be assigned
    range 192.168.1.201 192.168.1.220;
    # amount of time in seconds to have the ip
    default-lease-time 1209600; #two weeks
    # default gateway to be used by the clients
    option routers 192.168.1.1;
    # set the broadcast address and subnet mask
    option broadcast-address 192.168.1.255;
    option subnet-mask 255.255.255.0;
    # ntp server to be used by the clients
    # option ntp-servers 192.168.1.100;
    }
    
    

    Has anybody been able to successfully connect the LCDK with the virtual machine?

    Regards,

    Víctor.

  • Try setting your virtual machine network connection to "Bridge" istead of "NAT". I think this the problem with your set up. A guide for VirtualBox VM is at http://processors.wiki.ti.com/index.php/How_to_Build_a_Ubuntu_Linux_host_under_VirtualBox 

  • Thanks for your Reply.
    I'll do that then. Best wishes,

    Víctor.