Drew Moseley
5 years ago
1 changed files with 26 additions and 0 deletions
@ -0,0 +1,26 @@ |
|||
MENDER_STORAGE_TOTAL_SIZE_MB="14000" |
|||
# default: MENDER_DATA_PART_SIZE_MB="128" |
|||
# default: MENDER_BOOT_PART_SIZE_MB="40" |
|||
|
|||
function enable_lcd_backlight_comfile_pi() { |
|||
cat <<- 'EOF' > work/boot/boot.cmd |
|||
# |
|||
# Customized boot script for COMFILE PI. |
|||
# |
|||
|
|||
# This line enables the backlight on the display of the COMFILE PI |
|||
gpio set 34 |
|||
|
|||
fdt addr ${fdt_addr} && fdt get value bootargs /chosen bootargs |
|||
run mender_setup |
|||
mmc dev ${mender_uboot_dev} |
|||
load ${mender_uboot_root} ${kernel_addr_r} /boot/zImage |
|||
bootz ${kernel_addr_r} - ${fdt_addr} |
|||
run mender_try_to_recover |
|||
EOF |
|||
mkimage -C none -A arm -T script -d work/boot/boot.cmd work/boot/boot.scr |
|||
rm -f work/boot/boot.cmd |
|||
} |
|||
PLATFORM_MODIFY_HOOKS+=(enable_lcd_backlight_comfile_pi) |
|||
|
|||
source configs/raspberrypi3_config |
Loading…
Reference in new issue