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.

Question about setup.sh

I am having problems with my Sitara Starter Kit.

I tried to re-run the setup.sh and got to the end or it and received this message

"The boot partition doesn't appear to be mounted on the host"

I do not remember this message the first time I ran it, however I could have miss it.

What does it mean?

  • Hi Greg,

    This is printed from inside the <SDK_dir>/bin/setup-uboot-env.sh script:

        #Copy uEnv.txt to the mounted /media/boot partition
        if [ ! -d /media/boot ]; then
            echo "The boot partition doesn't appear to be mounted on the host."
            echo "If you're using a virtual machine, please ensure it has been imported to Linux"
            echo "Please ensure the boot partition is mounted and run setup.sh again."
            if [ "$isBBBlack" = "y" ]; then
                echo "We have detected that you are using a BeagleBone Black. Please ensure that the Micro USB cable is plugged in."
                echo "For more information please see: "
                echo "    http://processors.wiki.ti.com/index.php/Sitara_Linux_SDK_Setup_Script#BeagleBone_Black_Users"
            fi
            read -p "Press Enter to exit" pressEnter
            exit
        fi

    This means that for some reason the /boot partition of your SD card hasn't been mounted in /media/boot or isn't mounted at all.

    Please reformat your SD card using the create-sdcard.sh script included in the <SDK_dir>/bin/ folder. Please make sure you are inside the <SDK_dir>/bin folder when you run it and you run it using "sudo".

    Then try the setup.sh script again.

    Best regards,
    Miroslav

  • Dear Miroslav,

          I tried above solution whole day( about 20 times on different machines) but fail to resolve it.

          Due to which reasons this condition occurs ??

          any other solution??

     Regards

    Vishal Rana

  • Hi Vishal,

    Please post the output of the "mount" command. If the /boot partition is mounted you should see something like this:

    /dev/sdc1 on /media/boot type vfat

    Best regards,
    Miroslav

  • Hi Miroslav,

            I solved above problem. I took images from TI vendors only and most important is that By using "Sandisk"

           SD-Card I am able to boot board.


         Presently I am facing some more problems.
         When I am running "setup.sh" script on host I am getting below message :-

    /////////////////////////////////////////////// Message on terminal after running setup.sh /////////////////////////////////////////////////////////////////

    In which directory do you want to install the target filesystem?(if this directory does not exist it will be created)
    [ /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS ]
    --------------------------------------------------------------------------------

    --------------------------------------------------------------------------------
    This step will extract the target filesystem to /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS

    Note! This command requires you to have administrator priviliges (sudo access)
    on your host.
    Press return to continue
    /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS already exists
    (r) rename existing filesystem (o) overwrite existing filesystem (s) skip filesystem extraction
    [r] r
    Path for old filesystem:
    [ /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS.05202014_14.07 ]

    Successfully moved old /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS to /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS.05202014_14.07

    Successfully extracted tisdk-rootfs-am335x-evm.tar.gz to /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS
    --------------------------------------------------------------------------------

    --------------------------------------------------------------------------------
    This step will set up the SDK to install binaries in to:
        /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS/home/root/am335x-evm

    The files will be available from /home/root/am335x-evm on the target.

    This setting can be changed later by editing Rules.make and changing the
    EXEC_DIR or DESTDIR variable (depending on your SDK).

    Press return to continue
    Rules.make edited successfully..
    --------------------------------------------------------------------------------

    --------------------------------------------------------------------------------
    This step will export your target filesystem for NFS access.

    Note! This command requires you to have administrator priviliges (sudo access)
    on your host.
    Press return to continue
    /home/vishal/ti-sdk-am335x-evm-05.05.00.00/targetNFS already NFS exported, skipping..

     * Stopping NFS kernel daemon                                            [ OK ]
     * Unexporting directories for NFS kernel daemon...                      [ OK ]
     * Exporting directories for NFS kernel daemon...                               exportfs: Failed to stat /home/vishal/ti-sdk-am335x-evm-07.00.00.00/targetNFS: No such file or directory
                                                                             [ OK ]
     * Starting NFS kernel daemon                                            [ OK ]
    --------------------------------------------------------------------------------
    --------------------------------------------------------------------------------
    Which directory do you want to be your tftp root directory?(if this directory does not exist it will be created for you)
    [ /tftpboot ]
    --------------------------------------------------------------------------------

    --------------------------------------------------------------------------------
    This step will set up the tftp server in the /tftpboot directory.

    Note! This command requires you to have administrator priviliges (sudo access)
    on your host.
    Press return to continue
    ls: cannot access ./bin/../board-support/prebuilt-images/uImage-am335x-evm.bin: No such file or directory
    cp: missing destination file operand after `/tftpboot'
    Try `cp --help' for more information.
    Failed setup, aborting..
    Failed setup, aborting..

    /////////////////////////////////////////////////////// End of Message /////////////////////////////////////////////////////////////////////////////////////////////

    Previously, I started on SDKv7 but now switch back on SDKv5.05.

    In above highlighted lines on Messages I am facing problem.

    Please Suggest me how to resolve above problems.

    Thanks a lot for helping.....

    Regards

    Vishal  

  • Vishal,

    Try to edit the /etc/exports file on your host PC and remove the unnecessary entries.

    Best regards,
    Miroslav

  • Hi Miroslav,

          Thanks for fast response.

            Problem is resolved.