LS1024A NAND ECC Error inquiry

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

LS1024A NAND ECC Error inquiry

869 Views
h201668
Contributor III

Hardware is the same as LS1024ARDB, but several pins are connected externally.

NAND Flash uses MT29F16G08CBACAWP

The problem with NAND Flash is this.

If CS2 and SPI_SS2_N (AD23) and GPIOa (H4) are used at the same time, ECC comes out from NAND.

SPI_SS2_n and GPIOa are set to GPIO so that they can be used as SPI.

The problem is that NAND CS doesn't work properly when used as GPIO.

ECC is not output unless SPI_SS2_N and GPIOa are used.

Can these problems be resolved?

Is there a point I need to set on the dip switch?

Switches 3 to 9 in SW2 are set to low.

Do I need to re-configure for NAND?

Or can you point me to any other points to debug?

This is a review of NAND Flash pins with a logic analyzer.

If SPI_SS2_N (AD23) and GPIOa (H4) are not used, the picture below will appear.

h201668_0-1670812848114.png

If SPI_SS2_N (AD23) and GPIOa (H4)  used, it will come out the same as the picture below.

h201668_1-1670818122527.png

In particular, the reason why NAND_CS does not fall low seems to be the cause.

What should I do to solve this?

Please tell me what causes the other pins to affect NAND_CS.

 

1) Linux NAND Flash ECC issues


uloader 2011.06.0 (Sep 30 2022 - 14:43:58)

Board: Mindspeed C2000
calling dus_out_of_reset:
c2k_spi_flash_probe: size : 0x04000000

Copying Barebox from NOR Flash(bootopt=7)
Image has NULL authentication
## Starting Barebox at 0x01000000 ...


U-Boot 2013.01 (Dec 05 2022 - 15:28:18)

DRAM: 512 MiB
WARNING: Caches not enabled
Flash: 64 MiB
NAND: Using default values
2048 MiB
In: serial
Out: serial
Err: serial
Net: cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
c2000_eth_board_init: Port 0 Bringing PHY out of reset
c2000_eth_board_init: Port 2 Bringing PHY out of reset
c2000_gemac2, c2000_gemac0
boot in 3 s

