Hello.
I am trying to build the SFH flashing tools as described here:
However I'm getting several errors.
Install setup
. Flash package version 2_25
https://sourceforge.net/projects/dvflashutils/files/OMAP-L138/v2.25/OMAP-L138_FlashAndBootUtils_2_25.tar.gz/download
. Cygwin 1.7.5
$ uname -r
1.7.5(0.225/5/3)
. Arm cross tools 2009q1-203
http://www.codesourcery.com/sgpp/lite/arm/portal/package4572/public/arm-none-linux-gnueabi/arm-2009q1-203-arm-none-linux-gnueabi-i686-mingw32.tar.bz2
. TI C6000 Code Gen 6.1.13
. Microsoft .NET Framework v4.0.30319
http://www.microsoft.com/downloads/details.aspx?FamilyID=9cfb2d51-5ff4-4491-b0e5-b386f32c0992&displaylang=en
Environment setup
$ export PATH=$PATH:/cygdrive/c/Program\ Files/Texas\ Instruments/C6000\ Code\ Generation\ Tools\ 6.1.13/bin
$ export PATH=$PATH:/cygdrive/c/home/a0324304/temp/arm-2009q1/bin
$ export PATH=$PATH:/cygdrive/c/WINDOWS/Microsoft.NET/Framework/v4.0.30319
$ export C6X_C_DIR="C:\Program Files\Texas Instruments\C6000 Code Generation Tools 6.1.13\lib"
Build Commands
$ cd OMAP-L138_FlashAndBootUtils_2_25/OMAP-L138
$ make clean
$ make
Errors
1. Can't locate cl470. This isn't mentioned on the wiki as a requirement; maybe just an oversight.
make[4]: Entering directory `/cygdrive/c/home/a0324304/work/freon/boot/OMAP-L138_FlashAndBootUtils_2_25/OMAP-L138/GNU/AISUtils/AISextra/src'
cl470 -O=2 -c --obj_directory=./arm_obj -I=../../../../../Common/include -I=../../../../Common/include -I=../../../Common/include -I=../include -ms -me -mv=5e --symdebug:none aisextra.c
make[4]: cl470: Command not found
Easy enough to workaround since I have ccsv4 installed. But would like to confirm this version is ok.
$ export PATH=$PATH:/cygdrive/c/Program\ Files/Texas\ Instruments/ccsv4/tools/compiler/tms470/bin
2. .NET failures
Microsoft (R) Visual C# .NET Compiler version 7.10.6001.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
HexAIS.cs(62,3): error CS0116: A namespace does not directly contain members such as fields or methods
HexAIS.cs(77,18): error CS1519: Invalid token '<' in class, struct, or interface member declaration
...
The "..." indicates many similar errors. And later on down indicates
Could not locate the expected version of the Microsoft Windows SDK. Looked for a location specified in the "InstallationFolder" value of the registry key "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v6.0A". If your build process does not need the SDK then this can be ignored. Otherwise you can solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK for Windows Server 2008 and .NET Framework 3.5. 2) Install Visual Studio 2008. 3) Manually set the above registry key to the correct location.
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(1682,9): error MSB3091: Task failed because "resgen.exe" was not found, or the correct Microsoft Windows SDK is not installed. The task is looking for "resgen.exe" in the "bin" subdirectory beneath the location specified in the InstallationFolder value of the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A. You may be able to solve the problem by doing one of the following: 1) Install the Microsoft Windows SDK. 2) Install Visual Studio 2010. 3) Manually set the above registry key to the correct location. 4) Pass the correct location into the "ToolPath" parameter of the task. [C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj]
Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost.csproj" (Rebuild target(s)) -- FAILED.
Done Building Project "C:\home\a0324304\work\freon\boot\OMAP-L138_FlashAndBootUtils_2_25\OMAP-L138\GNU\AISUtils\UartHost_GUI\UartHost_GUI.sln" (Rebuild target(s)) -- FAILED.
Indeed there is no "resgen.exe" in the .NET install as suggested by the wiki.
$ cd c:/WINDOWS/Microsoft.NET/Framework/
$ find . -iname "*resgen*"
<nothing found>
I'm hestitant to try any of the suggested options from the error log since these are mentioned on the wiki.
i.e. hoping I'm missing something in my setup.
Any help is appreciated.
Thanks,
Martin