[U-Boot-Users] Getting Started Porting U-Boot to M5329EVB board

Robert S. Grimes rsg at alum.mit.edu
Fri May 4 04:03:40 CEST 2007

w.wegner at astro-kom.de wrote:
> Hi Bob,
> I started a port to MCF53xx, but it is basically untested. Current state is: compile-clean, 
> ethernet is not implemented (all configuration options involving network have to be disabled), 
> but not tested on a board. I used the MCF52xx for my modifications, as you were already 
> suggested to do.
Hi Wolfgang,

I've followed your directions, which were pretty easy, given I had just 
done it yesterday for my first attempt.  However, when I tried to 
compile my port of your stuff, it fails in an unexpected area - 
specifically, it fails attempting to build the tools!  To make sure it 
wasn't my stuff (pretty sure it couldn't have been, but I've been 
confused before!), I tried to build your cobra5329, using the following:

    make clean
    make cobra5329_config

I got the exact same error, so it's clear it isn't my stuff.  Here is 
the message

    make[1]: Entering directory `/root/u-boot-git/tools`
    make[1]: *** No rule to make target 
`/usr/lib/gcc-lib/i486-linux/3.3.5/include/stddef.h', needed by 
'img2srec.o'.  Stop.

Seems some incompatibility in our respective gcc setup.  BTW, I have 
Gentoo Linux, and am using gcc 3.4.4 - my libraries show up under 
/usr/lib/gcc/i686-pc-linux-gnu/3.4.4.  I don't know how the u-boot build 
system determines where to look, but it's clearly looking in the wrong 
place for me!  Any ideas?

BTW: Am I to understand the MCF532x family is approximately equal to the 
MCF537x family, with respect to porting u-boot?

> My problem is that I was not yet able to access the flash on any of my boards (Cobra 5329 
> EVB and our prototype with MCF5373) and neither dared to use 
> CONFIG_RUN_FROM_RAM (or whatever this option is called).
> You can grab my current tree at
> http://leila.dyna.ping.de/wolfgang/u-boot-git-mcf53xx.tar.bz2
> (it is based on what I got some days ago with "git clone", but I do not know if this is really the 
> most actual tree)
> To adapt to your board, you should make a new subdirectory in "board", probably starting 
> with cobra5329 as a starting population. Then edit the Makefile in the main directory 
> (probably also taking the lines for cobra5329 as a starting point) and do a "make M5329EVB" 
> (or whatever you want to call your port).
> You definitely have to edit cobra5329.c (which you also want to rename ;-) ) in the 
> board/M5329EVB subdirectory to use the correct settings for your SDRAM. Apart from that, 
> you are probably on your own, as I am not any further either. :-(
> Regards,
> Wolfgang
> On 2 May 2007 at 12:42, Robert S. Grimes wrote:
>> Hi,
>> I'm getting started porting U-Boot to the Freescale/LogicPD M5329EVB 
>> board, based on the ColdFire MCF5329 processor.  As suggested in the 
>> "U-Boot Porting Guide" in the README file, I've subscribed to this list, 
>> and I'm admitting I am (currently) clueless - hence this email!
>> At this point, my only real question is this - has anybody done this 
>> already?  If so, can/will you share?  Or are you working on a similar 
>> port, and would you like to share the load?  I'm very open to working 
>> with others on this, though if there are no takers, I'll go it alone and 
>> post it all later.
>> Thanks, and take care,
>> -Bob
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users

More information about the U-Boot mailing list