From 5883c549c8dc07daa856d154bd57dfca3506a1c0 Mon Sep 17 00:00:00 2001 From: Ycarus Date: Fri, 21 Sep 2018 15:27:16 +0200 Subject: [PATCH] Little change to BPI-R2 --- config-bpi-r2 | 5 +++++ root/target/linux/mediatek/image/Makefile | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/config-bpi-r2 b/config-bpi-r2 index 961a6c84..52460688 100644 --- a/config-bpi-r2 +++ b/config-bpi-r2 @@ -5,3 +5,8 @@ CONFIG_PACKAGE_cryptodev=y CONFIG_PACKAGE_wmt=y CONFIG_PACKAGE_kmod-mt6625l-wlan-gen2=y CONFIG_PACKAGE_u-boot-bpi_r2=y +CONFIG_PACKAGE_uboot-envtools=y +CONFIG_PACKAGE_attr=y +CONFIG_PACKAGE_f2fs-tools=y +CONFIG_PACKAGE_f2fsck=y +CONFIG_PACKAGE_mkf2fs=y \ No newline at end of file diff --git a/root/target/linux/mediatek/image/Makefile b/root/target/linux/mediatek/image/Makefile index fc1c58c8..c09acea4 100644 --- a/root/target/linux/mediatek/image/Makefile +++ b/root/target/linux/mediatek/image/Makefile @@ -33,21 +33,15 @@ define Build/sysupgrade-emmc endef define Build/sysupgrade-bpi-r2-sd - rm -f $@.recovery - mkfs.fat -C $@.recovery 3070 dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-preloader-sd.bin" of="$@" seek="0" dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-uboot.bin" of="$@" seek="320" dd bs="1024" if="$(IMAGE_KERNEL)" of="$@" seek="2048" - dd bs="1024" if="$@.recovery" of="$@" seek="33792" dd bs="1024" if="$(IMAGE_ROOTFS)" of="$@" seek="67584" endef define Build/sysupgrade-bpi-r2-emmc - rm -f $@.recovery - mkfs.fat -C $@.recovery 3070 dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-preloader-emmc.bin" of="$@" seek="0" dd bs="1024" if="$(STAGING_DIR_IMAGE)/mtk-bpi-r2-uboot.bin" of="$@" seek="320" dd bs="1024" if="$(IMAGE_KERNEL)" of="$@" seek="2048" - dd bs="1024" if="$@.recovery" of="$@" seek="33792" dd bs="1024" if="$(IMAGE_ROOTFS)" of="$@" seek="67584" endef @@ -61,9 +55,7 @@ define Device/Default IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata ifeq ($(SUBTARGET),mt7623) KERNEL_NAME := zImage -# KERNEL := dtb | kernel-bin | append-dtb | uImage none KERNEL := kernel-bin | append-dtb | uImage none -# KERNEL_INITRAMFS := dtb | kernel-bin | append-dtb | uImage none KERNEL_INITRAMFS := kernel-bin | append-dtb | uImage none endif ifeq ($(SUBTARGET),mt7622)