打印
[技术问答]

为什么启动的时候有错误打印信息,我们使用的SPI NAND XT26G01BWSEGA

[复制链接]
718|3
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
johnsondong|  楼主 | 2023-8-31 10:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[BEGIN] 2023/8/31 10:20:39

NUC980 IBR 20180813
Boot from SPI-NAND
DDR-OK
finish SPI dow?
               #S
SPL load main U-Boot from SPI NAND Flash! (Dec 11 2022 02:52:31)


U-Boot 2016.11 (Dec 11 2022 - 02:52:31 +0800)

CPU: NUC980
Board: NUC980
DRAM:  128 MiB
NAND:  0 MiB
jedec bf1SF: Detected XT26G01BWSEGA with page size 2 KiB, erase size 4 KiB, total 128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  0
jedec bf1SF: Detected XT26G01BWSEGA with page size 2 KiB, erase size 4 KiB, total 128 MiB
device 0 offset 0x200000, size 0xa00000
SF: 10485760 bytes @ 0x200000 Read: OK
## Booting kernel from Legacy Image at 00007fc0 ...
   Image Name:   Linux-4.4.289
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    10179440 Bytes = 9.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   XIP Kernel Image ... OK

Starting kernel ...

jedec bf1SF: Detected XT26G01BWSEGA with page size 2 KiB, erase size 4 KiB, total 128 MiB
SF: Device?Booting Linux on physical CPU 0x0
Linux version 4.4.289 (wuzw@wuzw-ThinkPad-E480) (gcc version 4.8.4 (GCC) ) #59 PREEMPT Wed Apr 19 18:49:10 CST 2023
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f
CPU: VIVT data cache, VIVT instruction cache
Machine: NUC980
Memory policy: Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 rootflags=inband-tags console=ttyS0,115200n8 rdinit=/sbin/init mem=64M
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 51828K/65536K available (3798K kernel code, 227K rwdata, 1120K rodata, 7672K init, 229K bss, 13708K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc4800000 - 0xff800000   ( 944 MB)
    lowmem  : 0xc0000000 - 0xc4000000   (  64 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc04d5dc4   (4920 kB)
      .init : 0xc04d6000 - 0xc0c54000   (7672 kB)
      .data : 0xc0c54000 - 0xc0c8cc80   ( 228 kB)
       .bss : 0xc0c8cc80 - 0xc0cc6120   ( 230 kB)
SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Preemptible hierarchical RCU implementation.
        Build-time adjustment of leaf fanout to 32.
NR_IRQS:545
clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns
sched_clock: 24 bits at 120kHz, resolution 8333ns, wraps every 69905062489ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x8400 - 0x843c
devtmpfs: initialized
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 256 (order: -1, 3072 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource nuc980-timer5
NET: Registered protocol family 2
IP idents hash table entries: 2048 (order: 2, 16384 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (double precision)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
io scheduler noop registered (default)
nuc980_gpio_probe - pdev = nuc980-gpio
nuc980_dma_probe - pdev = nuc980-dma
nuc980-dma nuc980-dma: NUC980 DMA ready
nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980
nuc980-uart.1: ttyS1 at I/O 0x0 (irq = 37, base_baud = 9375000) is a NUC980
nuvoton-rng nuvoton-rng: nuvoton PRNG active
brd: module loaded
RX nuc980_qspi0_probe: dma0chan0 module removed
TX nuc980_qspi0_probe: dma0chan1 module removed
RX nuc980_spi0_probe: dma0chan2 module removed
TX nuc980_spi0_probe: dma0chan3 module removed
m25p80 spi1.1: unrecognized JEDEC id bytes: ff, ff, ff
m25p80: probe of spi1.1 failed with error -2
CAN device driver interface
nuc980-can0 nuc980-can0: nuc980_can0_platform device registered (regs=f00a0000, irq=58)
nuc980-can1 nuc980-can1: nuc980_can1_platform device registered (regs=f00a1000, irq=59)
nuc980-can2 nuc980-can2: nuc980_can2_platform device registered (regs=f00a2000, irq=62)
nuc980-can3 nuc980-can3: nuc980_can3_platform device registered (regs=f00a3000, irq=42)
libphy: nuc980_rmii0: probed
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
PPP MPPE Compression module registered
NET: Registered protocol family 24
usbcore: registered new interface driver qmi_wwan
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller
nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1
nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000
nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0, 0
nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller
nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2
nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 8 ports detected
usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1, 0
usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2, 0
usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3, 0
usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4, 0
usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5, 0
usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6, 0
usbcore: registered new interface driver cdc_wdm
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver option
usbserial: USB Serial support registered for GSM modem (1-port)
nuc980-i2c0 nuc980-i2c0: i2c-0: nuc980 I2C adapter
nuc980-i2c2 nuc980-i2c2: i2c-2: nuc980 I2C adapter
nuc980_sd_probe - pdev = nuc980-sdh
NUC980 Crypto engine enabled.
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
nand: device found, Manufacturer ID: 0x0b, Chip ID: 0xf1
nand: XTX XT26G01BWSEGA 1G 3.3V
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip
Scanning device for bad blocks
mt29f spi0.0: ecc error, page=9152
Bad eraseblock 143 at 0x0000011e0000
mt29f spi0.0: ecc error, page=9216
Bad eraseblock 144 at 0x000001200000
mt29f spi0.0: ecc error, page=9664
Bad eraseblock 151 at 0x0000012e0000
mt29f spi0.0: ecc error, page=10176
Bad eraseblock 159 at 0x0000013e0000
mt29f spi0.0: ecc error, page=16384
Bad eraseblock 256 at 0x000002000000
mt29f spi0.0: ecc error, page=28864
Bad eraseblock 451 at 0x000003860000
mt29f spi0.0: ecc error, page=32768
Bad eraseblock 512 at 0x000004000000
mt29f spi0.0: ecc error, page=34624
Bad eraseblock 541 at 0x0000043a0000
mt29f spi0.0: ecc error, page=47168
Bad eraseblock 737 at 0x000005c20000
mt29f spi0.0: ecc error, page=49152
Bad eraseblock 768 at 0x000006000000
mt29f spi0.0: ecc error, page=51392
Bad eraseblock 803 at 0x000006460000
mt29f spi0.0: ecc error, page=55104
Bad eraseblock 861 at 0x000006ba0000
mt29f spi0.0: ecc error, page=57408
Bad eraseblock 897 at 0x000007020000
mt29f spi0.0: ecc error, page=60480
Bad eraseblock 945 at 0x000007620000
mt29f spi0.0: ecc error, page=63040
Bad eraseblock 985 at 0x000007b20000
Creating 3 MTD partitions on "nand0":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000001600000 : "Kernel"
0x000001600000-0x000008000000 : "user"
nuc980-nadc: nuc980 Normal ADC adapter

使用特权

评论回复
沙发
zhanglli| | 2023-8-31 21:21 | 只看该作者
可否把错误信息标注一下

使用特权

评论回复
板凳
riplay| | 2023-9-1 10:11 | 只看该作者
错误信息表示这颗Spi Nand有些坏块。

使用特权

评论回复
地板
奔跑的牛| | 2023-9-1 18:25 | 只看该作者
nand: device found, Manufacturer ID: 0x0b, Chip ID: 0xf1
nand: XTX XT26G01BWSEGA 1G 3.3V
nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip
Scanning device for bad blocks
mt29f spi0.0: ecc error, page=9152
Bad eraseblock 143 at 0x0000011e0000
mt29f spi0.0: ecc error, page=9216
Bad eraseblock 144 at 0x000001200000
mt29f spi0.0: ecc error, page=9664
Bad eraseblock 151 at 0x0000012e0000
mt29f spi0.0: ecc error, page=10176
Bad eraseblock 159 at 0x0000013e0000
mt29f spi0.0: ecc error, page=16384
Bad eraseblock 256 at 0x000002000000
mt29f spi0.0: ecc error, page=28864
Bad eraseblock 451 at 0x000003860000
mt29f spi0.0: ecc error, page=32768
Bad eraseblock 512 at 0x000004000000
mt29f spi0.0: ecc error, page=34624
Bad eraseblock 541 at 0x0000043a0000
mt29f spi0.0: ecc error, page=47168
Bad eraseblock 737 at 0x000005c20000
mt29f spi0.0: ecc error, page=49152
Bad eraseblock 768 at 0x000006000000
mt29f spi0.0: ecc error, page=51392
Bad eraseblock 803 at 0x000006460000
mt29f spi0.0: ecc error, page=55104
Bad eraseblock 861 at 0x000006ba0000
mt29f spi0.0: ecc error, page=57408
Bad eraseblock 897 at 0x000007020000
mt29f spi0.0: ecc error, page=60480
Bad eraseblock 945 at 0x000007620000
mt29f spi0.0: ecc error, page=63040
Bad eraseblock 985 at 0x000007b20000
提示您的nand flash 有些坏块

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

1

主题

1

帖子

0

粉丝