[U-Boot] [PATCH] [v2] powerpc/85xx: move the Fman microcode from ef000000 to eff40000

Timur Tabi timur at freescale.com
Fri Jan 13 19:50:47 CET 2012


Wolfgang Denk wrote:
> Instead  of hard-coding magic addresses which then need to be changed
> again and again, would it not make more sense to read the value from
> an environment variable so it can be easily changed without having to
> modify the source, rebuild, reinstall all the time?

(Adding Haiying)

Well, I tried that a while back and it didn't work, but I can't remember
why.  That was before I implemented a unified approach to Fman ucode
identification, so maybe it will work better now.

Part of the problem is that the meaning of the address depends on where
the ucode actually is stored -- NOR flash, NAND flash, SPI flash, etc.  I
suppose we could do something like this:

ucode_loc=nor:eff40000

And then at runtime parse the 'nor' and the 'eff40000'.  I just wish I
could remember why I rejected the env variable approach back then.

Haiying, is there ever a situation where we need to upload the QE ucode
*before* the environment variables are available?

-- 
Timur Tabi
Linux kernel developer at Freescale



More information about the U-Boot mailing list