Dear Wolfgang & Arnd, In message <4b5c5bdf.6020...@grandegger.com> you wrote: > > Arnd Bergmann wrote: ... > > Is there any chance of building a kernel that runs on both mpc8xx and > > mpc5121? AFAIK, the 5121 is built on a 6xx core which is fundamentally > > incompatible with 8xx due to different memory management etc.
It is my understanding as well that you cannot have a single image that boots both on 8xx and on 6xx cores. The focus was more on things like supporting MPC5200 and MPC512x with the same image. > > Since this makes it all a compile-time decision, it should be solvable > > with a very small number of carefully placed #ifdef in the header files > > an no runtime detection at all. > > > > Obviously this approach would not work for drivers that want to be portable > > across different register layouts on otherwise compatible platforms. > > You are probably right and your proposal would likely result in more > transparent (less ugly) code. There has been some discussion about > unifying FEC drivers when the patches (with the same subject) have been > submitted for the first time in May last year, but it was not about 512x > and 8xx, IIRC. You can re-read this discussion here: http://patchwork.ozlabs.org/patch/26927/ ee especiall Grant's note of 2009-05-21 15:36:11: "If it looks too ugly, then just fork the driver." 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: w...@denx.de Immortality consists largely of boredom. -- Zefrem Cochrane, "Metamorphosis", stardate 3219.8 _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev