<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: UBI not mountable after changing ECC and NFC Driver in Vybrid Processors</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307330#M2842</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you at least look at the driver I referenced above.&amp;nbsp; You use &lt;EM&gt;hardware ECC&lt;/EM&gt;, and the stock TimeSys driver has some errors; like it never actually tested that the ECC failed and hence when flash wears, it will report it good when it is really bad.&amp;nbsp; With the hardware ECC, you don't have a choice where it is placed.&amp;nbsp; The controller will write it automatically at the end of the OOB data.&amp;nbsp; It sounds like you have the &lt;EM&gt;reading&lt;/EM&gt; working, but when you write, the hardware ECC may place data at the wrong point.&amp;nbsp; It is helpful to use &lt;EM&gt;nanddump&lt;/EM&gt; with the &lt;EM&gt;oob&lt;/EM&gt; information to get what the controller hw ecc wrote (and where).&amp;nbsp; The hardware ECC may attempt to correct data and fail.&amp;nbsp; It reports the status, which the stock Timesys driver doesn't handle because of the endian issue (see link above).&amp;nbsp; So, if the hardware ECC is not working, the first write/read may give some corrupt data, even though the MTD driver reports nothing.&amp;nbsp; Also, I am not sure about sub-page handling with the TimeSys (originally by Freescale) driver, which UBI/UbiFS wants to use.&amp;nbsp; This will also come into play on the first writes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 18:56:02 GMT</pubDate>
    <dc:creator>billpringlemeir</dc:creator>
    <dc:date>2014-05-30T18:56:02Z</dc:date>
    <item>
      <title>UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307325#M2837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we're trying to change the nfc driver for the vybrid processor. Drivers for NFC in Uboot are already changed. This works already and I'm able to write my own ECC where I want it to be.&lt;/P&gt;&lt;P&gt;In linux kernel I try the same thing. I changed the driver to support our ECC and raw reads. The problem now is that I'm getting an error message when I try to boot.&lt;/P&gt;&lt;P&gt;We're using ubi as filesystem. I writing the filesystem into TargetFS by Uboot. Also I make a ubi partition etc. Then I write the ubifs image into my ubi partition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Uncompressing Linux... done, booting the kernel.&lt;/P&gt;&lt;P&gt;Linux version 3.0.15-F+S+ (zeiler@VBFedora14) (gcc version 4.7.2 (crosstool-NG 1.18.0 - for F+S boards and modules) ) #189 Wed May 28 14:50:32 CEST 2014&lt;/P&gt;&lt;P&gt;CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c53c7d&lt;/P&gt;&lt;P&gt;CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache&lt;/P&gt;&lt;P&gt;Machine: F+S Elektronik Systeme GmbH, armStoneA5&lt;/P&gt;&lt;P&gt;Memory policy: ECC disabled, Data cache writeback&lt;/P&gt;&lt;P&gt;Built 1 zonelists in Zone order, mobility grouping on.&amp;nbsp; Total pages: 65024&lt;/P&gt;&lt;P&gt;Kernel command line: console=ttymxc1,115200 login_tty=ttymxc1,115200 mtdparts=NAND:256k(NBoot)ro,768k(UserDef),256k(Refresh)ro,512k(UBoot)ro,256k(UBootEnv)ro,4m(Kernel)ro,-(TargetFS) rootfstype=ubifs ubi.mtd=TargetFS root=ubi0:rootfs ro init=linuxrc&lt;/P&gt;&lt;P&gt;PID hash table entries: 1024 (order: 0, 4096 bytes)&lt;/P&gt;&lt;P&gt;Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)&lt;/P&gt;&lt;P&gt;Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)&lt;/P&gt;&lt;P&gt;Memory: 256MB = 256MB total&lt;/P&gt;&lt;P&gt;Memory: 254120k/254120k available, 8024k reserved, 0K highmem&lt;/P&gt;&lt;P&gt;Virtual kernel memory layout:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vector&amp;nbsp; : 0xffff0000 - 0xffff1000&amp;nbsp;&amp;nbsp; (&amp;nbsp;&amp;nbsp; 4 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixmap&amp;nbsp; : 0xfff00000 - 0xfffe0000&amp;nbsp;&amp;nbsp; ( 896 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DMA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; : 0xf4600000 - 0xffe00000&amp;nbsp;&amp;nbsp; ( 184 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vmalloc : 0x90800000 - 0xf2000000&amp;nbsp;&amp;nbsp; (1560 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; lowmem&amp;nbsp; : 0x80000000 - 0x90000000&amp;nbsp;&amp;nbsp; ( 256 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; modules : 0x7f000000 - 0x80000000&amp;nbsp;&amp;nbsp; (&amp;nbsp; 16 MB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .init : 0x80008000 - 0x8002e000&amp;nbsp;&amp;nbsp; ( 152 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .text : 0x8002e000 - 0x80528000&amp;nbsp;&amp;nbsp; (5096 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .data : 0x80528000 - 0x8055c860&amp;nbsp;&amp;nbsp; ( 211 kB)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .bss : 0x8055c884 - 0x80599a08&amp;nbsp;&amp;nbsp; ( 245 kB)&lt;/P&gt;&lt;P&gt;SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1&lt;/P&gt;&lt;P&gt;NR_IRQS:432&lt;/P&gt;&lt;P&gt;MVF GPIO hardware&lt;/P&gt;&lt;P&gt;sched_clock: 64 bits at 132MHz, resolution 7ns, wraps every 34359ms&lt;/P&gt;&lt;P&gt;Console: colour dummy device 80x30&lt;/P&gt;&lt;P&gt;Calibrating delay loop... 262.96 BogoMIPS (lpj=1314816)&lt;/P&gt;&lt;P&gt;pid_max: default: 32768 minimum: 301&lt;/P&gt;&lt;P&gt;Mount-cache hash table entries: 512&lt;/P&gt;&lt;P&gt;CPU: Testing write buffer coherency: ok&lt;/P&gt;&lt;P&gt;devtmpfs: initialized&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 16&lt;/P&gt;&lt;P&gt;mcf_edma: Initialized successfully&lt;/P&gt;&lt;P&gt;armStoneA5 Board Rev. 1.10&lt;/P&gt;&lt;P&gt;Using UART1 for UART port A (TXD/RXD/RTS/CTS)&lt;/P&gt;&lt;P&gt;Using UART2 for UART port B (TXD/RXD)&lt;/P&gt;&lt;P&gt;Using UART3 for UART port C (TXD/RXD)&lt;/P&gt;&lt;P&gt;Booting on CPU #0 CA5 r0p1 on port #2, 2 CPU(s)&lt;/P&gt;&lt;P&gt;Level 1 cache: I: 32768 Bytes/2 ways, D: 32768 Bytes/4 ways&lt;/P&gt;&lt;P&gt;Level 2 cache: 0 bytes/0 ways&lt;/P&gt;&lt;P&gt;IMX usb wakeup probe. id=1&lt;/P&gt;&lt;P&gt;IMX usb wakeup probe. id=0&lt;/P&gt;&lt;P&gt;bio: create slab &amp;lt;bio-0&amp;gt; at 0&lt;/P&gt;&lt;P&gt;SCSI subsystem initialized&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver usbfs&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver hub&lt;/P&gt;&lt;P&gt;usbcore: registered new device driver usb&lt;/P&gt;&lt;P&gt;i2c-gpio i2c-gpio.4: using pins 119 (SDA) and 118 (SCL)&lt;/P&gt;&lt;P&gt;Advanced Linux Sound Architecture Driver Version 1.0.24.&lt;/P&gt;&lt;P&gt;Switching to clocksource global_timer&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 2&lt;/P&gt;&lt;P&gt;IP route cache hash table entries: 2048 (order: 1, 8192 bytes)&lt;/P&gt;&lt;P&gt;TCP established hash table entries: 8192 (order: 4, 65536 bytes)&lt;/P&gt;&lt;P&gt;TCP bind hash table entries: 8192 (order: 3, 32768 bytes)&lt;/P&gt;&lt;P&gt;TCP: Hash tables configured (established 8192 bind 8192)&lt;/P&gt;&lt;P&gt;TCP reno registered&lt;/P&gt;&lt;P&gt;UDP hash table entries: 256 (order: 0, 4096 bytes)&lt;/P&gt;&lt;P&gt;UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 1&lt;/P&gt;&lt;P&gt;RPC: Registered named UNIX socket transport module.&lt;/P&gt;&lt;P&gt;RPC: Registered udp transport module.&lt;/P&gt;&lt;P&gt;RPC: Registered tcp transport module.&lt;/P&gt;&lt;P&gt;RPC: Registered tcp NFSv4.1 backchannel transport module.&lt;/P&gt;&lt;P&gt;Static Power Management for Freescale Vybrid&lt;/P&gt;&lt;P&gt;PM driver module loaded&lt;/P&gt;&lt;P&gt;squashfs: version 4.0 (2009/01/31) Phillip Lougher&lt;/P&gt;&lt;P&gt;JFFS2 version 2.2. (NAND) (SUMMARY)&amp;nbsp; Â© 2001-2006 Red Hat, Inc.&lt;/P&gt;&lt;P&gt;ROMFS MTD (C) 2007 Red Hat, Inc.&lt;/P&gt;&lt;P&gt;msgmni has been set to 496&lt;/P&gt;&lt;P&gt;io scheduler noop registered&lt;/P&gt;&lt;P&gt;io scheduler deadline registered&lt;/P&gt;&lt;P&gt;io scheduler cfq registered (default)&lt;/P&gt;&lt;P&gt;Console: switching to colour frame buffer device 100x60&lt;/P&gt;&lt;P&gt;fb0: Layer0 fb device registered successfully.&lt;/P&gt;&lt;P&gt;fb1:&amp;nbsp; fb device registered successfully.&lt;/P&gt;&lt;P&gt;fb2:&amp;nbsp; fb device registered successfully.&lt;/P&gt;&lt;P&gt;fb3:&amp;nbsp; fb device registered successfully.&lt;/P&gt;&lt;P&gt;Serial: MVF driver&lt;/P&gt;&lt;P&gt;IMX UART RTS/CTS enabled&lt;/P&gt;&lt;P&gt;IMX UART FIFO enabled&lt;/P&gt;&lt;P&gt;imx-uart.1: ttymxc1 at MMIO 0x40028000 (irq = 94) is a IMX&lt;/P&gt;&lt;P&gt;console [ttymxc1] enabled&lt;/P&gt;&lt;P&gt;IMX UART FIFO enabled&lt;/P&gt;&lt;P&gt;imx-uart.2: ttymxc2 at MMIO 0x40029000 (irq = 95) is a IMX&lt;/P&gt;&lt;P&gt;IMX UART FIFO enabled&lt;/P&gt;&lt;P&gt;imx-uart.3: ttymxc3 at MMIO 0x4002a000 (irq = 96) is a IMX&lt;/P&gt;&lt;P&gt;brd: module loaded&lt;/P&gt;&lt;P&gt;loop: module loaded&lt;/P&gt;&lt;P&gt;at24 4-0050: 2048 byte 24c16 EEPROM, writable, 1 bytes/write&lt;/P&gt;&lt;P&gt;mvf-adc mvf-adc.0: attached adc driver&lt;/P&gt;&lt;P&gt;mvf-adc mvf-adc.1: attached adc driver&lt;/P&gt;&lt;P&gt;FSL NFC MTD nand Driver 1.0&lt;/P&gt;&lt;P&gt;NAND device: Manufacturer ID: 0x2c, Chip ID: 0xf1 (Micron NAND 128MiB 3,3V 8-bit)&lt;/P&gt;&lt;P&gt;Scanning device for bad blocks&lt;/P&gt;&lt;P&gt;Bad eraseblock 0 at 0x000000000000&lt;/P&gt;&lt;P&gt;Bad eraseblock 14 at 0x0000001c0000&lt;/P&gt;&lt;P&gt;7 cmdlinepart partitions found on MTD device NAND&lt;/P&gt;&lt;P&gt;Creating 7 MTD partitions on "NAND":&lt;/P&gt;&lt;P&gt;0x000000000000-0x000000040000 : "NBoot"&lt;/P&gt;&lt;P&gt;0x000000040000-0x000000100000 : "UserDef"&lt;/P&gt;&lt;P&gt;0x000000100000-0x000000140000 : "Refresh"&lt;/P&gt;&lt;P&gt;0x000000140000-0x0000001c0000 : "UBoot"&lt;/P&gt;&lt;P&gt;0x0000001c0000-0x000000200000 : "UBootEnv"&lt;/P&gt;&lt;P&gt;0x000000200000-0x000000600000 : "Kernel"&lt;/P&gt;&lt;P&gt;0x000000600000-0x000008000000 : "TargetFS"&lt;/P&gt;&lt;P&gt;UBI: attaching mtd6 to ubi0&lt;/P&gt;&lt;P&gt;UBI: physical eraseblock size:&amp;nbsp;&amp;nbsp; 131072 bytes (128 KiB)&lt;/P&gt;&lt;P&gt;UBI: logical eraseblock size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 126976 bytes&lt;/P&gt;&lt;P&gt;UBI: smallest flash I/O unit:&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048&lt;/P&gt;&lt;P&gt;UBI: VID header offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2048 (aligned 2048)&lt;/P&gt;&lt;P&gt;UBI: data offset:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096&lt;/P&gt;&lt;P&gt;UBI: max. sequence number:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 258&lt;/P&gt;&lt;P&gt;UBI: attached mtd6 to ubi0&lt;/P&gt;&lt;P&gt;UBI: MTD device name:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "TargetFS"&lt;/P&gt;&lt;P&gt;UBI: MTD device size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 122 MiB&lt;/P&gt;&lt;P&gt;UBI: number of good PEBs:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 976&lt;/P&gt;&lt;P&gt;UBI: number of bad PEBs:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;UBI: number of corrupted PEBs:&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;UBI: max. allowed volumes:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 128&lt;/P&gt;&lt;P&gt;UBI: wear-leveling threshold:&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096&lt;/P&gt;&lt;P&gt;UBI: number of internal volumes: 1&lt;/P&gt;&lt;P&gt;UBI: number of user volumes:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;/P&gt;&lt;P&gt;UBI: available PEBs:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;UBI: total number of reserved PEBs: 976&lt;/P&gt;&lt;P&gt;UBI: number of PEBs reserved for bad PEB handling: 9&lt;/P&gt;&lt;P&gt;UBI: max/mean erase counter: 4/1&lt;/P&gt;&lt;P&gt;UBI: image sequence number:&amp;nbsp; 0&lt;/P&gt;&lt;P&gt;UBI: background thread "ubi_bgt0d" started, PID 530&lt;/P&gt;&lt;P&gt;Faraday DSPI DMA addr: Tx-0xffdff000[0x8a1ff000], Rx-0xffdfe000[0x8a1fe000]&lt;/P&gt;&lt;P&gt;DSPI: Coldfire master initialized&lt;/P&gt;&lt;P&gt;CAN device driver interface&lt;/P&gt;&lt;P&gt;flexcan netdevice driver&lt;/P&gt;&lt;P&gt;flexcan mvf-flexcan.0: device registered (reg_base=90920000, irq=90)&lt;/P&gt;&lt;P&gt;flexcan mvf-flexcan.1: device registered (reg_base=90928000, irq=91)&lt;/P&gt;&lt;P&gt;FEC Ethernet Driver&lt;/P&gt;&lt;P&gt;fec_enet_mii_bus: probed&lt;/P&gt;&lt;P&gt;fec_enet_mii_bus: probed&lt;/P&gt;&lt;P&gt;ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver&lt;/P&gt;&lt;P&gt;fsl-ehci fsl-ehci.0: Freescale On-Chip EHCI Host Controller&lt;/P&gt;&lt;P&gt;fsl-ehci fsl-ehci.0: new USB bus registered, assigned bus number 1&lt;/P&gt;&lt;P&gt;fsl-ehci fsl-ehci.0: irq 108, io base 0x400b4000&lt;/P&gt;&lt;P&gt;fsl-ehci fsl-ehci.0: USB 2.0 started, EHCI 1.00&lt;/P&gt;&lt;P&gt;usb usb1: New USB device found, idVendor=1d6b, idProduct=0002&lt;/P&gt;&lt;P&gt;usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1&lt;/P&gt;&lt;P&gt;usb usb1: Product: Freescale On-Chip EHCI Host Controller&lt;/P&gt;&lt;P&gt;usb usb1: Manufacturer: Linux 3.0.15-F+S+ ehci_hcd&lt;/P&gt;&lt;P&gt;usb usb1: SerialNumber: fsl-ehci.0&lt;/P&gt;&lt;P&gt;hub 1-0:1.0: USB hub found&lt;/P&gt;&lt;P&gt;hub 1-0:1.0: 1 port detected&lt;/P&gt;&lt;P&gt;Initializing USB Mass Storage driver...&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver usb-storage&lt;/P&gt;&lt;P&gt;USB Mass Storage support registered.&lt;/P&gt;&lt;P&gt;ARC USBOTG Device Controller driver (1 August 2005)&lt;/P&gt;&lt;P&gt;gs_bind: controller 'fsl-usb2-udc' not recognized&lt;/P&gt;&lt;P&gt;g_serial gadget: Gadget Serial v2.4&lt;/P&gt;&lt;P&gt;g_serial gadget: g_serial ready&lt;/P&gt;&lt;P&gt;fsl-usb2-udc: bind to driver g_serial&lt;/P&gt;&lt;P&gt;mousedev: PS/2 mouse device common for all mice&lt;/P&gt;&lt;P&gt;sx8655 3-0048: sx8655_probe()&lt;/P&gt;&lt;P&gt;sx8655 3-0048: write mask fail&lt;/P&gt;&lt;P&gt;sx8655: probe of 3-0048 failed with error -5&lt;/P&gt;&lt;P&gt;sx8655 3-0049: sx8655_probe()&lt;/P&gt;&lt;P&gt;sx8655 3-0049: write mask fail&lt;/P&gt;&lt;P&gt;sx8655: probe of 3-0049 failed with error -5&lt;/P&gt;&lt;P&gt;snvs_rtc snvs_rtc.0: rtc core: registered snvs_rtc as rtc0&lt;/P&gt;&lt;P&gt;i2c /dev entries driver&lt;/P&gt;&lt;P&gt;Linux video capture interface: v2.00&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver uvcvideo&lt;/P&gt;&lt;P&gt;USB Video Class driver (v1.1.0)&lt;/P&gt;&lt;P&gt;sdhci: Secure Digital Host Controller Interface driver&lt;/P&gt;&lt;P&gt;sdhci: Copyright(c) Pierre Ossman&lt;/P&gt;&lt;P&gt;sdhci sdhci-esdhc-imx.1: no write-protect pin available!&lt;/P&gt;&lt;P&gt;mmc0: SDHCI controller on platform [sdhci-esdhc-imx.1] using ADMA&lt;/P&gt;&lt;P&gt;pca9632_probe: done.&lt;/P&gt;&lt;P&gt;i2c-core: driver [pca9632] using legacy suspend method&lt;/P&gt;&lt;P&gt;i2c-core: driver [pca9632] using legacy resume method&lt;/P&gt;&lt;P&gt;usbcore: registered new interface driver usbhid&lt;/P&gt;&lt;P&gt;usbhid: USB HID core driver&lt;/P&gt;&lt;P&gt;sgtl5000 4-000a: sgtl5000 revision 17&lt;/P&gt;&lt;P&gt;asoc: sgtl5000 &amp;lt;-&amp;gt; mvf-sai.0 mapping ok&lt;/P&gt;&lt;P&gt;ALSA device list:&lt;/P&gt;&lt;P&gt;&amp;nbsp; #0: sgtl5000-sai&lt;/P&gt;&lt;P&gt;TCP cubic registered&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 10&lt;/P&gt;&lt;P&gt;IPv6 over IPv4 tunneling driver&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 17&lt;/P&gt;&lt;P&gt;can: controller area network core (rev 20090105 abi 8)&lt;/P&gt;&lt;P&gt;NET: Registered protocol family 29&lt;/P&gt;&lt;P&gt;can: raw protocol (rev 20090105)&lt;/P&gt;&lt;P&gt;can: broadcast manager protocol (rev 20090105 t)&lt;/P&gt;&lt;P&gt;Registering the dns_resolver key type&lt;/P&gt;&lt;P&gt;VFP support v0.3: implementor 41 architecture 2 part 30 variant 5 rev 1&lt;/P&gt;&lt;P&gt;g_serial gadget: high speed config #2: CDC ACM config&lt;/P&gt;&lt;P&gt;snvs_rtc snvs_rtc.0: setting system clock to 1970-01-01 05:52:58 UTC (21178)&lt;/P&gt;&lt;P&gt;UBIFS error (pid 1): ubifs_recover_master_node: failed to recover master node&lt;/P&gt;&lt;P&gt;List of all partitions:&lt;/P&gt;&lt;P&gt;1f00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 mtdblock0&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f01&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 768 mtdblock1&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 mtdblock2&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f03&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 512 mtdblock3&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f04&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 256 mtdblock4&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f05&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4096 mtdblock5&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;1f06&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 124928 mtdblock6&amp;nbsp; (driver?)&lt;/P&gt;&lt;P&gt;No filesystem could mount root, tried:&amp;nbsp; ubifs&lt;/P&gt;&lt;P&gt;Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)&lt;/P&gt;&lt;P&gt;Backtrace:&lt;/P&gt;&lt;P&gt;[&amp;lt;80036b00&amp;gt;] (dump_backtrace+0x0/0x108) from [&amp;lt;804096d8&amp;gt;] (dump_stack+0x18/0x1c)&lt;/P&gt;&lt;P&gt; r6:800254e8 r5:8ffed006 r4:8055cee0 r3:60000013&lt;/P&gt;&lt;P&gt;[&amp;lt;804096c0&amp;gt;] (dump_stack+0x0/0x1c) from [&amp;lt;80409a50&amp;gt;] (panic+0x5c/0x17c)&lt;/P&gt;&lt;P&gt;[&amp;lt;804099f4&amp;gt;] (panic+0x0/0x17c) from [&amp;lt;80008dd8&amp;gt;] (mount_block_root+0x1d4/0x218)&lt;/P&gt;&lt;P&gt; r3:8ffcff3c r2:804b9c5d r1:8ffcff68 r0:804af8ed&lt;/P&gt;&lt;P&gt; r7:8ba00e0d&lt;/P&gt;&lt;P&gt;[&amp;lt;80008c04&amp;gt;] (mount_block_root+0x0/0x218) from [&amp;lt;80009080&amp;gt;] (prepare_namespace+0x94/0x1c0)&lt;/P&gt;&lt;P&gt;[&amp;lt;80008fec&amp;gt;] (prepare_namespace+0x0/0x1c0) from [&amp;lt;800089ec&amp;gt;] (kernel_init+0xf0/0x11c)&lt;/P&gt;&lt;P&gt; r5:80024cd0 r4:80024cd0&lt;/P&gt;&lt;P&gt;[&amp;lt;800088fc&amp;gt;] (kernel_init+0x0/0x11c) from [&amp;lt;8004ae74&amp;gt;] (do_exit+0x0/0x5f8)&lt;/P&gt;&lt;P&gt; r5:800088fc r4:00000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems that first ubi reads the whole Filesystempartition and then reads one block completely. So I get these error messages and a stack_dump.&lt;/P&gt;&lt;P&gt;Reading the pages from nand also seems to be ok and when I look at my ecc status flag everything is ok. we also check on empty pages. but we notice them and don't throw errors on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know how to solve this? I have no idea!!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;Andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 12:57:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307325#M2837</guid>
      <dc:creator>andreaszeiler</dc:creator>
      <dc:date>2014-05-28T12:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307326#M2838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you try to install your ubi volume from linux (not from u-boot) ?&lt;/P&gt;&lt;P&gt;Then mount ubi to see if it works.&lt;/P&gt;&lt;P&gt;You can also use nand write.trimffs with u-boot to install ubi volume. U-boot must be compiled with CONFIG_CMD_NAND_TRIMFFS option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Emmanuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 13:40:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307326#M2838</guid>
      <dc:creator>Nouchi</dc:creator>
      <dc:date>2014-05-28T13:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307327#M2839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It definitely looks as if the Linux MTD's ECC doesn't agree with the U-Boot ECC.&amp;nbsp; For instance, I have the same message if I write a UBI partition with Software-ECC and then mount with Hardware-ECC.&amp;nbsp; Here is some conversation with Stefan Agner and I,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="http://lists.infradead.org/pipermail/linux-mtd/2014-April/053553.htmlhttp://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://lists.infradead.org/pipermail/linux-mtd/2014-April/053553.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://lists.infradead.org/pipermail/linux-mtd/2014-April/053560.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://lists.infradead.org/pipermail/linux-mtd/2014-April/053560.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="http://lists.infradead.org/pipermail/linux-mtd/2014-April/053570.htmlhttp://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://lists.infradead.org/pipermail/linux-mtd/2014-April/053570.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan provides a link to 'U-boot' there that has an updated driver and there are other links to a Linux mainline driver.&amp;nbsp; It is fairly easy to back-port to the TimeSys kernel.&amp;nbsp;&amp;nbsp; I think there are definite bugs/issues with the TimeSys version you seem to be using.&amp;nbsp; These community links might also be useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/369202" rel="nofollow noopener noreferrer" target="_blank"&gt;VF6xxx NFC (NAND) module clocking&lt;/A&gt;, &lt;A href="https://community.nxp.com/message/368216" rel="nofollow noopener noreferrer" target="_blank"&gt;VF5xx/ECCAD for NFC&lt;/A&gt;, and &lt;A href="https://community.nxp.com/message/341180" rel="nofollow noopener noreferrer" target="_blank"&gt;Vybrid NAND boot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would compile the &lt;EM&gt;mtdtests&lt;/EM&gt; as modules and load them to see if you have any issues.&amp;nbsp; Are you using the tower board or custom hardware?&amp;nbsp; Also, this statement seems wrong,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;Then I write the ubifs image into my ubi partition.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I take it too literally.&amp;nbsp; You need to run 'ubinize' to convert a 'ubifs' image to a 'ubi' image.&amp;nbsp; So, from an initial directory, run 'mkfs.ubifs' and then on that image, run 'ubinize'.&amp;nbsp; This image can be written to flash using 'nandwrite' or other similar raw flashers.&amp;nbsp; I think UBI support is in some versions of u-boot, but if you wrote the wrong data, then the UBI headers will not be found and a similar error message will be printed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;UBI: max/mean erase counter: 4/1&lt;/PRE&gt;&lt;P&gt;I guess this means it is not your issue, it seems that something found some UBI headers to get an erase count of '4'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Boot from an MMC card, if on the tower board, or create an initramfs (buildroot/klibc) and then you can probe the ubifs root partition from the ram disk.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 15:24:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307327#M2839</guid>
      <dc:creator>billpringlemeir</dc:creator>
      <dc:date>2014-05-28T15:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307328#M2840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks for reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use custom boards. The thing is that we wanted to use hardware ecc with our own layout. The former UBoot driver of nfc could only write with ecc. Besides this I changed the layout but nothing has changed. I saw some changes in the oob area when I set ecc to 24bit ecc. But I couldn't see anything usefull in the oob. After I made some changes in the driver I could write raw and also I could set ecc to right place. We want ecc to start on byte 2052. We use 2k pages. So 2048 byte data + 4 byte BadBlockMarker etc. + 30Byte ecc and behind that some other stuff. We use 16bit ecc with 30byte length.&lt;/P&gt;&lt;P&gt;So these changes looked good to me.&lt;/P&gt;&lt;P&gt;I made also some changes in the linux kernel to be able to read the right ecc position, etc.&lt;/P&gt;&lt;P&gt;I use the "nand write $loadaddr Kernel $filesize" command to write linux kernel in uboot into Kernel partition. Then I run "ubi part TargetFS" to select TargetFS as Filesystem partition. After that I create a ubi intern partition called "rootfs" with command "ubi create rootfs". Into this "rootfs" I write the rootfs.ubifs Image which was build by buildroot. I use the command "ubi write $loadaddr rootfs $filesize".&lt;/P&gt;&lt;P&gt;Now, when I boot the linux kernel gets loaded and starts booting. Then I get the output which I posted above. I also print some pages and oob areas at bootup and also printed the ecc status byte. and this byte shows no errors. So I assume that the ubi partition should be read correctly?!?!&lt;/P&gt;&lt;P&gt;Do I have to configure something in my buildroot?? Is it possible that ubi writes into oob area? maybe I have some trouble there and it overwrites something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 07:54:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307328#M2840</guid>
      <dc:creator>andreaszeiler</dc:creator>
      <dc:date>2014-05-30T07:54:46Z</dc:date>
    </item>
    <item>
      <title>Re: UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307329#M2841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could build a rootfs.ubi image in buildroot. I write it with "nand write $loadaddr TargetFS $filesize" into nand. Now the kernel starts and boots. Also the kernel is able to mount rootfs. When I reboot the system it is working again.&lt;/P&gt;&lt;P&gt;But when I just mount my filesystem with rw I get read errors in next boot.&lt;/P&gt;&lt;P&gt;Seems that ubi write here something into fs...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;andi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:03:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307329#M2841</guid>
      <dc:creator>andreaszeiler</dc:creator>
      <dc:date>2014-05-30T09:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: UBI not mountable after changing ECC and NFC Driver</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307330#M2842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suggest you at least look at the driver I referenced above.&amp;nbsp; You use &lt;EM&gt;hardware ECC&lt;/EM&gt;, and the stock TimeSys driver has some errors; like it never actually tested that the ECC failed and hence when flash wears, it will report it good when it is really bad.&amp;nbsp; With the hardware ECC, you don't have a choice where it is placed.&amp;nbsp; The controller will write it automatically at the end of the OOB data.&amp;nbsp; It sounds like you have the &lt;EM&gt;reading&lt;/EM&gt; working, but when you write, the hardware ECC may place data at the wrong point.&amp;nbsp; It is helpful to use &lt;EM&gt;nanddump&lt;/EM&gt; with the &lt;EM&gt;oob&lt;/EM&gt; information to get what the controller hw ecc wrote (and where).&amp;nbsp; The hardware ECC may attempt to correct data and fail.&amp;nbsp; It reports the status, which the stock Timesys driver doesn't handle because of the endian issue (see link above).&amp;nbsp; So, if the hardware ECC is not working, the first write/read may give some corrupt data, even though the MTD driver reports nothing.&amp;nbsp; Also, I am not sure about sub-page handling with the TimeSys (originally by Freescale) driver, which UBI/UbiFS wants to use.&amp;nbsp; This will also come into play on the first writes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 18:56:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/UBI-not-mountable-after-changing-ECC-and-NFC-Driver/m-p/307330#M2842</guid>
      <dc:creator>billpringlemeir</dc:creator>
      <dc:date>2014-05-30T18:56:02Z</dc:date>
    </item>
  </channel>
</rss>

