target/jffs2: add support for nand flash with 512B page / 16 kB erasesize
authorKelvin Cheung <keguang.zhang@gmail.com>
Sun, 22 Nov 2009 20:08:37 +0000 (21:08 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 22 Nov 2009 20:08:37 +0000 (21:08 +0100)
Closes #663

Signed-off-by: Kelvin Cheung <keguang.zhang@gmail.com>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
target/jffs2/Config.in

diff --git a/CHANGES b/CHANGES
index ab1df38ec7003291d6c90addafee6bb71f866167..421629f25984334fb9cca0cb4d7b64c5f3c53731 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -18,9 +18,8 @@
        ncurses, netkittelnet, netsnmp, ntfs-3g, openntp, openssl, php,
        python, quagga, radvd, rsync, samba, sawman, sdl, shared-mime-info,
        spawn-fcgi, speech-tools, sqlite, squashfs, synergy, syslinux,
-       tcpdump, u-boot, util-linux, valgrind, vsftpd, wipe
-
-       wpa-supplicant, xdata_xcursor-themes, zlib
+       tcpdump, u-boot, util-linux, valgrind, vsftpd, wipe, wpa-supplicant,
+       xdata_xcursor-themes, zlib
 
        Removed package: mdnsresponder, mpatrol, gcc 3.4.6 + 4.0.4
 
        #609: libmicrohttpd: New package
        #615: python: Don't delete .py files unless asked
        #617: netkit/inetd requires RPC and fails to build if RPC is disabled
-       #619: netkittelnet requires netkitbase to install, but there's no dependency
+       #619: netkittelnet requires netkitbase to install, but there's no ...
        #653: [SECURITY] Update php package to version 5.2.11
        #655: Update sqlite package to version 3.6.18
        #657: Bug in imagemagick-clean target
+       #663: Add option for NAND flash with 512B Page and 16 kB erasesize ...
        #665: [PATCH] Samba package
        #667: [PATCH] e2fsprogs
        #683: SDL-dfb does not select directfb
index 16fdcc5f42291a897aacdf0cea2394b75053aba5..108dfde73c9ca61b7f41ea46929a10d91b304bea 100644 (file)
@@ -19,6 +19,10 @@ config BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
        bool "AT45 dataflash with 528 byte pagesize"
        select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
 
+config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_512_16K
+       bool "NAND flash with 512B Page and 16 kB erasesize"
+       select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
+
 config BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
        bool "NAND flash with 2kB Page and 128 kB erasesize"
        select BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
@@ -52,6 +56,7 @@ config BR2_TARGET_ROOTFS_JFFS2_PAGESIZE
        hex
        default 0x420 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
        default 0x210 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+       default 0x200 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_512_16K
        default 0x800 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
        default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
        default 0x1000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
@@ -61,6 +66,7 @@ config BR2_TARGET_ROOTFS_JFFS2_EBSIZE
        hex
        default 0x2100 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
        default 0x1080 if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+       default 0x4000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_512_16K
        default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
        default 0x20000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_128
        default 0x10000 if BR2_TARGET_ROOTFS_JFFS2_FLASH_64
@@ -70,6 +76,7 @@ config BR2_TARGET_ROOTFS_JFFS2_NOCLEANMARKER
        bool "Do not use Cleanmarker"
        default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_1056
        default y if BR2_TARGET_ROOTFS_JFFS2_DATAFLASH_528
+       default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_512_16K
        default y if BR2_TARGET_ROOTFS_JFFS2_NANDFLASH_2K_128K
        help
          Do not use cleanmarkers if using NAND flash or Dataflash where