浏览代码

Correct JFFS2 Erase Size for AT45 dataflash

Ulf Samuelsson 18 年之前
父节点
当前提交
7a3bccae42
共有 1 个文件被更改,包括 36 次插入13 次删除
  1. 36 13
      target/jffs2/Config.in

+ 36 - 13
target/jffs2/Config.in

@@ -6,33 +6,56 @@ config BR2_TARGET_ROOTFS_JFFS2
 	help
 	help
 	  Build a jffs2 root filesystem
 	  Build a jffs2 root filesystem
 
 
-config BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
-	bool "Use default 4 kB pagesize"
+
+choice
+	prompt "Memory Type"
+	default BR2_TARGET_ROOTFS_JFFS2_FLASH
 	depends on BR2_TARGET_ROOTFS_JFFS2
 	depends on BR2_TARGET_ROOTFS_JFFS2
-	default y			
 
 
-config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
-	hex "Page Size (0x0 = Use default 4 kB)"
+config BR2_TARGET_ROOTFS_JFFS2_FLASH
+	bool "Parallel flash with 4 kB pagesize"
 	depends on BR2_TARGET_ROOTFS_JFFS2
 	depends on BR2_TARGET_ROOTFS_JFFS2
-	depends on !BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
+
+config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH
+	bool "AT45 dataflash with 1056 byte pagesize"
+	depends on BR2_TARGET_ROOTFS_JFFS2
+	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
+
+endchoice
+
+
+config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
+	hex "Page Size"
+	depends on BR2_TARGET_ROOTFS_JFFS2_FLASH
+	default 0x1000
+	help
+	  Set to pagesize of memory (Dataflash is 0x210 or 0x420)
+
+config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
+	hex "Page Size"
+	depends on BR2_TARGET_ROOTFS_JFFS2_DATAFLASH
 	default 0x420
 	default 0x420
 	help
 	help
 	  Set to pagesize of memory (Dataflash is 0x210 or 0x420)
 	  Set to pagesize of memory (Dataflash is 0x210 or 0x420)
 
 
+config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
+	hex "Erase block size"
+	depends on BR2_TARGET_ROOTFS_JFFS2_FLASH
+	default 0x20000
+
+config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
+	hex "Erase block size"
+	depends on BR2_TARGET_ROOTFS_JFFS2_DATAFLASH
+	default 0x2100
+
 config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
 config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
 	bool	"Do not use Cleanmarker"
 	bool	"Do not use Cleanmarker"
 	depends on BR2_TARGET_ROOTFS_JFFS2
 	depends on BR2_TARGET_ROOTFS_JFFS2
-	depends on !BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
-	default y
+	default n
 	help
 	help
 	  Do not use cleanmarkers if using NAND flash or Dataflash where
 	  Do not use cleanmarkers if using NAND flash or Dataflash where
 	  the pagesize is not a power of 2
 	  the pagesize is not a power of 2
 
 
-config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
-	hex "Erase block size"
-	depends on BR2_TARGET_ROOTFS_JFFS2
-	default 0x20000
-
 config BR2_JFFS2_TARGET_SREC
 config BR2_JFFS2_TARGET_SREC
 	bool "RootFS in SREC file formet"
 	bool "RootFS in SREC file formet"
 	depends on BR2_TARGET_ROOTFS_JFFS2
 	depends on BR2_TARGET_ROOTFS_JFFS2