Let's make the world a better place using digital technologies!

Howto: Build a boot image for Coldfire using U-Boot

  • Get the git:
    apt-get install git-core
  • Get latest u-boot sources for coldfire:
    cd /usr/src
    mkdir u-boot && cd u-boot
    git-clone git://git.denx.de/u-boot-coldfire.git
    cd u-boot-coldfire
  • Make u-boot for M5282EVB evaluation board. A list of available boards can be found under board/ folder and of cpus under cpu/. Now make the images:
    make M5282EVB_config
    make
  • You might encounter the error:

    start.S: Assembler messages:
    start.S:143: Error: operands mismatch — statement `movec %d0,%RAMBAR1′ ignored
    start.S:169: Error: operands mismatch — statement `movec %d0,%RAMBAR1′ ignored
    make[1]: *** [start.o] Error 1
    make[1]: Leaving directory `/usr/src/u-boot/u-boot-coldfire/cpu/mcf52x2′

    To correct this error:
    emacs /usr/src/u-boot/u-boot-coldfire/cpu/mcf52x2/start.S
    On lines 143 and 169, change RAMBAR1 to RAMBAR0

  • At the end of compilation you will get the following files that can be used to boot an M5282EVB coldfire board:
    u-boot u-boot.bin u-boot.map u-boot.srec

Asif

http://things.m31.ch

View more posts from this author

Leave a Reply

Your email address will not be published. Required fields are marked *