rpi-config_git.bbappend 645 Bytes
Newer Older
Marek Belisko's avatar
Marek Belisko committed
1
2
3
4
5

do_deploy_append() {
    echo "# Enable RTC" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
    echo "dtparam=i2c_vc=on" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
    echo "# Enable uart2 as serial console" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
6
7
    echo "dtoverlay=uart2" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
    echo "enable_uart=1" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
Marek Belisko's avatar
Marek Belisko committed
8
9
10
    echo "#Enable SPI" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
    echo "dtparam=spi=on" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
    echo "dtoverlay=spi0-1cs" >> ${DEPLOYDIR}/${BOOTFILES_DIR_NAME}/config.txt
Marek Belisko's avatar
Marek Belisko committed
11
12
}