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.
32 lines
1.2 KiB
32 lines
1.2 KiB
# Binaries generated with the following script:
|
|
# https://d1b0l86ne08fsf.cloudfront.net/mender-convert/uboot/rockpro64/integration-scripts.tar.gz
|
|
|
|
# ROCKPro64 do not support GRUB bootloader integration, fallback to U-boot.
|
|
MENDER_GRUB_EFI_INTEGRATION=n
|
|
|
|
# We will write a modified bootloader
|
|
MENDER_COPY_BOOT_GAP=n
|
|
|
|
ROCKPRO64_BINARIES="${ROCKPRO64_CONFIG}-2017.09.tar.gz"
|
|
ROCKPRO64_BINARIES_URL="${MENDER_STORAGE_URL}/mender-convert/uboot/rockpro64/${ROCKPRO64_BINARIES}"
|
|
|
|
function platform_modify() {
|
|
mkdir -p work/rockpro64
|
|
|
|
run_and_log_cmd "wget -Nq ${ROCKPRO64_BINARIES_URL} -P work/rockpro64"
|
|
run_and_log_cmd "tar xzvf work/rockpro64/${ROCKPRO64_BINARIES} -C work/rockpro64"
|
|
|
|
run_and_log_cmd "sudo cp work/rockpro64/boot.scr work/boot"
|
|
|
|
run_and_log_cmd "sudo cp work/rockpro64/fw_env.config work/rootfs/etc/"
|
|
|
|
# It is not possible to resize rootfs part when using Mender. so disable
|
|
# the service
|
|
run_and_log_cmd "sudo touch work/rootfs/root/.no_rootfs_resize"
|
|
}
|
|
|
|
function platform_package() {
|
|
log_info "Embedding bootloader in disk image"
|
|
run_and_log_cmd "dd if=work/rockpro64/rksd_loader.img of=${img_path} \
|
|
seek=64 conv=notrunc status=none"
|
|
}
|
|
|