diff --git a/build.sh b/build.sh index fc2e24f..8ce1f54 100644 --- a/build.sh +++ b/build.sh @@ -88,6 +88,14 @@ sed -e 's/usb_detect_type = 1/usb_detect_type = 0/g' $DEST/cubie_configs sed -e 's/screen0_output_type.*/screen0_output_type = 3/g' $DEST/cubie_configs/sysconfig/linux/ct.fex > $DEST/cubie_configs/sysconfig/linux/ct-hdmi.fex sed -e 's/screen0_output_type.*/screen0_output_type = 4/g' $DEST/cubie_configs/sysconfig/linux/ct.fex > $DEST/cubie_configs/sysconfig/linux/ct-vga.fex + +###PATCH kernel CONFIG_HZ, Arm dfault is hardcoded 100hz (10ms latency!). For mulitimedia and desktop a higher frequency is recomended. + +#test -f $SRC/patch/250HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/250HZ.patch +test -f $SRC/patch/300HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/300HZ.patch +#test -f $SRC/patch/1000HZ.patch && patch -f $DEST/linux-sunxi/arch/arm/Kconfig < $SRC/patch/1000HZ.patch + + # Copying Kernel config cp $SRC/config/kernel.config $DEST/linux-sunxi/ diff --git a/patch/1000HZ.patch b/patch/1000HZ.patch new file mode 100644 index 0000000..c0cf086 --- /dev/null +++ b/patch/1000HZ.patch @@ -0,0 +1,11 @@ +--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100 ++++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100 +@@ -1698,7 +1698,7 @@ + default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER + default AT91_TIMER_HZ if ARCH_AT91 + default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE +- default 100 ++ default 1000 + + config THUMB2_KERNEL + bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)" diff --git a/patch/250HZ.patch b/patch/250HZ.patch new file mode 100644 index 0000000..01aba76 --- /dev/null +++ b/patch/250HZ.patch @@ -0,0 +1,11 @@ +--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100 ++++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100 +@@ -1698,7 +1698,7 @@ + default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER + default AT91_TIMER_HZ if ARCH_AT91 + default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE +- default 100 ++ default 250 + + config THUMB2_KERNEL + bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)" diff --git a/patch/300HZ.patch b/patch/300HZ.patch new file mode 100644 index 0000000..9d20ff3 --- /dev/null +++ b/patch/300HZ.patch @@ -0,0 +1,11 @@ +--- ./arch/arm/Kconfig 2014-02-14 11:28:34.504514916 +0100 ++++ ./arch/arm/Kconfig.a 2014-02-14 11:28:16.634516659 +0100 +@@ -1698,7 +1698,7 @@ + default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER + default AT91_TIMER_HZ if ARCH_AT91 + default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE +- default 100 ++ default 300 + + config THUMB2_KERNEL + bool "Compile the kernel in Thumb-2 mode (EXPERIMENTAL)"