unable to mount flash file system from nand in p1022

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

unable to mount flash file system from nand in p1022

1,256 Views
somyaaggarwal08
Contributor II

HI,

 I am using QOIRQ sdk version 1.8 for p1022 demo board. I am unable to mount jffs2 file system from nand flash.

Please see the error log below:

NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit), 1024MiB, page size: 2048, OOB size: 64
Bad block table found at page 524160, version 0x01
Bad block table found at page 524032, version 0x01
6 ofpart partitions found on MTD device ff800000.flash
Creating 6 MTD partitions on "ff800000.flash":
0x000000000000-0x000002000000 : "u-boot-nand"
ftl_cs: FTL header not found.
0x000002000000-0x000012000000 : "jffs2-nand"
ftl_cs: FTL header not found.
0x000012000000-0x000022000000 : "ramdisk-nand"
ftl_cs: FTL header not found.
0x000022000000-0x000026000000 : "kernel-nand"
ftl_cs: FTL header not found.
0x000026000000-0x000027000000 : "dtb-nand"
ftl_cs: FTL header not found.
0x000027000000-0x000040000000 : "reserved-nand"
ftl_cs: FTL header not found.
eLBC NAND device at 0xff800000, bank 1
fsl_espi ffe07000.spi: master is unqueued, this is deprecated
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
m25p80 spi32766.0: s25sl12801 (16384 Kbytes)
4 ofpart partitions found on MTD device spi32766.0
Creating 4 MTD partitions on "spi32766.0":
ata1.00: ATA-8: WDC WD3200BPVT-00JJ5T0, 01.01A01, max UDMA/133
ata1.00: 625142448 sectors, multi 0: LBA48 NCQ (depth 16/32)
0x000000000000-0x000000100000 : "u-boot-spi"
ata1.00: configured for UDMA/133
ftl_cs: FTL header not found.
0x000000100000-0x000000600000 : "kernel-spi"
ftl_cs: FTL header not found.
scsi 0:0:0:0: Direct-Access ATA WDC WD3200BPVT-0 01.0 PQ: 0 ANSI: 5
0x000000600000-0x000000700000 : "dtb-spi"
ftl_cs: FTL header not found.
0x000000700000-0x000001000000 : "file system-spi"
sd 0:0:0:0: [sda] 625142448 512-byte logical blocks: (320 GB/298 GiB)
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
ftl_cs: FTL header not found.
fsl_espi ffe07000.spi: at 0xf10d0000 (irq = 59)
libphy: Fixed MDIO Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
libphy: Freescale PowerQUICC MII Bus: probed
fsl-gianfar ethernet.1: enabled errata workarounds, flags: 0x4
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
fsl-gianfar ethernet.1 eth0: mac: 00:00:00:00:00:01
fsl-gianfar ethernet.1 eth0: Running with NAPI enabled
fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[0]: 256
fsl-gianfar ethernet.1 eth0: RX BD ring size for Q[1]: 256
fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[0]: 256
fsl-gianfar ethernet.1 eth0: TX BD ring size for Q[1]: 256
fsl-gianfar ethernet.2: enabled errata workarounds, flags: 0x4
fsl-gianfar ethernet.2 eth1: mac: 00:00:00:00:00:02
fsl-gianfar ethernet.2 eth1: Running with NAPI enabled
fsl-gianfar ethernet.2 eth1: RX BD ring size for Q[0]: 256
fsl-gianfar ethernet.2 eth1: RX BD ring size for Q[1]: 256
fsl-gianfar ethernet.2 eth1: TX BD ring size for Q[0]: 256
fsl-gianfar ethernet.2 eth1: TX BD ring size for Q[1]: 256
pps pps0: new PPS source ptp0
ucc_geth_driver: QE UCC Gigabit Ethernet Controller
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
/soc@ffe00000/usb@22000: Invalid 'dr_mode' property, fallback to host mode
fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller
fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1
fsl-ehci fsl-ehci.0: irq 28, io mem 0xffe22000
fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
i2c /dev entries driver
mpc-i2c ffe03000.i2c: timeout 1000000 us
mpc-i2c ffe03100.i2c: timeout 1000000 us
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
/soc@ffe00000/sdhc@2e000: voltage-ranges unspecified
ata2: No Device OR PHYRDY change,Hstatus = 0xa0000000
ata2: SATA link down (SStatus 0 SControl 300)
mmc0: SDHCI controller on ffe2e000.sdhc [ffe2e000.sdhc] using DMA
talitos ffe30000.crypto: hwrng
talitos ffe30000.crypto: max_xor_srcs 6
talitos ffe30000.crypto: fsl,sec3.3 algorithms registered in /proc/crypto
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
snd-soc-p1022ds snd-soc-p1022ds.0: ASoC: platform ffe0c100.dma-channel not registered
snd-soc-p1022ds snd-soc-p1022ds.0: could not register card
platform snd-soc-p1022ds.0: Driver snd-soc-p1022ds requests probe deferral
ipip: IPv4 over IPv4 tunneling driver
TCP: cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
Key type dns_resolver registered
snd-soc-p1022ds snd-soc-p1022ds.0: wm8776-hifi-playback <-> ffe15000.ssi mapping ok
snd-soc-p1022ds snd-soc-p1022ds.0: wm8776-hifi-capture <-> ffe15000.ssi mapping ok
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
ALSA device list:
#0: snd-soc-p1022ds
jffs2: Empty flash at 0x0001fffc ends at 0x00020000
jffs2: Empty flash at 0x0005fffc ends at 0x00060000
jffs2: Empty flash at 0x0009fffc ends at 0x000a0000
jffs2: Empty flash at 0x000dffdc ends at 0x000e0000
jffs2: Empty flash at 0x0011fffc ends at 0x00120000
jffs2: Empty flash at 0x0015fffc ends at 0x00160000
jffs2: Empty flash at 0x0019fffc ends at 0x001a0000
jffs2: Empty flash at 0x001dfffc ends at 0x001e0000
jffs2: Empty flash at 0x0021fffc ends at 0x00220000
jffs2: Empty flash at 0x0025ff50 ends at 0x00260000
jffs2: Empty flash at 0x0029fffc ends at 0x002a0000
jffs2: Empty flash at 0x0031fffc ends at 0x00320000
jffs2: Empty flash at 0x0035fffc ends at 0x00360000
jffs2: Empty flash at 0x0039fffc ends at 0x003a0000
jffs2: Empty flash at 0x003dfffc ends at 0x003e0000
VFS: Mounted root (jffs2 filesystem) on device 31:8.
devtmpfs: mounted
Freeing unused kernel memory: 268K (c07a3000 - c07e6000)
INIT: version 2.88 booting
Starting udev
udevd[1486]: starting version 182
Starting Bootlog daemon: bootlogd.
Populating dev cache
fsl-lbc ffe05000.localbus: Parity or Uncorrectable ECC error: LTESR 0x20000001
fsl,elbc-fcm-nand ff800000.nand: command failed: fir 4125e000 fcr 300000 status 20000001 mdr 20
jffs2: mtd->read(0xa1 bytes from 0x407fb8) returned ECC error
jffs2: error: (2171) __jffs2_dbg_prewrite_paranoia_check: argh, about to write node to 0x407fb8 on flash, but there are data already there. Th.
------------[ cut here ]------------
kernel BUG at fs/jffs2/debug.c:154!
Oops: Exception in kernel mode, sig: 5 [#1]
SMP NR_CPUS=8 P1022 DS
Modules linked in:
CPU: 1 PID: 2171 Comm: tar Not tainted 3.12.37-rt51-QorIQ-SDK-V1.8+gf488de6 #1
task: ef2eb5c0 ti: ef528000 task.ti: ef528000
NIP: c020240c LR: c020240c CTR: 00000000
REGS: ef529b80 TRAP: 0700 Not tainted (3.12.37-rt51-QorIQ-SDK-V1.8+gf488de6)
MSR: 00029000 <CE,EE,ME> CR: 40024f44 XER: 00000000

GPR00: 00029000 ef529c30 ef2eb5c0 ef001c00 01199000 ef4bad80 c020240c c07e5c24
GPR08: c08339c0 00000001 c0f50740 c07e5c24 01199000 10132260 00000000 00000000
GPR16: 00000000 00000000 00000006 c0715760 c07157a8 000000a1 00000002 000000a4
GPR24: 00000003 00000000 c741de00 0000005d ef271400 00407fb8 ef4bad80 000000a1
NIP [c020240c] __jffs2_dbg_prewrite_paranoia_check+0x124/0x128
LR [c020240c] __jffs2_dbg_prewrite_paranoia_check+0x124/0x128
Call Trace:
[ef529c30] [c0202404] __jffs2_dbg_prewrite_paranoia_check+0x11c/0x128 (unreliable)
[ef529c60] [c01f9b34] jffs2_write_dnode+0x124/0x53c
[ef529cd0] [c01fa780] jffs2_write_inode_range+0x328/0x418
[ef529d40] [c01f3c18] jffs2_write_end+0x1a0/0x38c
[ef529d90] [c00ac3b0] generic_file_buffered_write+0x128/0x264
[ef529e00] [c00ad7f4] __generic_file_aio_write+0x268/0x490
[ef529e60] [c00ada90] generic_file_aio_write+0x74/0x120
[ef529e90] [c00f43a8] do_sync_write+0x70/0xc8
[ef529ef0] [c00f4c98] vfs_write+0xc4/0x1b8
[ef529f10] [c00f5320] SyS_write+0x4c/0xac
[ef529f40] [c000f0ec] ret_from_syscall+0x0/0x3c
--- Exception: c01 at 0xfd7268c
LR = 0x10007134
Instruction dump:
7fa6eb78 7cffea14 38a500c0 38638b6c 4cc63182 483dbb3d 7fc3f378 7fe4fb78
7fa5eb78 4bfffdd1 7fc3f378 4beecb45 <0fe00000> 9421ff90 7c0802a6 bfc10068
---[ end trace 955bf22a2cd3f007 ]---

[JFFS2 DBG] (2170) jffs2_do_read_inode: read inode #72
[JFFS2 DBG] (2170) jffs2_do_read_inode_internal: ino #72 pino/nlink is 1
[JFFS2 DBG] (2170) jffs2_get_inode_nodes: ino #72
[JFFS2 DBG] (2170) jffs2_get_inode_nodes: read 740 bytes at 0x0be51c(2).
Trace/breakpoint[JFFS2 DBG] (2170) jffs2_add_tn_to_tree: insert fragment 0x00-0x0c, ver 1 at 000be51c
trap
[JFFS2 DBG] (2170) jffs2_lookup_tn: root c7055bd8, offset 0
[JFFS2 DBG] (2170) jffs2_get_inode_nodes: nodes of inode #72 were read, the highest version is 1, latest_mctime 0, mctime_ver 0.
[JFFS2 DBG] (2170) jffs2_build_inode_fragtree: tn ef64db68 ver 1 range 0x0-0xc ov 0
[JFFS2 DBG] (2170) ver_insert: Link new node at c7055bf4 (root is c7055bf4)
[JFFS2 DBG] (2170) jffs2_build_inode_fragtree: Add ef64db68 (v 1, 0x0-0xc, ov 0) to fragtree
[JFFS2 DBG] (2170) jffs2_add_full_dnode_to_inode: adding node 0x00-0x0c @0x000be51c on flash, newfrag *ef4f9798
[JFFS2 DBG] (2170) jffs2_do_read_inode_internal: symlink's target '/bin/busybox' cached
[JFFS2 DBG] (2172) jffs2_do_read_inode: read inode #274
[JFFS2 DBG] (2172) jffs2_do_read_inode_internal: ino #274 pino/nlink is 1
[JFFS2 DBG] (2172) jffs2_get_inode_nodes: ino #274
[JFFS2 DBG] (2172) jffs2_get_inode_nodes: read 1932 bytes at 0x0cf074(0).
[JFFS2 DBG] (2172) read_dnode: the node has no data.
[JFFS2 DBG] (2172) jffs2_add_tn_to_tree: insert fragment 0x00-0x00, ver 1 at 000cf074
[JFFS2 DBG] (2172) jffs2_add_tn_to_tree: keep new mdata with ver 1
[JFFS2 DBG] (2172) jffs2_get_inode_nodes: nodes of inode #274 were read, the highest version is 1, latest_mctime 0, mctime_ver 0.
[JFFS2 DBG] (2172) jffs2_build_inode_fragtree: potential mdata is ver 1 at ef64db68
[JFFS2 DBG] (2172) jffs2_truncate_fragtree: truncating fragtree to 0x00000000 bytes

Labels (1)
0 Kudos
2 Replies

757 Views
somyaaggarwal08
Contributor II

HI,

I would also like to further add that same jjs2 image can be mounted on nor flash successfully.

I have used flasherase and nandwrite utils to mount the jffs2 image on nand.It would be really helpful if you could specify the exact procedure of mounting jffs2 on nand flash.In the above thread I have also attached the error log related to jffs2 on nand flash

0 Kudos

757 Views
somyaaggarwal08
Contributor II

Any update on the above query?

0 Kudos