NAND read: device 0 offset 0x0, size 0x400000
4194304 bytes read: OK
Is secure boot on?
Magic number is valid
Image Header key length is valid
Hash Type is valid
CRC is valid
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-4.1.8
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3227520 Bytes = 3.1 MiB
Load Address: 03008000
Entry Point: 03008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x900
[ 0.000000] Linux version 4.1.8 (ypshin@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Mon Dec 5 15:43:25 KST 2022
[ 0.000000] CPU: ARMv7 Processor [412fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Comcerto 2000 MFCN EVM
[ 0.000000] cma: Reserved 32 MiB at 0x00800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 10 pages/cpu @dfbd2000 s11680 r8192 d21088 u40960
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 124928
[ 0.000000] Kernel command line: console=ttyS0,115200 init=/etc/preinit root=ubi0:rootfs ubi.mtd=3,4096 rootfstype=ubifs rw noinitrd mtdparts=comcertonand:4M(kernel),256M(home),-(rootfs) mac_addr=00:aa:bb:cc:dc:ee
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 459888K/503808K available (4763K kernel code, 211K rwdata, 1224K rodata, 188K init, 244K bss, 11152K reserved, 32768K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff30000 - 0xfffe0000 ( 704 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfff20000 ( 503 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xc3000000 - 0xc4000000 ( 16 MB)
[ 0.000000] .text : 0xc4008000 - 0xc45e0e34 (5988 kB)
[ 0.000000] .init : 0xc45e1000 - 0xc4610000 ( 188 kB)
[ 0.000000] .data : 0xc4610000 - 0xc4644c60 ( 212 kB)
[ 0.000000] .bss : 0xc4644c60 - 0xc4681ee4 ( 245 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:256
[ 0.000000] PLL0 running at 1800 MHz, PLL1 at 1000 MHz PLL2 running at 1500 MHz PLL3 running at 1066 MHz
[ 0.000000] clocksource timer2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041790 ns
[ 0.000009] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[ 0.000472] Calibrating local timer... 224.86MHz.
[ 0.060066] Calibrating delay loop... 1790.77 BogoMIPS (lpj=8953856)
[ 0.120080] pid_max: default: 32768 minimum: 301
[ 0.120314] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.120335] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.120982] CPU: Testing write buffer coherency: ok
[ 0.121259] CPU0: thread -1, cpu 0, socket 9, mpidr 80000900
[ 0.121394] Setting up static identity map for 0x40081e0 - 0x4008238
[ 0.123377] CPU1 powered up
[ 0.180025] CPU1: thread -1, cpu 1, socket 9, mpidr 80000901
[ 0.180150] Brought up 2 CPUs
[ 0.180175] SMP: Total of 2 processors activated (3581.54 BogoMIPS).
[ 0.180184] CPU: All CPU(s) started in SVC mode.
[ 0.182670] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.186309] NET: Registered protocol family 16
[ 0.226629] DMA: preallocated 16384 KiB pool for atomic coherent allocations
[ 0.227720] L2C: platform provided aux values permit register corruption.
[ 0.227744] L2C: DT/platform modifies aux control register: 0x02040000 -> 0x00c40000
[ 0.227755] L2C: DT/platform tries to modify or specify cache size
[ 0.227767] L2C-310 enabling early BRESP for Cortex-A9
[ 0.227778] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.227803] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.227825] L2C-310 cache controller enabled, 8 ways, 256 kB
[ 0.227835] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x44c40001 PREFETCH_CTRL 0x00000000
[ 0.227843] ARMv7 AUX CTRL(0): 0x4f
[ 0.227848] ARMv7 AUX CTRL(0): 0x4f
[ 0.227868] ARMv7 AUX CTRL(1): 0x41
[ 0.227881] ARMv7 AUX CTRL(1): 0x41
[ 0.229250] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.229262] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.229290] Power Management Mode Support For C2000:
[ 0.229655] PCIe: Ref clk 48Mhz
[ 0.229666] PCIe: Detected C2K RevA1 device serdes clk devider old:new=2e:6
[ 4.227481] PCIe0: Link Up Failed
[ 4.227515] PCIe: Ref clk 48Mhz
[ 4.227524] PCIe: Detected C2K RevA1 device serdes clk devider old:new=6:6
[ 8.224997] PCIe1: Link Up Failed
[ 8.266251] vgaarb: loaded
[ 8.266299] SPI core: loaded version 0.2
[ 8.266632] usbcore: registered new interface driver usbfs
[ 8.266692] usbcore: registered new interface driver hub
[ 8.266762] usbcore: registered new device driver usb
[ 8.267654] Switched to clocksource timer2
[ 8.268931] NET: Registered protocol family 2
[ 8.269640] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 8.269687] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 8.269746] TCP: Hash tables configured (established 4096 bind 4096)
[ 8.269811] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 8.269844] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 8.270070] NET: Registered protocol family 1
[ 8.270489] CPU PMU: probing PMU on CPU 0
[ 8.270519] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 8.270618] membuf_init: created membuf device(253, 0)
[ 8.270695] clock_frequency_set: (1:24) NTG INCR value is 422212465
[ 8.272158] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 8.274672] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 8.274693] jffs2: version 2.2. (NAND) (SUMMARY) 짤 2001-2006 Red Hat, Inc.
[ 8.274838] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 8.276249] io scheduler noop registered
[ 8.276269] io scheduler deadline registered
[ 8.276312] io scheduler cfq registered (default)
[ 8.276498] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 8.277485] console [ttyS0] disabled
[ 8.297535] serial8250.0: ttyS0 at MMIO 0x96300000 (irq = 58, base_baud = 15625000) is a 16550A
[ 8.847984] console [ttyS0] enabled
[ 8.871813] serial8250.0: ttyS1 at MMIO 0x96400000 (irq = 59, base_baud = 15625000) is a 16550A
[ 8.881014] comcerto_otp_probe.
[ 8.884226] igwled_init : IGW LED device register....
[ 8.905853] brd: module loaded
[ 8.925917] loop: module loaded
[ 8.929558] nbd: registered device at major 43
[ 8.941125] comcertoflash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[ 8.951466] Amd/Fujitsu Extended Query Table at 0x0040
[ 8.956636] Amd/Fujitsu Extended Query version 1.3.
[ 8.961727] number of CFI chips: 1
[ 8.966016] pdev->resource->start = c8300000, pdev->resource->end = c8301fff
[ 8.973147] nand_probe: comcertonand base: 0xe0838000
[ 8.978258] nand: ONFI flash detected
[ 8.982047] nand: ONFI param page 0 valid
[ 8.986129] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x48
[ 8.992514] nand: Micron MT29F16G08CBACAWP
[ 8.996626] nand: 2048 MiB, MLC, erase size: 1024 KiB, page size: 4096, OOB size: 224
[ 9.004490] hw_syndrome correction 4096.
[ 9.008436] Using default values for hw ecc
[ 9.012640] nand: mtd->writesize 4096 ecc->size 1024 ecc->strength 24
[ 9.019113] nand: corr 96 ds_corr 96 ecc->strength 24 chip->ecc_strength_ds 24
[ 9.027270] Bad block table found at page 524032, version 0x02
[ 9.033782] Bad block table found at page 523776, version 0x02
[ 9.040308] nand_read_bbt: bad block at 0x000005a00000
[ 9.045463] nand_read_bbt: bad block at 0x000005b00000
[ 9.050661] nand_read_bbt: bad block at 0x000033700000
[ 9.055986] 3 cmdlinepart partitions found on MTD device comcertonand
[ 9.062471] Creating 3 MTD partitions on "comcertonand":
[ 9.067826] 0x000000000000-0x000000400000 : "kernel"
[ 9.073604] 0x000000400000-0x000010400000 : "home"
[ 9.079195] 0x000010400000-0x000080000000 : "rootfs"
[ 9.085241] comcerto_spi_probe: comcerto_spi_probe(0xc4627030)
[ 9.085241] pdev->resource[0].start=0x90498000
[ 9.085241] pdev->resource[0].end=0x90498fff
[ 9.085241] pdev->name=comcerto_spi
[ 9.085241] pdev->id=0
[ 9.106719] comcerto_spi_probe: pdev->id=0 spi->membase=0xf0998000
[ 9.112939] SPI core: add adapter comcerto_spi
[ 9.117781] libphy: Fixed MDIO Bus: probed
[ 9.122010] ### comcerto_start_xhci
[ 9.125531] comcerto_usb3_phy_init():: USB3.0 clock selected: internal
[ 9.135232] xhci-hcd xhci-hcd: xHCI Host Controller
[ 9.140167] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[ 9.148177] xhci-hcd xhci-hcd: hcc params 0x0220f044 hci version 0x100 quirks 0x00010010
[ 9.156325] xhci-hcd xhci-hcd: irq 54, io mem 0x9f000000
[ 9.162045] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 9.168894] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.176141] usb usb1: Product: xHCI Host Controller
[ 9.181051] usb usb1: Manufacturer: Linux 4.1.8 xhci-hcd
[ 9.186381] usb usb1: SerialNumber: xhci-hcd
[ 9.191250] hub 1-0:1.0: USB hub found
[ 9.195112] hub 1-0:1.0: 1 port detected
[ 9.199408] xhci-hcd xhci-hcd: xHCI Host Controller
[ 9.204317] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[ 9.211495] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 9.219756] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 9.226569] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.233841] usb usb2: Product: xHCI Host Controller
[ 9.238748] usb usb2: Manufacturer: Linux 4.1.8 xhci-hcd
[ 9.244078] usb usb2: SerialNumber: xhci-hcd
[ 9.248905] hub 2-0:1.0: USB hub found
[ 9.252751] hub 2-0:1.0: 1 port detected
[ 9.257100] dwc_otg: version 2.94a 27-OCT-2011
[ 9.660557] dwc_otg dwc_otg.0: DWC OTG Controller
[ 9.665305] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 3
[ 9.672427] dwc_otg dwc_otg.0: irq 53, io mem 0x00000000
[ 9.677995] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 9.684809] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.692071] usb usb3: Product: DWC OTG Controller
[ 9.696791] usb usb3: Manufacturer: Linux 4.1.8 dwc_otg
[ 9.702045] usb usb3: SerialNumber: dwc_otg.0
[ 9.706903] hub 3-0:1.0: USB hub found
[ 9.710739] hub 3-0:1.0: 1 port detected
[ 9.715602] comcerto_wdt: support registered
[ 9.720788] usbcore: registered new interface driver usbhid
[ 9.726382] usbhid: USB HID core driver
[ 9.730512] etherip: Ethernet over IPv4 tunneling driver
[ 9.735842] etherip ----- is functional
[ 9.740241] Initializing XFRM netlink socket
[ 9.744857] NET: Registered protocol family 10
[ 9.750363] sit: IPv6 over IPv4 tunneling driver
[ 9.756340] ip6_gre: GRE over IPv6 tunneling driver
[ 9.762631] NET: Registered protocol family 17
[ 9.767122] NET: Registered protocol family 15
[ 9.771608] Initializing NETLINK_KEY socket
[ 9.775865] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 9.788560] Bridge firewalling registered
[ 9.792590] 8021q: 802.1Q VLAN Support v1.8
[ 9.796924] Registering SWP/SWPB emulation handler
[ 9.801768] Clocks: disabled unused uart
[ 9.805704] Clocks: disabled unused gemtx
[ 9.809745] Clocks: disabled unused ipsec_spacc
[ 9.814289] Clocks: disabled unused dpi_cie
[ 9.818494] Clocks: disabled unused dpi_decomp
[ 9.822953] Clocks: disabled unused pcie0
[ 9.826973] Clocks: disabled unused pcie1
[ 9.831004] Clocks: disabled unused sata
[ 9.834937] Clocks: disabled unused sata_oob
[ 9.839228] Clocks: disabled unused sata_pmu
[ 9.843509] Clocks: disabled unused ext_phy0
[ 9.847799] Clocks: disabled unused ext_phy1
[ 9.852081] Clocks: disabled unused ext_phy2
[ 9.856362] Clocks: disabled unused tsuntg
[ 9.860478] Clocks: disabled unused sata_occ
[ 9.864759] Clocks: disabled unused pcie_occ
[ 9.869049] Clocks: disabled unused sgmii_occ
[ 9.874717] ubi0: default fastmap pool size: 85
[ 9.879296] ubi0: default fastmap WL pool size: 42
[ 9.884103] ubi0: attaching mtd3
[ 12.059377] ubi0: scanning is finished
[ 12.073114] ubi0: attached mtd3 (name "rootfs", size 1788 MiB)
[ 12.078997] ubi0: PEB size: 1048576 bytes (1024 KiB), LEB size: 1040384 bytes
[ 12.086155] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 12.092972] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 12.099964] ubi0: good PEBs: 1779, bad PEBs: 9, corrupted PEBs: 0
[ 12.106076] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 12.113327] ubi0: max/mean erase counter: 5/1, WL threshold: 4096, image sequence number: 728257517
[ 12.122406] ubi0: available PEBs: 0, total reserved PEBs: 1779, PEBs reserved for bad PEB handling: 31
[ 12.131779] ubi0: background thread "ubi_bgt0d" started, PID 540
[ 12.138617] hctosys: unable to open rtc device (rtc0)
[ 12.147716] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 550
[ 12.445450] UBIFS (ubi0:0): recovery needed
[ 13.232266] UBIFS (ubi0:0): recovery completed
[ 13.236820] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 13.244263] UBIFS (ubi0:0): LEB size: 1040384 bytes (1016 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 13.254392] UBIFS (ubi0:0): FS size: 1801945088 bytes (1718 MiB, 1732 LEBs), journal size 12550144 bytes (11 MiB, 13 LEBs)
[ 13.265473] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 13.271337] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID F820F290-0A05-4B94-BFB2-010184A588A0, small LPT model
[ 13.286156] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 13.292371] Freeing unused kernel memory: 188K (c45e1000 - c4610000)
[ 13.621503] init: Console is alive
[ 14.627277] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 17.798541] mount_root: mounting /dev/root
cp: can't stat '/home/lib/*': No such file or directory
cp: can't stat '/home/sbin2/*': No such file or directory
cp: can't stat '/home/etc/rc.d/S99zero': No such file or directory
[ 17.838389] procd: - early -
[ 18.487328] procd: - ubus -
[ 19.494419] random: ubusd urandom read with 0 bits of entropy available
[ 19.508480] procd: - init -
Please press Enter to activate this console.
[ 20.603699] pfe_module_init
[ 20.606576] pfe_platform_probe
[ 20.610059] ipsec: baseaddr :9a000000 --- e5400000
[ 20.614874] Warning : hfe_core Clock is already disabled
[ 20.621300] pfe_probe
[ 20.623583] PFE Driver version:
[ 20.623583] pfe_ctrl_14_00_4
[ 20.623583] built with pfe sources version: pfe_14_00_3
[ 20.634843] cbus_baseaddr: fc000000, ddr_baseaddr: fa000000, ddr_phys_baseaddr: 3400000, ddr_size: c00000
[ 20.644443] pfe_hw_init
[ 20.646897] CLASS version: 20
[ 20.649879] TMU version: 1011231
[ 20.653115] BMU1 version: 21
[ 20.656003] BMU2 version: 21
[ 20.658898] EMAC1 network cfg: 80000
[ 20.662482] EMAC2 network cfg: 80000
[ 20.666065] EMAC3 network cfg: 80000
[ 20.669656] EGPI1 version: 50
[ 20.672631] EGPI2 version: 50
[ 20.675606] EGPI3 version: 50
[ 20.678594] HGPI version: 50
[ 20.681483] GPT version: 0
[ 20.684196] HIF version: 10
[ 20.686996] HIF NOPCY version: 10
[ 20.690327] UTIL version: 20
[ 20.693215] bmu_init(1) done
[ 20.696105] bmu_init(2) done
[ 20.706151] class_init() done
[ 20.709137] tmu_init: mem init
[ 20.712201] tmu_init: lmem init
[ 20.715379] tmu_init() done
[ 20.718186] util_init() done
[ 20.721076] gpi_init(1) done
[ 20.723964] gpi_init(2) done
[ 20.726852] gpi_init(3) done
[ 20.729747] gpi_init(hif) done
[ 20.732809] bmu_enable(1) done
[ 20.735871] bmu_enable(2) done
[ 20.738940] pfe_hif_lib_init
[ 20.742104] pfe_hif_init
[ 20.744645] pfe_hif_alloc_descr
[ 20.748289] pfe_hif_init_buffers
[ 20.751653] pfe_firmware_init
[ 20.779327] pfe_load_elf
[ 20.781881] pe_load_ddr_section: load address(3fb0000) and elf file address(e0b4f000) rcvd
[ 20.805891] PFE binary version: pfe_14_00_3
[ 20.810117] pfe_firmware_init: class firmware loaded 0xa80 0xc3010000
[ 20.816577] pfe_load_elf
[ 20.820082] pfe_firmware_init: tmu firmware loaded 0x220
[ 20.825408] pfe_load_elf
[ 20.829128] pfe_firmware_init: util firmware loaded 0x16c0
[ 20.834660] pfe_ctrl_init
[ 20.848474] pfe_ctrl_init finished
[ 20.848486] pfe_ctrl_timer
[ 20.854603] pfe_eth_init
[ 20.859328] libphy: Comcerto MDIO Bus: probed
[ 20.997756] eth3: pfe_eth_init_one: created interface, baseaddr: fc200000
[ 21.137747] eth2: pfe_eth_init_one: created interface, baseaddr: fc220000
[ 21.277748] eth0: pfe_eth_init_one: created interface, baseaddr: fc330000
[ 21.284567] pfe_vwd_init
[ 21.287277] pfe_vwd_init: created vwd device(251, 0)
[ 21.292337] comcerto_wifi_rx_fastpath_register:34 VWD Tx function registered
[ 21.299428] pfe_pcap_init
[ 21.310504] ocf: module license 'BSD' taints kernel.
[ 21.315492] Disabling lock debugging due to kernel taint
[ 21.371448] l2tp_core: L2TP core driver, V2.0
[ 21.377311] l2tp_netlink: L2TP netlink interface
[ 22.383362] SPI core: add driver le58qldrv
[ 22.387501] SPI core: attach client to adapter comcerto_spi
[ 22.393102] le58ql_device_init: device=0
[ 22.447216] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 22.464032] i2c /dev entries driver
[ 22.512757] Ebtables v2.0 registered
[ 22.519127] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 22.542651] nf_conntrack version 0.5.0 (7700 buckets, 30800 max)
[ 22.757537] Netfilter messages via NETLINK v0.30.
[ 22.804833] xt_time: kernel timezone is -0000
[ 22.825751] ctnetlink v0.93: registering with nfnetlink.
[ 22.839668] PPP generic driver version 2.4.2
[ 22.845893] NET: Registered protocol family 24
[ 22.857247] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 26.407672] VoIP has been started successfully
[ 26.412148] Device: 170
[ 26.414603] Revision: 0
[ 26.417057] CSPtoMSPQueuePhyaddr: 0xf051ebd0
[ 26.421667] MSPtoCSPQueuePhyaddr: 0xf051ebe0
[ 26.425952] SMRXCSPhyaddr: 0xf051ebf0
[ 26.429642] SMTXCSPhyaddr: 0xf051ebf0
[ 26.433321] DSP version: armdsp_5.8.3
[ 26.436997] VoIP version: voip_v7_01_15
[ 26.456817] eth0: pfe_eth_open
[ 26.460167] hif_process_client_req: register client_id 2
[ 26.465524] pfe_hif_client_register
[ 26.469107] hif_lib_set_rx_cpu_affinity:Client (2) and HIF Rx processing will use same cpu
[ 26.473895] IP Interface Driver version 1.0 15:27:50 Dec 5 2022
[ 26.483490] eth0: pfe_gemac_init
[ 26.505188] eth3: pfe_eth_open
[ 26.508742] hif_process_client_req: register client_id 0
[ 26.514091] pfe_hif_client_register
[ 26.517616] hif_lib_set_rx_cpu_affinity:Client (0) and HIF Rx processing will use same cpu
[ 26.525982] eth3: pfe_gemac_init
[ 26.564637] wan driver version 4.08.0.1.07 15:27:51 Dec 5 2022
[ 26.585510]
STI_INIT_ONCE(0xdd9a8100)
[ 27.182932] NET: Registered protocol family 27
[ 28.697980] ECC: uncorrectable error 2 !!!
[ 28.702114] ECC correction failed for page 0x00000000
[ 28.707377] ECC: uncorrectable error 2 !!!
[ 28.711551] ECC correction failed for page 0x00000000
[ 28.717475] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 2479 bytes from PEB 19:591968, read only 2479 bytes, retry
[ 41.438107] eth0: Link is Up - 100Mbps/Full - flow control rx/tx

 

2) Linux NAND Flash ECC not issues(In case of not using SPI_SS2_N(AD23) GPIO(H4) pin)

uloader 2011.06.0 (Sep 30 2022 - 14:43:58)

Board: Mindspeed C2000
calling dus_out_of_reset:
c2k_spi_flash_probe: size : 0x04000000

Copying Barebox from NOR Flash(bootopt=7)
Image has NULL authentication
## Starting Barebox at 0x01000000 ...


U-Boot 2013.01 (Dec 05 2022 - 15:28:18)

DRAM: 512 MiB
WARNING: Caches not enabled
Flash: 64 MiB
NAND: Using default values
2048 MiB
In: serial
Out: serial
Err: serial
Net: cbus_baseaddr: 9c000000, ddr_baseaddr: 03800000, ddr_phys_baseaddr: 03800000
class init complete
tmu init complete
bmu1 init: done
bmu2 init: done
util init complete
GPI1 init complete
GPI2 init complete
HGPI init complete
HIF rx desc: base_va: 03e80000, base_pa: 03e80000
HIF tx desc: base_va: 03e80400, base_pa: 03e80400
HIF init complete
bmu1 enabled
bmu2 enabled
pfe_hw_init: done
pfe_firmware_init
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: class firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 10
pfe_firmware_init: tmu firmware loaded
pfe_load_elf
pfe_load_elf no of sections: 14
pfe_firmware_init: util firmware loaded
c2000_eth_board_init: Port 0 Bringing PHY out of reset
c2000_eth_board_init: Port 2 Bringing PHY out of reset
c2000_gemac2, c2000_gemac0
boot in 3 s

NAND read: device 0 offset 0x0, size 0x400000
4194304 bytes read: OK
Is secure boot on?
Magic number is valid
Image Header key length is valid
Hash Type is valid
CRC is valid
## Booting kernel from Legacy Image at 03000000 ...
Image Name: Linux-4.1.8
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3227520 Bytes = 3.1 MiB
Load Address: 03008000
Entry Point: 03008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x900
[ 0.000000] Linux version 4.1.8 (ypshin@ubuntu) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 unknown) ) #1 SMP Mon Dec 5 15:43:25 KST 2022
[ 0.000000] CPU: ARMv7 Processor [412fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: Comcerto 2000 MFCN EVM
[ 0.000000] cma: Reserved 32 MiB at 0x00800000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 10 pages/cpu @dfbd2000 s11680 r8192 d21088 u40960
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 124928
[ 0.000000] Kernel command line: console=ttyS0,115200 init=/etc/preinit root=ubi0:rootfs ubi.mtd=3,4096 rootfstype=ubifs rw noinitrd mtdparts=comcertonand:4M(kernel),256M(home),-(rootfs) mac_addr=00:aa:bb:cc:dc:ee
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 459888K/503808K available (4763K kernel code, 211K rwdata, 1224K rodata, 188K init, 244K bss, 11152K reserved, 32768K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff30000 - 0xfffe0000 ( 704 kB)
[ 0.000000] vmalloc : 0xe0800000 - 0xfff20000 ( 503 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
[ 0.000000] modules : 0xc3000000 - 0xc4000000 ( 16 MB)
[ 0.000000] .text : 0xc4008000 - 0xc45e0e34 (5988 kB)
[ 0.000000] .init : 0xc45e1000 - 0xc4610000 ( 188 kB)
[ 0.000000] .data : 0xc4610000 - 0xc4644c60 ( 212 kB)
[ 0.000000] .bss : 0xc4644c60 - 0xc4681ee4 ( 245 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:256
[ 0.000000] PLL0 running at 1800 MHz, PLL1 at 1000 MHz PLL2 running at 1500 MHz PLL3 running at 1066 MHz
[ 0.000000] clocksource timer2: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041790 ns
[ 0.000009] sched_clock: 32 bits at 250MHz, resolution 4ns, wraps every 8589934590ns
[ 0.000477] Calibrating local timer... 224.86MHz.
[ 0.060068] Calibrating delay loop... 1790.77 BogoMIPS (lpj=8953856)
[ 0.120082] pid_max: default: 32768 minimum: 301
[ 0.120309] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.120328] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.120979] CPU: Testing write buffer coherency: ok
[ 0.121258] CPU0: thread -1, cpu 0, socket 9, mpidr 80000900
[ 0.121390] Setting up static identity map for 0x40081e0 - 0x4008238
[ 0.123362] CPU1 powered up
[ 0.180031] CPU1: thread -1, cpu 1, socket 9, mpidr 80000901
[ 0.180153] Brought up 2 CPUs
[ 0.180177] SMP: Total of 2 processors activated (3581.54 BogoMIPS).
[ 0.180187] CPU: All CPU(s) started in SVC mode.
[ 0.182678] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.186347] NET: Registered protocol family 16
[ 0.226661] DMA: preallocated 16384 KiB pool for atomic coherent allocations
[ 0.227769] L2C: platform provided aux values permit register corruption.
[ 0.227793] L2C: DT/platform modifies aux control register: 0x02040000 -> 0x00c40000
[ 0.227804] L2C: DT/platform tries to modify or specify cache size
[ 0.227815] L2C-310 enabling early BRESP for Cortex-A9
[ 0.227826] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.227853] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.227873] L2C-310 cache controller enabled, 8 ways, 256 kB
[ 0.227883] L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x44c40001 PREFETCH_CTRL 0x00000000
[ 0.227891] ARMv7 AUX CTRL(0): 0x4f
[ 0.227897] ARMv7 AUX CTRL(0): 0x4f
[ 0.227917] ARMv7 AUX CTRL(1): 0x41
[ 0.227929] ARMv7 AUX CTRL(1): 0x41
[ 0.229292] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.229305] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.229333] Power Management Mode Support For C2000:
[ 0.229705] PCIe: Ref clk 48Mhz
[ 0.229717] PCIe: Detected C2K RevA1 device serdes clk devider old:new=2e:6
[ 4.227654] PCIe0: Link Up Failed
[ 4.227687] PCIe: Ref clk 48Mhz
[ 4.227695] PCIe: Detected C2K RevA1 device serdes clk devider old:new=6:6
[ 8.225333] PCIe1: Link Up Failed
[ 8.266527] vgaarb: loaded
[ 8.266570] SPI core: loaded version 0.2
[ 8.266858] usbcore: registered new interface driver usbfs
[ 8.266913] usbcore: registered new interface driver hub
[ 8.266994] usbcore: registered new device driver usb
[ 8.267946] Switched to clocksource timer2
[ 8.269460] NET: Registered protocol family 2
[ 8.270320] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 8.270367] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 8.270426] TCP: Hash tables configured (established 4096 bind 4096)
[ 8.270488] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 8.270522] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 8.270824] NET: Registered protocol family 1
[ 8.271235] CPU PMU: probing PMU on CPU 1
[ 8.271266] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 8.271373] membuf_init: created membuf device(253, 0)
[ 8.271469] clock_frequency_set: (1:24) NTG INCR value is 422212465
[ 8.273164] futex hash table entries: 512 (order: 2, 16384 bytes)
[ 8.275214] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 8.275235] jffs2: version 2.2. (NAND) (SUMMARY) 짤 2001-2006 Red Hat, Inc.
[ 8.275385] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[ 8.276728] io scheduler noop registered
[ 8.276748] io scheduler deadline registered
[ 8.276792] io scheduler cfq registered (default)
[ 8.276988] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 8.278039] console [ttyS0] disabled
[ 8.298073] serial8250.0: ttyS0 at MMIO 0x96300000 (irq = 58, base_baud = 15625000) is a 16550A
[ 8.848344] console [ttyS0] enabled
[ 8.872165] serial8250.0: ttyS1 at MMIO 0x96400000 (irq = 59, base_baud = 15625000) is a 16550A
[ 8.881349] comcerto_otp_probe.
[ 8.884558] igwled_init : IGW LED device register....
[ 8.906167] brd: module loaded
[ 8.926759] loop: module loaded
[ 8.930368] nbd: registered device at major 43
[ 8.941776] comcertoflash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x00227e
[ 8.952126] Amd/Fujitsu Extended Query Table at 0x0040
[ 8.957297] Amd/Fujitsu Extended Query version 1.3.
[ 8.962388] number of CFI chips: 1
[ 8.966677] pdev->resource->start = c8300000, pdev->resource->end = c8301fff
[ 8.973810] nand_probe: comcertonand base: 0xe0838000
[ 8.978922] nand: ONFI flash detected
[ 8.982713] nand: ONFI param page 0 valid
[ 8.986794] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0x48
[ 8.993179] nand: Micron MT29F16G08CBACAWP
[ 8.997291] nand: 2048 MiB, MLC, erase size: 1024 KiB, page size: 4096, OOB size: 224
[ 9.005154] hw_syndrome correction 4096.
[ 9.009100] Using default values for hw ecc
[ 9.013309] nand: mtd->writesize 4096 ecc->size 1024 ecc->strength 24
[ 9.019783] nand: corr 96 ds_corr 96 ecc->strength 24 chip->ecc_strength_ds 24
[ 9.027887] Bad block table found at page 524032, version 0x02
[ 9.034397] Bad block table found at page 523776, version 0x02
[ 9.040925] nand_read_bbt: bad block at 0x000005a00000
[ 9.046079] nand_read_bbt: bad block at 0x000005b00000
[ 9.051275] nand_read_bbt: bad block at 0x000033700000
[ 9.056594] 3 cmdlinepart partitions found on MTD device comcertonand
[ 9.063077] Creating 3 MTD partitions on "comcertonand":
[ 9.068432] 0x000000000000-0x000000400000 : "kernel"
[ 9.074203] 0x000000400000-0x000010400000 : "home"
[ 9.079825] 0x000010400000-0x000080000000 : "rootfs"
[ 9.085927] comcerto_spi_probe: comcerto_spi_probe(0xc4627030)
[ 9.085927] pdev->resource[0].start=0x90498000
[ 9.085927] pdev->resource[0].end=0x90498fff
[ 9.085927] pdev->name=comcerto_spi
[ 9.085927] pdev->id=0
[ 9.107416] comcerto_spi_probe: pdev->id=0 spi->membase=0xf0998000
[ 9.113651] SPI core: add adapter comcerto_spi
[ 9.118499] libphy: Fixed MDIO Bus: probed
[ 9.122729] ### comcerto_start_xhci
[ 9.126250] comcerto_usb3_phy_init():: USB3.0 clock selected: internal
[ 9.135966] xhci-hcd xhci-hcd: xHCI Host Controller
[ 9.140915] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 1
[ 9.148879] xhci-hcd xhci-hcd: hcc params 0x0220f044 hci version 0x100 quirks 0x00010010
[ 9.157030] xhci-hcd xhci-hcd: irq 54, io mem 0x9f000000
[ 9.162580] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 9.169434] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.176681] usb usb1: Product: xHCI Host Controller
[ 9.181598] usb usb1: Manufacturer: Linux 4.1.8 xhci-hcd
[ 9.186928] usb usb1: SerialNumber: xhci-hcd
[ 9.191950] hub 1-0:1.0: USB hub found
[ 9.195814] hub 1-0:1.0: 1 port detected
[ 9.200120] xhci-hcd xhci-hcd: xHCI Host Controller
[ 9.205029] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2
[ 9.212203] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 9.220464] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[ 9.227276] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.234541] usb usb2: Product: xHCI Host Controller
[ 9.239458] usb usb2: Manufacturer: Linux 4.1.8 xhci-hcd
[ 9.244788] usb usb2: SerialNumber: xhci-hcd
[ 9.249625] hub 2-0:1.0: USB hub found
[ 9.253472] hub 2-0:1.0: 1 port detected
[ 9.257825] dwc_otg: version 2.94a 27-OCT-2011
[ 9.661259] dwc_otg dwc_otg.0: DWC OTG Controller
[ 9.666008] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 3
[ 9.673131] dwc_otg dwc_otg.0: irq 53, io mem 0x00000000
[ 9.678708] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[ 9.685521] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 9.692784] usb usb3: Product: DWC OTG Controller
[ 9.697505] usb usb3: Manufacturer: Linux 4.1.8 dwc_otg
[ 9.702760] usb usb3: SerialNumber: dwc_otg.0
[ 9.707606] hub 3-0:1.0: USB hub found
[ 9.711434] hub 3-0:1.0: 1 port detected
[ 9.716305] comcerto_wdt: support registered
[ 9.721499] usbcore: registered new interface driver usbhid
[ 9.727094] usbhid: USB HID core driver
[ 9.731225] etherip: Ethernet over IPv4 tunneling driver
[ 9.736557] etherip ----- is functional
[ 9.740937] Initializing XFRM netlink socket
[ 9.745543] NET: Registered protocol family 10
[ 9.751052] sit: IPv6 over IPv4 tunneling driver
[ 9.757058] ip6_gre: GRE over IPv6 tunneling driver
[ 9.763369] NET: Registered protocol family 17
[ 9.767862] NET: Registered protocol family 15
[ 9.772349] Initializing NETLINK_KEY socket
[ 9.776615] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 9.789311] Bridge firewalling registered
[ 9.793342] 8021q: 802.1Q VLAN Support v1.8
[ 9.797675] Registering SWP/SWPB emulation handler
[ 9.802514] Clocks: disabled unused uart
[ 9.806451] Clocks: disabled unused gemtx
[ 9.810493] Clocks: disabled unused ipsec_spacc
[ 9.815037] Clocks: disabled unused dpi_cie
[ 9.819244] Clocks: disabled unused dpi_decomp
[ 9.823703] Clocks: disabled unused pcie0
[ 9.827724] Clocks: disabled unused pcie1
[ 9.831755] Clocks: disabled unused sata
[ 9.835688] Clocks: disabled unused sata_oob
[ 9.839981] Clocks: disabled unused sata_pmu
[ 9.844262] Clocks: disabled unused ext_phy0
[ 9.848552] Clocks: disabled unused ext_phy1
[ 9.852835] Clocks: disabled unused ext_phy2
[ 9.857115] Clocks: disabled unused tsuntg
[ 9.861238] Clocks: disabled unused sata_occ
[ 9.865520] Clocks: disabled unused pcie_occ
[ 9.869810] Clocks: disabled unused sgmii_occ
[ 9.875468] ubi0: default fastmap pool size: 85
[ 9.880049] ubi0: default fastmap WL pool size: 42
[ 9.884855] ubi0: attaching mtd3
[ 12.068886] ubi0: scanning is finished
[ 12.082546] ubi0: attached mtd3 (name "rootfs", size 1788 MiB)
[ 12.088424] ubi0: PEB size: 1048576 bytes (1024 KiB), LEB size: 1040384 bytes
[ 12.095582] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
[ 12.102402] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
[ 12.109392] ubi0: good PEBs: 1779, bad PEBs: 9, corrupted PEBs: 0
[ 12.115503] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 12.122754] ubi0: max/mean erase counter: 5/1, WL threshold: 4096, image sequence number: 728257517
[ 12.131833] ubi0: available PEBs: 0, total reserved PEBs: 1779, PEBs reserved for bad PEB handling: 31
[ 12.141190] ubi0: background thread "ubi_bgt0d" started, PID 542
[ 12.148194] hctosys: unable to open rtc device (rtc0)
[ 12.154890] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 550
[ 12.454706] UBIFS (ubi0:0): recovery needed
[ 13.243663] UBIFS (ubi0:0): recovery completed
[ 13.248236] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[ 13.255659] UBIFS (ubi0:0): LEB size: 1040384 bytes (1016 KiB), min./max. I/O unit sizes: 4096 bytes/4096 bytes
[ 13.265791] UBIFS (ubi0:0): FS size: 1801945088 bytes (1718 MiB, 1732 LEBs), journal size 12550144 bytes (11 MiB, 13 LEBs)
[ 13.276873] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
[ 13.282737] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID F820F290-0A05-4B94-BFB2-010184A588A0, small LPT model
[ 13.298297] VFS: Mounted root (ubifs filesystem) on device 0:12.
[ 13.304495] Freeing unused kernel memory: 188K (c45e1000 - c4610000)
[ 13.637024] init: Console is alive
[ 14.642822] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 17.816866] mount_root: mounting /dev/root
cp: can't stat '/home/lib/*': No such file or directory
cp: can't stat '/home/sbin2/*': No such file or directory
cp: can't stat '/home/etc/rc.d/S99zero': No such file or directory
[ 17.857547] procd: - early -
[ 18.517612] procd: - ubus -
[ 19.524746] random: ubusd urandom read with 0 bits of entropy available
[ 19.538801] procd: - init -
Please press Enter to activate this console.
[ 20.630042] pfe_module_init
[ 20.632915] pfe_platform_probe
[ 20.636364] ipsec: baseaddr :9a000000 --- e5400000
[ 20.641219] Warning : hfe_core Clock is already disabled
[ 20.647637] pfe_probe
[ 20.649948] PFE Driver version:
[ 20.649948] pfe_ctrl_14_00_4
[ 20.649948] built with pfe sources version: pfe_14_00_3
[ 20.661221] cbus_baseaddr: fc000000, ddr_baseaddr: fa000000, ddr_phys_baseaddr: 3400000, ddr_size: c00000
[ 20.670832] pfe_hw_init
[ 20.673287] CLASS version: 20
[ 20.676262] TMU version: 1011231
[ 20.679516] BMU1 version: 21
[ 20.682405] BMU2 version: 21
[ 20.685292] EMAC1 network cfg: 80000
[ 20.688896] EMAC2 network cfg: 80000
[ 20.692482] EMAC3 network cfg: 80000
[ 20.696067] EGPI1 version: 50
[ 20.699055] EGPI2 version: 50
[ 20.702032] EGPI3 version: 50
[ 20.705007] HGPI version: 50
[ 20.707894] GPT version: 0
[ 20.710619] HIF version: 10
[ 20.713421] HIF NOPCY version: 10
[ 20.716744] UTIL version: 20
[ 20.719648] bmu_init(1) done
[ 20.722537] bmu_init(2) done
[ 20.732584] class_init() done
[ 20.735564] tmu_init: mem init
[ 20.738637] tmu_init: lmem init
[ 20.741817] tmu_init() done
[ 20.744617] util_init() done
[ 20.747507] gpi_init(1) done
[ 20.750405] gpi_init(2) done
[ 20.753294] gpi_init(3) done
[ 20.756182] gpi_init(hif) done
[ 20.759253] bmu_enable(1) done
[ 20.762315] bmu_enable(2) done
[ 20.765378] pfe_hif_lib_init
[ 20.768545] pfe_hif_init
[ 20.771087] pfe_hif_alloc_descr
[ 20.774732] pfe_hif_init_buffers
[ 20.778135] pfe_firmware_init
[ 20.805695] pfe_load_elf
[ 20.808275] pe_load_ddr_section: load address(3fb0000) and elf file address(e0b4f000) rcvd
[ 20.832263] PFE binary version: pfe_14_00_3
[ 20.836466] pfe_firmware_init: class firmware loaded 0xa80 0xc3010000
[ 20.842938] pfe_load_elf
[ 20.846434] pfe_firmware_init: tmu firmware loaded 0x220
[ 20.851779] pfe_load_elf
[ 20.855491] pfe_firmware_init: util firmware loaded 0x16c0
[ 20.861038] pfe_ctrl_init
[ 20.874833] pfe_ctrl_init finished
[ 20.878289] pfe_eth_init
[ 20.881738] pfe_ctrl_timer
[ 20.885304] libphy: Comcerto MDIO Bus: probed
[ 21.028096] eth3: pfe_eth_init_one: created interface, baseaddr: fc200000
[ 21.168034] eth2: pfe_eth_init_one: created interface, baseaddr: fc220000
[ 21.308032] eth0: pfe_eth_init_one: created interface, baseaddr: fc330000
[ 21.314850] pfe_vwd_init
[ 21.317560] pfe_vwd_init: created vwd device(251, 0)
[ 21.322611] comcerto_wifi_rx_fastpath_register:34 VWD Tx function registered
[ 21.329704] pfe_pcap_init
[ 21.340713] ocf: module license 'BSD' taints kernel.
[ 21.345702] Disabling lock debugging due to kernel taint
[ 21.401897] l2tp_core: L2TP core driver, V2.0
[ 21.407741] l2tp_netlink: L2TP netlink interface
[ 22.414465] SPI core: add driver le58qldrv
[ 22.418619] SPI core: attach client to adapter comcerto_spi
[ 22.424207] le58ql_device_init: device=0
[ 22.435571] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 22.452154] i2c /dev entries driver
[ 22.500525] Ebtables v2.0 registered
[ 22.506851] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 22.530618] nf_conntrack version 0.5.0 (7700 buckets, 30800 max)
[ 22.747828] Netfilter messages via NETLINK v0.30.
[ 22.795249] xt_time: kernel timezone is -0000
[ 22.816059] ctnetlink v0.93: registering with nfnetlink.
[ 22.829890] PPP generic driver version 2.4.2
[ 22.836118] NET: Registered protocol family 24
[ 22.847472] l2tp_ppp: PPPoL2TP kernel driver, V2.0
[ 26.397962] VoIP has been started successfully
[ 26.402437] Device: 170
[ 26.404891] Revision: 0
[ 26.407345] CSPtoMSPQueuePhyaddr: 0xf051ebd0
[ 26.411660] MSPtoCSPQueuePhyaddr: 0xf051ebe0
[ 26.415943] SMRXCSPhyaddr: 0xf051ebf0
[ 26.419642] SMTXCSPhyaddr: 0xf051ebf0
[ 26.423321] DSP version: armdsp_5.8.3
[ 26.426997] VoIP version: voip_v7_01_15
[ 26.446893] eth0: pfe_eth_open
[ 26.450242] hif_process_client_req: register client_id 2
[ 26.455580] pfe_hif_client_register
[ 26.459158] hif_lib_set_rx_cpu_affinity:Client (2) and HIF Rx processing will use same cpu
[ 26.464500] IP Interface Driver version 1.0 15:27:50 Dec 5 2022
[ 26.473534] eth0: pfe_gemac_init
[ 26.495059] eth3: pfe_eth_open
[ 26.498474] hif_process_client_req: register client_id 0
[ 26.503819] pfe_hif_client_register
[ 26.507362] hif_lib_set_rx_cpu_affinity:Client (0) and HIF Rx processing will use same cpu
[ 26.515751] eth3: pfe_gemac_init
[ 26.572100] wan driver version 4.08.0.1.07 15:27:51 Dec 5 2022
[ 26.592265]
STI_INIT_ONCE(0xde306400)
[ 27.188004] NET: Registered protocol family 27
[ 38.428106] eth0: Link is Up - 100Mbps/Full - flow control rx/tx

 

 

0 Kudos
5 Replies

665 Views
Oswalag
NXP TechSupport
NXP TechSupport

It could be a wrong configuration of the Expansion Bus Interface, there are some rules to follow when used as NAND Mode that is relevant for CS4 only, chip select #4 is used as the NAND write enable signal (Exp_nand_we_n).It is not supported by the chip selects #0-3,  please review the configuration and the block functional description, the expansion controller provides the flash address/data/command and drives the NAND_WE#\NAND_RE# signals.

 

0 Kudos

687 Views
Oswalag
NXP TechSupport
NXP TechSupport

I understand that if SPI_SS2_N (AD23) and GPIOa (H4) are not used ECC is not output, my question is what happen if you try these 2 scenarios below:

1) SPI_SS2_N (AD23) Used and GPIOa (H4) not used.

2) SPI_SS2_N (AD23) not used and GPIOa (H4) used.

these in order to see if the issue occurs only when one of the signals is used or always with both.

could you also share the complete picture of all the signals when ECC comes out from NAND with the name according to the datasheet.

0 Kudos

682 Views
h201668
Contributor III

1) SPI_SS2_N (AD23) enabled and GPIOa (H4) disabled.
=> AD23 pin and H4 must be used at the same time. 2 pins are used to transmit SPI signals.
The AD23 pin is used as the SPI clock, and the H4 pin transmits and receives the SPI DIO signal. Use the SPI_SS1_n (AE23) pin as SPI1_cs.

 

2) SPI_SS2_N (AD23) is not used and GPIOa (H4) is used.
=> Same as above answer.

 

This is to determine if the problem only occurs when one of the signals is used, or if the problem always occurs with both.

Can you share a full picture of all the signals when ECC comes from NAND with the names according to the datasheet?
=> It doesn't look like SPI signal control will affect NAND_CS, but please check the attached picture.

 

Add

1. Booting and system operation pictures

h201668_2-1673929983641.png

 


2. Use with SPI1_ss and SPI_DIO

h201668_1-1673929826869.png

 

3. Causes of NAND_CS_n ECC

h201668_3-1673930095711.png

1) Enlarge photo

h201668_4-1673930297873.png

1-1) Enlarge photo

h201668_5-1673930473887.png

 

My thoughts do not seem to be related in SPI1_CLK(AD23) and SPI1_DIO(H4), but I need to check if CS2 and NAND_CS are related.

The reason why I think it is the cause of ECC is that NAND_CS became active low and then recognized it as high.

I have confirmed that ECC is not output unless CS2 is used.

What do you think about this part?

I look forward to your reply.

0 Kudos

755 Views
Oswalag
NXP TechSupport
NXP TechSupport

Hello,

spi_ss2_n when is used as GPIO it is GPIO 21 that is muxed with other functional pin and can only be used in case the
other functionality is not used, on the other hand GPIO15 - SPI_SS2_N(AD23)  is a dedicated general purpose I/O interface signals for specific control, monitoring signaling purpose, if you don't use SPI_SS2_N(AD23) the issue continues?

0 Kudos

740 Views
h201668
Contributor III

Thank you for answer

Is the GPIO 21 you told us about SPI_SS2_n correct?

Otherwise, it is necessary to check whether GPIO15 is SPI_SS2_n.

It does not use GPIO15.

h201668_0-1673228001859.png

 

However, the AD23 pin is used.

AD23 pin becomes GPIO 21.

Hope you can check again.

And AD23 pin must be used, and clk is made and used with GPIO21.

Tags (3)
0 Kudos