From 458d7b10120ab50d22303ea53aca3d0fc82f7891 Mon Sep 17 00:00:00 2001 From: Vincent Buso Date: Sun, 12 Mar 2023 16:14:23 +0100 Subject: [PATCH] new linux config (200hz ticks) and special scripts modifs for current devs --- FunKey/board/funkey/busybox.config | 2 +- FunKey/board/funkey/linux.config | 1 + FunKey/board/funkey/rootfs-overlay/etc/inittab | 2 +- FunKey/board/funkey/rootfs-overlay/root/.profile | 5 +++++ FunKey/board/funkey/rootfs-overlay/usr/local/sbin/fps | 1 + FunKey/configs/funkey_defconfig | 3 +-- FunKey/package/ProdScreens/ProdScreens.mk | 3 ++- Recovery/board/funkey/busybox.config | 2 +- 8 files changed, 13 insertions(+), 6 deletions(-) create mode 100755 FunKey/board/funkey/rootfs-overlay/usr/local/sbin/fps diff --git a/FunKey/board/funkey/busybox.config b/FunKey/board/funkey/busybox.config index cfdfde5..a4d9d95 100644 --- a/FunKey/board/funkey/busybox.config +++ b/FunKey/board/funkey/busybox.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.32.0 -# Tue Apr 6 08:18:28 2021 +# Mon Aug 1 19:33:14 2022 # CONFIG_HAVE_DOT_CONFIG=y diff --git a/FunKey/board/funkey/linux.config b/FunKey/board/funkey/linux.config index a1caa37..bf0c3b2 100644 --- a/FunKey/board/funkey/linux.config +++ b/FunKey/board/funkey/linux.config @@ -20,6 +20,7 @@ CONFIG_ARCH_SUNXI=y CONFIG_SMP=y CONFIG_HAVE_ARM_ARCH_TIMER=y CONFIG_ARM_PSCI=y +CONFIG_HZ_200=y CONFIG_HIGHMEM=y CONFIG_CPU_FREQ=y CONFIG_CPUFREQ_DT=y diff --git a/FunKey/board/funkey/rootfs-overlay/etc/inittab b/FunKey/board/funkey/rootfs-overlay/etc/inittab index 005aff9..5b49606 100644 --- a/FunKey/board/funkey/rootfs-overlay/etc/inittab +++ b/FunKey/board/funkey/rootfs-overlay/etc/inittab @@ -16,7 +16,7 @@ # Startup the system ::sysinit:/bin/cat /etc/issue ::sysinit:/bin/mount -t proc proc /proc -#::sysinit:/bin/mount -o remount,rw / +::sysinit:/bin/mount -o remount,rw / ::sysinit:/bin/mkdir -p /dev/pts /dev/shm ::sysinit:/bin/mount -a ::sysinit:/sbin/swapon -a diff --git a/FunKey/board/funkey/rootfs-overlay/root/.profile b/FunKey/board/funkey/rootfs-overlay/root/.profile index 15ec1c8..7f75442 100755 --- a/FunKey/board/funkey/rootfs-overlay/root/.profile +++ b/FunKey/board/funkey/rootfs-overlay/root/.profile @@ -94,3 +94,8 @@ instant_play load # Start frontend echo "Start frontend" frontend init >/dev/null 2>&1 & + +# Debug +touch /mnt/adb +touch /mnt/disable_frontend +funkey_prod_screens TEARING 60 & diff --git a/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/fps b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/fps new file mode 100755 index 0000000..522d54a --- /dev/null +++ b/FunKey/board/funkey/rootfs-overlay/usr/local/sbin/fps @@ -0,0 +1 @@ +for i in /sys/class/graphics/fb0/freq_*; do echo $(basename $i): $(cat $i); done diff --git a/FunKey/configs/funkey_defconfig b/FunKey/configs/funkey_defconfig index 50c4879..e321dd8 100644 --- a/FunKey/configs/funkey_defconfig +++ b/FunKey/configs/funkey_defconfig @@ -14,7 +14,7 @@ BR2_TOOLCHAIN_EXTERNAL_HEADERS_4_14=y BR2_TOOLCHAIN_EXTERNAL_CUSTOM_MUSL=y BR2_TOOLCHAIN_EXTERNAL_CXX=y BR2_TOOLCHAIN_EXTERNAL_GDB_SERVER_COPY=y -BR2_TARGET_OPTIMIZATION="-fno-PIC -march=armv7-a+neon-vfpv4 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad -D__ARM_NEON__" +BR2_TARGET_OPTIMIZATION="-fno-PIC -mfloat-abi=hard -march=armv7-a+neon-vfpv4 -mtune=cortex-a7 -mfpu=neon-vfpv4 -mvectorize-with-neon-quad" BR2_TARGET_GENERIC_HOSTNAME="FunKey" BR2_TARGET_GENERIC_ISSUE="Welcome to Buildroot for the FunKey" BR2_ROOTFS_DEVICE_TABLE="$(BR2_EXTERNAL_FUNKEY_PATH)/board/funkey/device_table.txt" @@ -97,7 +97,6 @@ BR2_PACKAGE_FMT=y BR2_PACKAGE_ICU=y BR2_PACKAGE_DHCPCD=y BR2_PACKAGE_DROPBEAR=y -BR2_PACKAGE_ANDROID_TOOLS=y BR2_PACKAGE_PROCPS_NG=y BR2_PACKAGE_SWUPDATE=y BR2_PACKAGE_SWUPDATE_CONFIG="$(BR2_EXTERNAL_FUNKEY_PATH)/board/funkey/swupdate.config" diff --git a/FunKey/package/ProdScreens/ProdScreens.mk b/FunKey/package/ProdScreens/ProdScreens.mk index 5883ed4..cdea886 100644 --- a/FunKey/package/ProdScreens/ProdScreens.mk +++ b/FunKey/package/ProdScreens/ProdScreens.mk @@ -4,7 +4,8 @@ # ################################################################################ -PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.2 +#PRODSCREENS_VERSION = FunKey-ProdScreens-FunKey-1.1.2 +PRODSCREENS_VERSION = ab76d63f46b531871daad4d86059d333ceb80276 PRODSCREENS_SITE_METHOD = git PRODSCREENS_SITE = https://github.com/FunKey-Project/FunKey-ProdScreens.git PRODSCREENS_SITE_LICENSE = GPL-2.1+ diff --git a/Recovery/board/funkey/busybox.config b/Recovery/board/funkey/busybox.config index 01f0788..832f8c6 100644 --- a/Recovery/board/funkey/busybox.config +++ b/Recovery/board/funkey/busybox.config @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Busybox version: 1.32.0 -# Tue Apr 6 07:55:56 2021 +# Mon Aug 1 19:17:50 2022 # CONFIG_HAVE_DOT_CONFIG=y