* jffs2 file system @ 2007-02-22 10:16 Nethra 2007-02-22 10:27 ` Juergen Beisert 2007-02-22 11:44 ` Josh Boyer 0 siblings, 2 replies; 17+ messages in thread From: Nethra @ 2007-02-22 10:16 UTC (permalink / raw) To: linuxppc-embedded 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=3Dy CONFIG_MTD_DEBUG=3Dy CONFIG_MTD_DEBUG_VERBOSE=3D0 # CONFIG_MTD_CONCAT is not set CONFIG_MTD_PARTITIONS=3Dy # CONFIG_MTD_REDBOOT_PARTS is not set CONFIG_MTD_CMDLINE_PARTS=3Dy # # User Modules And Translation Layers # CONFIG_MTD_CHAR=3Dy CONFIG_MTD_BLOCK=3Dy CONFIG_FTL=3Dy # # RAM/ROM/Flash chip drivers # CONFIG_MTD_CFI=3Dy CONFIG_MTD_JEDECPROBE=3Dy CONFIG_MTD_GEN_PROBE=3Dy CONFIG_MTD_CFI_ADV_OPTIONS=3Dy CONFIG_MTD_CFI_NOSWAP=3Dy # CONFIG_MTD_CFI_BE_BYTE_SWAP is not set # CONFIG_MTD_CFI_LE_BYTE_SWAP is not set CONFIG_MTD_CFI_GEOMETRY=3Dy CONFIG_MTD_MAP_BANK_WIDTH_1=3Dy CONFIG_MTD_MAP_BANK_WIDTH_2=3Dy CONFIG_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 set CONFIG_MTD_CFI_I1=3Dy CONFIG_MTD_CFI_I2=3Dy # CONFIG_MTD_CFI_I4 is not set # CONFIG_MTD_CFI_I8 is not set CONFIG_MTD_OTP=3Dy CONFIG_MTD_CFI_INTELEXT=3Dy # CONFIG_MTD_CFI_AMDSTD is not set # CONFIG_MTD_CFI_STAA is not set CONFIG_MTD_CFI_UTIL=3Dy # CONFIG_MTD_RAM is not set CONFIG_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 set CONFIG_MTD_PHYSMAP=3Dy CONFIG_MTD_PHYSMAP_START=3D0x8000000 CONFIG_MTD_PHYSMAP_LEN=3D0x4000000 CONFIG_MTD_PHYSMAP_BANKWIDTH=3D2 # CONFIG_MTD_MULTI_PHYSMAP is not set # CONFIG_MTD_SBC8240 is not set CONFIG_MTD_PQ2FADS=3Dy =20 JFFS2........ ---------------- CONFIG_JFFS_FS=3Dy CONFIG_JFFS_FS_VERBOSE=3D0 CONFIG_JFFS_PROC_FS=3Dy CONFIG_JFFS2_FS=3Dy CONFIG_JFFS2_FS_DEBUG=3D0 CONFIG_JFFS2_FS_WRITEBUFFER=3Dy CONFIG_JFFS2_COMPRESSION_OPTIONS=3Dy CONFIG_JFFS2_ZLIB=3Dy CONFIG_JFFS2_RTIME=3Dy # CONFIG_JFFS2_RUBIN is not set # CONFIG_JFFS2_CMODE_NONE is not set CONFIG_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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: jffs2 file system 2007-02-22 10:16 jffs2 file system Nethra @ 2007-02-22 10:27 ` Juergen Beisert 2007-02-22 10:58 ` [PATCH] " Nethra 2007-02-22 11:44 ` Josh Boyer 1 sibling, 1 reply; 17+ messages in thread From: Juergen Beisert @ 2007-02-22 10:27 UTC (permalink / raw) To: linuxppc-embedded; +Cc: Nethra MTD partitions and partition commandline are enabled: > CONFIG_MTD_PARTITIONS=y > # CONFIG_MTD_REDBOOT_PARTS is not set > CONFIG_MTD_CMDLINE_PARTS=y [...] > > 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 But where is your commandline that describes the partitions in your flash? Juergen ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-22 10:27 ` Juergen Beisert @ 2007-02-22 10:58 ` Nethra 2007-02-22 11:29 ` Juergen Beisert 0 siblings, 1 reply; 17+ messages in thread From: Nethra @ 2007-02-22 10:58 UTC (permalink / raw) To: linuxppc-embedded 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=y CONFIG_GENERIC_HARDIRQS=y CONFIG_RWSEM_GENERIC_SPINLOCK=y CONFIG_ASM_SEMAPHORES=y CONFIG_HAVE_DEC_LOCK=y CONFIG_PPC=y CONFIG_PPC32=y CONFIG_GENERIC_NVRAM=y # # Code maturity level options # CONFIG_EXPERIMENTAL=y CONFIG_CLEAN_COMPILE=y CONFIG_BROKEN_ON_SMP=y CONFIG_LOCK_KERNEL=y # # General setup # CONFIG_LOCALVERSION="" CONFIG_SWAP=y CONFIG_SYSVIPC=y CONFIG_SYSVIPC_SEMMNI=128 CONFIG_SYSVIPC_SEMMSL=250 CONFIG_POSIX_MQUEUE=y # CONFIG_BSD_PROCESS_ACCT is not set CONFIG_SYSCTL=y # CONFIG_AUDIT is not set CONFIG_LOG_BUF_SHIFT=14 CONFIG_HOTPLUG=y CONFIG_KOBJECT_UEVENT=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_EMBEDDED=y # CONFIG_KALLSYMS is not set CONFIG_FUTEX=y CONFIG_EPOLL=y CONFIG_CC_OPTIMIZE_FOR_SIZE=y CONFIG_SHMEM=y CONFIG_CC_ALIGN_FUNCTIONS=0 CONFIG_CC_ALIGN_LABELS=0 CONFIG_CC_ALIGN_LOOPS=0 CONFIG_CC_ALIGN_JUMPS=0 # CONFIG_BOOT_FLIGHT_RECORDER is not set CONFIG_LOCKLESS=y CONFIG_BOOT_FLIGHT_BUFFERS=4 CONFIG_BOOT_FLIGHT_SIZE=524288 CONFIG_FLIGHT_PROC_BUFFERS=8 CONFIG_FLIGHT_PROC_SIZE=8192 CONFIG_NEWEV=y CONFIG_CSTM=y # CONFIG_TINY_SHMEM is not set # # Loadable module support # CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y CONFIG_OBSOLETE_MODPARM=y CONFIG_MODVERSIONS=y # CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_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 set CONFIG_PPC_FPU=y # CONFIG_CPU_FREQ is not set CONFIG_EMBEDDEDBOOT=y CONFIG_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 set CONFIG_PQ2FADS=y # CONFIG_LITE5200 is not set CONFIG_8260=y CONFIG_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=y CONFIG_HIGHMEM=y CONFIG_HIGH_RES_TIMERS=y CONFIG_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=y CONFIG_PREVENT_FIRMWARE_BUILD=y # CONFIG_FW_LOADER is not set # # Memory Technology Devices (MTD) # 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 # CONFIG_NFTL is not set # CONFIG_INFTL is not set # CONFIG_RFD_FTL is not set # # 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 # 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 set CONFIG_BLK_DEV_LOOP=y # CONFIG_BLK_DEV_CRYPTOLOOP is not set # CONFIG_BLK_DEV_NBD is not set # CONFIG_BLK_DEV_RAM is not set CONFIG_BLK_DEV_RAM_COUNT=16 CONFIG_INITRAMFS_SOURCE="" # CONFIG_LBD is not set # CONFIG_CDROM_PKTCDVD is not set # # IO Schedulers # CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_AS=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y # # ATA/ATAPI/MFM/RLL support # CONFIG_IDE=y CONFIG_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 set CONFIG_UNIX=y # CONFIG_NET_KEY is not set CONFIG_USE_POLICY_FWD=y CONFIG_INET=y CONFIG_IP_MULTICAST=y # CONFIG_IP_ADVANCED_ROUTER is not set CONFIG_IP_PNP=y # CONFIG_IP_PNP_DHCP is not set CONFIG_IP_PNP_BOOTP=y CONFIG_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 set CONFIG_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 set CONFIG_IP_TCPDIAG=y # CONFIG_IP_TCPDIAG_IPV6 is not set # # IP: Virtual Server Configuration # # CONFIG_IP_VS is not set CONFIG_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 set CONFIG_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 set CONFIG_NETDEVICES=y # CONFIG_DUMMY is not set # CONFIG_BONDING is not set # CONFIG_EQUALIZER is not set CONFIG_TUN=m # # Ethernet (10 or 100Mbit) # CONFIG_NET_ETHERNET=y CONFIG_MII=y CONFIG_FS_ENET=y # CONFIG_FS_ENET_HAS_SCC is not set CONFIG_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 set CONFIG_PPP=m # CONFIG_PPP_MULTILINK is not set # CONFIG_PPP_FILTER is not set CONFIG_PPP_ASYNC=m CONFIG_PPP_SYNC_TTY=m CONFIG_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=m CONFIG_INPUT_MOUSEDEV_PSAUX=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 # CONFIG_INPUT_JOYDEV is not set # CONFIG_INPUT_TSDEV is not set # CONFIG_INPUT_TSLIBDEV is not set CONFIG_INPUT_EVDEV=m # CONFIG_INPUT_EVBUG is not set # # Input I/O drivers # # CONFIG_GAMEPORT is not set CONFIG_SOUND_GAMEPORT=y CONFIG_SERIO=y # CONFIG_SERIO_I8042 is not set CONFIG_SERIO_SERPORT=y # CONFIG_SERIO_CT82C710 is not set # CONFIG_SERIO_RAW is not set # # Input Device Drivers # CONFIG_INPUT_KEYBOARD=y CONFIG_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 set CONFIG_INPUT_MOUSE=y CONFIG_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=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_SERIAL_CPM=y CONFIG_SERIAL_CPM_CONSOLE=y CONFIG_SERIAL_CPM_SCC1=y # CONFIG_SERIAL_CPM_SCC2 is not set # CONFIG_SERIAL_CPM_SCC3 is not set CONFIG_SERIAL_CPM_SCC4=y # CONFIG_SERIAL_CPM_SMC1 is not set # CONFIG_SERIAL_CPM_SMC2 is not set CONFIG_UNIX98_PTYS=y CONFIG_LEGACY_PTYS=y CONFIG_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 set CONFIG_EXT3_FS=m CONFIG_EXT3_FS_XATTR=y # CONFIG_EXT3_FS_POSIX_ACL is not set # CONFIG_EXT3_FS_SECURITY is not set CONFIG_JBD=m # CONFIG_JBD_DEBUG is not set CONFIG_FS_MBCACHE=y # CONFIG_REISERFS_FS is not set # CONFIG_JFS_FS is not set CONFIG_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 set CONFIG_DNOTIFY=y # CONFIG_AUTOFS_FS is not set CONFIG_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=y CONFIG_PROC_KCORE=y CONFIG_SYSFS=y # CONFIG_DEVFS_FS is not set CONFIG_DEVPTS_FS_XATTR=y # CONFIG_DEVPTS_FS_SECURITY is not set CONFIG_TMPFS=y CONFIG_TMPFS_XATTR=y CONFIG_TMPFS_SECURITY=y # CONFIG_HUGETLB_PAGE is not set CONFIG_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 set 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 # CONFIG_JFFS2_CMODE_SIZE is not set CONFIG_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=y CONFIG_NFS_V3=y CONFIG_NFS_V4=y CONFIG_NFS_DIRECTIO=y CONFIG_NFSD=y CONFIG_NFSD_V3=y # CONFIG_NFSD_V4 is not set CONFIG_NFSD_TCP=y CONFIG_ROOT_NFS=y CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_EXPORTFS=y CONFIG_SUNRPC=y CONFIG_SUNRPC_GSS=y CONFIG_RPCSEC_GSS_KRB5=y # CONFIG_RPCSEC_GSS_SPKM3 is not set CONFIG_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 set CONFIG_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=m CONFIG_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 set CONFIG_NLS_ASCII=m CONFIG_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 set CONFIG_NLS_UTF8=m # CONFIG_SCC_ENET is not set CONFIG_FEC_ENET=y # CONFIG_USE_MDIO is not set # # CPM2 Options # CONFIG_FCC1_ENET=y CONFIG_FCC2_ENET=y CONFIG_FCC3_ENET=y # # Library routines # CONFIG_CRC_CCITT=m CONFIG_CRC32=y # CONFIG_LIBCRC32C is not set CONFIG_ZLIB_INFLATE=y CONFIG_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 set CONFIG_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 set CONFIG_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: > CONFIG_MTD_PARTITIONS=y > # CONFIG_MTD_REDBOOT_PARTS is not set > CONFIG_MTD_CMDLINE_PARTS=y [...] > > 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 But where is your commandline that describes the partitions in your flash? Juergen _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-22 10:58 ` [PATCH] " Nethra @ 2007-02-22 11:29 ` Juergen Beisert 2007-02-23 4:28 ` Nethra 0 siblings, 1 reply; 17+ messages in thread From: Juergen Beisert @ 2007-02-22 11:29 UTC (permalink / raw) To: linuxppc-embedded; +Cc: Nethra On Thursday 22 February 2007 11:58, Nethra wrote: > 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? > 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-22 11:29 ` Juergen Beisert @ 2007-02-23 4:28 ` Nethra 2007-02-23 14:55 ` Ben Warren 0 siblings, 1 reply; 17+ messages in thread From: Nethra @ 2007-02-23 4:28 UTC (permalink / raw) To: linuxppc-embedded 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 > 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? > 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 -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-23 4:28 ` Nethra @ 2007-02-23 14:55 ` Ben Warren 2007-02-24 3:19 ` Nethra 0 siblings, 1 reply; 17+ messages in thread From: Ben Warren @ 2007-02-23 14:55 UTC (permalink / raw) To: Nethra; +Cc: linuxppc-embedded On Thu, 2007-02-22 at 20:28 -0800, Nethra wrote: > > 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 > do i need to disable nfs option in kernel? No. Both can happily co-exist > > 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-23 14:55 ` Ben Warren @ 2007-02-24 3:19 ` Nethra 2007-02-24 3:25 ` Ben Warren 0 siblings, 1 reply; 17+ messages in thread From: Nethra @ 2007-02-24 3:19 UTC (permalink / raw) To: linuxppc-embedded 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 > 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 > do i need to disable nfs option in kernel? No. Both can happily co-exist > > 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 Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 3:19 ` Nethra @ 2007-02-24 3:25 ` Ben Warren 2007-02-24 3:38 ` Nethra 2007-02-24 3:45 ` Nethra 0 siblings, 2 replies; 17+ messages in thread From: Ben Warren @ 2007-02-24 3:25 UTC (permalink / raw) To: Nethra, linuxppc-embedded --- Nethra <nethra_gmit@yahoo.co.in> wrote: > > > 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? > Sounds reasonable. > it is giveing error when booting... > > nethra OK, what's the error? Did you set the endianness correctly when using mkfs.jffs2? ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 3:25 ` Ben Warren @ 2007-02-24 3:38 ` Nethra 2007-02-24 3:45 ` Nethra 1 sibling, 0 replies; 17+ messages in thread From: Nethra @ 2007-02-24 3:38 UTC (permalink / raw) To: linuxppc-embedded 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 Ben Warren wrote: > > > --- Nethra <nethra_gmit@yahoo.co.in> wrote: > >> >> >> 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? >> > > Sounds reasonable. > >> 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 > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 3:25 ` Ben Warren 2007-02-24 3:38 ` Nethra @ 2007-02-24 3:45 ` Nethra 1 sibling, 0 replies; 17+ messages in thread From: Nethra @ 2007-02-24 3:45 UTC (permalink / raw) To: linuxppc-embedded 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 Ben Warren wrote: > > > --- Nethra <nethra_gmit@yahoo.co.in> wrote: > >> >> >> 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? >> > > Sounds reasonable. > >> 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 > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: jffs2 file system 2007-02-22 10:16 jffs2 file system Nethra 2007-02-22 10:27 ` Juergen Beisert @ 2007-02-22 11:44 ` Josh Boyer 2007-02-24 8:38 ` [PATCH] " Nethra 1 sibling, 1 reply; 17+ messages in thread From: Josh Boyer @ 2007-02-22 11:44 UTC (permalink / raw) To: Nethra; +Cc: linuxppc-embedded On Thu, 2007-02-22 at 02:16 -0800, Nethra wrote: > > 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... Posting the output of your boot messages will likely get you more help than a .config. josh ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-22 11:44 ` Josh Boyer @ 2007-02-24 8:38 ` Nethra 2007-02-24 17:30 ` Juergen Beisert 2007-02-24 22:15 ` Ben Warren 0 siblings, 2 replies; 17+ messages in thread From: Nethra @ 2007-02-24 8:38 UTC (permalink / raw) To: linuxppc-embedded steps falloed are.. 1. erase FF800000 FFDFFFFF 2. tftpboot 0x100000 image.jffs2 3. cp.b 100000 FF800000 4dc874 > 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 okir@monad.swb.de). 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 FS ftl_cs: FTL header not found. 0x00600000-0x00700000 : "uImage" mtd: Giving out device 1 to uImage ftl_cs: FTL header not found. 0x00700000-0x00740000 : "bootloader" mtd: Giving out device 2 to bootloader ftl_cs: FTL header not found. 0x00740000-0x00780000 : "bootloader env" mtd: Giving out device 3 to bootloader env ftl_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 17 jffs2_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 Josh Boyer-2 wrote: > > On Thu, 2007-02-22 at 02:16 -0800, Nethra wrote: >> >> 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... > > Posting the output of your boot messages will likely get you more help > than a .config. > > josh > > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 8:38 ` [PATCH] " Nethra @ 2007-02-24 17:30 ` Juergen Beisert 2007-02-26 3:28 ` Nethra 2007-02-24 22:15 ` Ben Warren 1 sibling, 1 reply; 17+ messages in thread From: Juergen Beisert @ 2007-02-24 17:30 UTC (permalink / raw) To: linuxppc-embedded; +Cc: Nethra On Saturday 24 February 2007 09:38, Nethra wrote: [...] > 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). > 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 FS > ftl_cs: FTL header not found. Disable the FTL when you try to use the content as JFFS2! > 0x00600000-0x00700000 : "uImage" > mtd: Giving out device 1 to uImage > ftl_cs: FTL header not found. > 0x00700000-0x00740000 : "bootloader" > mtd: Giving out device 2 to bootloader > ftl_cs: FTL header not found. > 0x00740000-0x00780000 : "bootloader env" > mtd: Giving out device 3 to bootloader env > ftl_cs: FTL header not found. Are these partitions correct? I cannot see where the definitions comes from. Juergen ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 17:30 ` Juergen Beisert @ 2007-02-26 3:28 ` Nethra 0 siblings, 0 replies; 17+ messages in thread From: Nethra @ 2007-02-26 3:28 UTC (permalink / raw) To: linuxppc-embedded 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 FFFC0000 nethra [...] > 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). > 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 FS > ftl_cs: FTL header not found. Disable the FTL when you try to use the content as JFFS2! > 0x00600000-0x00700000 : "uImage" > mtd: Giving out device 1 to uImage > ftl_cs: FTL header not found. > 0x00700000-0x00740000 : "bootloader" > mtd: Giving out device 2 to bootloader > ftl_cs: FTL header not found. > 0x00740000-0x00780000 : "bootloader env" > mtd: Giving out device 3 to bootloader env > ftl_cs: FTL header not found. Are these partitions correct? I cannot see where the definitions comes from. Juergen _______________________________________________ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 8:38 ` [PATCH] " Nethra 2007-02-24 17:30 ` Juergen Beisert @ 2007-02-24 22:15 ` Ben Warren 2007-02-26 3:04 ` Nethra 2007-02-26 9:14 ` Nethra 1 sibling, 2 replies; 17+ messages in thread From: Ben Warren @ 2007-02-24 22:15 UTC (permalink / raw) To: Nethra, linuxppc-embedded --- Nethra <nethra_gmit@yahoo.co.in> wrote: > steps falloed are.. > > 1. erase FF800000 FFDFFFFF > 2. tftpboot 0x100000 image.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> > 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 FS > ftl_cs: FTL header not found. > 0x00600000-0x00700000 : "uImage" > mtd: Giving out device 1 to uImage > ftl_cs: FTL header not found. > 0x00700000-0x00740000 : "bootloader" > mtd: Giving out device 2 to bootloader > ftl_cs: FTL header not found. > 0x00740000-0x00780000 : "bootloader env" > mtd: Giving out device 3 to bootloader env > ftl_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. > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x00000000: > 0xffff in > .... > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x005c0004: > 0xffff in > 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 ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 22:15 ` Ben Warren @ 2007-02-26 3:04 ` Nethra 2007-02-26 9:14 ` Nethra 1 sibling, 0 replies; 17+ messages in thread From: Nethra @ 2007-02-26 3:04 UTC (permalink / raw) To: linuxppc-embedded 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 > steps fallowed are.. > > 1. erase FF800000 FFDFFFFF > 2. tftpboot 0x100000 image.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> > 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 FS > ftl_cs: FTL header not found. > 0x00600000-0x00700000 : "uImage" > mtd: Giving out device 1 to uImage > ftl_cs: FTL header not found. > 0x00700000-0x00740000 : "bootloader" > mtd: Giving out device 2 to bootloader > ftl_cs: FTL header not found. > 0x00740000-0x00780000 : "bootloader env" > mtd: Giving out device 3 to bootloader env > ftl_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. > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x00000000: > 0xffff in > .... > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x005c0004: > 0xffff in > 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 Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PATCH] jffs2 file system 2007-02-24 22:15 ` Ben Warren 2007-02-26 3:04 ` Nethra @ 2007-02-26 9:14 ` Nethra 1 sibling, 0 replies; 17+ messages in thread From: Nethra @ 2007-02-26 9:14 UTC (permalink / raw) To: linuxppc-embedded 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 > steps falloed are.. > > 1. erase FF800000 FFDFFFFF > 2. tftpboot 0x100000 image.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> > 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 FS > ftl_cs: FTL header not found. > 0x00600000-0x00700000 : "uImage" > mtd: Giving out device 1 to uImage > ftl_cs: FTL header not found. > 0x00700000-0x00740000 : "bootloader" > mtd: Giving out device 2 to bootloader > ftl_cs: FTL header not found. > 0x00740000-0x00780000 : "bootloader env" > mtd: Giving out device 3 to bootloader env > ftl_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. > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x00000000: > 0xffff in > .... > jffs2_scan_eraseblock(): Magic bitmask 0x1985 not > found at 0x005c0004: > 0xffff in > 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 Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded http://www.nabble.com/file/6779/md_od.bmp md_od.bmp -- 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. ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2007-02-26 9:14 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-02-22 10:16 jffs2 file system Nethra 2007-02-22 10:27 ` Juergen Beisert 2007-02-22 10:58 ` [PATCH] " Nethra 2007-02-22 11:29 ` Juergen Beisert 2007-02-23 4:28 ` Nethra 2007-02-23 14:55 ` Ben Warren 2007-02-24 3:19 ` Nethra 2007-02-24 3:25 ` Ben Warren 2007-02-24 3:38 ` Nethra 2007-02-24 3:45 ` Nethra 2007-02-22 11:44 ` Josh Boyer 2007-02-24 8:38 ` [PATCH] " Nethra 2007-02-24 17:30 ` Juergen Beisert 2007-02-26 3:28 ` Nethra 2007-02-24 22:15 ` Ben Warren 2007-02-26 3:04 ` Nethra 2007-02-26 9:14 ` Nethra
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).