likely v5 kernels behave like late 4.x, regarding dynamic dtoverlay; untested, and possibly revisit.

This commit is contained in:
Hin-Tak Leung 2020-08-13 16:20:25 +01:00
parent 02eccbcd55
commit c3ddbb521d

View file

@ -127,7 +127,7 @@ if [ "$overlay" ]; then
# TODO: dynamic dtoverlay Bug of v4.19.x
# no DT node phandle inserted.
if [[ "$kernel_ver" =~ ^4\.19.*$ ]]; then
if [[ "$kernel_ver" =~ ^4\.19.*$ || "$kernel_ver" =~ ^5\.*$ ]]; then
for i in $RPI_HATS; do
if [ "$i" == "$overlay" ]; then
do_overlay $overlay 0