* [Buildroot] [PATCH] New options for JFFS2 to support Dataflash
@ 2007-01-23 22:40 Ulf Samuelsson
2007-01-24 23:18 ` Bernhard Fischer
0 siblings, 1 reply; 2+ messages in thread
From: Ulf Samuelsson @ 2007-01-23 22:40 UTC (permalink / raw)
To: buildroot
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: target_jffs2_Config.in_jffs2root.mk.patch
Type: text/x-patch
Size: 2675 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070123/09541322/attachment.bin
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] New options for JFFS2 to support Dataflash
2007-01-23 22:40 [Buildroot] [PATCH] New options for JFFS2 to support Dataflash Ulf Samuelsson
@ 2007-01-24 23:18 ` Bernhard Fischer
0 siblings, 0 replies; 2+ messages in thread
From: Bernhard Fischer @ 2007-01-24 23:18 UTC (permalink / raw)
To: buildroot
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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-24 23:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-23 22:40 [Buildroot] [PATCH] New options for JFFS2 to support Dataflash Ulf Samuelsson
2007-01-24 23:18 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox