From 77d077cdcc4d198223cd7a9beee7fa135e850ad3 Mon Sep 17 00:00:00 2001 From: Julian Scheel Date: Sat, 22 Sep 2012 15:04:53 +0200 Subject: rpi-config: Add variables for overclocking options. config.txt allows several overclocking parameters to be tweakes. This makes the most important ones overridable through local.conf. Signed-off-by: Julian Scheel --- recipes-bcm/bootfiles/rpi-config_0.1.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/recipes-bcm/bootfiles/rpi-config_0.1.bb b/recipes-bcm/bootfiles/rpi-config_0.1.bb index 28b6f19..f0ae412 100644 --- a/recipes-bcm/bootfiles/rpi-config_0.1.bb +++ b/recipes-bcm/bootfiles/rpi-config_0.1.bb @@ -29,6 +29,18 @@ do_deploy() { if [ -n "${DISABLE_OVERSCAN}" ]; then sed -i '/#disable_overscan/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt fi + if [ -n "${ARM_FREQ}" ]; then + sed -i '/#arm_freq/ c\arm_freq=${ARM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt + fi + if [ -n "${CORE_FREQ}" ]; then + sed -i '/#core_freq/ c\core_freq=${CORE_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt + fi + if [ -n "${SDRAM_FREQ}" ]; then + sed -i '/#sdram_freq/ c\sdram_freq=${SDRAM_FREQ}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt + fi + if [ -n "${OVER_VOLTAGE}" ]; then + sed -i '/#over_voltage/ c\over_voltage=${OVER_VOLTAGE}' ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/config.txt + fi } PACKAGE_ARCH = "${MACHINE_ARCH}" -- cgit v1.2.3-54-g00ecf