Skip to content

Commit 9ee12b0

Browse files
authored
Merge pull request #316 from WebPlatformForEmbedded/dev/fix-issues-main-branch
Fix Kernel Config and Display driver Device Tree overlay
2 parents 9d205fe + f5f984a commit 9ee12b0

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

board/raspberrypi/post-image.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,25 +91,21 @@ __EOF__
9191
;;
9292
--add-vc4-fkms-v3d-overlay)
9393
# Enable VC4 overlay
94-
if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
95-
echo "Adding 'dtoverlay=vc4-fkms-v3d' to config.txt."
96-
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
94+
echo "Adding 'dtoverlay=vc4-fkms-v3d' to config.txt."
95+
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
9796
9897
# Add VC4 GPU support on top of dispmanx
9998
dtoverlay=vc4-fkms-v3d
10099
__EOF__
101-
fi
102100
;;
103101
--add-vc4-kms-v3d-overlay)
104102
# Enable VC4 overlay
105-
if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
106-
echo "Adding 'dtoverlay=vc4-kms-v3d' to config.txt."
107-
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
103+
echo "Adding 'dtoverlay=vc4-kms-v3d' to config.txt."
104+
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
108105
109106
# Add VC4 GPU support
110107
dtoverlay=vc4-kms-v3d-pi4
111108
__EOF__
112-
fi
113109
;;
114110
--silent)
115111
if ! grep -qE '^disable_splash=1' "${BINARIES_DIR}/rpi-firmware/config.txt"; then

board/raspberrypi/rpi4-linux-5.10.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,8 @@ CONFIG_RASPBERRYPI_POWER=y
605605
CONFIG_PWM=y
606606
CONFIG_PWM_BCM2835=y
607607
CONFIG_EXT4_FS=y
608-
# CONFIG_FILE_LOCKING is not set
608+
CONFIG_FILE_LOCKING=y
609+
CONFIG_MANDATORY_FILE_LOCKING=y
609610
# CONFIG_DNOTIFY is not set
610611
CONFIG_VFAT_FS=y
611612
CONFIG_FAT_DEFAULT_CODEPAGE=850

configs/raspberrypi3_vc4_wpe_ml_defconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
1414
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
1515
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi3/post-build.sh"
1616
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi3/post-image.sh"
17-
BR2_ROOTFS_POST_SCRIPT_ARGS="--rpi-wifi --add-miniuart-bt-overlay --overclock-pi3 --tvmode-720 --gpu_mem_1024=384 --silent"
17+
BR2_ROOTFS_POST_SCRIPT_ARGS="--rpi-wifi --add-miniuart-bt-overlay --overclock-pi3 --tvmode-720 --gpu_mem_1024=384 --silent --add-vc4-fkms-v3d-overlay"
1818
BR2_LINUX_KERNEL=y
1919
BR2_LINUX_KERNEL_CUSTOM_GIT=y
2020
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/raspberrypi/linux.git"

0 commit comments

Comments
 (0)