HOWTO: Build the Neuros firmware on Linux using Wine

Please send comments and suggestions to nerochiaro at nerochiaro dot net

Changelog and intro

This document will guide you step-by-step in the process of compiling the open source version of the Neuros firmware under Linux using the nice Wine enviroment.
I personally did this on Gentoo, but I think that for most distributions this will work just fine or with some minor tweaks (I have reports that it works on recent Mandriva too). Just be sure to use the same version of wine I used: 20050725.
Maybe with a newer version it will work even better, but there are often regressions with wine so it's up to you to try your luck with a different version (update: I had report of sucess also with 20050830).

I expect you to read each chapter from start to end. Only when you have done that you should actually begin doing what you have just read. You have been warned.

I should insert the obligatory disclaimer here, but i'm lazy so i won't. Sue me.

Setup a clean wine

Install CCS

Setup the CCS environement

REGEDIT4

[HKEY_CURRENT_USER]

[HKEY_CURRENT_USER\Environment]
"BSL5416_DIR"="c:\\ti\\c5400\\dsk5416\\lib"
"C54X_A_DIR"="c:\\ti\\c5400\\bios\\include;c:\\ti\\c5400\\bios\\lib;c:\\ti\\c5400\\dsk5416\\include;c:\\ti\\c5400\\dsk5416\\lib;c:\\ti\\c5400\\xdais\\include;c:\\ti\\c5500\\xdais\\lib;c:\\ti\\c5400\\cgtools\\include;c:\\ti\\c5400\\cgtools\\lib;c:\\ti\\c5400\\rtdx\\include;c:\\ti\\c5400\\rtdx\\lib"
"C54X_C_DIR"="c:\\ti\\c5400\\bios\\include;c:\\ti\\c5400\\bios\\lib;c:\\ti\\c5400\\xdais\\include;c:\\ti\\c5500\\xdais\\lib;c:\\ti\\c5400\\cgtools\\include;c:\\ti\\c5400\\cgtools\\lib;c:\\ti\\c5400\\rtdx\\include;c:\\ti\\c5400\\rtdx\\lib"
"C55X_A_DIR"="c:\\ti\\c5500\\xdais\\include;c:\\ti\\c5500\\xdais\\lib;c:\\ti\\c5500\\cgtools\\include;c:\\ti\\c5500\\cgtools\\lib;c:\\ti\\c5500\\bios\\include;c:\\ti\\c5500\\bios\\lib;c:\\ti\\c5500\\rtdx\\include;c:\\ti\\c5500\\rtdx\\lib"
"C55X_C_DIR"="c:\\ti\\c5500\\xdais\\include;c:\\ti\\c5500\\xdais\\lib;c:\\ti\\c5500\\cgtools\\include;c:\\ti\\c5500\\cgtools\\lib;c:\\ti\\c5500\\bios\\include;c:\\ti\\c5500\\bios\\lib;c:\\ti\\c5500\\rtdx\\include;c:\\ti\\c5500\\rtdx\\lib"
"C55X_CONFIG_FILE"="c:\\ti\\cc\\bin\\c55xx.cfg"
"PATH"="c:\\\\windows;c:\\\\windows\\\\system;c:\\ti\\bin;c:\\ti\\cc\\bin;c:\\ti\\c5400\\cgtools\\bin;c:\\ti\\c5500\\cgtools\\bin;c:\\ti\\plugins\\bios;c:\\ti\\bin\\utilities\\tconf;c:\\ti\\bin\\utilities\\vislink;"
"TI_DIR"="c:\\ti"
#! /bin/bash
wine cl500.exe $@
#! /bin/bash
wine gconfgen.exe $@

Prepare the source tree

Install the linux buildtools

Fix the makefile

Actually build the firmware

Pain ? Depression ? Rage ?