Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: ulf at uclibc.org <ulf@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/target/jffs2
Date: Wed, 17 Oct 2007 15:01:58 -0700 (PDT)	[thread overview]
Message-ID: <20071017220158.E3DB1A45CD@busybox.net> (raw)

Author: ulf
Date: 2007-10-17 15:01:58 -0700 (Wed, 17 Oct 2007)
New Revision: 20277

Log:
Update JFFS2 page/erase size correctly

Modified:
   trunk/buildroot/target/jffs2/Config.in


Changeset:
Modified: trunk/buildroot/target/jffs2/Config.in
===================================================================
--- trunk/buildroot/target/jffs2/Config.in	2007-10-17 21:56:21 UTC (rev 20276)
+++ trunk/buildroot/target/jffs2/Config.in	2007-10-17 22:01:58 UTC (rev 20277)
@@ -6,48 +6,71 @@
 	help
 	  Build a jffs2 root filesystem
 
-
 choice
 	prompt "Memory Type"
-	default BR2_TARGET_ROOTFS_JFFS2_FLASH
+	default BR2_TARGET_ROOTFS_JFFS2_FLASH_128
 	depends on BR2_TARGET_ROOTFS_JFFS2
 
-config BR2_TARGET_ROOTFS_JFFS2_FLASH
-	bool "Parallel flash with 4 kB pagesize"
+config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
+	bool "AT45 dataflash with 1056 byte pagesize"
 	depends on BR2_TARGET_ROOTFS_JFFS2
+	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
 
-config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH
-	bool "AT45 dataflash with 1056 byte pagesize"
+config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+	bool "AT45 dataflash with 528 byte pagesize"
 	depends on BR2_TARGET_ROOTFS_JFFS2
 	select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
 
+config BR2_TARGET_ROOTFS_JFFS2_FLASH_128
+	bool "Parallel flash with 4 kB pagesize and 128 kB erase size"
+	depends on BR2_TARGET_ROOTFS_JFFS2
+
+config BR2_TARGET_ROOTFS_JFFS2_FLASH_64
+	bool "Parallel flash with 4 kB pagesize and 64 kB erase size"
+	depends on BR2_TARGET_ROOTFS_JFFS2
+
+config BR2_TARGET_ROOTFS_JFFS2_CUSTOM
+	bool "Select custom page and erase size"
+	depends on BR2_TARGET_ROOTFS_JFFS2
+
 endchoice
 
-
-config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
+config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE
 	hex "Page Size"
-	depends on BR2_TARGET_ROOTFS_JFFS2_FLASH
+	depends on BR2_TARGET_ROOTFS_JFFS2_CUSTOM
 	default 0x1000
 	help
-	  Set to pagesize of memory (Dataflash is 0x210 or 0x420)
+	  Set to pagesize of memory
 
+config BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE
+	hex "Erase block size"
+	depends on BR2_TARGET_ROOTFS_JFFS2_CUSTOM
+	default 0x20000
+	help
+	  Set to erase size of memory
+
 config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
-	hex "Page Size"
-	depends on BR2_TARGET_ROOTFS_JFFS2_DATAFLASH
-	default 0x420
+	hex
+	depends on BR2_TARGET_ROOTFS_JFFS2
+	default 0x420 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
+	default 0x210 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+	default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
+	default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
+	default $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_PAGESIZE) if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
 	help
-	  Set to pagesize of memory (Dataflash is 0x210 or 0x420)
+	  Set to pagesize of memory
 
 config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
-	hex "Erase block size"
-	depends on BR2_TARGET_ROOTFS_JFFS2_FLASH
-	default 0x20000
+	hex
+	depends on BR2_TARGET_ROOTFS_JFFS2
+	default 0x2100 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
+	default 0x1080 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+	default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
+	default 0x10000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
+	default $(BR2_TARGET_ROOTFS_JFFS2_CUSTOM_EBSIZE) if BR2_TARGET_ROOTFS_JFFS2_CUSTOM
+	help
+	  Set to Erase Size of memory
 
-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
 	bool "Do not use Cleanmarker"
 	depends on BR2_TARGET_ROOTFS_JFFS2

             reply	other threads:[~2007-10-17 22:01 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17 22:01 ulf at uclibc.org [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-01-12  0:43 [Buildroot] svn commit: trunk/buildroot/target/jffs2 ulf at uclibc.org
2008-09-07 14:31 jacmet at uclibc.org
2008-02-12  5:50 hamish at uclibc.org
2007-07-14  7:26 ulf at uclibc.org
2007-03-26 10:31 aldot at uclibc.org
2007-01-27 23:11 aldot at uclibc.org
2007-01-24 23:18 aldot at uclibc.org
2006-08-22  8:03 jacmet at uclibc.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071017220158.E3DB1A45CD@busybox.net \
    --to=ulf@uclibc.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox