[source] ar71xx: enable nand-utils in the mikrotik subtarget to ensure it makes it to initramfs

LEDE Commits lede-commits at lists.infradead.org
Fri May 12 04:33:31 PDT 2017


nbd pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/8011215ad220c18da5a35bd188a92f1d6aba4422

commit 8011215ad220c18da5a35bd188a92f1d6aba4422
Author: Felix Fietkau <nbd at nbd.name>
AuthorDate: Fri May 12 13:28:56 2017 +0200

    ar71xx: enable nand-utils in the mikrotik subtarget to ensure it makes it to initramfs
    
    Without it, sysupgrade from initramfs to nand fails
    
    Signed-off-by: Felix Fietkau <nbd at nbd.name>
---
 target/linux/ar71xx/image/mikrotik.mk  | 4 ++--
 target/linux/ar71xx/mikrotik/target.mk | 2 ++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/target/linux/ar71xx/image/mikrotik.mk b/target/linux/ar71xx/image/mikrotik.mk
index 6aa7c2a..bcfa64d 100644
--- a/target/linux/ar71xx/image/mikrotik.mk
+++ b/target/linux/ar71xx/image/mikrotik.mk
@@ -1,6 +1,6 @@
 define Device/mikrotik
   PROFILES := Default
-  DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport nand-utils
+  DEVICE_PACKAGES := kmod-usb-core kmod-usb-ohci kmod-usb2 kmod-usb-ledtrig-usbport
   BOARD_NAME := routerboard
   KERNEL_INITRAMFS :=
   KERNEL_NAME := loader-generic.elf
@@ -26,7 +26,7 @@ TARGET_DEVICES += nand-64m nand-large
 
 define Device/rb-nor-flash-16M
   DEVICE_TITLE := MikroTik RouterBoard with 16 MB NOR flash
-  DEVICE_PACKAGES := rbcfg
+  DEVICE_PACKAGES := rbcfg -nand-utils
   BLOCKSIZE := 64k
   IMAGE_SIZE := 16000k
   LOADER_TYPE := elf
diff --git a/target/linux/ar71xx/mikrotik/target.mk b/target/linux/ar71xx/mikrotik/target.mk
index 90ef51e..ff2bbbf 100644
--- a/target/linux/ar71xx/mikrotik/target.mk
+++ b/target/linux/ar71xx/mikrotik/target.mk
@@ -1,6 +1,8 @@
 BOARDNAME:=Mikrotik devices with NAND/NOR flash
 FEATURES += squashfs ramdisk minor nand
 
+DEFAULT_PACKAGES += nand-utils
+
 define Target/Description
 	Build firmware images for Atheros AR71xx/AR913x based Mikrotik boards.
 	e.g. MikroTik RB-4xx or RB-750



More information about the lede-commits mailing list