* Kernel oops in jffs2 mount - any ideas?
@ 2006-11-10 0:24 Robin Gilks
2006-11-10 8:09 ` Artem Bityutskiy
0 siblings, 1 reply; 10+ messages in thread
From: Robin Gilks @ 2006-11-10 0:24 UTC (permalink / raw)
To: MTD mail list
[-- Attachment #1: Type: text/plain, Size: 2889 bytes --]
[ 13.074175] Oops: kernel access of bad area, sig: 11 [#1]
[ 13.084459] NIP: C00B34C4 LR: C00BA504 CTR: C00D944C
[ 13.094314] REGS: c0325a90 TRAP: 0300 Not tainted (2.6.18-buildroot)
[ 13.107419] MSR: 00009032 <EE,ME,IR,DR> CR: 24002082 XER: 0000005F
[ 13.120043] DAR: FF80100B, DSISR: C0000000
[ 13.128173] TASK = c0320b40[1] 'swapper' THREAD: c0324000
[ 13.138521] GPR00: C00BA4F8 C0325B40 C0320B40 FF800FFF 00000011
FFFFFFFF C0230000 C01E8A78
[ 13.155108] GPR08: C01F0000 00000044 00000000 C03F7800 84002022
00000000 03FF9000 C01C0000
[ 13.171697] GPR16: C3C973B0 00000000 00000000 00000000 C3C22455
0000000A 00019268 00000001
[ 13.188287] GPR24: 00010000 00010000 C50A9268 00000011 C50A0000
C03FC034 C03F7C00 00019268
[ 13.205222] NIP [C00B34C4] jffs2_get_ino_cache+0x14/0x4c
[ 13.215765] LR [C00BA504] jffs2_scan_medium+0xd48/0xfe4
[ 13.226126] Call Trace:
[ 13.230982] [C0325B40] [C00BA4F8] jffs2_scan_medium+0xd3c/0xfe4
(unreliable)
[ 13.244977] [C0325BC0] [C00BCBCC] jffs2_do_mount_fs+0x180/0x8ec
[ 13.256728] [C0325BF0] [C00BF05C] jffs2_do_fill_super+0xbc/0x244
[ 13.268650] [C0325C10] [C00BF868] jffs2_get_sb_mtd+0xfc/0x19c
[ 13.280055] [C0325C50] [C00BFB14] jffs2_get_sb+0x180/0x228
[ 13.290941] [C0325CE0] [C005A42C] vfs_kern_mount+0x5c/0xbc
[ 13.301828] [C0325D00] [C005A4C8] do_kern_mount+0x3c/0x60
[ 13.312542] [C0325D30] [C0072374] do_mount+0x394/0x680
[ 13.322736] [C0325EB0] [C00729F8] sys_mount+0x98/0xe8
[ 13.332759] [C0325EF0] [C021A864] do_mount_root+0x2c/0xc4
[ 13.343472] [C0325F10] [C021A9C0] mount_block_root+0xc4/0x248
[ 13.354878] [C0325F60] [C021AE3C] prepare_namespace+0xb8/0x190
[ 13.366455] [C0325F80] [C0002494] init+0x254/0x2e4
[ 13.375959] [C0325FF0] [C000514C] kernel_thread+0x44/0x60
[ 13.386658] Instruction dump:
[ 13.392537] 38800003 38a00001 4bf5b645 80010014 38210010 7c0803a6
4e800020 816300ec
[ 13.407914] 548915fa 7c69582e 2f030000 4d9a0020 <8003000c> 7f802040
409c0014 80630010
[ 13.425346] Kernel panic - not syncing: Attempted to kill init!
[ 13.436809] <0>Rebooting in 1 seconds..
Typical Friday afternoon after a good week :-(
Any ideas of where to look?
System: mpc859T
kernel: 2.6.18
.config - attached.
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
[-- Attachment #2: config --]
[-- Type: text/plain, Size: 20709 bytes --]
#
# Automatically generated make config: don't edit
# Linux kernel version: 2.6.18
# Fri Nov 10 12:22:52 2006
#
CONFIG_MMU=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_GENERIC_HWEIGHT=y
CONFIG_GENERIC_CALIBRATE_DELAY=y
CONFIG_PPC=y
CONFIG_PPC32=y
CONFIG_GENERIC_NVRAM=y
CONFIG_GENERIC_FIND_NEXT_BIT=y
CONFIG_SCHED_NO_NO_OMIT_FRAME_POINTER=y
CONFIG_ARCH_MAY_HAVE_PC_FDC=y
CONFIG_DEFCONFIG_LIST="/lib/modules/$UNAME_RELEASE/.config"
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
CONFIG_BROKEN_ON_SMP=y
CONFIG_INIT_ENV_ARG_LIMIT=32
#
# General setup
#
CONFIG_LOCALVERSION=""
# CONFIG_LOCALVERSION_AUTO is not set
# CONFIG_SWAP is not set
# CONFIG_SYSVIPC is not set
# CONFIG_POSIX_MQUEUE is not set
# CONFIG_BSD_PROCESS_ACCT is not set
# CONFIG_TASKSTATS is not set
# CONFIG_AUDIT is not set
# CONFIG_IKCONFIG is not set
# CONFIG_RELAY is not set
CONFIG_INITRAMFS_SOURCE=""
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set
# CONFIG_EMBEDDED is not set
CONFIG_SYSCTL=y
CONFIG_KALLSYMS=y
# CONFIG_KALLSYMS_ALL is not set
# CONFIG_KALLSYMS_EXTRA_PASS is not set
CONFIG_HOTPLUG=y
CONFIG_PRINTK=y
CONFIG_BUG=y
CONFIG_ELF_CORE=y
CONFIG_BASE_FULL=y
CONFIG_FUTEX=y
CONFIG_EPOLL=y
CONFIG_SHMEM=y
CONFIG_SLAB=y
CONFIG_VM_EVENT_COUNTERS=y
CONFIG_RT_MUTEXES=y
# CONFIG_TINY_SHMEM is not set
CONFIG_BASE_SMALL=0
# CONFIG_SLOB is not set
#
# Loadable module support
#
CONFIG_MODULES=y
# CONFIG_MODULE_UNLOAD is not set
# CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set
# CONFIG_KMOD is not set
#
# Block layer
#
# CONFIG_LBD is not set
# CONFIG_BLK_DEV_IO_TRACE is not set
# CONFIG_LSF is not set
#
# IO Schedulers
#
CONFIG_IOSCHED_NOOP=y
# CONFIG_IOSCHED_AS is not set
# CONFIG_IOSCHED_DEADLINE is not set
# CONFIG_IOSCHED_CFQ is not set
# CONFIG_DEFAULT_AS is not set
# CONFIG_DEFAULT_DEADLINE is not set
# CONFIG_DEFAULT_CFQ is not set
CONFIG_DEFAULT_NOOP=y
CONFIG_DEFAULT_IOSCHED="noop"
#
# Processor
#
# CONFIG_6xx is not set
# CONFIG_40x is not set
# CONFIG_44x is not set
CONFIG_8xx=y
# CONFIG_E200 is not set
# CONFIG_E500 is not set
# CONFIG_MATH_EMULATION is not set
# CONFIG_KEXEC is not set
# CONFIG_CPU_FREQ is not set
# CONFIG_WANT_EARLY_SERIAL is not set
CONFIG_EMBEDDEDBOOT=y
CONFIG_NOT_COHERENT_CACHE=y
#
# Platform options
#
CONFIG_FADS=y
# CONFIG_RPXLITE is not set
# CONFIG_RPXCLASSIC is not set
# CONFIG_BSEIP is not set
# CONFIG_MPC8XXFADS is not set
# CONFIG_MPC86XADS is not set
CONFIG_ASIF=y
# CONFIG_MPC885ADS is not set
# CONFIG_TQM823L is not set
# CONFIG_TQM850L is not set
# CONFIG_TQM855L is not set
# CONFIG_TQM860L is not set
# CONFIG_FPS850L is not set
# CONFIG_IVMS8 is not set
# CONFIG_IVML24 is not set
# CONFIG_HERMES_PRO is not set
# CONFIG_IP860 is not set
# CONFIG_LWMON is not set
# CONFIG_PCU_E is not set
# CONFIG_CCM is not set
# CONFIG_LANTEC is not set
# CONFIG_MBX is not set
# CONFIG_WINCEPT is not set
CONFIG_CPM1=y
# CONFIG_HIGHMEM is not set
CONFIG_HZ_100=y
# CONFIG_HZ_250 is not set
# CONFIG_HZ_1000 is not set
CONFIG_HZ=100
CONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not set
CONFIG_SELECT_MEMORY_MODEL=y
CONFIG_FLATMEM_MANUAL=y
# CONFIG_DISCONTIGMEM_MANUAL is not set
# CONFIG_SPARSEMEM_MANUAL is not set
CONFIG_FLATMEM=y
CONFIG_FLAT_NODE_MEM_MAP=y
# CONFIG_SPARSEMEM_STATIC is not set
CONFIG_SPLIT_PTLOCK_CPUS=4
# CONFIG_RESOURCES_64BIT is not set
# CONFIG_BINFMT_ELF is not set
# CONFIG_BINFMT_MISC is not set
# CONFIG_CMDLINE_BOOL is not set
# CONFIG_PM is not set
# CONFIG_SECCOMP is not set
CONFIG_ISA_DMA_API=y
#
# Bus options
#
# CONFIG_PPC_I8259 is not set
# CONFIG_PCI is not set
# CONFIG_PCI_DOMAINS is not set
# CONFIG_PCI_QSPAN is not set
#
# PCCARD (PCMCIA/CardBus) support
#
# CONFIG_PCCARD is not set
#
# Advanced setup
#
CONFIG_ADVANCED_OPTIONS=y
CONFIG_HIGHMEM_START=0xfe000000
# CONFIG_LOWMEM_SIZE_BOOL is not set
CONFIG_LOWMEM_SIZE=0x30000000
# CONFIG_KERNEL_START_BOOL is not set
CONFIG_KERNEL_START=0xc0000000
# CONFIG_TASK_SIZE_BOOL is not set
CONFIG_TASK_SIZE=0x80000000
CONFIG_CONSISTENT_START_BOOL=y
CONFIG_CONSISTENT_START=0xa0000000
# CONFIG_CONSISTENT_SIZE_BOOL is not set
CONFIG_CONSISTENT_SIZE=0x00200000
# CONFIG_BOOT_LOAD_BOOL is not set
CONFIG_BOOT_LOAD=0x00400000
CONFIG_PIN_TLB=y
#
# Networking
#
CONFIG_NET=y
#
# Networking options
#
# CONFIG_NETDEBUG is not set
CONFIG_PACKET=y
CONFIG_PACKET_MMAP=y
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_XFRM_USER=y
CONFIG_NET_KEY=y
CONFIG_INET=y
CONFIG_IP_MULTICAST=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
# CONFIG_IP_FIB_TRIE is not set
CONFIG_IP_FIB_HASH=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_ROUTE_MULTIPATH=y
# CONFIG_IP_ROUTE_MULTIPATH_CACHED is not set
# CONFIG_IP_ROUTE_VERBOSE is not set
CONFIG_IP_PNP=y
# CONFIG_IP_PNP_DHCP is not set
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not set
# CONFIG_NET_IPIP is not set
# CONFIG_NET_IPGRE is not set
CONFIG_IP_MROUTE=y
CONFIG_IP_PIMSM_V1=y
CONFIG_IP_PIMSM_V2=y
# 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_XFRM_TUNNEL is not set
# CONFIG_INET_TUNNEL is not set
# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
# CONFIG_INET_XFRM_MODE_TUNNEL is not set
# CONFIG_INET_DIAG is not set
# CONFIG_TCP_CONG_ADVANCED is not set
CONFIG_TCP_CONG_BIC=y
# CONFIG_IPV6 is not set
# CONFIG_INET6_XFRM_TUNNEL is not set
# CONFIG_INET6_TUNNEL is not set
# CONFIG_NETWORK_SECMARK is not set
# CONFIG_NETFILTER is not set
#
# DCCP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_DCCP is not set
#
# SCTP Configuration (EXPERIMENTAL)
#
# CONFIG_IP_SCTP is not set
#
# TIPC Configuration (EXPERIMENTAL)
#
# CONFIG_TIPC 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_ECONET is not set
# CONFIG_WAN_ROUTER is not set
#
# QoS and/or fair queueing
#
# CONFIG_NET_SCHED is not set
#
# Network testing
#
# CONFIG_NET_PKTGEN is not set
# CONFIG_HAMRADIO is not set
# CONFIG_IRDA is not set
# CONFIG_BT is not set
# CONFIG_IEEE80211 is not set
#
# Device Drivers
#
#
# Generic Driver Options
#
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
# CONFIG_FW_LOADER is not set
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_SYS_HYPERVISOR is not set
#
# Connector - unified userspace <-> kernelspace linker
#
# CONFIG_CONNECTOR is not set
#
# Memory Technology Devices (MTD)
#
CONFIG_MTD=y
# CONFIG_MTD_DEBUG is not set
# 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 is not set
# 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 is not set
CONFIG_MTD_GEN_PROBE=y
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
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_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 is not set
# CONFIG_MTD_ABSENT is not set
# CONFIG_MTD_OBSOLETE_CHIPS is not set
#
# Mapping drivers for chip access
#
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x40000000
CONFIG_MTD_PHYSMAP_LEN=0x400000
CONFIG_MTD_PHYSMAP_BANKWIDTH=2
# CONFIG_MTD_CFI_FLAGADM is not set
# 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_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
#
# OneNAND Flash Device Drivers
#
# CONFIG_MTD_ONENAND 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_COW_COMMON 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=y
CONFIG_BLK_DEV_RAM_COUNT=16
CONFIG_BLK_DEV_RAM_SIZE=4096
CONFIG_BLK_DEV_RAM_BLOCKSIZE=1024
CONFIG_BLK_DEV_INITRD=y
# CONFIG_CDROM_PKTCDVD is not set
# CONFIG_ATA_OVER_ETH is not set
#
# ATA/ATAPI/MFM/RLL support
#
# CONFIG_IDE is not set
#
# SCSI device support
#
# CONFIG_RAID_ATTRS is not set
# CONFIG_SCSI is not set
#
# Multi-device support (RAID and LVM)
#
# CONFIG_MD is not set
#
# Fusion MPT device support
#
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#
#
# I2O device support
#
#
# Macintosh device drivers
#
# CONFIG_WINDFARM is not set
#
# Network device support
#
CONFIG_NETDEVICES=y
# CONFIG_DUMMY is not set
# CONFIG_BONDING is not set
# CONFIG_EQUALIZER is not set
# CONFIG_TUN is not set
#
# PHY device support
#
CONFIG_PHYLIB=y
#
# MII PHY device drivers
#
# CONFIG_MARVELL_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_QSEMI_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_FIXED_PHY is not set
#
# Ethernet (10 or 100Mbit)
#
CONFIG_NET_ETHERNET=y
CONFIG_MII=y
CONFIG_FEC_8XX=y
CONFIG_FEC_8XX_GENERIC_PHY=y
# CONFIG_FEC_8XX_DM9161_PHY is not set
# CONFIG_FEC_8XX_LXT971_PHY is not set
# CONFIG_FS_ENET is not set
#
# 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 is not set
# CONFIG_SLIP is not set
# CONFIG_SHAPER is not set
# CONFIG_NETCONSOLE is not set
# CONFIG_NETPOLL is not set
# CONFIG_NET_POLL_CONTROLLER is not set
#
# ISDN subsystem
#
# CONFIG_ISDN is not set
#
# Telephony Support
#
# CONFIG_PHONE is not set
#
# Input device support
#
CONFIG_INPUT=y
#
# Userland interfaces
#
# CONFIG_INPUT_MOUSEDEV is not set
# CONFIG_INPUT_JOYDEV is not set
# CONFIG_INPUT_TSDEV is not set
# CONFIG_INPUT_EVDEV is not set
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#
# CONFIG_INPUT_KEYBOARD is not set
# CONFIG_INPUT_MOUSE is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not set
#
# Hardware I/O ports
#
# CONFIG_SERIO is not set
# CONFIG_GAMEPORT is not set
#
# Character devices
#
CONFIG_VT=y
CONFIG_VT_CONSOLE=y
CONFIG_HW_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING 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 is not set
CONFIG_SERIAL_CPM_SMC1=y
CONFIG_SERIAL_CPM_SMC2=y
CONFIG_UNIX98_PTYS=y
CONFIG_LEGACY_PTYS=y
CONFIG_LEGACY_PTY_COUNT=64
#
# IPMI
#
# CONFIG_IPMI_HANDLER is not set
#
# Watchdog Cards
#
# CONFIG_WATCHDOG is not set
CONFIG_HW_RANDOM=y
# CONFIG_NVRAM is not set
CONFIG_GEN_RTC=y
CONFIG_GEN_RTC_X=y
# CONFIG_DTLK is not set
# CONFIG_R3964 is not set
#
# Ftape, the floppy tape device driver
#
# CONFIG_RAW_DRIVER is not set
#
# TPM devices
#
# CONFIG_TCG_TPM is not set
# CONFIG_TELCLOCK is not set
#
# I2C support
#
CONFIG_I2C=m
CONFIG_I2C_CHARDEV=m
#
# I2C Algorithms
#
CONFIG_I2C_ALGOBIT=m
# CONFIG_I2C_ALGOPCF is not set
CONFIG_I2C_ALGOPCA=m
CONFIG_I2C_ALGO8XX=m
#
# I2C Hardware Bus support
#
# CONFIG_I2C_MPC is not set
# CONFIG_I2C_OCORES is not set
# CONFIG_I2C_PARPORT_LIGHT is not set
# CONFIG_I2C_STUB is not set
# CONFIG_I2C_PCA_ISA is not set
#
# Miscellaneous I2C Chip support
#
# CONFIG_SENSORS_DS1337 is not set
# CONFIG_SENSORS_DS1374 is not set
# CONFIG_SENSORS_EEPROM is not set
# CONFIG_SENSORS_PCF8574 is not set
# CONFIG_SENSORS_PCA9539 is not set
# CONFIG_SENSORS_PCF8591 is not set
# CONFIG_SENSORS_M41T00 is not set
# CONFIG_SENSORS_MAX6875 is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# CONFIG_I2C_DEBUG_CHIP is not set
#
# SPI support
#
# CONFIG_SPI is not set
# CONFIG_SPI_MASTER is not set
#
# Dallas's 1-wire bus
#
#
# Hardware Monitoring support
#
# CONFIG_HWMON is not set
# CONFIG_HWMON_VID is not set
#
# Misc devices
#
#
# Multimedia devices
#
# CONFIG_VIDEO_DEV is not set
CONFIG_VIDEO_V4L2=y
#
# Digital Video Broadcasting Devices
#
# CONFIG_DVB is not set
#
# Graphics support
#
# CONFIG_FIRMWARE_EDID is not set
# CONFIG_FB is not set
#
# Console display driver support
#
CONFIG_DUMMY_CONSOLE=y
# CONFIG_BACKLIGHT_LCD_SUPPORT 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
# CONFIG_USB_ARCH_HAS_EHCI is not set
#
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
#
#
# USB Gadget Support
#
# CONFIG_USB_GADGET is not set
#
# MMC/SD Card support
#
# CONFIG_MMC is not set
#
# LED devices
#
# CONFIG_NEW_LEDS is not set
#
# LED drivers
#
#
# LED Triggers
#
#
# InfiniBand support
#
#
# EDAC - error detection and reporting (RAS) (EXPERIMENTAL)
#
#
# Real Time Clock
#
# CONFIG_RTC_CLASS is not set
#
# DMA Engine support
#
# CONFIG_DMA_ENGINE is not set
#
# DMA Clients
#
#
# DMA Devices
#
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT2_FS_XIP is not set
# CONFIG_EXT3_FS is not set
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not set
# CONFIG_FS_POSIX_ACL is not set
# CONFIG_XFS_FS is not set
# CONFIG_OCFS2_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_INOTIFY is not set
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
# CONFIG_AUTOFS4_FS is not set
# CONFIG_FUSE_FS is not set
#
# 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 is not set
CONFIG_SYSFS=y
CONFIG_TMPFS=y
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
# CONFIG_CONFIGFS_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 is not set
CONFIG_JFFS2_FS=y
CONFIG_JFFS2_FS_DEBUG=2
# CONFIG_JFFS2_FS_WRITEBUFFER is not set
# CONFIG_JFFS2_SUMMARY is not set
# CONFIG_JFFS2_FS_XATTR is not set
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
CONFIG_JFFS2_ZLIB=y
CONFIG_JFFS2_RTIME=y
# CONFIG_JFFS2_RUBIN is not set
# CONFIG_CRAMFS 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
#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V3_ACL is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
# CONFIG_NFSD is not set
CONFIG_ROOT_NFS=y
CONFIG_LOCKD=y
CONFIG_LOCKD_V4=y
CONFIG_NFS_COMMON=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS 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
# CONFIG_9P_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_KARMA_PARTITION is not set
# CONFIG_EFI_PARTITION is not set
#
# Native Language Support
#
CONFIG_NLS=y
CONFIG_NLS_DEFAULT="iso8859-1"
# CONFIG_NLS_CODEPAGE_437 is not set
# 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 is not set
CONFIG_NLS_ISO8859_1=y
# 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 is not set
#
# MPC8xx CPM Options
#
# CONFIG_SCC_ENET is not set
# CONFIG_FEC_ENET is not set
#
# Generic MPC8xx Options
#
# CONFIG_8xx_COPYBACK is not set
# CONFIG_8xx_CPU6 is not set
CONFIG_NO_UCODE_PATCH=y
# CONFIG_USB_SOF_UCODE_PATCH is not set
# CONFIG_I2C_SPI_UCODE_PATCH is not set
# CONFIG_I2C_SPI_SMC1_UCODE_PATCH is not set
#
# Library routines
#
# CONFIG_CRC_CCITT is not set
# CONFIG_CRC16 is not set
CONFIG_CRC32=y
CONFIG_LIBCRC32C=y
CONFIG_ZLIB_INFLATE=y
CONFIG_ZLIB_DEFLATE=y
CONFIG_PLIST=y
# CONFIG_PROFILING is not set
#
# Kernel hacking
#
CONFIG_PRINTK_TIME=y
# CONFIG_MAGIC_SYSRQ is not set
# CONFIG_UNUSED_SYMBOLS is not set
CONFIG_DEBUG_KERNEL=y
CONFIG_LOG_BUF_SHIFT=17
CONFIG_DETECT_SOFTLOCKUP=y
# CONFIG_SCHEDSTATS is not set
# CONFIG_DEBUG_SLAB is not set
# CONFIG_DEBUG_RT_MUTEXES is not set
# CONFIG_RT_MUTEX_TESTER is not set
# CONFIG_DEBUG_SPINLOCK is not set
# CONFIG_DEBUG_MUTEXES is not set
# CONFIG_DEBUG_RWSEMS is not set
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
# CONFIG_DEBUG_LOCKING_API_SELFTESTS is not set
# CONFIG_DEBUG_KOBJECT is not set
CONFIG_DEBUG_INFO=y
# CONFIG_DEBUG_FS is not set
# CONFIG_DEBUG_VM is not set
CONFIG_FORCED_INLINING=y
# CONFIG_RCU_TORTURE_TEST is not set
# CONFIG_XMON is not set
CONFIG_BDI_SWITCH=y
#
# Security options
#
# CONFIG_KEYS is not set
# CONFIG_SECURITY is not set
#
# Cryptographic options
#
CONFIG_CRYPTO=y
CONFIG_CRYPTO_HMAC=y
# CONFIG_CRYPTO_NULL is not set
# CONFIG_CRYPTO_MD4 is not set
CONFIG_CRYPTO_MD5=y
CONFIG_CRYPTO_SHA1=y
# CONFIG_CRYPTO_SHA256 is not set
# CONFIG_CRYPTO_SHA512 is not set
# CONFIG_CRYPTO_WP512 is not set
# CONFIG_CRYPTO_TGR192 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=y
# CONFIG_CRYPTO_CAST5 is not set
# CONFIG_CRYPTO_CAST6 is not set
# CONFIG_CRYPTO_TEA is not set
CONFIG_CRYPTO_ARC4=y
# CONFIG_CRYPTO_KHAZAD is not set
# CONFIG_CRYPTO_ANUBIS is not set
CONFIG_CRYPTO_DEFLATE=y
# CONFIG_CRYPTO_MICHAEL_MIC is not set
# CONFIG_CRYPTO_CRC32C is not set
# CONFIG_CRYPTO_TEST is not set
#
# Hardware crypto devices
#
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-10 0:24 Kernel oops in jffs2 mount - any ideas? Robin Gilks
@ 2006-11-10 8:09 ` Artem Bityutskiy
2006-11-13 3:24 ` Robin Gilks
0 siblings, 1 reply; 10+ messages in thread
From: Artem Bityutskiy @ 2006-11-10 8:09 UTC (permalink / raw)
To: robin.gilks; +Cc: MTD mail list
On Fri, 2006-11-10 at 13:24 +1300, Robin Gilks wrote:
> [ 13.244977] [C0325BC0] [C00BCBCC] jffs2_do_mount_fs+0x180/0x8ec
> [ 13.256728] [C0325BF0] [C00BF05C] jffs2_do_fill_super+0xbc/0x244
> [ 13.268650] [C0325C10] [C00BF868] jffs2_get_sb_mtd+0xfc/0x19c
> [ 13.280055] [C0325C50] [C00BFB14] jffs2_get_sb+0x180/0x228
> [ 13.290941] [C0325CE0] [C005A42C] vfs_kern_mount+0x5c/0xbc
> [ 13.301828] [C0325D00] [C005A4C8] do_kern_mount+0x3c/0x60
> [ 13.312542] [C0325D30] [C0072374] do_mount+0x394/0x680
> [ 13.322736] [C0325EB0] [C00729F8] sys_mount+0x98/0xe8
> [ 13.332759] [C0325EF0] [C021A864] do_mount_root+0x2c/0xc4
> [ 13.343472] [C0325F10] [C021A9C0] mount_block_root+0xc4/0x248
> [ 13.354878] [C0325F60] [C021AE3C] prepare_namespace+0xb8/0x190
> [ 13.366455] [C0325F80] [C0002494] init+0x254/0x2e4
> [ 13.375959] [C0325FF0] [C000514C] kernel_thread+0x44/0x60
> [ 13.386658] Instruction dump:
> [ 13.392537] 38800003 38a00001 4bf5b645 80010014 38210010 7c0803a6
> 4e800020 816300ec
> [ 13.407914] 548915fa 7c69582e 2f030000 4d9a0020 <8003000c> 7f802040
> 409c0014 80630010
> [ 13.425346] Kernel panic - not syncing: Attempted to kill init!
> [ 13.436809] <0>Rebooting in 1 seconds..
Enabling debugging messages and providing flash type and how to
reproduce information would be helpful.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-10 8:09 ` Artem Bityutskiy
@ 2006-11-13 3:24 ` Robin Gilks
2006-11-13 9:54 ` Artem Bityutskiy
0 siblings, 1 reply; 10+ messages in thread
From: Robin Gilks @ 2006-11-13 3:24 UTC (permalink / raw)
To: MTD mail list
Artem Bityutskiy wrote:
> Enabling debugging messages and providing flash type and how to
> reproduce information would be helpful.
>
Chip is ST28W320CB, reproducibility is just trying to boot with the
following command line
[ 0.000000] Kernel command line: root=/dev/mtdblock1 rootfstype=jffs2
rw ip=172.25.206.113:172.25.140.15::255.255.0.0:unset:eth0:off panic=1
console=ttyCPM0
mtdparts=asif.0:64K(param),3008K(jffs),256K(u-boot),-(kernel)
It boots fine with a 2.4.22 kernel.
With mtd and jffs2 debug messages full on I get the following (different
symptoms now although I do occasionally get the original panic).
[ 13.488115] jffs2_scan_eraseblock(): Node at 0x0004aff8 {0x1985,
0xe001, 0x0000002d) has invalid CRC 0xd7218112 (calculated 0x05000000)
[ 13.514180] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b000: 0xd721 instead
[ 13.534948] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b010: 0x4553 instead
[ 13.552949] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b014: 0x0502 instead
[ 13.570946] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b018: 0xf31d instead
[ 13.589307] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b01c: 0x584a instead
[ 13.607408] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b020: 0x7474 instead
[ 13.625730] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b024: 0x31ff instead
[ 14.696815] jffs2_scan_eraseblock(): Node at 0x00115ff8 {0x1985,
0xe002, 0x00000065) has invalid CRC 0xe8863260 (calculated 0x05000000)
[ 14.722213] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116000: 0xe886 instead
[ 14.748120] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116034: 0xf5b8 instead
[ 14.766139] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116038: 0x4260 instead
[ 14.784018] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0011603c: 0x4465 instead
[ 14.802051] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116040: 0x3331 instead
[ 14.820047] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116044: 0x373a instead
[ 14.838014] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116048: 0x3a30 instead
[ 14.855985] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0011604c: 0x7563 instead
[ 14.874020] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x00116050: 0x6263 instead
[ 14.891308] Further such events for this erase block will not be printed
[ 21.431374] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0029ba44: 0x0020 instead
[ 23.751790] JFFS2: Erase block at 0x00290000 is not formatted. It
will be erased
[ 24.009046] Oops: kernel access of bad area, sig: 11 [#1]
[ 24.019240] NIP: C01136A0 LR: C0114294 CTR: C01136A0
[ 24.029096] REGS: c3cabcd0 TRAP: 0300 Not tainted (2.6.18-buildroot)
[ 24.042200] MSR: 00009032 <EE,ME,IR,DR> CR: 22008028 XER: 0000005F
[ 24.054824] DAR: FF80101B, DSISR: C0000000
[ 24.062957] TASK = c036a7c0[280] 'jffs2_gcd_mtd1' THREAD: c3caa000
[ 24.074859] GPR00: 00000000 C3CABD80 C036A7C0 FF800FFF C3C26678
00000000 C034CA44 F82DD7B0
[ 24.091445] GPR08: 0005CEE4 C01AD99C FF800FFF C01136A0 22008024
00000000 C3CABE38 00000000
[ 24.108034] GPR16: C3CABE24 C01C0000 C3CABDA8 00000000 C3CABE28
C3C26640 C034CA20 00000000
[ 24.124624] GPR24: 0005CEE4 C3C26640 00000028 00000000 0005CEE4
C3C26678 C03F6C14 C3C26678
[ 24.141559] NIP [C01136A0] put_chip+0xa0/0x2e8
[ 24.150374] LR [C0114294] cfi_intelext_read+0x1a0/0x240
[ 24.160735] Call Trace:
[ 24.165590] [C3CABD80] [C3C26640] 0xc3c26640 (unreliable)
[ 24.176302] [C3CABDA0] [C0114294] cfi_intelext_read+0x1a0/0x240
[ 24.188052] [C3CABDF0] [C010CA1C] part_read+0x84/0xe0
[ 24.198075] [C3CABE10] [C00B6AF0]
jffs2_do_read_inode_internal+0x12c/0x11b4
[ 24.211899] [C3CABE90] [C00B7BDC] jffs2_do_crccheck_inode+0x64/0xc0
[ 24.224340] [C3CABF00] [C00BC0EC] jffs2_garbage_collect_pass+0x194/0x8a4
[ 24.237646] [C3CABF50] [C00BDF54] jffs2_garbage_collect_thread+0xa8/0x178
[ 24.251124] [C3CABFF0] [C000514C] kernel_thread+0x44/0x60
[ 24.261823] Instruction dump:
[ 24.267703] 38636ccc 4beffc79 387f001c 38800003 38a00001 38c00000
4befb459 80010024
[ 24.283080] 83e1001c 38210020 7c0803a6 4e800020 <800a001c> 2f800000
419effd0 7d435378
[ 24.300091] VFS: Mounted root (jffs2 filesystem).
[ 24.309717] Freeing unused kernel memory: 92k init
[ 24.318739] jffs2_lookup()
[ 24.324146] jffs2_read_inode(): inode->i_ino == 3
[ 24.333388] [JFFS2 DBG] (1) jffs2_do_read_inode: read inode #3
[ 24.345076] [JFFS2 DBG] (1) jffs2_do_read_inode_internal: ino #3
nlink is 1
[ 24.358850] [JFFS2 DBG] (1) jffs2_get_inode_nodes: ino #3
[ 24.369592] jffs2_write_super()
[ 24.375795] jffs2_thread_should_wake(): unchecked_size 1131332,
checked_ino #5
[ 24.390188] Starting erase of pending block 0x00280000
[ 24.400330] Freeing all node refs for eraseblock offset 0x00280000
[ 24.412607] jffs2_erase_block(): erase block 0x280000 (range
0x280000-0x290000)
[ 24.427223] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b868(2).
[ 24.442031] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3c9ae20
[ 24.453251] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "zero",
ino #166
[ 24.467737] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b7f0(2).
[ 24.482114] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3c9aba0
[ 24.493529] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent
"urandom", ino #165
[ 24.508215] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b778(2).
[ 24.523034] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca05a0
[ 24.534342] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp9",
ino #164
[ 24.548625] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b700(2).
[ 24.563329] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca04e0
[ 24.574892] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp8",
ino #163
[ 24.589064] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b688(2).
[ 24.603875] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca03e0
[ 24.615207] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp7",
ino #162
[ 24.629501] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b610(2).
[ 24.644423] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca0ee0
[ 24.655598] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp6",
ino #161
This continues on through the filesystem (as far as I can see) and ends
up with it hung although the kernel still responds pings (so not
everything is dead!).
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-13 3:24 ` Robin Gilks
@ 2006-11-13 9:54 ` Artem Bityutskiy
2006-11-13 23:00 ` Robin Gilks
2006-11-14 4:08 ` Robin Gilks
0 siblings, 2 replies; 10+ messages in thread
From: Artem Bityutskiy @ 2006-11-13 9:54 UTC (permalink / raw)
To: robin.gilks; +Cc: MTD mail list
Hi,
On Mon, 2006-11-13 at 16:24 +1300, Robin Gilks wrote:
> [ 13.488115] jffs2_scan_eraseblock(): Node at 0x0004aff8 {0x1985,
> 0xe001, 0x0000002d) has invalid CRC 0xd7218112 (calculated 0x05000000)
> [ 13.514180] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
> at 0x0004b000: 0xd721 instead
This means you are trying to feed trash to JFFS2. How do you copy JFFS2
image to your flash? Do you erase the partition beforehand?
But nevertheless, JFFS2 should not crash because of this and probably
this is not the reason of the crash.
> [ 23.751790] JFFS2: Erase block at 0x00290000 is not formatted. It
> will be erased
> [ 24.009046] Oops: kernel access of bad area, sig: 11 [#1]
> [ 24.019240] NIP: C01136A0 LR: C0114294 CTR: C01136A0
> [ 24.029096] REGS: c3cabcd0 TRAP: 0300 Not tainted (2.6.18-buildroot)
> [ 24.042200] MSR: 00009032 <EE,ME,IR,DR> CR: 22008028 XER: 0000005F
> [ 24.054824] DAR: FF80101B, DSISR: C0000000
> [ 24.062957] TASK = c036a7c0[280] 'jffs2_gcd_mtd1' THREAD: c3caa000
> [ 24.074859] GPR00: 00000000 C3CABD80 C036A7C0 FF800FFF C3C26678
> 00000000 C034CA44 F82DD7B0
> [ 24.091445] GPR08: 0005CEE4 C01AD99C FF800FFF C01136A0 22008024
> 00000000 C3CABE38 00000000
> [ 24.108034] GPR16: C3CABE24 C01C0000 C3CABDA8 00000000 C3CABE28
> C3C26640 C034CA20 00000000
> [ 24.124624] GPR24: 0005CEE4 C3C26640 00000028 00000000 0005CEE4
> C3C26678 C03F6C14 C3C26678
> [ 24.141559] NIP [C01136A0] put_chip+0xa0/0x2e8
So the crash is somewhere in the CFI code. You should try to dig it and
realize why it oopses.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-13 9:54 ` Artem Bityutskiy
@ 2006-11-13 23:00 ` Robin Gilks
2006-11-14 4:08 ` Robin Gilks
1 sibling, 0 replies; 10+ messages in thread
From: Robin Gilks @ 2006-11-13 23:00 UTC (permalink / raw)
To: dedekind; +Cc: MTD mail list
Artem Bityutskiy wrote:
> So the crash is somewhere in the CFI code. You should try to dig it and
> realize why it oopses.
>
Refering to standard 2.6.18 kernel...
OK - making progress in sorting bugs in the CFI code but still not fixed
the kernel panic which is looking more & more to be in the depths of the
jffs2 code :-(
1. In cfi_cmdset_0001.c, the fixup table is processed in order top to
bottom. The m28w320cb chip fixup disables buffer write method but the
buffer write fixup has already been executed by then so it tries to do
buffered writes which are not supported! The chip fixups *MUST* be first
in the table for this whole idea to work.
2. The chip ID as defined by ST is 0x88bb and that is what is read (in
my case) in 16 bit mode into cfi->id but the table only has the 8 bit
short code. Should this be masked to 8 bits so the table lookup works or
should the 8 bit probe be extended to get both halves of the ID or
should the table have the full 16 bit codes. In fact this chip only
supports 16 bit mode as far as I can see!!
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-13 9:54 ` Artem Bityutskiy
2006-11-13 23:00 ` Robin Gilks
@ 2006-11-14 4:08 ` Robin Gilks
2006-11-14 7:59 ` Joakim Tjernlund
2006-11-14 19:46 ` Carlos Munoz
1 sibling, 2 replies; 10+ messages in thread
From: Robin Gilks @ 2006-11-14 4:08 UTC (permalink / raw)
To: dedekind; +Cc: MTD mail list
Artem Bityutskiy wrote:
> So the crash is somewhere in the CFI code. You should try to dig it and
> realize why it oopses.
Pretty much at the same point except now its the garbage collector
crashing and leaving a lock on an inode so the kernel stalls.
No clues as to what is going on though :-(
[ 13.591311] jffs2_scan_eraseblock(): Node at 0x0004aff8 {0x1985,
0xe001, 0x0000002d) has invalid CRC 0xd7218112 (calculated 0x05000000)
[ 13.617310] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b000: 0xd721 instead
[ 13.638175] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b010: 0x4558 instead
[ 13.656489] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b014: 0x0502 instead
[ 13.674599] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b018: 0xbf85 instead
[ 13.692594] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b01c: 0x584a instead
[ 13.710884] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b020: 0x7474 instead
[ 13.728881] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b024: 0x31ff instead
[ 15.178914] Oops: kernel access of bad area, sig: 11 [#1]
[ 15.189159] NIP: C0113524 LR: C0114128 CTR: C0113524
[ 15.199017] REGS: c3cafcd0 TRAP: 0300 Not tainted (2.6.18-buildroot)
[ 15.212119] MSR: 00009032 <EE,ME,IR,DR> CR: 22008028 XER: 0000005F
[ 15.224743] DAR: FF80101B, DSISR: C0000000
[ 15.232877] TASK = c036e410[280] 'jffs2_gcd_mtd1' THREAD: c3cae000
[ 15.244778] GPR00: 00000000 C3CAFD80 C036E410 FF800FFF C3C2E678
00000000 C0352A44 E67B3F7B
[ 15.261366] GPR08: 000DF464 C01AF99C FF800FFF C0113524 22008024
00000000 C3CAFE38 00000000
[ 15.277955] GPR16: C3CAFE24 C01C0000 C3CAFDA8 00000000 C3CAFE28
C3C2E640 C0352A20 00000000
[ 15.294544] GPR24: 000DF464 C3C2E640 00000028 00000000 000DF464
C3C2E678 C03FEC14 C3C2E678
[ 15.311479] NIP [C0113524] put_chip+0xa0/0x2e8
[ 15.320294] LR [C0114128] cfi_intelext_read+0x1a0/0x240
[ 15.330656] Call Trace:
[ 15.335509] [C3CAFD80] [C3C2E640] 0xc3c2e640 (unreliable)
[ 15.346223] [C3CAFDA0] [C0114128] cfi_intelext_read+0x1a0/0x240
[ 15.357974] [C3CAFDF0] [C010C8A0] part_read+0x84/0xe0
[ 15.367997] [C3CAFE10] [C00B6AD4]
jffs2_do_read_inode_internal+0x12c/0x1124
[ 15.381821] [C3CAFE90] [C00B7B30] jffs2_do_crccheck_inode+0x64/0xc0
[ 15.394262] [C3CAFF00] [C00BBF9C] jffs2_garbage_collect_pass+0x194/0x8a4
[ 15.407568] [C3CAFF50] [C00BDE04] jffs2_garbage_collect_thread+0xa8/0x178
[ 15.421046] [C3CAFFF0] [C000514C] kernel_thread+0x44/0x60
[ 15.431745] Instruction dump:
[ 15.437622] 3863a000 4beffdf5 387f001c 38800003 38a00001 38c00000
4befb5d5 80010024
[ 15.453000] 83e1001c 38210020 7c0803a6 4e800020 <800a001c> 2f800000
419effd0 7d435378
[ 15.470060] VFS: Mounted root (jffs2 filesystem).
[ 15.479675] Freeing unused kernel memory: 92k init
[ 15.488661] jffs2_lookup()
[ 15.493994] jffs2_read_inode(): inode->i_ino == 3
[ 15.503383] [JFFS2 DBG] (1) jffs2_do_read_inode: read inode #3
[ 15.514963] [JFFS2 DBG] (1) jffs2_do_read_inode_internal: ino #3
nlink is 1
[ 15.528803] [JFFS2 DBG] (1) jffs2_get_inode_nodes: ino #3
[ 15.539699] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b868(2).
[ 15.554222] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4ee0
[ 15.565732] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "zero",
ino #166
[ 15.579790] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b7f0(2).
[ 15.594479] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4fe0
[ 15.605904] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent
"urandom", ino #165
[ 15.620569] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b778(2).
[ 15.635260] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca43e0
[ 15.646848] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp9",
ino #164
[ 15.661007] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
0x04b700(2).
[ 15.675722] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4760
...
...
...
[ 20.078514] jffs2_read_inode(): inode->i_ino == 12
[ 20.087997] [JFFS2 DBG] (1) jffs2_do_read_inode: read inode #12
[ 20.099752] [JFFS2 DBG] (1) jffs2_do_read_inode: waiting for ino #12
in state 1
HELP!
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-14 4:08 ` Robin Gilks
@ 2006-11-14 7:59 ` Joakim Tjernlund
2006-11-14 21:17 ` Robin Gilks
2006-11-14 22:59 ` Robin Gilks
2006-11-14 19:46 ` Carlos Munoz
1 sibling, 2 replies; 10+ messages in thread
From: Joakim Tjernlund @ 2006-11-14 7:59 UTC (permalink / raw)
To: robin.gilks; +Cc: MTD mail list
Robin Gilks wrote:
> Artem Bityutskiy wrote:
>
>
>> So the crash is somewhere in the CFI code. You should try to dig it and
>> realize why it oopses.
>>
>
> Pretty much at the same point except now its the garbage collector
> crashing and leaving a lock on an inode so the kernel stalls.
>
> No clues as to what is going on though :-(
>
>
> HELP!
>
>
You should apply the bug fix I sent the other day(Re: cfi_cmd0001.c
broken w.r.t Erase Suspend solved, patch included).
This closes nasty bug that I think should be applied to linus tree ASAP.
Jocke
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-14 7:59 ` Joakim Tjernlund
@ 2006-11-14 21:17 ` Robin Gilks
2006-11-14 22:59 ` Robin Gilks
1 sibling, 0 replies; 10+ messages in thread
From: Robin Gilks @ 2006-11-14 21:17 UTC (permalink / raw)
To: Joakim Tjernlund; +Cc: MTD mail list
Joakim Tjernlund wrote:
> Robin Gilks wrote:
>> Artem Bityutskiy wrote:
>>
>>
>>> So the crash is somewhere in the CFI code. You should try to dig it and
>>> realize why it oopses.
>>>
>> Pretty much at the same point except now its the garbage collector
>> crashing and leaving a lock on an inode so the kernel stalls.
>>
>> No clues as to what is going on though :-(
>>
>>
>> HELP!
>>
>>
> You should apply the bug fix I sent the other day(Re: cfi_cmd0001.c
> broken w.r.t Erase Suspend solved, patch included).
> This closes nasty bug that I think should be applied to linus tree ASAP.
>
> Jocke
Patch already applied a couple of days ago - I've been grasping at
straws for 4 days now!! I think I might be getting further with my
bdi2000 to get better debug info anyway.
Thanks
--
Robin
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-14 7:59 ` Joakim Tjernlund
2006-11-14 21:17 ` Robin Gilks
@ 2006-11-14 22:59 ` Robin Gilks
1 sibling, 0 replies; 10+ messages in thread
From: Robin Gilks @ 2006-11-14 22:59 UTC (permalink / raw)
To: Joakim Tjernlund; +Cc: MTD mail list
Joakim Tjernlund wrote:
> Robin Gilks wrote:
>> Artem Bityutskiy wrote:
>>
>>
>>> So the crash is somewhere in the CFI code. You should try to dig it and
>>> realize why it oopses.
>>>
>> Pretty much at the same point except now its the garbage collector
>> crashing and leaving a lock on an inode so the kernel stalls.
>>
>> No clues as to what is going on though :-(
>>
>>
>> HELP!
>>
>>
> You should apply the bug fix I sent the other day(Re: cfi_cmd0001.c
> broken w.r.t Erase Suspend solved, patch included).
> This closes nasty bug that I think should be applied to linus tree ASAP.
>
> Jocke
The plot thickens - I'm now getting the following crash at boot about
60% of the time (the other 40% is as previously reported) - still not
had a single successful boot!!).
[ 14.528955] Oops: kernel access of bad area, sig: 11 [#1]
[ 14.539250] NIP: C00B3494 LR: C00B9684 CTR: 00000000
[ 14.549111] REGS: c0327a70 TRAP: 0300 Not tainted (2.6.18-buildroot)
[ 14.562213] MSR: 00009032 <EE,ME,IR,DR> CR: 22002022 XER: 2000005F
[ 14.574838] DAR: FF8010EB, DSISR: C0000000
[ 14.582968] TASK = c0324b40[1] 'swapper' THREAD: c0326000
[ 14.593316] GPR00: C00BA60C C0327B20 C0324B40 FF800FFF 00000139
D81A5184 C0230000 00000000
[ 14.609904] GPR08: C01AD0F0 000002A0 84511AD8 DA2B0DD8 82002022
00000000 03FF9000 C01C0000
[ 14.626494] GPR16: C3C9FF50 00000000 00000000 00000000 C3CA4395
0000000A 000F3FD0 0000000F
[ 14.643082] GPR24: 000F0000 00010000 C5183FD0 00000139 C5180000
00000139 C3C01C00 000F3FD0
[ 14.660018] NIP [C00B3494] jffs2_get_ino_cache+0x0/0x4c
[ 14.670388] LR [C00B9684] jffs2_scan_make_ino_cache+0x1c/0xa8
[ 14.681787] Call Trace:
[ 14.686639] [C0327B20] [00010000] 0x10000 (unreliable)
[ 14.696835] [C0327B40] [C00BA60C] jffs2_scan_medium+0xefc/0xfe4
[ 14.708587] [C0327BC0] [C00BCA7C] jffs2_do_mount_fs+0x180/0x8ec
[ 14.720337] [C0327BF0] [C00BEF0C] jffs2_do_fill_super+0xbc/0x244
[ 14.732260] [C0327C10] [C00BF718] jffs2_get_sb_mtd+0xfc/0x19c
[ 14.743665] [C0327C50] [C00BF9C4] jffs2_get_sb+0x180/0x228
[ 14.754551] [C0327CE0] [C005A42C] vfs_kern_mount+0x5c/0xbc
[ 14.765438] [C0327D00] [C005A4C8] do_kern_mount+0x3c/0x60
[ 14.776151] [C0327D30] [C0072374] do_mount+0x394/0x680
[ 14.786346] [C0327EB0] [C00729F8] sys_mount+0x98/0xe8
[ 14.796369] [C0327EF0] [C021E864] do_mount_root+0x2c/0xc4
[ 14.807082] [C0327F10] [C021E9C0] mount_block_root+0xc4/0x248
[ 14.818487] [C0327F60] [C021EE3C] prepare_namespace+0xb8/0x190
[ 14.830065] [C0327F80] [C0002494] init+0x254/0x2e4
[ 14.839568] [C0327FF0] [C000514C] kernel_thread+0x44/0x60
[ 14.850268] Instruction dump:
[ 14.856145] 9421fff0 386300e4 38c00000 90010014 b0a4000a 38800003
38a00001 4bf5b661
[ 14.871523] 80010014 38210010 7c0803a6 4e800020 <816300ec> 548915fa
7c69582e 2f030000
[ 14.888894] Kernel panic - not syncing: Attempted to kill init!
[ 14.900725] <0>Rebooting in 1 seconds..
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Kernel oops in jffs2 mount - any ideas?
2006-11-14 4:08 ` Robin Gilks
2006-11-14 7:59 ` Joakim Tjernlund
@ 2006-11-14 19:46 ` Carlos Munoz
1 sibling, 0 replies; 10+ messages in thread
From: Carlos Munoz @ 2006-11-14 19:46 UTC (permalink / raw)
To: robin.gilks; +Cc: MTD mail list
Robin Gilks wrote:
>Artem Bityutskiy wrote:
>
>
>
>>So the crash is somewhere in the CFI code. You should try to dig it and
>>realize why it oopses.
>>
>>
>
>Pretty much at the same point except now its the garbage collector
>crashing and leaving a lock on an inode so the kernel stalls.
>
>No clues as to what is going on though :-(
>
>[ 13.591311] jffs2_scan_eraseblock(): Node at 0x0004aff8 {0x1985,
>0xe001, 0x0000002d) has invalid CRC 0xd7218112 (calculated 0x05000000)
>[ 13.617310] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b000: 0xd721 instead
>[ 13.638175] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b010: 0x4558 instead
>[ 13.656489] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b014: 0x0502 instead
>[ 13.674599] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b018: 0xbf85 instead
>[ 13.692594] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b01c: 0x584a instead
>[ 13.710884] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b020: 0x7474 instead
>[ 13.728881] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
>at 0x0004b024: 0x31ff instead
>[ 15.178914] Oops: kernel access of bad area, sig: 11 [#1]
>[ 15.189159] NIP: C0113524 LR: C0114128 CTR: C0113524
>[ 15.199017] REGS: c3cafcd0 TRAP: 0300 Not tainted (2.6.18-buildroot)
>[ 15.212119] MSR: 00009032 <EE,ME,IR,DR> CR: 22008028 XER: 0000005F
>[ 15.224743] DAR: FF80101B, DSISR: C0000000
>[ 15.232877] TASK = c036e410[280] 'jffs2_gcd_mtd1' THREAD: c3cae000
>[ 15.244778] GPR00: 00000000 C3CAFD80 C036E410 FF800FFF C3C2E678
>00000000 C0352A44 E67B3F7B
>[ 15.261366] GPR08: 000DF464 C01AF99C FF800FFF C0113524 22008024
>00000000 C3CAFE38 00000000
>[ 15.277955] GPR16: C3CAFE24 C01C0000 C3CAFDA8 00000000 C3CAFE28
>C3C2E640 C0352A20 00000000
>[ 15.294544] GPR24: 000DF464 C3C2E640 00000028 00000000 000DF464
>C3C2E678 C03FEC14 C3C2E678
>[ 15.311479] NIP [C0113524] put_chip+0xa0/0x2e8
>[ 15.320294] LR [C0114128] cfi_intelext_read+0x1a0/0x240
>[ 15.330656] Call Trace:
>[ 15.335509] [C3CAFD80] [C3C2E640] 0xc3c2e640 (unreliable)
>[ 15.346223] [C3CAFDA0] [C0114128] cfi_intelext_read+0x1a0/0x240
>[ 15.357974] [C3CAFDF0] [C010C8A0] part_read+0x84/0xe0
>[ 15.367997] [C3CAFE10] [C00B6AD4]
>jffs2_do_read_inode_internal+0x12c/0x1124
>[ 15.381821] [C3CAFE90] [C00B7B30] jffs2_do_crccheck_inode+0x64/0xc0
>[ 15.394262] [C3CAFF00] [C00BBF9C] jffs2_garbage_collect_pass+0x194/0x8a4
>[ 15.407568] [C3CAFF50] [C00BDE04] jffs2_garbage_collect_thread+0xa8/0x178
>[ 15.421046] [C3CAFFF0] [C000514C] kernel_thread+0x44/0x60
>[ 15.431745] Instruction dump:
>[ 15.437622] 3863a000 4beffdf5 387f001c 38800003 38a00001 38c00000
>4befb5d5 80010024
>[ 15.453000] 83e1001c 38210020 7c0803a6 4e800020 <800a001c> 2f800000
>419effd0 7d435378
>[ 15.470060] VFS: Mounted root (jffs2 filesystem).
>[ 15.479675] Freeing unused kernel memory: 92k init
>[ 15.488661] jffs2_lookup()
>[ 15.493994] jffs2_read_inode(): inode->i_ino == 3
>[ 15.503383] [JFFS2 DBG] (1) jffs2_do_read_inode: read inode #3
>[ 15.514963] [JFFS2 DBG] (1) jffs2_do_read_inode_internal: ino #3
>nlink is 1
>[ 15.528803] [JFFS2 DBG] (1) jffs2_get_inode_nodes: ino #3
>[ 15.539699] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
>0x04b868(2).
>[ 15.554222] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4ee0
>[ 15.565732] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "zero",
>ino #166
>[ 15.579790] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
>0x04b7f0(2).
>[ 15.594479] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4fe0
>[ 15.605904] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent
>"urandom", ino #165
>[ 15.620569] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
>0x04b778(2).
>[ 15.635260] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca43e0
>[ 15.646848] [JFFS2 DBG] (1) jffs2_add_fd_to_list: add dirent "ttyp9",
>ino #164
>[ 15.661007] [JFFS2 DBG] (1) jffs2_get_inode_nodes: read 40 bytes at
>0x04b700(2).
>[ 15.675722] [JFFS2 DBG] (1) jffs2_alloc_full_dirent: c3ca4760
>...
>...
>...
>[ 20.078514] jffs2_read_inode(): inode->i_ino == 12
>[ 20.087997] [JFFS2 DBG] (1) jffs2_do_read_inode: read inode #12
>[ 20.099752] [JFFS2 DBG] (1) jffs2_do_read_inode: waiting for ino #12
>in state 1
>
>HELP!
>
>
>
I was seeing the same error:
[ 13.617310] jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found
at 0x0004b000: 0xd721 instead
and it turned out to be the flash I was using was mis configured. I was
using the SST 39VF3201 flash which supports erase sectors (4KB) and
erase blocks (64KB). The jffs2 file system was built with an erase block
size of 64KB. However, cfi_cmdset_0002.c was hard coded to use erase
sectors (4KB). I modified the do_erase_oneblock() function as follows:
#ifdef ERASE_BLOCK_SIZE_4KB
map_write(map, CMD(0x30), adr);
#else
map_write(map, CMD(0x50), adr);
#endif
The datasheet specified that 0x30 is used for sector erase (4KB) and
0x50 for block erase (64KB). You need to look at the datasheet for your
part and verify the command sequence.
Also, since I use jedec probing instead of cfi I needed to add the
mapping for the flash to jedec_probe.c:
}, {
.mfr_id = MANUFACTURER_SST, /* should be CFI */
.dev_id = SST39VF3201,
.name = "SST 39VF3201",
.uaddr = {
[0] = MTD_UADDR_0x5555_0x2AAA, /* x8 */
[1] = MTD_UADDR_0x5555_0x2AAA /* x16 */
},
.DevSize = SIZE_4MiB,
.CmdSet = P_ID_AMD_STD,
.NumEraseRegions= 2,
.regions = {
ERASEINFO(0x8000,2),
ERASEINFO(0x10000,63)
}
}, {
Note the the first block has to regions of 32KB each and the rest of the
blocks are 64KB. Again, look at your datasheet to configure the erase
regions.
Carlos
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-14 22:59 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-10 0:24 Kernel oops in jffs2 mount - any ideas? Robin Gilks
2006-11-10 8:09 ` Artem Bityutskiy
2006-11-13 3:24 ` Robin Gilks
2006-11-13 9:54 ` Artem Bityutskiy
2006-11-13 23:00 ` Robin Gilks
2006-11-14 4:08 ` Robin Gilks
2006-11-14 7:59 ` Joakim Tjernlund
2006-11-14 21:17 ` Robin Gilks
2006-11-14 22:59 ` Robin Gilks
2006-11-14 19:46 ` Carlos Munoz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox