From: Bernhard Fischer <rep.dot.nop@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] New options for JFFS2 to support Dataflash
Date: Thu, 25 Jan 2007 00:18:35 +0100 [thread overview]
Message-ID: <20070124231835.GE28221@aon.at> (raw)
In-Reply-To: <1169592015.5361.10.camel@elrond.sweden.atmel.com>
On Tue, Jan 23, 2007 at 11:40:15PM +0100, Ulf Samuelsson wrote:
>AT45 SPI Dataflash need special options for mkfs.jffs2,
>due to their nonstandard page size (528/1056 byte pages)
>
>This allows these options to be configured.
>
>Best Regards
>Ulf Samuelsson
>
>Author: Ulf Samuelsson
>Date: 2007-01-23
>
>Log:
>Additionals JFFS2 options to support Dataflash
typo: Additional without trailing 's'
>
>Modified:
> target/jffs2/Config.in
> target/jffs2/jffs2root.mk
>Changeset
>Modified: target/jffs2/Config.in
> target/jffs2/jffs2root.mk
>
>diff -urN buildroot-0rig/target/jffs2/Config.in buildroot-20070116-RC2/target/jffs2/Config.in
>--- buildroot-0rig/target/jffs2/Config.in 2007-01-16 18:29:39.000000000 +0100
>+++ buildroot-20070116-RC2/target/jffs2/Config.in 2007-01-16 23:42:40.000000000 +0100
>@@ -5,6 +5,26 @@
> help
> Build a jffs2 root filesystem
>
>+config BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
>+ bool "Use default 4 kB pagesize"
>+ depends on BR2_TARGET_ROOTFS_JFFS2
>+ default y
>+
>+config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
>+ hex "Page Size (0x0 = Use default 4 kB)"
>+ depends on !BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
>+ default 0x420
>+ help
>+ Set to pagesize of memory (Dataflash is 0x210 or 0x420)
We use \t\ \ The helptext.
and not \t\t
fixed.
>+
>+config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
>+ bool "Do not use Cleanmarker"
>+ depends on !BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE
>+ default y
>+ help
>+ Do not use cleanmarkers if using NAND flash or Dataflash where
>+ the pagesize is not a power of 2
ditto
>+
> config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
> hex "Erase block size"
> depends on BR2_TARGET_ROOTFS_JFFS2
>diff -urN buildroot-0rig/target/jffs2/jffs2root.mk buildroot-20070116-RC2/target/jffs2/jffs2root.mk
>--- buildroot-0rig/target/jffs2/jffs2root.mk 2007-01-16 18:29:39.000000000 +0100
>+++ buildroot-20070116-RC2/target/jffs2/jffs2root.mk 2007-01-16 23:42:40.000000000 +0100
>@@ -4,7 +4,7 @@
> #
> #############################################################
>
>-JFFS2_OPTS := -e $(strip $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE))
>+JFFS2_OPTS:= -e $(strip $(BR2_TARGET_ROOTFS_JFFS2_EBSIZE))
unrelated whitespace. Dropped
>
> ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PAD)),y)
> ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_PADSIZE)),0x0)
>@@ -26,8 +26,15 @@
> JFFS2_OPTS += -b
> endif
>
>-JFFS2_TARGET := $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_OUTPUT))
>-JFFS2_DEVFILE = $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_DEVFILE)))
>+ifneq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_DEFAULT_PAGESIZE)),y)
>+JFFS2_OPTS += -s $(strip $(BR2_TARGET_ROOTFS_JFFS2_PAGESIZE))
>+ifeq ($(strip $(BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER)),y)
>+JFFS2_OPTS += -n
>+endif
>+endif
>+
>+JFFS2_TARGET:= $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_OUTPUT))
>+JFFS2_DEVFILE= $(strip $(subst ",,$(BR2_TARGET_ROOTFS_JFFS2_DEVFILE)))
> ifneq ($(JFFS2_DEVFILE),)
> JFFS2_OPTS += -D $(TARGET_DEVICE_TABLE)
> endif
>@@ -68,6 +75,9 @@
> ifneq ($(JFFS2_COPYTO),)
> @cp -f $(JFFS2_TARGET) $(JFFS2_COPYTO)
> endif
>+ @mkdir -p binaries/$(BOARDNAME)
>+ @cp -f $(JFFS2_TARGET) binaries/$(BOARDNAME)
Set JFFS2_COPYTO in your .config instead
>+
>
> jffs2root-source: mtd-host-source
>
Applied with some additional cleanups while at it.
Thanks,
prev parent reply other threads:[~2007-01-24 23:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-23 22:40 [Buildroot] [PATCH] New options for JFFS2 to support Dataflash Ulf Samuelsson
2007-01-24 23:18 ` Bernhard Fischer [this message]
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=20070124231835.GE28221@aon.at \
--to=rep.dot.nop@gmail.com \
--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