Commit 0fee817d authored by Grant Likely's avatar Grant Likely
Browse files

Add target for rk3399 sdcard images



Include an rk3399 specific make file which has a target for creating
rk3399 sdcard images

Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
parent f21f2ec0
......@@ -23,6 +23,8 @@ UBOOT_EXTRA := BL31=$(TFA_PATH)/build/$(TFA_PLAT)/release/bl31/bl31.elf
FLASH_IMAGE := $(UBOOT_OUTPUT)/flash_image.bin
DTB_TARGET := src/arm64/$(CONFIG_DEFAULT_FDT_FILE)
u-boot: tfa-bl31
include $(CURDIR)/scripts/rk3399.mk
endif
ifdef CONFIG_ARMADA_8K
......
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) Arm Limited, 2020
#
# Build config for RockPro64
# Inspired by https://stikonas.eu/wordpress/2019/09/15/blobless-boot-with-rockpro64/
sdcard-image: SD_IMG=$(CURDIR)/$(TARGET)-sdcard.img
sdcard-image: u-boot
dd if=/dev/zero of=$(SD_IMG) seek=32M count=0
/sbin/sgdisk -g $(SD_IMG)
/sbin/sgdisk -n 1:: $(SD_IMG)
dd if=${UBOOT_OUTPUT}/idbloader.img of=$(SD_IMG) seek=64
dd if=${UBOOT_OUTPUT}/u-boot.itb of=$(SD_IMG) seek=16384
# SPDX-License-Identifier: GPL-2.0+
#
# Copyright (C) Arm Limited, 2020
#
# Build config for RockPro64
# Inspired by https://stikonas.eu/wordpress/2019/09/15/blobless-boot-with-rockpro64/
DTB_TARGET := src/arm64/rockchip/rk3399-rockpro64-v2.dtb
TFA_PLAT := rk3399
TFA_DEPS := dtb
UBOOT_EXTRA := BL31=$(TFA_PATH)/build/$(TFA_PLAT)/release/bl31/bl31.elf
UBOOT_EXTRA += EXT_DTB=${DT_PATH}/${DTB_TARGET}
UBOOT_DEPS := tfa-bl31
FLASH_IMAGE := ${UBOOT_OUTPUT}/flash_image.bin
rockpro64-sd:
sudo dd if=${UBOOT_OUTPUT}/idbloader.img of=${FLASH_DEVICE} seek=64 conv=fdatasync status=progress
sudo dd if=${UBOOT_OUTPUT}/u-boot.itb of=${FLASH_DEVICE} seek=16384 conv=fdatasync status=progress
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment