This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DM368 ubl rtc 初始化失败问题

各位大神好!

我将ubl从 1.50 换到2.2.0,移植完出现Reset RTC Fail.。并且系统启动了一般就卡死了,串口最终打印信息为

rtc_davinci rtc_davinci.0: rtc core: registered rtc_davinci as rtc0  

从打印信息看应该是RTC这一块出现了问题,请问各位大神如何解决?

DM36x initialization passed!
TI UBL Base Version: 1.50
Boot Loader BootMode = NAND
Starting NAND Copy...
Valid magicnum, 0xA1ACED66, found in block 0x00000008.
Boot Mode Task Completed

IPNC UBL Version: 2.2.0
Platform: DM368-432

Reset RTC Fail..

UBL Executed Sucessfully

Jumping to entry point at 0x81080000

U-Boot 1.3.4-00002-g20e3f33-dirty (Oct 21 2019 - 18:04:03) DM368-IPNC-5.1.0

I2C: ready
DRAM: 128 MB
NAND: NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
Bad block table not found for chip 0
Bad block table not found for chip 0

loop oob 81021dd8 Bad block table written to 0x1ffe0000, version 0x01

loop oob 81021dd8 Bad block table written to 0x1ffc0000, version 0x01
512 MiB
*** Warning - bad CRC or NAND, using default environment

In: serial
Out: serial
Err: serial
ARM Clock :- 432MHz
DDR Clock :- 340MHz
Ethernet PHY: GENERIC @ 0x01
Hit any key to stop autoboot: 0
Saving Environment to NAND...
Erasing Nand...
Erasing at 0x240000 -- 100% complete.
Writing to Nand... done

Loading from NAND 512MiB 3,3V 8-bit, offset 0x500000
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4198912 Bytes = 4 MB
Load Address: 80008000
Entry Point: 80008000
## Booting kernel from Legacy Image at 80700000 ...
Image Name: Linux-2.6.37_IPNC_DM368_5.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4198912 Bytes = 4 MB
Load Address: 80008000
Entry Point: 80008000
Loading Kernel Image ... OK
OK

Starting kernel ...

[ 0.000000] Linux version 2.6.37_IPNC_DM368_5.1.0 (cuiyunpeng@esw-develop) (gcc version 4.3.3 (GCC) ) #1 PREEMPT Mon Oct 21 18:06:10 CST 2019
[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: DaVinci DM36x IPNC
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] DaVinci dm36x_rev1.2 variant 0x8
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 12192
[ 0.000000] Kernel command line: console=ttyS1,115200n8 noinitrd ip=192.168.1.2:192.168.1.200:192.168.1.1:255.255.255.0 eth=00:0c:0c:A0:02:b4 mem=48M cmemk.phys_start=0x83000000 cmemk.phys_end=0x88000000 cmemk.phys_start_1=0x00001000 cmemk.phys_end_1=0x00008000 cmemk.pools_1=1x28672 cmemk.allowOverlap=1 cmemk.useHeapIfPoolUnavailable=1 nohz=off highres=off clocksource=acpi_pm lpj=1077248 rw ubi.mtd=3,2048 rootfstype=ubifs root=ubi0:rootfs
[ 0.000000] TI DaVinci EMAC: kernel boot params Ethernet address: 00:0c:0c:A0:02:b4
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Memory: 48MB = 48MB total
[ 0.000000] Memory: 44424k/44424k available, 4728k reserved, 0K highmem
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] DMA : 0xff000000 - 0xffe00000 ( 14 MB)
[ 0.000000] vmalloc : 0xc3800000 - 0xfea00000 ( 946 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc3000000 ( 48 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .init : 0xc0008000 - 0xc002b000 ( 140 kB)
[ 0.000000] .text : 0xc002b000 - 0xc03e0000 (3796 kB)
[ 0.000000] .data : 0xc03e0000 - 0xc0409200 ( 165 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptable hierarchical RCU implementation.
[ 0.000000] RCU-based detection of stalled CPUs is disabled.
[ 0.000000] Verbose stalled-CPUs detection is disabled.
[ 0.000000] NR_IRQS:245
[ 0.000000] Console: colour dummy device 80x30
[ 0.000298] Calibrating delay loop (skipped) preset value.. 215.44 BogoMIPS (lpj=1077248)
[ 0.000357] pid_max: default: 32768 minimum: 301
[ 0.000581] Security Framework initialized
[ 0.000734] Mount-cache hash table entries: 512
[ 0.001577] CPU: Testing write buffer coherency: ok
[ 0.003317] devtmpfs: initialized
[ 0.006347] DaVinci: 8 gpio irqs
[ 0.006982] NET: Registered protocol family 16
[ 0.129796] bio: create slab <bio-0> at 0
[ 0.136974] usbcore: registered new interface driver usbfs
[ 0.138345] usbcore: registered new interface driver hub
[ 0.139294] usbcore: registered new device driver usb
[ 0.144994] vpss vpss: dm365_vpss vpss probed
[ 0.145061] vpss vpss: dm365_vpss vpss probe success
[ 0.149146] Advanced Linux Sound Architecture Driver Version 1.0.23.
[ 0.151579] Switching to clocksource timer0_1
[ 0.234454] musb-hdrc: version 6.0, peripheral, debug=0
[ 0.234653] musb-hdrc musb-hdrc: dma type: dma-cppi3
[ 0.251321] musb-hdrc musb-hdrc: USB Peripheral mode controller at fec64000 using DMA, IRQ 12
[ 0.252108] NET: Registered protocol family 2
[ 0.252438] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.253190] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.253330] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.253418] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.253449] TCP reno registered
[ 0.253487] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.253550] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.254090] NET: Registered protocol family 1
[ 0.255147] RPC: Registered udp transport module.
[ 0.255193] RPC: Registered tcp transport module.
[ 0.255221] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.328187] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.328262] JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
[ 0.332272] msgmni has been set to 86
[ 0.337515] io scheduler noop registered (default)
[ 0.339304] CSL: Module install successful, device major num = 253
[ 0.339352] CSL: Module version 0.10.00, built on Oct 21 2019 18:04:21
[ 0.339406] I2C: Module install successful, device major num = 252
[ 0.339447] DMA: Module install successful, device major num = 251
[ 0.339477] DRV: Module install successful
[ 0.339503] DRV: Module built on Oct 21 2019 18:04:21
[ 0.339531] DRV: EDMACC.QUEPRI = 00002777
[ 0.339554] DRV: SYSTEM.MSTPRI0 = 00440011
[ 0.339575] DRV: SYSTEM.MSTPRI1 = 00000444
[ 0.339597] DRV: ISP.BCR = 00000002
[ 0.339620] DRV: SYSTEM.MISC = 00000399
[ 0.339644] EDMAK module: built on Oct 21 2019 at 18:04:13
[ 0.339674] Reference Linux version 2.6.37
[ 0.339699] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/edma/src/module/edmak.c
[ 0.341666] IRQK module: built on Oct 21 2019 at 18:04:12
[ 0.341718] Reference Linux version 2.6.37
[ 0.341745] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/irq/src/module/irqk.c
[ 0.343432] irqk initialized
[ 0.345085] CMEMK module: built on Oct 21 2019 at 18:04:13
[ 0.345138] Reference Linux version 2.6.37
[ 0.345165] File /home/cuiyunpeng/rh-project/kba8w20190318/src/dvsdk_ipnctools/linuxutils_2_26_02_05/packages/ti/sdo/linuxutils/cmem/src/module/cmemk.c
[ 0.350618] allocated heap buffer 0xc4000000 of size 0x5000000
[ 0.350660] heap fallback enabled - will try heap if pool buffer is not available
[ 0.350702] CMEM Range Overlaps Kernel Physical - allowing overlap
[ 0.350737] CMEM phys_start (0x1000) overlaps kernel (0x80000000 -> 0x83000000)
[ 0.350909] cmemk initialized
[ 0.350967] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.451389] serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
[ 0.511273] serial8250.0: ttyS1 at MMIO 0x1d06000 (irq = 41) is a 16550A
[ 1.079548] console [ttyS1] enabled
[ 1.123006] brd: module loaded
[ 1.144783] loop: module loaded
[ 1.155089] ONFI flash detected
[ 1.158376] ONFI param page 0 valid
[ 1.162251] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xdc (Micron NAND 512MiB 3,3V 8-bit)
[ 1.172524] Bad block table not found for chip 0
[ 1.178494] Bad block table not found for chip 0
[ 1.183274] Scanning device for bad blocks
[ 1.524762] Creating 9 MTD partitions on "davinci_nand.0":
[ 1.530389] 0x000000000000-0x000000300000 : "bootloader"
[ 1.540472] 0x000000300000-0x000000500000 : "params"
[ 1.550504] 0x000000500000-0x000000a00000 : "kernel"
[ 1.560534] 0x000000a00000-0x000002200000 : "filesystem1"
[ 1.571089] 0x000002200000-0x000002a00000 : "data1"
[ 1.581152] 0x000002a00000-0x000004200000 : "filesystem2"
[ 1.591867] 0x000004200000-0x000005a00000 : "filesystem3"
[ 1.602592] 0x000005a00000-0x000007200000 : "filesystem4"
[ 1.613253] 0x000007200000-0x000020000000 : "reserve"
[ 1.624326] davinci_nand davinci_nand.0: controller rev. 2.3
[ 1.633387] UBI: attaching mtd3 to ubi0
[ 1.637253] UBI: physical eraseblock size: 131072 bytes (128 KiB)
[ 1.643856] UBI: logical eraseblock size: 126976 bytes
[ 1.649274] UBI: smallest flash I/O unit: 2048
[ 1.654158] UBI: VID header offset: 2048 (aligned 2048)
[ 1.660290] UBI: data offset: 4096
[ 1.814954] UBI: max. sequence number: 0
[ 1.844838] UBI: volume 0 ("rootfs") re-sized from 166 to 186 LEBs
[ 1.853611] UBI: attached mtd3 to ubi0
[ 1.857382] UBI: MTD device name: "filesystem1"
[ 1.862996] UBI: MTD device size: 24 MiB
[ 1.867883] UBI: number of good PEBs: 192
[ 1.872613] UBI: number of bad PEBs: 0
[ 1.877067] UBI: number of corrupted PEBs: 0
[ 1.881573] UBI: max. allowed volumes: 128
[ 1.886195] UBI: wear-leveling threshold: 4096
[ 1.890963] UBI: number of internal volumes: 1
[ 1.895413] UBI: number of user volumes: 1
[ 1.899856] UBI: available PEBs: 0
[ 1.904348] UBI: total number of reserved PEBs: 192
[ 1.909232] UBI: number of PEBs reserved for bad PEB handling: 2
[ 1.915286] UBI: max/mean erase counter: 1/0
[ 1.919562] UBI: image sequence number: 304970394
[ 1.924439] UBI: background thread "ubi_bgt0d" started, PID 463
[ 1.941109] spi_davinci spi_davinci.0: Controller at 0xfec66000
[ 2.010153] davinci_mdio davinci_mdio.0: davinci mdio revision 1.4
[ 2.016362] davinci_mdio davinci_mdio.0: detected phy mask fffffffd
[ 2.024222] davinci_mdio.0: probed
[ 2.027668] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 2.039666] rtc_davinci rtc_davinci.0: rtc core: registered rtc_davinci as rtc0