[U-Boot] yet another arm mach-types.h thread
Michael Walle
michael at walle.cc
Thu Nov 24 23:29:40 CET 2011
Hi,
As there was no real conclusion on my previous "arm mach-types.h" thread, i
have to reemphasize that the current mach types handling is broken.
1. u-boot follows linux mach-types.h
2. linux only includes ids
a, they have (non DT!) board support for or
b, id which are not older than 12 months.
Now there are the following cases with problems:
- boards which have no linux support but uboot support
- boards which have only dt support within linux. uboot won't be able to boot
these board with older kernels, which do not have dt support, but instead
still using the old-fashioned setup code.
- boards which have only dt support in mainline kernel but have been
backported to older kernels and old-fashioned setup code.
- there will always be regressions when pulling the newest mach-types.h from
linux
The proposed solution was to add the ID to the board config. Why not put all
ids into the board configs then and remove the mach-types.h? Maybe you want to
have database with all ids? But with tracking the linux mach-types.h you
always have the database with boards _linux mainline_ supports and not the
boards uboot supports. Something seems to be broken there :)
IMHO either you say
- you have a database, that way you have to include the ids _you_ support or
- you don't have such a file and have the ids scattered all across the board
configs.
--
Michael
More information about the U-Boot
mailing list