From c586142db4ed1f3679f95e443489277e8cff595b Mon Sep 17 00:00:00 2001 From: Herrie Date: Tue, 20 Feb 2024 16:17:58 +0100 Subject: [PATCH] Try to fix graphics, wifi, bt etc --- conf/machine/include/webos-rpi.inc | 3 ++- conf/machine/raspberrypi3-64.conf | 3 +-- conf/machine/raspberrypi3.conf | 3 +-- conf/machine/raspberrypi4-64.conf | 3 +-- conf/machine/raspberrypi4.conf | 3 +-- recipes-qt/qt6/qtbase_git.bbappend | 1 + wic/sdimage-raspberrypi-webos.wks | 6 ++++++ 7 files changed, 13 insertions(+), 9 deletions(-) create mode 100644 recipes-qt/qt6/qtbase_git.bbappend create mode 100644 wic/sdimage-raspberrypi-webos.wks diff --git a/conf/machine/include/webos-rpi.inc b/conf/machine/include/webos-rpi.inc index d2baff3..ed42dd7 100644 --- a/conf/machine/include/webos-rpi.inc +++ b/conf/machine/include/webos-rpi.inc @@ -92,12 +92,13 @@ DISABLE_OVERSCAN = "1" # Configure all Bluetooth service classes we want to support WEBOS_BLUETOOTH_ENABLED_SERVICE_CLASSES = "SPP GATT FTP OPP A2DP" +# We don't want LG's partition layout etc for now, since it doesn't boot yet. Let's do defaults instead # Use ext4 as a uSD rootfs type and don't build ext3 SDIMG_ROOTFS_TYPE = "ext4" IMAGE_FSTYPES:remove = "ext3" # fixed size boot image -# WKS_FILE = "sdimage-raspberrypi-webos.wks" +WKS_FILE = "sdimage-raspberrypi-webos.wks" # Use Fake KMS until surface-manager is fixed to support Full KMS, see WRP-5 VC4DTBO = "vc4-fkms-v3d" diff --git a/conf/machine/raspberrypi3-64.conf b/conf/machine/raspberrypi3-64.conf index 9743e5d..496c389 100644 --- a/conf/machine/raspberrypi3-64.conf +++ b/conf/machine/raspberrypi3-64.conf @@ -36,5 +36,4 @@ SERIAL_CONSOLES ?= "115200;ttyS0" VC4DTBO ?= "vc4-fkms-v3d" ARMSTUB ?= "armstub8.bin" -# We don't want LG's partition layout etc for now, since it doesn't boot yet. Let's do a simple image instead. -#require conf/machine/include/webos-rpi.inc +require conf/machine/include/webos-rpi.inc diff --git a/conf/machine/raspberrypi3.conf b/conf/machine/raspberrypi3.conf index fb36841..91491ba 100644 --- a/conf/machine/raspberrypi3.conf +++ b/conf/machine/raspberrypi3.conf @@ -22,5 +22,4 @@ SERIAL_CONSOLES ?= "115200;ttyS0" VC4DTBO ?= "vc4-fkms-v3d" ARMSTUB ?= "armstub7.bin" -# We don't want LG's partition layout etc for now, since it doesn't boot yet. Let's do a simple image instead. -#require conf/machine/include/webos-rpi.inc +require conf/machine/include/webos-rpi.inc diff --git a/conf/machine/raspberrypi4-64.conf b/conf/machine/raspberrypi4-64.conf index 199e3a5..e684c09 100644 --- a/conf/machine/raspberrypi4-64.conf +++ b/conf/machine/raspberrypi4-64.conf @@ -40,5 +40,4 @@ KERNEL_BOOTCMD ?= "booti" ARMSTUB ?= "armstub8-gic.bin" -# We don't want LG's partition layout etc for now, since it doesn't boot yet. Let's do a simple image instead. -#require conf/machine/include/webos-rpi.inc +require conf/machine/include/webos-rpi.inc diff --git a/conf/machine/raspberrypi4.conf b/conf/machine/raspberrypi4.conf index 960fdf1..74b2fb5 100644 --- a/conf/machine/raspberrypi4.conf +++ b/conf/machine/raspberrypi4.conf @@ -24,5 +24,4 @@ SERIAL_CONSOLES ?= "115200;ttyS0" VC4DTBO ?= "vc4-kms-v3d" ARMSTUB ?= "armstub7.bin" -# We don't want LG's partition layout etc for now, since it doesn't boot yet. Let's do a simple image instead. -#require conf/machine/include/webos-rpi.inc +require conf/machine/include/webos-rpi.inc diff --git a/recipes-qt/qt6/qtbase_git.bbappend b/recipes-qt/qt6/qtbase_git.bbappend new file mode 100644 index 0000000..cb72748 --- /dev/null +++ b/recipes-qt/qt6/qtbase_git.bbappend @@ -0,0 +1 @@ +PACKAGECONFIG_GRAPHICS:append:rpi = " kms gbm" diff --git a/wic/sdimage-raspberrypi-webos.wks b/wic/sdimage-raspberrypi-webos.wks new file mode 100644 index 0000000..451f1df --- /dev/null +++ b/wic/sdimage-raspberrypi-webos.wks @@ -0,0 +1,6 @@ +# short-description: Create Raspberry Pi SD card image +# long-description: Creates a partitioned SD card image for use with +# Raspberry Pi. Boot files are located in the first vfat partition. + +part /boot --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot --active --align 4096 --fixed-size 80M +part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label root --align 4096