jffs2 file system
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=3DyCONFIG_MTD_DEBUG=3DyCONFIG_MTD_DEBUG_VERBOSE=3D0
# CONFIG_MTD_CONCAT is not setCONFIG_MTD_PARTITIONS=3Dy
# CONFIG_MTD_REDBOOT_PARTS is not setCONFIG_MTD_CMDLINE_PARTS=3Dy
#
# User Modules And Translation Layers
#CONFIG_MTD_CHAR=3DyCONFIG_MTD_BLOCK=3DyCONFIG_FTL=3Dy
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=3DyCONFIG_MTD_JEDECPROBE=3DyCONFIG_MTD_GEN_PROBE=3DyCONFIG_MTD_CFI_ADV_OPTIONS=3DyCONFIG_MTD_CFI_NOSWAP=3Dy
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_MTD_CFI_GEOMETRY=3DyCONFIG_MTD_MAP_BANK_WIDTH_1=3DyCONFIG_MTD_MAP_BANK_WIDTH_2=3DyCONFIG_MTD_MAP_BANK_WIDTH_4=3Dy
# 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 setCONFIG_MTD_CFI_I1=3DyCONFIG_MTD_CFI_I2=3Dy
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not setCONFIG_MTD_OTP=3DyCONFIG_MTD_CFI_INTELEXT=3Dy
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not setCONFIG_MTD_CFI_UTIL=3Dy
# CONFIG_MTD_RAM is not setCONFIG_MTD_ROM=3Dy
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_XIP is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not setCONFIG_MTD_PHYSMAP=3DyCONFIG_MTD_PHYSMAP_START=3D0x8000000CONFIG_MTD_PHYSMAP_LEN=3D0x4000000CONFIG_MTD_PHYSMAP_BANKWIDTH=3D2
# CONFIG_MTD_MULTI_PHYSMAP is not set
# CONFIG_MTD_SBC8240 is not setCONFIG_MTD_PQ2FADS=3Dy
=20
JFFS2........
----------------CONFIG_JFFS_FS=3DyCONFIG_JFFS_FS_VERBOSE=3D0CONFIG_JFFS_PROC_FS=3DyCONFIG_JFFS2_FS=3DyCONFIG_JFFS2_FS_DEBUG=3D0CONFIG_JFFS2_FS_WRITEBUFFER=3DyCONFIG_JFFS2_COMPRESSION_OPTIONS=3DyCONFIG_JFFS2_ZLIB=3DyCONFIG_JFFS2_RTIME=3Dy
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not setCONFIG_JFFS2_CMODE_PRIORITY=3Dy
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=3D/dev/mtdblock0 rootfstype=3Djffs2 ip=3D192.168.174.231:192.168.178.110:192.168.174.47:255.255.255.0:cashel:et= h1:off=20
steps fallowed are....
erase FF800000 FFDFFFFF
tftpboot 0x100000 image.jffs2=20
cp.b 100000 FF800000 4dc874
run bootcmd
linux does not bootup...
what is the problem ?=20
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 =E2=88=92=E2=88=92pad=3D3145728 =E2=88=92=E2=88=92eraseblock= =3D262144 =E2=88=92=E2=88=92root=3D/mnt =E2=88=92=E2=88=92output 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
--=20
View this message in context: http://www.nabble.com/jffs2-file-system-tf327=
1928.html#a9097247
Sent from the linuxppc-embedded mailing list archive at Nabble.com.
MTD partitions and partition commandline are enabled:
Quoted 3 lines
CONFIG_MTD_PARTITIONS=y
#CONFIG_MTD_REDBOOT_PARTSis not setCONFIG_MTD_CMDLINE_PARTS=y
[...]
Quoted 10 lines
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 'tftpboot0x1000000jffsenabled\;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
But where is your commandline that describes the partitions in your flash?
Juergen
do i need to mention mtdparts in command line....i thought that it is enabled in case if we want we can specify partitions in command line itself.
do i need to disable ramdisk option in kernel config for jffs2 booting?
here is full .config file..
---------------------------------------------------------------
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.10_mvl401-8272ads
# Thu Feb 15 11:33:41 2007
#CONFIG_MMU=yCONFIG_GENERIC_HARDIRQS=yCONFIG_RWSEM_GENERIC_SPINLOCK=yCONFIG_ASM_SEMAPHORES=yCONFIG_HAVE_DEC_LOCK=yCONFIG_PPC=yCONFIG_PPC32=yCONFIG_GENERIC_NVRAM=y
#
# Code maturity level options
#CONFIG_EXPERIMENTAL=yCONFIG_CLEAN_COMPILE=yCONFIG_BROKEN_ON_SMP=yCONFIG_LOCK_KERNEL=y
#
# General setup
#CONFIG_LOCALVERSION=""CONFIG_SWAP=yCONFIG_SYSVIPC=yCONFIG_SYSVIPC_SEMMNI=128CONFIG_SYSVIPC_SEMMSL=250CONFIG_POSIX_MQUEUE=y
# CONFIG_BSD_PROCESS_ACCT is not setCONFIG_SYSCTL=y
# CONFIG_AUDIT is not setCONFIG_LOG_BUF_SHIFT=14CONFIG_HOTPLUG=yCONFIG_KOBJECT_UEVENT=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_EMBEDDED=y
# CONFIG_KALLSYMS is not setCONFIG_FUTEX=yCONFIG_EPOLL=yCONFIG_CC_OPTIMIZE_FOR_SIZE=yCONFIG_SHMEM=yCONFIG_CC_ALIGN_FUNCTIONS=0CONFIG_CC_ALIGN_LABELS=0CONFIG_CC_ALIGN_LOOPS=0CONFIG_CC_ALIGN_JUMPS=0
# CONFIG_BOOT_FLIGHT_RECORDER is not setCONFIG_LOCKLESS=yCONFIG_BOOT_FLIGHT_BUFFERS=4CONFIG_BOOT_FLIGHT_SIZE=524288CONFIG_FLIGHT_PROC_BUFFERS=8CONFIG_FLIGHT_PROC_SIZE=8192CONFIG_NEWEV=yCONFIG_CSTM=y
# CONFIG_TINY_SHMEM is not set
#
# Loadable module support
#CONFIG_MODULES=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_OBSOLETE_MODPARM=yCONFIG_MODVERSIONS=y
# CONFIG_MODULE_SRCVERSION_ALL is not setCONFIG_KMOD=y
#
# Processor
#
CONFIG_6xx=y
# CONFIG_40x is not set
# CONFIG_44x is not set
# CONFIG_POWER3 is not set
# CONFIG_POWER4 is not set
# CONFIG_8xx is not set
# CONFIG_E500 is not setCONFIG_PPC_FPU=y
# CONFIG_CPU_FREQ is not setCONFIG_EMBEDDEDBOOT=yCONFIG_PPC_STD_MMU=y
#
# Platform options
#
#
# Freescale Ethernet driver platform-specific options #
# CONFIG_PPC_MULTIPLATFORM is not set
# CONFIG_APUS is not set
# CONFIG_KATANA is not set
# CONFIG_WILLOW is not set
# CONFIG_CPCI690 is not set
# CONFIG_PCORE is not set
# CONFIG_POWERPMC250 is not set
# CONFIG_CHESTNUT is not set
# CONFIG_SPRUCE is not set
# CONFIG_EV64260 is not set
# CONFIG_LOPEC is not set
# CONFIG_MCPN765 is not set
# CONFIG_MVME5100 is not set
# CONFIG_PPLUS is not set
# CONFIG_PRPMC750 is not set
# CONFIG_PRPMC800 is not set
# CONFIG_SANDPOINT is not set
# CONFIG_ADIR is not set
# CONFIG_K2 is not set
# CONFIG_PAL4 is not set
# CONFIG_GEMINI is not set
# CONFIG_EST8260 is not set
# CONFIG_SBC82xx is not set
# CONFIG_SBS8260 is not set
# CONFIG_RPX8260 is not set
# CONFIG_TQM8260 is not set
# CONFIG_ADS8272 is not setCONFIG_PQ2FADS=y
# CONFIG_LITE5200 is not setCONFIG_8260=yCONFIG_CPM2=y
# CONFIG_PC_KEYBOARD is not set
# CONFIG_SMP is not set
# CONFIG_PREEMPT_NONE is not set
# CONFIG_PREEMPT_VOLUNTARY is not set CONFIG_PREEMPT_DESKTOP=y
# CONFIG_PREEMPT_RT is not set CONFIG_PREEMPT=y
# CONFIG_PREEMPT_SOFTIRQS is not set
# CONFIG_PREEMPT_HARDIRQS is not set
# CONFIG_PREEMPT_RCU is not set
# CONFIG_SPINLOCK_BKL is not set CONFIG_PREEMPT_BKL=yCONFIG_HIGHMEM=yCONFIG_HIGH_RES_TIMERS=yCONFIG_BINFMT_ELF=y
# CONFIG_BINFMT_MISC is not set
# CONFIG_CMDLINE_BOOL is not set
#
# Bus options
#
# CONFIG_PCI is not set
# CONFIG_PCI_DOMAINS is not set
#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set
#
# PC-card bridges
#
#
# Advanced setup
#
# CONFIG_ADVANCED_OPTIONS is not set
#
# Default settings for advanced configuration options are used #CONFIG_HIGHMEM_START=0xfe000000 CONFIG_LOWMEM_SIZE=0x30000000 CONFIG_KERNEL_START=0xc0000000 CONFIG_TASK_SIZE=0x80000000 CONFIG_BOOT_LOAD=0x00400000
#
# Device Drivers
#
#
# Generic Driver Options
#CONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
#
# Memory Technology Devices (MTD)
#CONFIG_MTD=yCONFIG_MTD_DEBUG=yCONFIG_MTD_DEBUG_VERBOSE=0
# CONFIG_MTD_CONCAT is not setCONFIG_MTD_PARTITIONS=y
# CONFIG_MTD_REDBOOT_PARTS is not setCONFIG_MTD_CMDLINE_PARTS=y
#
# User Modules And Translation Layers
#CONFIG_MTD_CHAR=yCONFIG_MTD_BLOCK=yCONFIG_FTL=y
# CONFIG_NFTL is not set
# CONFIG_INFTL is not set
# CONFIG_RFD_FTL is not set
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=yCONFIG_MTD_JEDECPROBE=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_MTD_CFI_GEOMETRY=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_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 setCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=y
# CONFIG_MTD_CFI_I4 is not set
# CONFIG_MTD_CFI_I8 is not setCONFIG_MTD_OTP=yCONFIG_MTD_CFI_INTELEXT=y
# CONFIG_MTD_CFI_AMDSTD is not set
# CONFIG_MTD_CFI_STAA is not setCONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not setCONFIG_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 setCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_START=0x8000000CONFIG_MTD_PHYSMAP_LEN=0x4000000CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_MULTI_PHYSMAP is not set
# CONFIG_MTD_SBC8240 is not setCONFIG_MTD_PQ2FADS=y
# CONFIG_MTD_PLATRAM is not set
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_SLRAM is not set
# CONFIG_MTD_PHRAM is not set
# CONFIG_MTD_MTDRAM is not set
# CONFIG_RAMTD is not set
# CONFIG_MTD_BLKMTD is not set
# CONFIG_MTD_BLOCK2MTD is not set
#
# Disk-On-Chip Device Drivers
#
# CONFIG_MTD_DOC2000 is not set
# CONFIG_MTD_DOC2001 is not set
# CONFIG_MTD_DOC2001PLUS is not set
#
# NAND Flash Device Drivers
#
# CONFIG_MTD_NAND is not set
#
# Parallel port support
#
# CONFIG_PARPORT is not set
#
# Plug and Play support
#
#
# Block devices
#
# CONFIG_BLK_DEV_FD is not setCONFIG_BLK_DEV_LOOP=y
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
# CONFIG_BLK_DEV_NBD is not set
# CONFIG_BLK_DEV_RAM is not setCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_INITRAMFS_SOURCE=""
# CONFIG_LBD is not set
# CONFIG_CDROM_PKTCDVD is not set
#
# IO Schedulers
#CONFIG_IOSCHED_NOOP=yCONFIG_IOSCHED_AS=yCONFIG_IOSCHED_DEADLINE=yCONFIG_IOSCHED_CFQ=y
#
# ATA/ATAPI/MFM/RLL support
#CONFIG_IDE=yCONFIG_BLK_DEV_IDE=y
#
# Please see Documentation/ide.txt for help/info on IDE drives #
# CONFIG_BLK_DEV_IDE_SATA is not set CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
# CONFIG_BLK_DEV_IDECD is not set
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_IDE_TASK_IOCTL is not set
#
# IDE chipset support/bugfixes
#
# CONFIG_IDE_GENERIC is not set
# CONFIG_IDE_ARM is not set
# CONFIG_BLK_DEV_IDEDMA is not set
# CONFIG_IDEDMA_AUTO is not set
# CONFIG_BLK_DEV_HD is not set
#
# SCSI device support
#
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
#
# IEEE 1394 (FireWire) support
#
#
# I2O device support
#
#
# Macintosh device drivers
#
#
# Networking support
#CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=y
# CONFIG_PACKET_MMAP is not set
# CONFIG_NETLINK_DEV is not setCONFIG_UNIX=y
# CONFIG_NET_KEY is not setCONFIG_USE_POLICY_FWD=yCONFIG_INET=yCONFIG_IP_MULTICAST=y
# CONFIG_IP_ADVANCED_ROUTER is not setCONFIG_IP_PNP=y
# CONFIG_IP_PNP_DHCP is not setCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=y
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
# CONFIG_IP_MROUTE is not set
# CONFIG_ARPD is not setCONFIG_SYN_COOKIES=y
# CONFIG_INET_AH is not set
# CONFIG_INET_ESP is not set
# CONFIG_INET_IPCOMP is not set
# CONFIG_INET_TUNNEL is not setCONFIG_IP_TCPDIAG=y
# CONFIG_IP_TCPDIAG_IPV6 is not set
#
# IP: Virtual Server Configuration
#
# CONFIG_IP_VS is not setCONFIG_IPV6=m
# CONFIG_IPV6_PRIVACY is not set
# CONFIG_IPV6_ROUTER_PREF is not set
# CONFIG_INET6_AH is not set
# CONFIG_INET6_ESP is not set
# CONFIG_INET6_IPCOMP is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_IPV6_TUNNEL is not set
# CONFIG_IPV6_ADVANCED_ROUTER is not set
# CONFIG_IPV6_MIP6 is not setCONFIG_NETFILTER=y
# CONFIG_NETFILTER_DEBUG is not set
#
# IP: Netfilter Configuration
#
# CONFIG_IP_NF_CONNTRACK is not set
# CONFIG_IP_NF_CONNTRACK_MARK is not set
# CONFIG_IP_NF_QUEUE is not set
# CONFIG_IP_NF_IPTABLES is not set
# CONFIG_IP_NF_ARPTABLES is not set
# CONFIG_IP_NF_COMPAT_IPCHAINS is not set
# CONFIG_IP_NF_COMPAT_IPFWADM is not set
#
# IPv6: Netfilter Configuration
#
# CONFIG_IP6_NF_QUEUE is not set
# CONFIG_IP6_NF_IPTABLES is not set
# CONFIG_IP6_NF_CONNTRACK is not set
#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set
# CONFIG_ATM is not set
# CONFIG_BRIDGE is not set
# CONFIG_VLAN_8021Q is not set
# CONFIG_DECNET is not set
# CONFIG_LLC2 is not set
# CONFIG_IPX is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_NET_DIVERT is not set
# CONFIG_ECONET is not set
# CONFIG_WAN_ROUTER is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
# CONFIG_NET_CLS_ROUTE is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not setCONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not setCONFIG_TUN=m
#
# Ethernet (10 or 100Mbit)
#CONFIG_NET_ETHERNET=yCONFIG_MII=yCONFIG_FS_ENET=y
# CONFIG_FS_ENET_HAS_SCC is not setCONFIG_FS_ENET_HAS_FCC=y
#
# Ethernet (1000 Mbit)
#
#
# Ethernet (10000 Mbit)
#
#
# Token Ring devices
#
#
# Wireless LAN (non-hamradio)
#
# CONFIG_NET_RADIO is not set
#
# Wan interfaces
#
# CONFIG_WAN is not setCONFIG_PPP=m
# CONFIG_PPP_MULTILINK is not set
# CONFIG_PPP_FILTER is not setCONFIG_PPP_ASYNC=mCONFIG_PPP_SYNC_TTY=mCONFIG_PPP_DEFLATE=m
# CONFIG_PPP_BSDCOMP is not set
# CONFIG_PPPOE is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
#
# ISDN subsystem
#
# CONFIG_ISDN is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#CONFIG_INPUT=m
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=mCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_TSLIBDEV is not setCONFIG_INPUT_EVDEV=m
# CONFIG_INPUT_EVBUG is not set
#
# Input I/O drivers
#
# CONFIG_GAMEPORT is not setCONFIG_SOUND_GAMEPORT=yCONFIG_SERIO=y
# CONFIG_SERIO_I8042 is not setCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_RAW is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ATKBD=m
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_NEWTON is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=m
# CONFIG_MOUSE_SERIAL is not set
# CONFIG_MOUSE_VSXXXAA is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Character devices
#
# CONFIG_VT is not set
# CONFIG_SERIAL_NONSTANDARD is not set
#
# Serial drivers
#
# CONFIG_SERIAL_8250 is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_SERIAL_CPM=yCONFIG_SERIAL_CPM_CONSOLE=yCONFIG_SERIAL_CPM_SCC1=y
# CONFIG_SERIAL_CPM_SCC2 is not set
# CONFIG_SERIAL_CPM_SCC3 is not setCONFIG_SERIAL_CPM_SCC4=y
# CONFIG_SERIAL_CPM_SMC1 is not set
# CONFIG_SERIAL_CPM_SMC2 is not setCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
# CONFIG_NVRAM is not set
# CONFIG_BLOCKER is not set
# CONFIG_GEN_RTC is not set
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_AGP is not set
# CONFIG_DRM is not set
# CONFIG_RAW_DRIVER is not set
#
# I2C support
#
# CONFIG_I2C is not set
#
# Dallas's 1-wire bus
#
# CONFIG_W1 is not set
#
# Misc devices
#
#
# Multimedia Capabilities Port drivers
#
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# Graphics support
#
# CONFIG_FB is not set
#
# Sound
#
# CONFIG_SOUND is not set
#
# USB support
#
# CONFIG_USB_ARCH_HAS_HCD is not set
# CONFIG_USB_ARCH_HAS_OHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# Synchronous Serial Interfaces (SSI)
#
#
# File systems
#CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not setCONFIG_EXT3_FS=mCONFIG_EXT3_FS_XATTR=y
# CONFIG_EXT3_FS_POSIX_ACL is not set
# CONFIG_EXT3_FS_SECURITY is not setCONFIG_JBD=m
# CONFIG_JBD_DEBUG is not setCONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_XFS_FS=m
# CONFIG_XFS_RT is not set
# CONFIG_XFS_QUOTA is not set
# CONFIG_XFS_SECURITY is not set
# CONFIG_XFS_POSIX_ACL is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not setCONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not setCONFIG_AUTOFS4_FS=m
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not set
# CONFIG_UDF_FS is not set
#
# DOS/FAT/NT Filesystems
#
# CONFIG_MSDOS_FS is not set
# CONFIG_VFAT_FS is not set
# CONFIG_NTFS_FS is not set
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_SYSFS=y
# CONFIG_DEVFS_FS is not setCONFIG_DEVPTS_FS_XATTR=y
# CONFIG_DEVPTS_FS_SECURITY is not setCONFIG_TMPFS=yCONFIG_TMPFS_XATTR=yCONFIG_TMPFS_SECURITY=y
# CONFIG_HUGETLB_PAGE is not setCONFIG_RAMFS=y
# CONFIG_RELAYFS_FS is not set
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not setCONFIG_JFFS_FS=yCONFIG_JFFS_FS_VERBOSE=0CONFIG_JFFS_PROC_FS=yCONFIG_JFFS2_FS=yCONFIG_JFFS2_FS_DEBUG=0CONFIG_JFFS2_FS_WRITEBUFFER=yCONFIG_JFFS2_COMPRESSION_OPTIONS=yCONFIG_JFFS2_ZLIB=yCONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_JFFS2_CMODE_NONE is not setCONFIG_JFFS2_CMODE_PRIORITY=y
# CONFIG_JFFS2_CMODE_SIZE is not setCONFIG_CRAMFS=y
# CONFIG_CRAMFS_LINEAR is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_YAFFS_FS is not set
#
# Network File Systems
#CONFIG_NFS_FS=yCONFIG_NFS_V3=yCONFIG_NFS_V4=yCONFIG_NFS_DIRECTIO=yCONFIG_NFSD=yCONFIG_NFSD_V3=y
# CONFIG_NFSD_V4 is not setCONFIG_NFSD_TCP=yCONFIG_ROOT_NFS=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_EXPORTFS=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=yCONFIG_RPCSEC_GSS_KRB5=y
# CONFIG_RPCSEC_GSS_SPKM3 is not setCONFIG_SMB_FS=m
# CONFIG_SMB_NLS_DEFAULT is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=y
# CONFIG_ACORN_PARTITION is not set
# CONFIG_OSF_PARTITION is not set
# CONFIG_AMIGA_PARTITION is not set
# CONFIG_ATARI_PARTITION is not set
# CONFIG_MAC_PARTITION is not setCONFIG_MSDOS_PARTITION=y
# CONFIG_BSD_DISKLABEL is not set
# CONFIG_MINIX_SUBPARTITION is not set
# CONFIG_SOLARIS_X86_PARTITION is not set
# CONFIG_UNIXWARE_DISKLABEL is not set
# CONFIG_LDM_PARTITION is not set
# CONFIG_SGI_PARTITION is not set
# CONFIG_ULTRIX_PARTITION is not set
# CONFIG_SUN_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
#
# Native Language Support
#CONFIG_NLS=mCONFIG_NLS_DEFAULT="iso8859-1"CONFIG_NLS_CODEPAGE_437=m
# CONFIG_NLS_CODEPAGE_737 is not set
# CONFIG_NLS_CODEPAGE_775 is not set
# CONFIG_NLS_CODEPAGE_850 is not set
# CONFIG_NLS_CODEPAGE_852 is not set
# CONFIG_NLS_CODEPAGE_855 is not set
# CONFIG_NLS_CODEPAGE_857 is not set
# CONFIG_NLS_CODEPAGE_860 is not set
# CONFIG_NLS_CODEPAGE_861 is not set
# CONFIG_NLS_CODEPAGE_862 is not set
# CONFIG_NLS_CODEPAGE_863 is not set
# CONFIG_NLS_CODEPAGE_864 is not set
# CONFIG_NLS_CODEPAGE_865 is not set
# CONFIG_NLS_CODEPAGE_866 is not set
# CONFIG_NLS_CODEPAGE_869 is not set
# CONFIG_NLS_CODEPAGE_936 is not set
# CONFIG_NLS_CODEPAGE_950 is not set
# CONFIG_NLS_CODEPAGE_932 is not set
# CONFIG_NLS_CODEPAGE_949 is not set
# CONFIG_NLS_CODEPAGE_874 is not set
# CONFIG_NLS_ISO8859_8 is not set
# CONFIG_NLS_CODEPAGE_1250 is not set
# CONFIG_NLS_CODEPAGE_1251 is not setCONFIG_NLS_ASCII=mCONFIG_NLS_ISO8859_1=m
# CONFIG_NLS_ISO8859_2 is not set
# CONFIG_NLS_ISO8859_3 is not set
# CONFIG_NLS_ISO8859_4 is not set
# CONFIG_NLS_ISO8859_5 is not set
# CONFIG_NLS_ISO8859_6 is not set
# CONFIG_NLS_ISO8859_7 is not set
# CONFIG_NLS_ISO8859_9 is not set
# CONFIG_NLS_ISO8859_13 is not set
# CONFIG_NLS_ISO8859_14 is not set
# CONFIG_NLS_ISO8859_15 is not set
# CONFIG_NLS_KOI8_R is not set
# CONFIG_NLS_KOI8_U is not setCONFIG_NLS_UTF8=m
# CONFIG_SCC_ENET is not setCONFIG_FEC_ENET=y
# CONFIG_USE_MDIO is not set
#
# CPM2 Options
#CONFIG_FCC1_ENET=yCONFIG_FCC2_ENET=yCONFIG_FCC3_ENET=y
#
# Library routines
#CONFIG_CRC_CCITT=mCONFIG_CRC32=y
# CONFIG_LIBCRC32C is not setCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=y
#
# Fast Real-Time Domain
#
# CONFIG_FRD is not set
#
# Fast Real-Time Domain Advanced Options
#
#
# Profiling support
#
# CONFIG_PROFILING is not set
#
# MontaVista System tools
#
# CONFIG_ILATENCY is not set
#
# Kernel hacking
#
# CONFIG_DEBUG_KERNEL is not set
# CONFIG_DEBUG_PREEMPT is not set
# CONFIG_WAKEUP_TIMING is not set
# CONFIG_CRITICAL_PREEMPT_TIMING is not set
# CONFIG_CRITICAL_IRQSOFF_TIMING is not set
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
#
# Cryptographic options
#CONFIG_CRYPTO=y
# CONFIG_CRYPTO_HMAC is not set
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not setCONFIG_CRYPTO_MD5=y
# CONFIG_CRYPTO_SHA1 is not set
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not setCONFIG_CRYPTO_DES=y
# CONFIG_CRYPTO_BLOWFISH is not set
# CONFIG_CRYPTO_TWOFISH is not set
# CONFIG_CRYPTO_SERPENT is not set
# CONFIG_CRYPTO_AES is not set
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
# CONFIG_CRYPTO_ARC4 is not set
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
# CONFIG_CRYPTO_DEFLATE is not set
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set
------------------------------------------------
with regards,
Nethra
MTD partitions and partition commandline are enabled:
Quoted 3 lines
CONFIG_MTD_PARTITIONS=y
#CONFIG_MTD_REDBOOT_PARTSis not setCONFIG_MTD_CMDLINE_PARTS=y
[...]
Quoted 10 lines
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 'tftpboot0x1000000jffsenabled\;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
But where is your commandline that describes the partitions in your flash?
Juergen
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9097618 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 3 lines · Nethra
do i need to mention mtdparts in command line....i thought that it is enabled in case if we want we can specify partitions in command line itself.
The kernel does not know anything about your flash partitioning. Where is mtd0 starting in your flash? At the baseaddress of the flash?
Quoted 1 line
do i need to disable ramdisk option in kernel config for jffs2 booting?
No.
On my MPC5200 based system I start the kernel with this partition command:
mtdparts=phys_mapped_flash:256k(ubootl),1792k(kernel),13312k(jffs2),256k(uboot)ro,-(space) root=/dev/mtdblock2 rootfstype=jffs2
Juergen
thanks...
what are the steps to create jffs2 image?
do i need to disable nfs option in kernel?
what r steps for jffs2 mounting after nfs mounting on the board?
nethra
Quoted 3 lines
do i need to mention mtdparts in command line....i thought that it is enabled in case if we want we can specify partitions in command line itself.
The kernel does not know anything about your flash partitioning. Where is mtd0
starting in your flash? At the baseaddress of the flash?
Quoted 1 line
do i need to disable ramdisk option in kernel config for jffs2 booting?
No.
On my MPC5200 based system I start the kernel with this partition command:
mtdparts=phys_mapped_flash:256k(ubootl),1792k(kernel),13312k(jffs2),256k(uboot)ro,-(space) root=/dev/mtdblock2 rootfstype=jffs2
Juergen
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9113399 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 5 lines · Nethra
thanks...
what are the steps to create jffs2 image?
Here's a good link on building a JFFS2 filesystem:
http://www.denx.de/wiki/view/DULG/RootFileSystemOnAJFFS2FileSystem
Quoted 1 line
do i need to disable nfs option in kernel?
No. Both can happily co-exist
Quoted 3 lines
what r steps for jffs2 mounting after nfs mounting on the board?
Try:
mount -t jffs2 -o ro /dev/mtdblockX /<mount_path>
I'd recommend booting to an NFS filesystem. Once in Linux, you can try mounting the JFFS2 block and debug from there. Once you have that working, try booting to JFFS2 via the MTD_PHYSMAP methods.
regards,
Ben
thanks ben,
I have already tried to build jffs2 image as per link mentioned using mkfs.jffs2 utility, but mkfs.jffs2 is absent in host...so i downloded mkfs.jffs2 from net and used the same to create the image.Is it the correct way?
it is giveing error when booting...
nethra
Quoted 4 lines
thanks...
what are the steps to create jffs2 image?
Here's a good link on building a JFFS2 filesystem:
http://www.denx.de/wiki/view/DULG/RootFileSystemOnAJFFS2FileSystem
Quoted 1 line
do i need to disable nfs option in kernel?
No. Both can happily co-exist
Quoted 3 lines
what r steps for jffs2 mounting after nfs mounting on the board?
Try:
mount -t jffs2 -o ro /dev/mtdblockX /<mount_path>
I'd recommend booting to an NFS filesystem. Once in Linux, you can try mounting the JFFS2 block and debug from there. Once you have that working, try booting to JFFS2 via the MTD_PHYSMAP methods.
regards,
Ben
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9130617 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 4 lines · --- Nethra
thanks ben,
Quoted 8 lines
I have already tried to build jffs2 image as per link mentioned using
mkfs.jffs2 utility, but mkfs.jffs2 is absent in host...so i downloded
mkfs.jffs2 from net and used the same to create the image.Is it the correct
way?
Sounds reasonable.
Quoted 3 lines
it is giveing error when booting...
nethra
OK, what's the error? Did you set the endianness
correctly when using mkfs.jffs2?
mkfs.jffs2 -r /mnt -e 0x20000 -o image.jffs2 -b
board is PQ2FADS-ZU, u-boot is u-boot-1.1.1 and linux is montavista2.6.10
is mkfs.jffs2 is architecture dependent?
nethra
Quoted 31 lines · Ben Warren
Quoted 4 lines · --- Nethra
thanks ben,
Quoted 8 lines
I have already tried to build jffs2 image as per link mentioned using
mkfs.jffs2 utility, but mkfs.jffs2 is absent in host...so i downloded
mkfs.jffs2 from net and used the same to create the image.Is it the correct
way?Sounds reasonable.
Quoted 3 lines
it is giveing error when booting...
nethra
OK, what's the error? Did you set the endianness
correctly when using mkfs.jffs2?
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9130715 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
it prints the fallowing line continously when booting...
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0004:0xffff in
mkfs.jffs2 -r /mnt -e 0x20000 -o image.jffs2 -b
board is PQ2FADS-ZU, u-boot is u-boot-1.1.1 and linux is montavista2.6.10
is mkfs.jffs2 is architecture dependent?
nethra
Quoted 31 lines · Ben Warren
Quoted 4 lines · --- Nethra
thanks ben,
Quoted 8 lines
I have already tried to build jffs2 image as per link mentioned using
mkfs.jffs2 utility, but mkfs.jffs2 is absent in host...so i downloded
mkfs.jffs2 from net and used the same to create the image.Is it the correct
way?Sounds reasonable.
Quoted 3 lines
it is giveing error when booting...
nethra
OK, what's the error? Did you set the endianness
correctly when using mkfs.jffs2?
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9130746 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 6 lines · Nethra
hi,
I m using PQ2FADS-ZU board and montavista kernel 2.6.10.
u-boot is u-boot-1.1.1Kernel configuration for MTD and JFFS2 support...
Posting the output of your boot messages will likely get you more help than a .config.
josh
steps falloed are..
1. erase FF800000 FFDFFFFF
2. tftpboot 0x100000 image.jffs2
3. cp.b 100000 FF800000 4dc874
Quoted 1 line
printenv
bootdelay=5
baudrate=38400
ethact=FCC2 ETHERNET
ethaddr=00:99:23:44:ad:de
filesize=4dc874
fileaddr=100000
ipaddr=192.168.178.83
serverip=192.168.178.110
bootcmd=tftpboot 0x1000000 jffsenabled;bootm 0x1000000; stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/mtdblock0 rootfstype=jffs2
Environment size: 296/262140 bytes
output of boot messages....
=> run bootcmd
Using FCC2 ETHERNET device
TFTP from server 192.168.178.110; our IP address is 192.168.178.83 Filename 'jffsenabled'.
Load address: 0x1000000
Loading: #################################################################
#################################################################
#################################################################
########
done
Bytes transferred = 1036518 (fd0e6 hex)
## Booting image at 01000000 ...
Image Name: Linux-2.6.10_mvl401-8272ads
Image Type: PowerPC Linux Kernel Image (gzip compressed)
Data Size: 1036454 Bytes = 1012.2 kB Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Linux version 2.6.10_mvl401-8272ads (root@em178110) (gcc version 3.4.3 (MontaVis
ta 3.4.3-25.0.70.0501961 2005-12-18)) #11 Thu Feb 15 11:40:04 IST 2007 Motorola PQ2 ADS PowerPC port
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 rootfstype=jffs2
PID hash table entries: 256 (order: 8, 4096 bytes)hr_time_init: arch_to_nsec = 83886080, nsec_to_arch = 107374182
Warning: real time clock seems stuck!
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 29952k available (1856k kernel code, 512k data, 92k init, 0k highmem)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes) spawn_desched_task(00000000)
desched cpu_callback 3/00000000
ksoftirqd started up.
desched cpu_callback 2/00000000
desched thread 0 started up.
NET: Registered protocol family 16
Installing knfsd (copyright (C) 1996 [email protected]).
JFFS version 1.0, (C) 1999, 2000 Axis Communications AB
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc. Initializing Cryptographic API
Serial: CPM driver $Revision: 0.01 $
ttyCPM0 at MMIO 0xf0011a00 (irq = 40) is a CPM UART
ttyCPM1 at MMIO 0xf0011a60 (irq = 43) is a CPM UART
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
loop: loaded (max 8 devices)
fs_enet.c:v1.0 (Aug 8, 2005)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
elevator: using anticipatory as default io scheduler
$Id: ftl.c,v 1.55 2005/01/17 13:47:21 hvr Exp $
physmap flash device: 800000 at ff800000
RedBoot partition parsing not available
Using physmap partition definition
Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found.
0x00600000-0x00700000 : "uImage"
mtd: Giving out device 1 to uImageftl_cs: FTL header not found.
0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found.
0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
eth0: FCC ENET Version 0.3, 00:99:23:c4:ad:de
eth1: FCC ENET Version 0.3, 00:99:23:44:ad:de
eth2: FCC ENET Version 0.3, 00:99:23:64:ad:de
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 2048 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000:0xffff in
....jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005c0004:0xffff in
and it display rebooting in 180 seconds
what is the problem?
Nethra
Quoted 20 lines · Josh Boyer-2 wrote:
Quoted 6 lines · Nethra
hi,
I m using PQ2FADS-ZU board and montavista kernel 2.6.10.
u-boot is u-boot-1.1.1Kernel configuration for MTD and JFFS2 support...
Posting the output of your boot messages will likely get you more help than a .config.
josh
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9132046 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
On Saturday 24 February 2007 09:38, Nethra wrote:
[...]
Quoted 4 lines
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
elevator: using anticipatory as default io scheduler
$Id: ftl.c,v 1.55 2005/01/17 13:47:21 hvr Exp $
Flash Translation Layer? JFFS2 does not need it (I believe).
Quoted 7 lines
physmap flash device: 800000 at
ff800000
RedBoot partition parsing not available
Using physmap partition definition
Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found.
Disable the FTL when you try to use the content as JFFS2!
Quoted 9 lines
0x00600000-0x00700000 : "uImage"
mtd: Giving out device 1 to uImageftl_cs: FTL header not found.
0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found.
0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
Are these partitions correct? I cannot see where the definitions comes from.
Juergen
i m getting same error after disabling FTL. Yes partions are correct..here
is flinfo output
=> flinfo
Bank # 1: Sharp 28F016SC (16 Mbit, 32 x 64K)
Size: 8 MB in 32 Sectors
Sector Start Addresses:
FF800000 FF840000 FF880000 FF8C0000 FF900000
FF940000 FF980000 FF9C0000 FFA00000 FFA40000
FFA80000 FFAC0000 FFB00000 FFB40000 FFB80000
FFBC0000 FFC00000 FFC40000 FFC80000 FFCC0000
FFD00000 FFD40000 FFD80000 FFDC0000 FFE00000
FFE40000 FFE80000 FFEC0000 FFF00000 (RO) FFF40000 (RO)
FFF80000 FFFC0000nethra
[...]
Quoted 5 lines
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
elevator: using anticipatory as default io scheduler $Id: ftl.c,v 1.55 2005/01/17 13:47:21 hvr Exp $
Flash Translation Layer? JFFS2 does not need it (I believe).
Quoted 7 lines
physmap flash device: 800000 at
ff800000RedBoot partition parsing not available Using physmap partition definition Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found.
Disable the FTL when you try to use the content as JFFS2!
Quoted 9 lines
0x00600000-0x00700000 : "uImage"
mtd: Giving out device 1 to uImageftl_cs: FTL header not found. 0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found. 0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
Are these partitions correct? I cannot see where the definitions comes from.
Juergen
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9153024 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
Quoted 6 lines · --- Nethra
steps falloed are..
1. erase FF800000 FFDFFFFF
2. tftpboot0x100000image.jffs2
3. cp.b 100000 FF800000 4dc874
This looks OK, assuming the size of the file was 4dc874... Can you send the output of 'flinfo', please?
<snip>
Quoted 8 lines
physmap flash device: 800000 at
ff800000RedBoot partition parsing not available Using physmap partition definition Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found. 0x00600000-0x00700000 : "uImage"
Quoted 8 lines
mtd: Giving out device 1 to uImage
ftl_cs: FTL header not found. 0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found. 0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
I'm pretty sure FTL is for NAND flash. You should probably take it out of the kernel and try again.
Quoted 8 lines
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00000000:0xffffin
....jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x005c0004:0xffffin
The fact that it's reading 0xffff makes it look to me that the flash is still erased. After you copy the JFFS2 image into flash in U-boot, look at its contents using 'md' and compare to your image file (using od -x on your host, for example)
e.g.: u-boot> md.b ff800000
Here are the first few lines of a JFFS2 image that I know works:
linux$ od -x jffs2.img | less
0000000 8519 0320 0000 0c00 60f0 98dc 8519 01e0 0000020 0000 2b00 423e 2724 0000 0100 0000 0000 0000040 0000 0200 d345 aa6e 0403 0000 9948 4dea 0000060 6655 ff83 6962 ff6e 8519 02e0 0000 4400 0000100 efa4 3e22 0000 0200 0000 0100 0000 ed41
Note that the first word is 0x8519, which is the big-endian representation of 0x1985.
Have you tried booting to an NFS file system and then mounting your JFFS2 device? Are you sure you know the correct flash geometry and are using the correct block size when using mkfs.jffs2? Is it possible that your device is bottom-boot (i.e. has a bunch of smaller sectors @ 0xff800000?
regards,
Ben
This is the output of flinfo in u-boot
=> flinfo
Bank # 1: Sharp 28F016SC (16 Mbit, 32 x 64K)
Size: 8 MB in 32 Sectors
Sector Start Addresses:
FF800000 FF840000 FF880000 FF8C0000 FF900000
FF940000 FF980000 FF9C0000 FFA00000 FFA40000
FFA80000 FFAC0000 FFB00000 FFB40000 FFB80000
FFBC0000 FFC00000 FFC40000 FFC80000 FFCC0000
FFD00000 FFD40000 FFD80000 FFDC0000 FFE00000
FFE40000 FFE80000 FFEC0000 FFF00000 (RO) FFF40000 (RO)
FFF80000 FFFC0000=>
nethra
Quoted 6 lines
steps fallowed are..
1. erase FF800000 FFDFFFFF
2. tftpboot0x100000image.jffs2
3. cp.b 100000 FF800000 4dc874
This looks OK, assuming the size of the file was 4dc874... Can you send the output of 'flinfo', please?
<snip>
Quoted 8 lines
physmap flash device: 800000 at
ff800000RedBoot partition parsing not available Using physmap partition definition Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found. 0x00600000-0x00700000 : "uImage"
Quoted 8 lines
mtd: Giving out device 1 to uImage
ftl_cs: FTL header not found. 0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found. 0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
I'm pretty sure FTL is for NAND flash. You should probably take it out of the kernel and try again.
Quoted 8 lines
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00000000:0xffffin
....jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x005c0004:0xffffin
The fact that it's reading 0xffff makes it look to me that the flash is still erased. After you copy the JFFS2 image into flash in U-boot, look at its contents using 'md' and compare to your image file (using od -x on your host, for example)
e.g.: u-boot> md.b ff800000
Here are the first few lines of a JFFS2 image that I know works:
linux$ od -x jffs2.img | less
0000000 8519 0320 0000 0c00 60f0 98dc 8519 01e0 0000020 0000 2b00 423e 2724 0000 0100 0000 0000 0000040 0000 0200 d345 aa6e 0403 0000 9948 4dea 0000060 6655 ff83 6962 ff6e 8519 02e0 0000 4400 0000100 efa4 3e22 0000 0200 0000 0100 0000 ed41
Note that the first word is 0x8519, which is the big-endian representation of 0x1985.
Have you tried booting to an NFS file system and then mounting your JFFS2 device? Are you sure you know the correct flash geometry and are using the correct block size when using mkfs.jffs2? Is it possible that your device is bottom-boot (i.e. has a bunch of smaller sectors @ 0xff800000?
regards,
Ben
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9152845 Sent from the linuxppc-embedded mailing list archive at Nabble.com.
yes, i tried mounting jffs2 rootfile system after nfs mounting. fallowing are steps i fallowed......
root@cashel:~# cat /proc/mtd dev: size erasesize name mtd0: 00600000 00020000 "User FS" mtd1: 00100000 00020000 "uImage" mtd2: 00040000 00020000 "bootloader" mtd3: 00040000 00020000 "bootloader env"
root@cashel:~# cd /dev root@cashel:/dev# cd mtd mtd0 mtd1 mtd2 mtd3 mtdblock0 mtdblock2 mtd0ro mtd1ro mtd2ro mtd3ro mtdblock1 mtdblock3
root@cashel:~# flash_erase /dev/mtd0 Erase Total 1 Units
root@cashel:~# cp -rf ../jffs2.img /dev/mtd0
root@cashel:~# mount -t jffs2 /dev/mtdblock0 /mnt ffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580020: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00580024: 0xffff in stead Further such events for this erase block will not be printed jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0000: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0004: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0008: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a000c: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0010: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0014: 0xffff in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x005a0018: 0xffff in stead Further such events for this erase block will not be printed Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes empty_blocks 0, bad_blocks 0, c->nr_blocks 48 mount: /dev/mtdblock0: can't read superblock root@cashel:~#
The attached .bmp gives comparision of jffs2.img with od and md commands...
Nethra
Quoted 6 lines
steps falloed are..
1. erase FF800000 FFDFFFFF
2. tftpboot0x100000image.jffs2
3. cp.b 100000 FF800000 4dc874
This looks OK, assuming the size of the file was
4dc874... Can you send the output of 'flinfo',
please?
<snip>
Quoted 8 lines
physmap flash device: 800000 at
ff800000RedBoot partition parsing not available Using physmap partition definition Creating 4 MTD partitions on "phys_mapped_flash":
0x00000000-0x00600000 : "User FS"
mtd: Giving out device 0 to User FSftl_cs: FTL header not found. 0x00600000-0x00700000 : "uImage"
Quoted 8 lines
mtd: Giving out device 1 to uImage
ftl_cs: FTL header not found. 0x00700000-0x00740000 : "bootloader"
mtd: Giving out device 2 to bootloaderftl_cs: FTL header not found. 0x00740000-0x00780000 : "bootloader env"
mtd: Giving out device 3 to bootloader envftl_cs: FTL header not found.
I'm pretty sure FTL is for NAND flash. You should probably take it out of the kernel and try again.
Quoted 8 lines
jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x00000000:0xffffin
....jffs2_scan_eraseblock(): Magic bitmask0x1985not found at0x005c0004:0xffffin
The fact that it's reading 0xffff makes it look to me that the flash is still erased. After you copy the JFFS2 image into flash in U-boot, look at its contents using 'md' and compare to your image file (using od -x on your host, for example)
e.g.: u-boot> md.b ff800000
Here are the first few lines of a JFFS2 image that I know works:
linux$ od -x jffs2.img | less
0000000 8519 0320 0000 0c00 60f0 98dc 8519 01e0
0000020 0000 2b00 423e 2724 0000 0100 0000 0000
0000040 0000 0200 d345 aa6e 0403 0000 9948 4dea
0000060 6655 ff83 6962 ff6e 8519 02e0 0000 4400
0000100 efa4 3e22 0000 0200 0000 0100 0000 ed41
Note that the first word is 0x8519, which is the
big-endian representation of 0x1985.
Have you tried booting to an NFS file system and then mounting your JFFS2 device? Are you sure you know the correct flash geometry and are using the correct block size when using mkfs.jffs2? Is it possible that your device is bottom-boot (i.e. has a bunch of smaller sectors @ 0xff800000?
regards,
Ben
_______________________________________________
Linuxppc-embedded mailing list
[email protected]
https://ozlabs.org/mailman/listinfo/linuxppc-embedded
http://www.nabble.com/file/6779/md_od.bmp md_od.bmp
Signature · 2 lines
View this message in context: http://www.nabble.com/jffs2-file-system-tf3271928.html#a9155572 Sent from the linuxppc-embedded mailing list archive at Nabble.com.