Search

Technical Discussion Group Forum

This forum is provided for user discussion. While Beacon EmbeddedWorks support staff and engineers participate, Beacon EmbeddedWorks does not guarantee the accuracy of all information within in the Technical Discussion Group (TDG).

The "Articles" forums provide brief Articles written by Beacon EmbeddedWorks engineers that address the most frequently asked technical questions.

To receive email notifications when updates are posted for a Beacon EmbeddedWorks product download, please subscribe to the TDG Forum of interest.

TDG Forum

PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 30 Dec 2013 11:06 AM by  Daniel Dodge
How does u-boot distinguish SOM LV & torpedo
 6 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Daniel Dodge
New Member
New Member
Posts:7


--
18 Dec 2013 09:25 AM

    I am currently building a torpedo IO board.  Uboot is always returning that my torpedo SOM is actually a SOM LV.  It appears in hardware that the SOM LV has a pull down resistor on GPIO 189.  The torpedo does not. 

     In uboot I see it running this test to distinguish the two:

            if (!omap_request_gpio(189)) {
                    twl4030_usb_ulpi_init();

                    omap_set_gpio_direction(189, 0);
                    omap_set_gpio_dataout(189, 1);

                    /* Let it soak for a bit */
                    for (i=0; i<0x100; ++i)
                            asm("nop");

                    omap_set_gpio_direction(189, 1);
                    val = omap_get_gpio_datain(189);
                    omap_free_gpio(189);

                    printf("Board:");
                    if (cpu_family == CPU_OMAP36XX) {
                            /* printf(" DM37xx"); */
                            printf(" DM37xx");
                            if (val) {
                                    printf(" Torpedo\n");
                                    val = MACH_TYPE_DM3730_TORPEDO;
                            } else {
                                    printf(" SOM LV\n");
                                    val = MACH_TYPE_DM3730_SOM_LV;
                            }
                    } else {
                            printf(" OMAP35xx");
                            if (val) {
                                    printf(" Torpedo\n");
                                    val = MACH_TYPE_OMAP3_TORPEDO;
                            } else {
                                    printf(" SOM LV\n");
                                    val = MACH_TYPE_OMAP3530_LV_SOM;
                            }
                    }
            }

     

    The resistor for GPIO 189 is actually on the module.  Why is u-boot always telling my torpedo linux image to boot as a SOM LV.  I do not understand how this works with this GPIO.  I also do not understand why my uboot continues to get it wrong if it does work.

     

     


    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    18 Dec 2013 11:02 AM
    Daniel,

    Are you seeing this behavior on the Launcher 3 baseboard that came with your kit?

    Are you using Torpedo + Wireless or just Torpedo?

    Which version of the BSP are you using?

    Daniel Dodge
    New Member
    New Member
    Posts:7


    --
    18 Dec 2013 12:13 PM
    >Are you seeing this behavior on the Launcher 3 baseboard that came with your kit?
    Unfortunately, I am not using the dev board for the Torpedo. I am using the dev board for the SOM-LV though. I do not have the dev board for the Torpedo.

    >Are you using Torpedo + Wireless or just Torpedo?
    Torpedo

    >Which version of the BSP are you using?
    REL-ltib-DM3730-2.4-2 was the name of the root ltib directory
    1024334_LogicdPD_Linux_BSP_2.4-2.tar was the name of the originally downloaded file

    Is there any reason why uboots ability to detect the SOM should depend on the IO board that the some is plugged into?
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    18 Dec 2013 04:31 PM
    Daniel,

    What is the part number on the SOM-LV dev board that you are using?
    Daniel Dodge
    New Member
    New Member
    Posts:7


    --
    19 Dec 2013 08:36 AM
    >What is the part number on the SOM-LV dev board that you are using?
    SDK-DM3730-10-256512R
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    19 Dec 2013 10:33 AM
    Daniel,

    I am having a hard time understanding what you are trying to do. I understand that you have a SOM-LV dev kit and a Torpedo SOM that is being identified as a SOM-LV. How are you using the Torpedo SOM if you don't have a Torpedo baseboard?

    What you said initially is correct, about how the U-Boot distinguishes between the SOM-LV and Torpedo.

    If you can send a picture or a diagram of what your setup looks like.
    Daniel Dodge
    New Member
    New Member
    Posts:7


    --
    30 Dec 2013 11:06 AM
    We concluded that we had a module that was not working correctly. We replaced the torpedo with one from inventory and all worked again.
    You are not authorized to post a reply.