[U-Boot-Users] Altera Stratix II

eran liberty eran.liberty at gmail.com
Fri Feb 29 20:56:56 CET 2008


As part of my current ongoing effort to get up to date with rc2 I will
produce a patch that will apply cleanly against that in a few a days.
Hopefully it will be adopted in one go.
If not I will grant others the honor to make it there.

And on another topic (since I am already here):

Flash memory size.
On all the versions till now I have cheated U-boot to believe I have a
16M flash though the real flash was of sizes 32,64,128,256, and 512.
This suited my goals very nicely because i could have a generic binary
u-boot image for all my products. As cfi_flash.c grew up it started
reading the eeprom embedded in the FLASH and learn for itself the real
size of the FLASH, but till now I was able to restrict it to desired
size from the config file, or cheat it by returning a constant in
get_flash_size() function.
Currently I am adopting RC2 and is having trouble making u-boot do
What I want (and not the other way around).
Trying to give a lower then expected MAX_SECT in the config file will
both give an error (which is better then crash) and will config the
wrong side of the flash (the first sectors). Cheating it by hard coded
does not seem to work as well.

Any pointers on the subject will be appreciated.

And since this turned out to be a long one... I believe there is a bug
in the fdt manipulation function when regarding the initrd and
reserved maps.
I do not fully understand this code so I suggest someone who knows his
way around there will take a look. It seems that after manipulating
the FDT by enlarging it by 64bit*2 and pushing the desired initrd
content... the local ctx pointers are updated but no one update the
original pointer in the FDT itself. dumping the tree right after that
operation will reveal a broken tree. I have implemented an update fdt
which takes the local pointer and write them back into the FDT and it
seems to solve it, but my initrd is not working yet so i am not sure
this is the right thing to do.

That's all.

Have fun,
Liberty

On Fri, Feb 29, 2008 at 7:45 PM, Detlev Zundel <dzu at denx.de> wrote:
> Hi Eran and Markus,
>
> > I still have my patches and am working (for reasons which are
> > connected with the flat device tree & initrd) to make them patch
> > cleanly against latest RC. If any want wants them for him self or any
> > interested in making the effort to apply them... I will gladly send
> > him/her everything i have.
>
> Good, thanks.
>
> > Second:
> > If you follow the mailing list you can see I have tried real hard to
> > follow the general conformance and be a nice contributing dude. At the
> > time my patches where applied cleanly against whatever git version i
> > was told to... at some point i had enough of those games.
>
> Do you really think that rules that *everyone* contributing to a project
> has to follow to achieve goals like maintainability, readability and
> changeability is "playing games"?
>
> I admit that the rules are checked pretty strictly in U-Boot, but the
> rules as such are in my opinion pretty comparable to other projects....
>
> > Third:
> > This is no Ego games/wars and i certainly don't need my name carved in
> > u-boot code for eternity (though i think it already is somewhere) . If
> > anyone wants to have my patches I will gladly give them (just don't
> > tell me you don't like the indention or whatever)
>
> I would really like to see Eran to get the patches into acceptable state
> (should be not much work from what I can tell), but if this does not
> happen, Markus can you pick up the patches and massage them into
> acceptance?  In this way you'd get what you want and contribute to
> U-Boot?  This would be very much appreciated...
>
> Cheers
>  Detlev
>
> --
> The  mathematician's patterns,  like the  painter's or  the poet's,  must be
> beautiful;  the ideas, like the colours or the words, must fit together in a
> harmonious way. Beauty is the first test: there is no permanent place in the
> world for ugly mathematics.                       -- G. H. Hardy
> --
> DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de
>




More information about the U-Boot mailing list