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 bafb3c85aa
commit 35bc08973c

View file

@ -127,7 +127,7 @@ if [ "$overlay" ]; then
# TODO: dynamic dtoverlay Bug of v4.19.x # TODO: dynamic dtoverlay Bug of v4.19.x
# no DT node phandle inserted. # 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 for i in $RPI_HATS; do
if [ "$i" == "$overlay" ]; then if [ "$i" == "$overlay" ]; then
do_overlay $overlay 0 do_overlay $overlay 0