[U-Boot-Users] idea: fdt_checkboard

Timur Tabi timur at freescale.com
Thu May 17 21:11:41 CEST 2007


Jerry,

What do you think about implementing a board-specific function called "fdt_checkboard()"? 
  On platforms that have this function, it would be called by fdt_open_into(). 
fdt_checkboard() would scan the device tree and make sure that it's the right tree for 
this board (e.g. by checking the 'model' or 'compatible' fields), and return an error if 
it's not.

This would be helpful in eliminating the possibility of accidentally using the wrong 
device tree.  It could happen, for instance, if there are multiple device trees for a 
given board.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale




More information about the U-Boot mailing list