kirkwood: convert to use the new jffs2_nand
authorJonas Gorski <jogo@openwrt.org>
Wed, 5 Jun 2013 20:58:53 +0000 (20:58 +0000)
committerJonas Gorski <jogo@openwrt.org>
Wed, 5 Jun 2013 20:58:53 +0000 (20:58 +0000)
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36861

target/linux/kirkwood/Makefile
target/linux/kirkwood/image/Makefile

index 355087b4380ec06fdbe9d509791d12df2a8662e0..f0dda5ae932aa330a77aabae5e62178355e99fe9 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 ARCH:=arm
 BOARD:=kirkwood
 BOARDNAME:=Marvell Kirkwood
-FEATURES:=targz usb jffs2
+FEATURES:=targz usb jffs2_nand
 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org>
 
 LINUX_VERSION:=3.3.8
index c93be6751210eb1b6d4b083b3336a2648fcdf539..99bf864260235fe78b479e96997793549382fff3 100644 (file)
@@ -7,7 +7,7 @@
 include $(TOPDIR)/rules.mk
 include $(INCLUDE_DIR)/image.mk
 
-JFFS2OPTS += --little-endian --pagesize=0x800 --no-cleanmarkers --pad
+NAND_BLOCKSIZE := 2048:128k
 
 define Image/Prepare
        cp $(LINUX_DIR)/arch/arm/boot/uImage $(KDIR)/uImage
@@ -25,7 +25,7 @@ define Image/Build
        )
 endef
 
-define Image/Build/jffs2-128k
+define Image/Build/jffs2-nand-2048-128k
        dd if=$(KDIR)/root.$(1) of=$(BIN_DIR)/$(IMG_PREFIX)-$(PROFILE)-$(1).img \
                bs=2048 conv=sync
 endef