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 05 Nov 2013 11:32 AM by  jduran.gm
Missing libusb-dev to build X-Loader
 4 Replies
Sort:
You are not authorized to post a reply.
Author Messages
jduran.gm
New Member
New Member
Posts:79


--
30 Oct 2013 09:12 AM

    Dear all,

    To build the X-Loader, the package 'libusb-dev' should be installed in the host computer, as it is pointed in https://groups.google.com/forum/#!msg/x-loader/aEXYx0qyZSo/SeqZXP5KWCEJ. However, the document titled "DM37x Linux BSP User Guide" Rev. E, in section 2.3.12 'Install packages' doesn't indicate that the package 'libusb-dev' should be installed.

    I don't download the LogicPD virtual machine, so I don't know if the package is already installed in the virtual machine or not.

    Thanks and Best Regards,

    Joaquim Duran

    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    30 Oct 2013 01:56 PM
    Joaquim,

    libusb is included in the LTIB packages. I did not verify that it was required to build x-loader, but I can assure you that x-loader builds using our BSP which is also included in the VM.
    jduran.gm
    New Member
    New Member
    Posts:79


    --
    31 Oct 2013 04:21 AM
    Steven,

    I repeat it, to build the X-Loader, the package 'libusb-dev' should be installed in the HOST computer ($ apt-get install libusb-dev). I've configured configured an Ubuntu 12.04 virtual machine to run the BSP following the instructions from BSP notes (I never download your virtual machines). As the libusb-dev is not installed, the following error is reported when compiling X-Loader:

    arm-none-linux-gnueabi-gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0x40200800 -I/home/gem-med/LogicPD/Linux_BSP/rpm/BUILD/x-loader-1.46/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/CodeSourcery/Sourcery_G++_Lite/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.3/include -pipe -march=armv7-a -mabi=apcs-gnu -mno-thumb-interwork -Wall -Wstrict-prototypes -fno-stack-protector -o dm3730logic-product-id.o dm3730logic-product-id.c -c
    make[1]: Leaving directory `/home/gem-med/LogicPD/Linux_BSP/rpm/BUILD/x-loader-1.46/drivers'
    scripts/omap3_usbload.c:82:17: fatal error: usb.h: No such file or directory
    compilation terminated.

    After the installation of libusb-dev, X-Loader is build with no problem. So, I asking to load the documentation.

    Joaquim Duran
    steven.eckhoff
    Basic Member
    Basic Member
    Posts:192


    --
    01 Nov 2013 11:11 AM

    To build the BSP these are the steps that work for me

    1. Download the BSP 

    2. untar the BSP

    3. Follow instructions in the README-setup file

    This will instruct you to modify the sudoers file and then run the ./ltib_setup.sh. After that you should not have to explicitly install any packages on your build machine. 

     

    It looks like you have resolved this issue, but if you want to go over the steps that you followed from the README-setup and provide a log of steps, I can go over it. 

    jduran.gm
    New Member
    New Member
    Posts:79


    --
    05 Nov 2013 11:32 AM
    Steven,

    I believe to you that the instructions that you're using are working fine. I just tell to you to update the section 2.3.1.2 of document 'DM37x Linux BSP User Guide' by adding the libusb-dev package to install because it is not included in the list.

    Joaquim Duran
    You are not authorized to post a reply.