[U-Boot] [PATCH 1/1] Add support for Eukrea CPU9260 SBC

Wolfgang Denk wd at denx.de
Fri Jul 17 23:24:00 CEST 2009


Dear Alessandro Rubini,

In message <20090716164143.GA9954 at mail.gnudd.com> you wrote:
> > I've tried something very close to what is done in tqm8xx but I don't 
> > manage to get something reliable : either it hangs or I get data abort.
> >
> > After checking the datasheet, I don't understand how we can change the  
> > geometry of this SDRAM controler while running from SDRAM
> 
> No, you can't. That part must be done while you run from flash.
> Actually, this is done in cpu/arm926ejs/at91/lowlevel_init.S,
> in the table SMRDATA1.
> 
> So, with the current code base, you can't autodetect ram size on the
> atmel 926x.

Argh. So this should be fixed.

> I have the same problem, as I have boards that ship as either 64M or
> 128M.  I'd configure for 128M and look for aliases, reconfiguring for
> 64M if needed.  This can be done in lowlevel_init.S or by setting up a
> temporary C environment with sp in static RAM and doing it in C.

Other architectures (like PPC) do all  this  in  C.  This  should  be
possible  on  ARM,  too.  It  would  be  good  to  reuse existing and
well-tested code like get_ram_size() which is fast and still a pretty
reliable memory tester.

> In both cases, this doesn't fit the current code base and some
> refactoring would be needed to go mainline.

Seems so :-(

Who is going to attack this - you, Alessandro?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Operating-system software is the program that  orchestrates  all  the
basic functions of a computer.
- The Wall Street Journal, Tuesday, September 15, 1987, page 40


More information about the U-Boot mailing list