I’m currently programming a V4e Coldfire with a MCF5474 Fire Engine module that drives two fast ethernet controllers, serial, CAN, and and I2C bus. The base RTOS is a highly customized linux 2.6.15 kernel, and in order to build this kernel I have to, of course, build the M68K-specific compilation tools (binutils, gcc, etc), or a toolchain.
I installed Ubuntu Linux 6.0.6 on VMWare (Ubuntu is, IMHO, the easiest current Linux distro to install & upgrade without too much hassle. Now that Ubuntu is installed, the toolchain build has been huffing away for the past three hours. Hopefully, soon it’ll be done & I can get on w/ the task of building the kernel & getting it installed. More to come on this…
Some additional notes… The BCS toolchain finally built on Ubuntu after I made a few minor modifications including: Use bison, not bison++. There’s apparently some problem in the way bison++ parses some tcl packages. Have to add all of the rpm packages to Ubuntu since it uses apt for package management. There were a couple of other little gotchas but they don;t come to mind right now.
Anyway, now I’ve built the appropriate colilo bootloader, filesystem, and 2.6.10 kernel image. To load this on a ColdFire chip, I have to run the chip in debug mode, tftp over the bootloader, and then copy the bootloader code into flash. TFTP was no problem, but the flash write utility is supposed to first erase, then write to location 0xe0000000 and that appears to be an invalid memory location. After this step, I should be able to boot the colilo loader by executing “g 0xe0000400. That location, as far as I can tell has executable code, but I don’t know what that code is. So that’s where I’m stuck today…
