OpenNuvoton / NUC970_U-Boot_v2016.11

U-Boot v2016.11 for NUC970, N9H30, and NUC980
28 stars 45 forks source link

I2C driver (can) broke relocation entries #22

Closed lightelf76 closed 4 years ago

lightelf76 commented 4 years ago

I2C driver is initialized early at boot before relocation done and, because of this, must not use static/global variables (see comments at include/i2c.h line 546). Depending on the U-Boot configuration (modules compiled in) driver variables can (and I actually got this problem) overlap and destroy random part of relocation entries, making UBoot binary semi-functional.

yachen commented 4 years ago

Hi, The fix 1d5e322 is out. Many thanks for reporting this issue.