Subject: jffs2 file system

From: Nethra <[email-masked]>
Date: Thu, 22 Feb 2007 02:16:32 -0800 (PST)

hi,
 I m using PQ2FADS-ZU board and montavista kernel 2.6.10.
u-boot is u-boot-1.1.1

Kernel configuration for MTD and JFFS2 support...

CONFIG_MTD=y
CONFIG_MTD_DEBUG=y
CONFIG_MTD_DEBUG_VERBOSE=0
# CONFIG_MTD_CONCAT is not set
CONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not set
CONFIG_MTD_CMDLINE_PARTS=y

#
# User Modules And Translation Layers
#
CONFIG_MTD_CHAR=y
CONFIG_MTD_BLOCK=y
CONFIG_FTL=y
#
# RAM/ROM/Flash chip drivers
#
CONFIG_MTD_CFI=y
CONFIG_MTD_JEDECPROBE=y
CONFIG_MTD_GEN_PROBE=y
CONFIG_MTD_CFI_ADV_OPTIONS=y
CONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
CONFIG_MTD_CFI_GEOMETRY=y
CONFIG_MTD_MAP_BANK_WIDTH_1=y
CONFIG_MTD_MAP_BANK_WIDTH_2=y
CONFIG_MTD_MAP_BANK_WIDTH_4=y
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
CONFIG_MTD_CFI_I1=y
CONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not set
CONFIG_MTD_OTP=y
CONFIG_MTD_CFI_INTELEXT=y
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not set
CONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not set
CONFIG_MTD_ROM=y
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_XIP is not set

#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x8000000
CONFIG_MTD_PHYSMAP_LEN=0x4000000
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_MULTI_PHYSMAP is not set
# CONFIG_MTD_SBC8240 is not set
CONFIG_MTD_PQ2FADS=y

JFFS2........
----------------
CONFIG_JFFS_FS=y
CONFIG_JFFS_FS_VERBOSE=0
CONFIG_JFFS_PROC_FS=y
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=0
CONFIG_JFFS2_FS_WRITEBUFFER=y
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not set
CONFIG_JFFS2_CMODE_PRIORITY=y

created  jffs2 image using mkfs.jffs2 on host
----------------------------------------------------
mkfs.jffs2 -r /mnt/tmp -e 0x10000 -o image.jffs2 -b

on evaluation (PQ2FADS-ZU) board....
--------------------------------------------
setenv ipaddr 192.168.178.234
setenv serverip 192.168.178.110
setenv ethaddr 00:99:23:44:ad:de
setenv bootcmd 'tftpboot 0x1000000 jffsenabled\;bootm 0x1000000\;'
setenv bootargs root=/dev/mtdblock0 rootfstype=jffs2
ip=192.168.174.231:192.168.178.110:192.168.174.47:255.255.255.0:cashel:eth1:off 

steps fallowed are....

erase  FF800000 FFDFFFFF
tftpboot 0x100000 image.jffs2 
cp.b 100000 FF800000 4dc874
run bootcmd

linux does not bootup...

what is the problem ? 

I m also trying to mount jffs2 after nfs mounting.....
-------------------------------------------------------------

cat /proc/mtd and cat /proc/partitions are working fine.

steps fallowed are...

1. mkfs.jffs2 −−pad=3145728 −−eraseblock=262144 −−root=/mnt −−output
image.jffs2
2. flash_erase /dev/mtd0
3. cp /var/tm/image.jffs2 /dev/mtd0
4. mount  -t jffs2 /dev/mtdblock0 /mnt

it is not working?

thanks in advance.

best wishes,
Nethra

-- 
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9097247
Sent from the linuxppc-embedded mailing list archive at Nabble.com.