You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
765 B
27 lines
765 B
5 years ago
|
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
|