From 3bbf9490ac38b29588a2ae4ad34bb87c73cf7974 Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sat, 8 Jul 2023 15:54:05 +0200 Subject: [PATCH] enable usb + debug --- conf/layer.conf | 9 +++++---- recipes-diya/diya-overlay/files/confd | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/conf/layer.conf b/conf/layer.conf index 930e550..0e20859 100644 --- a/conf/layer.conf +++ b/conf/layer.conf @@ -31,6 +31,8 @@ ROOT_HOME = "/root" RPI_USE_U_BOOT = "0" RPI_USE_wS_28_DPI_LCD = "1" # enable usb boot in uboot +ENABLE_DWC2_PERIPHERAL = "1" +ENABLE_DWC2_HOST = "1" ENABLE_USB_U_BOOT = "0" ENABLE_UART = "0" DISABLE_SPLASH = "1" @@ -46,17 +48,16 @@ VC4DTBO = "vc4-kms-v3d" RPI_EXTRA_CONFIG += "${@['','\n\ -dtoverlay=vc4-kms-v3d \n\ dtoverlay=vc4-kms-DPI-28inch \n\ dtoverlay=waveshare-28dpi-3b-4b \n\ dtoverlay=waveshare-28dpi-3b \n\ dtoverlay=waveshare-28dpi-4b \n']['${RPI_USE_wS_28_DPI_LCD}' == '1']}" RPI_EXTRA_CONFIG += '\n\ -start_x=1 # essential \n\ +#start_x=1 # essential \n\ #dtparam=audio=on \n\ -gpu_mem=128 # at least, or maybe more if you wish \n\ -disable_camera_led=1 # optional \n\ +#gpu_mem=128 # at least, or maybe more if you wish \n\ +#disable_camera_led=1 # optional \n\ ' # extra kernel CMDLINE_RNDIS option diff --git a/recipes-diya/diya-overlay/files/confd b/recipes-diya/diya-overlay/files/confd index 847559e..58cf17c 100644 --- a/recipes-diya/diya-overlay/files/confd +++ b/recipes-diya/diya-overlay/files/confd @@ -6,6 +6,7 @@ DESC="Auto deployment configuration from media" case "$1" in start) echo -n "Start $DESC: " + dmesg | tee /boot/kern.log if [ -f "/boot/fs_resize" ]; then /usr/bin/expandfs.sh touch /boot/home_partition_should_be_formated