[U-Boot] Load different DeviceTree based on EEPROM

13 Mar
2018
13 Mar
'18
9:45 a.m.
Hi experts,
I want to run one Linux image on multiple boards that are very similar, each has a separate device tree. This works quite well, but device tree has to be loaded manually depending on which board.
On the boards I have a read-only eeprom which contains serial number & board type. Obviously, board ID is not just one byte, someone had the "good" idea of writing the name in ascii across multiple bytes. My current thinking is to probe eeprom for this string using if statements, then load DTS based on the result. If not working for some reason, then load default DTS.
BR, Chris
2620
Age (days ago)
2620
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Obbard