TI Provides instructions to build the TI Flash and Boot utilities: http://processors.wiki.ti...ns_for_Custom_Boards
The L138 Virtual machine provided by LogicPD has all the necessary tools and libraries installed, but the trick is pointing 'make' to the right tools and libraries.
Download the source from SourceForge: https://sourceforge.net/projects/dvflashutils/files/OMAP-L138/v2.40/
tar xvf OMAP-L138_FlashAndBootUtils_2_40.tar.gz
make DSP_CROSSCOMPILE=/opt/ti/ccsv5/tools/compiler/c6000_7.4.2/bin/ CROSSCOMPILE=/opt/ti/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi- DSP_LIB_PATH=/opt/ti/ccsv5/tools/compiler/c6000_7.4.2/lib
sfh_OMAP-L138.exe will be located in the GNU directory.
#Erase the Flash by setting DIP_S7:7 and DIP_S7:8 ON
mono ./sfh_OMAP-L138.exe -erase -p /dev/ttyUSB0
# Turn on or press reset on the board to send the BOOTME
#When complete test the utility with a pre-build recovery file from our download section
mono ./sfh_OMAP-L138.exe -flash_noubl ~/Downloads/1023340B_AN556_AM1808_OMAP-L138_SOM-M1_SPI_Flash_Recovery/AM1808_OMAP-L138_SOM-M1_SPI_Flash_Recovery_Files/1016592.raw -p /dev/ttyUSB0
# Turn on or press reset to send the BOOTME
Make sure to CLEAN then rebuild SFH_OMAP_L138.exe if a header file is changed to ensure the change propagates across the entire project.
Other References: Using the OMAP-L132/L138 Bootloader http://www.ti.com/lit/an/sprab41e/sprab41e.pdf