diff options
Diffstat (limited to 'recipes-bsp/bootfiles/rpi-config_git.bb')
| -rw-r--r-- | recipes-bsp/bootfiles/rpi-config_git.bb | 45 |
1 files changed, 43 insertions, 2 deletions
diff --git a/recipes-bsp/bootfiles/rpi-config_git.bb b/recipes-bsp/bootfiles/rpi-config_git.bb index bc6f0d8..c04090f 100644 --- a/recipes-bsp/bootfiles/rpi-config_git.bb +++ b/recipes-bsp/bootfiles/rpi-config_git.bb | |||
| @@ -39,9 +39,17 @@ do_deploy() { | |||
| 39 | if [ -n "${DISABLE_OVERSCAN}" ]; then | 39 | if [ -n "${DISABLE_OVERSCAN}" ]; then |
| 40 | sed -i '/#disable_overscan=/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 40 | sed -i '/#disable_overscan=/ c\disable_overscan=${DISABLE_OVERSCAN}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 41 | fi | 41 | fi |
| 42 | if [ -n "${DISABLE_SPLASH}" ]; then | ||
| 43 | sed -i '/#disable_splash=/ c\disable_splash=${DISABLE_SPLASH}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 44 | fi | ||
| 45 | |||
| 46 | # Set overclocking options | ||
| 42 | if [ -n "${ARM_FREQ}" ]; then | 47 | if [ -n "${ARM_FREQ}" ]; then |
| 43 | sed -i '/#arm_freq=/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 48 | sed -i '/#arm_freq=/ c\arm_freq=${ARM_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 44 | fi | 49 | fi |
| 50 | if [ -n "${GPU_FREQ}" ]; then | ||
| 51 | sed -i '/#gpu_freq=/ c\gpu_freq=${GPU_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 52 | fi | ||
| 45 | if [ -n "${CORE_FREQ}" ]; then | 53 | if [ -n "${CORE_FREQ}" ]; then |
| 46 | sed -i '/#core_freq=/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 54 | sed -i '/#core_freq=/ c\core_freq=${CORE_FREQ}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 47 | fi | 55 | fi |
| @@ -66,6 +74,40 @@ do_deploy() { | |||
| 66 | sed -i '/#gpu_mem_1024=/ c\gpu_mem_1024=${GPU_MEM_1024}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 74 | sed -i '/#gpu_mem_1024=/ c\gpu_mem_1024=${GPU_MEM_1024}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 67 | fi | 75 | fi |
| 68 | 76 | ||
| 77 | # Set boot delay | ||
| 78 | if [ -n "${BOOT_DELAY}" ]; then | ||
| 79 | sed -i '/#boot_delay=/ c\boot_delay=${BOOT_DELAY}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 80 | fi | ||
| 81 | if [ -n "${BOOT_DELAY_MS}" ]; then | ||
| 82 | sed -i '/#boot_delay_ms=/ c\boot_delay_ms=${BOOT_DELAY_MS}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 83 | fi | ||
| 84 | |||
| 85 | # Set HDMI and composite video options | ||
| 86 | if [ -n "${HDMI_FORCE_HOTPLUG}" ]; then | ||
| 87 | sed -i '/#hdmi_force_hotplug=/ c\hdmi_force_hotplug=${HDMI_FORCE_HOTPLUG}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 88 | fi | ||
| 89 | if [ -n "${HDMI_DRIVE}" ]; then | ||
| 90 | sed -i '/#hdmi_drive=/ c\hdmi_drive=${HDMI_DRIVE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 91 | fi | ||
| 92 | if [ -n "${HDMI_GROUP}" ]; then | ||
| 93 | sed -i '/#hdmi_group=/ c\hdmi_group=${HDMI_GROUP}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 94 | fi | ||
| 95 | if [ -n "${HDMI_MODE}" ]; then | ||
| 96 | sed -i '/#hdmi_mode=/ c\hdmi_mode=${HDMI_MODE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 97 | fi | ||
| 98 | if [ -n "${CONFIG_HDMI_BOOST}" ]; then | ||
| 99 | sed -i '/#config_hdmi_boost=/ c\config_hdmi_boost=${CONFIG_HDMI_BOOST}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 100 | fi | ||
| 101 | if [ -n "${SDTV_MODE}" ]; then | ||
| 102 | sed -i '/#sdtv_mode=/ c\sdtv_mode=${SDTV_MODE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 103 | fi | ||
| 104 | if [ -n "${SDTV_ASPECT}" ]; then | ||
| 105 | sed -i '/#sdtv_aspect=/ c\sdtv_aspect=${SDTV_ASPECT}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 106 | fi | ||
| 107 | if [ -n "${DISPLAY_ROTATE}" ]; then | ||
| 108 | sed -i '/#display_rotate=/ c\display_rotate=${DISPLAY_ROTATE}' ${DEPLOYDIR}/bcm2835-bootfiles/config.txt | ||
| 109 | fi | ||
| 110 | |||
| 69 | # Video camera support | 111 | # Video camera support |
| 70 | if [ -n "${VIDEO_CAMERA}" ]; then | 112 | if [ -n "${VIDEO_CAMERA}" ]; then |
| 71 | echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 113 | echo "# Enable video camera" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| @@ -84,6 +126,7 @@ do_deploy() { | |||
| 84 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 126 | echo "dtparam=spi=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 85 | fi | 127 | fi |
| 86 | 128 | ||
| 129 | # I2C support | ||
| 87 | if [ -n "${ENABLE_I2C}" ] || [ "${PITFT}" = "1" ]; then | 130 | if [ -n "${ENABLE_I2C}" ] || [ "${PITFT}" = "1" ]; then |
| 88 | echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 131 | echo "# Enable I2C" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 89 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 132 | echo "dtparam=i2c1=on" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| @@ -95,12 +138,10 @@ do_deploy() { | |||
| 95 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 138 | echo "# Enable PITFT22 display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 96 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 139 | echo "dtoverlay=pitft22,rotate=270,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 97 | fi | 140 | fi |
| 98 | |||
| 99 | if [ "${PITFT28r}" = "1" ]; then | 141 | if [ "${PITFT28r}" = "1" ]; then |
| 100 | echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 142 | echo "# Enable PITFT28r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 101 | echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 143 | echo "dtoverlay=pitft28-resistive,rotate=90,speed=32000000,txbuflen=32768" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 102 | fi | 144 | fi |
| 103 | |||
| 104 | if [ "${PITFT35r}" = "1" ]; then | 145 | if [ "${PITFT35r}" = "1" ]; then |
| 105 | echo "# Enable PITFT35r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 146 | echo "# Enable PITFT35r display" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
| 106 | echo "dtoverlay=pitft35-resistive,rotate=90,speed=42000000,fps=20" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt | 147 | echo "dtoverlay=pitft35-resistive,rotate=90,speed=42000000,fps=20" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt |
