有时不能启动
-
有20%的慨率不能启动,都是卡在uboot,提高日志等级后查看打印,基本上是频烦打印[01.505]logical area info: 468 258048 last_lba: 235871时停了
[52]HELLO! BOOT0 is starting! [55]BOOT0 commit : 88480af [58]set pll start [59]periph0 has been enabled [62]set pll end [64][pmu]: bus read error [66]board init ok [68]ZQ value = 0x2f [70]get_pmu_exist() = -1 [72]DRAM BOOT DRIVE INFO: V0.33 [75]DRAM CLK = 528 MHz [77]DRAM Type = 2 (2:DDR2,3:DDR3) [80]DRAMC read ODT off. [83]DRAM ODT off. [85]ddr_efuse_type: 0xa [87]DRAM SIZE =64 M [89]dram_tpr4:0x0 [91]PLL_DDR_CTRL_REG:0xf8002b00 [94]DRAM_CLK_REG:0xc0000000 [96][TIMING DEBUG] MR2= 0x0 [101]DRAM simple test OK. [103]dram size =64 [105]spinand UBOOT_START_BLK_NUM 8 UBOOT_LAST_BLK_NUM 32 [110]block from 8 to 32 [180]Check is correct. [182]dma 0x301a8 int is not used yet [185]dma 0x301a8 int is free, you do not need to free it again [191]Entry_name = opensbi [194]Entry_name = u-boot [198]Entry_name = dtb U-Boot 2018.05-g24521d6-dirty (Aug 22 2022 - 18:22:56 +0800) Allwinner Technology [00.211]DRAM: 64 MiB [00.213]Relocation Offset is: 01ee7000 [00.217]secure enable bit: 0 [00.220]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz [00.226]flash init start [00.228]workmode = 0,storage type = 0 [00.232]sunxi-spinand: AW SPINand MTD Layer Version: 1.5 20200407 [00.238]sunxi-spinand-phy: AW SPINand Phy Layer Version: 1.9 20200306 [00.247]sunxi-spinand-phy: request spi0 gpio ok [00.251]sunxi-spinand-phy: request general tx dma channel ok! [00.256]sunxi-spinand-phy: request general rx dma channel ok! [00.262]sunxi-spinand-phy: set spic0 clk to 20 Mhz [00.266]sunxi-spinand-phy: init spic0 clk ok sspi->base_addr = 0x4025000, the SPI control register: [VER] 0x4025000 = 0x00010001, [GCR] 0x4025004 = 0x00000083, [TCR] 0x4025008 = 0x00000184 [ICR] 0x4025010 = 0x00000f00, [ISR] 0x4025014 = 0x00000032, [FCR] 0x4025018 = 0x00200020 [FSR] 0x402501c = 0x00000000, [WCR] 0x4025020 = 0x00000000, [CCR] 0x4025024 = 0x00000002 [SDC] 0x4025028 = 0x00002000, [BCR] 0x4025030 = 0x00000000, [TCR] 0x4025034 = 0x00000000 [BCC] 0x4025038 = 0x10000000, [DMA] 0x4025088 = 0x000000e5 [00.312]sunxi-spinand-phy: not detect any munufacture from id table [00.318]sunxi-spinand-phy: get spi-nand Model from fdt fail [00.323]sunxi-spinand-phy: get phy info from fdt fail [00.328]sunxi-spinand-phy: not detect munufacture from fdt [00.333]sunxi-spinand-phy: detect munufacture from id table: Mxic [00.339]sunxi-spinand-phy: detect spinand id: ffff12c2 ffffffff [00.344]sunxi-spinand-phy: ========== arch info ========== [00.350]sunxi-spinand-phy: Model: MX35LF1GE4AB [00.355]sunxi-spinand-phy: Munufacture: Mxic [00.360]sunxi-spinand-phy: DieCntPerChip: 1 [00.364]sunxi-spinand-phy: BlkCntPerDie: 1024 [00.369]sunxi-spinand-phy: PageCntPerBlk: 64 [00.373]sunxi-spinand-phy: SectCntPerPage: 4 [00.378]sunxi-spinand-phy: OobSizePerPage: 64 [00.382]sunxi-spinand-phy: BadBlockFlag: 0x1 [00.387]sunxi-spinand-phy: OperationOpt: 0x7 [00.391]sunxi-spinand-phy: MaxEraseTimes: 65000 [00.396]sunxi-spinand-phy: EccFlag: 0x2 [00.401]sunxi-spinand-phy: EccType: 4 [00.405]sunxi-spinand-phy: EccProtectedType: 3 [00.410]sunxi-spinand-phy: ======================================== [00.416]sunxi-spinand-phy: [00.418]sunxi-spinand-phy: ========== physical info ========== [00.424]sunxi-spinand-phy: TotalSize: 128 M [00.428]sunxi-spinand-phy: SectorSize: 512 B [00.432]sunxi-spinand-phy: PageSize: 2 K [00.436]sunxi-spinand-phy: BlockSize: 128 K [00.440]sunxi-spinand-phy: OOBSize: 64 B [00.444]sunxi-spinand-phy: ======================================== [00.450]sunxi-spinand-phy: [00.453]sunxi-spinand-phy: ========== logical info ========== [00.458]sunxi-spinand-phy: TotalSize: 128 M [00.462]sunxi-spinand-phy: SectorSize: 512 B [00.466]sunxi-spinand-phy: PageSize: 4 K [00.470]sunxi-spinand-phy: BlockSize: 256 K [00.475]sunxi-spinand-phy: OOBSize: 128 B [00.479]sunxi-spinand-phy: ======================================== [00.485]sunxi-spinand-phy: MX35LF1GE4AB reset rx bit width to 1 [00.491]sunxi-spinand-phy: MX35LF1GE4AB reset tx bit width to 1 [00.496]sunxi-spinand-phy: set spic0 clk to 100 Mhz [00.501]sunxi-spinand-phy: block lock register: 0x00 [00.506]sunxi-spinand-phy: feature register: 0x11 [00.510]sunxi-spinand-phy: sunxi physic nand init end [00.515]mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) device nand0 <nand>, # parts = 4 #: name size offset mask_flags 0: boot0 0x00100000 0x00000000 1 1: uboot 0x00300000 0x00100000 1 2: secure_storage 0x00100000 0x00400000 1 3: sys 0x07b00000 0x00500000 0 active partition: nand0,0 - (boot0) 0x00100000 @ 0x00000000 defaults: mtdids : nand0=nand mtdparts: mtdparts=nand:1024k@0(boot0)ro,3072k@1048576(uboot)ro,1024k@4194304(secure_storage)ro,-(sys) [00.566]MTD info (4) [00.568]pagesize: 0x1000 [00.570]blksize: 0x40000 [00.572]num offset bytes name [00.576]0 0x00000000 0x00100000 boot0 [00.579]1 0x00100000 0x00300000 uboot [00.583]2 0x00400000 0x00100000 secure_storage [00.587]3 0x00500000 0x07b00000 sys [00.591]ubi attach the last part of mtd device: NO.3 [00.701]ubi0: attaching mtd4 [00.877]ubi0: scanning is finished [00.885]ubi0: attached mtd4 (name "sys", size 123 MiB) [00.890]ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 258048 bytes [00.896]ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 2048 [00.902]ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096 [00.909]ubi0: good PEBs: 489, bad PEBs: 3, corrupted PEBs: 0 [00.914]ubi0: user volume: 9, internal volumes: 1, max. volumes count: 128 [00.921]ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 0 [00.928]ubi0: available PEBs: 0, total reserved PEBs: 489, PEBs reserved for bad PEB handling: 17 [00.937]sunxi flash init ok [00.939]line:703 init_clocks [00.943]init_clocks:finish [00.945]drv_disp_init [00.954]get flash lcd idx 0 request pwm success, pwm7:pwm7:0x2000c00. [00.963]HDMI 2.0 driver init start! [00.967]drv_disp_init finish [00.970]boot_gui_init:start [00.973]set disp.dev2_output_type fail. using defval=0 [00.978]disp 0, clk: pll(120000000),clk(120000000),dclk(20000000) dsi_rate(120000000) clk real:pll(288000000),clk(288000000),dclk(24000000) dsi_rate(0) ili9xxx panel init ili9xxx panel id 00000000 [01.138]switch device: sel=0, type=1, mode=4, format=0, bits=0, eotf=4, cs=260 [01.145]boot_gui_init:finish [01.148]logical area info: 468 258048 last_lba: 235871 [01.159]logical area info: 468 258048 last_lba: 235871 [01.163]MTD info (4) [01.165]pagesize: 0x1000 [01.167]blksize: 0x40000 [01.170]num offset bytes name [01.173]0 0x00000000 0x00100000 boot0 [01.177]1 0x00100000 0x00300000 uboot [01.181]2 0x00400000 0x00100000 secure_storage [01.185]3 0x00500000 0x07b00000 sys [01.189]MBR info (unalign): [01.191]partno addr sects type name [01.196]0 0x00000000 0x00000800 0x00000001 mbr [01.201]1 0x00000800 0x000001f8 0x00008000 boot-resource [01.206]2 0x000009f8 0x000001f8 0x00008000 env [01.211]3 0x00000bf0 0x000001f8 0x00008000 env-redund [01.216]4 0x00000de8 0x00005000 0x00008000 boot [01.221]5 0x00005de8 0x0000e600 0x00008000 rootfs [01.226]6 0x000143e8 0x00005780 0x00008000 recovery [01.231]7 0x00019b68 0x00002800 0x00008000 rootfs_data [01.237]8 0x0001c368 0x0001d0a0 0x00000000 UDISK [01.242]ubi attach the last part of mtd device: NO.3 [01.247]MBR info (align): [01.249]partno addr sects type name [01.254]0 0x00002800 0x000009d8 0x00000001 mbr [01.258]1 0x000031d8 0x000001f8 0x00008000 boot-resource [01.264]2 0x000033d0 0x000001f8 0x00008000 env [01.269]3 0x000035c8 0x000001f8 0x00008000 env-redund [01.274]4 0x000037c0 0x000050b8 0x00008000 boot [01.279]5 0x00008878 0x0000e658 0x00008000 rootfs [01.284]6 0x00016ed0 0x00005898 0x00008000 recovery [01.289]7 0x0001c768 0x00002958 0x00008000 rootfs_data [01.295]8 0x0001f0c0 0x0001d0a0 0x00000000 UDISK [01.306]logical area info: 468 258048 last_lba: 235871 [01.317]logical area info: 468 258048 last_lba: 235871 [01.327]logical area info: 468 258048 last_lba: 235871 [01.338]logical area info: 468 258048 last_lba: 235871 [01.349]logical area info: 468 258048 last_lba: 235871 [01.360]logical area info: 468 258048 last_lba: 235871 [01.371]logical area info: 468 258048 last_lba: 235871 [01.381]logical area info: 468 258048 last_lba: 235871 [01.392]logical area info: 468 258048 last_lba: 235871 [01.403]logical area info: 468 258048 last_lba: 235871 [01.414]logical area info: 468 258048 last_lba: 235871 [01.425]logical area info: 468 258048 last_lba: 235871 [01.435]logical area info: 468 258048 last_lba: 235871 [01.446]logical area inf[01.449]LCD open finish o: 468 258048 last_lba: 235871 [01.460]logical area info: 468 258048 last_lba: 235871 [01.471]logical area info: 468 258048 last_lba: 235871 [01.482]logical area info: 468 258048 last_lba: 235871 [01.494]logical area info: 468 258048 last_lba: 235871 [01.505]logical area info: 468 258048 last_lba: 235871
-
有没有尝试更换一下 SPI NAND 储存器,可能是储存器坏块了
-
@yteraa 试过,和demo板上的交换试过,在demo板上始终是好的,在我的板子上就会有问题
-
@lts52341314 芯片换一下看看,如果还有问题那可能是板子设计问题了
-
@lts52341314
遇事不决,先查电源. -
@whycan 电压看过和demo板一样,会是电源不稳定吗
-
@lts52341314
注意电源波纹,以及峰值电流下电压会不会被拉低。 -
@whycan VCC-IO有一点锯齿,正常吗
-
① 电源旁边并一个 大电容 + 0.01uF小电容
② 降低SPI 速率到 5Mhz左右先酱紫试一试
-
@whycan 试了加滤波电容,没有好,不过在DC-DC的反馈电阻上并一个小电容好了,现在不能启动的概率变低了
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号