linux开发板断电重启后rtc归0,系统重启后rtc不能保存

我认为它一定保存了,请看如下打印信息。

root@yada:~# date -s "2016-01-10 19:12:56"

2016年01月10日 星期日19:12:56 UTC

root@yada:~# hwclock -w

root@yada:~#

断电几秒后重新上电。

U-Boot 2016.03-ga175019-dirty (Aug 19 2020 - 16:15:01 +0800)

CPU:   Freescale i.MX6ULL rev1.1 792 MHz (running at 396 MHz)

CPU:   Industrial temperature grade (-40C to 115C) at 53C

Reset cause: POR

Board: YD-Y6ULL 14x14

DRAM:  256 MiB

MMC:   hufan emmc init init 1212

hufan emmc init init 1212

FSL_SDHC: 0, FSL_SDHC: 1

In:    serial

Out:   serial

Err:   serial

switch to partitions #0, OK

mmc1(part 0) is current device

Net:   FEC0

Error: FEC0 address not set.

Normal Boot

Hit any key to stop autoboot:  0

switch to partitions #0, OK

mmc1(part 0) is current device

switch to partitions #0, OK

mmc1(part 0) is current device

reading boot.scr

272 bytes read in 10 ms (26.4 KiB/s)

Running bootscript from mmc ...

## Executing script at 80800000

reading zImage

6304648 bytes read in 1058 ms (5.7 MiB/s)

reading myd-y6ull-emmc.dtb

33090 bytes read in 23 ms (1.4 MiB/s)

Kernel image @ 0x83000000 [ 0x000000 - 0x603388 ]

## Flattened Device Tree blob at 84000000

Booting using the fdt blob at 0x84000000

Using Device Tree in place at 84000000, end 8400b141

ft_system_setup for mx6

Starting kernel ...

Booting Linux on physical CPU 0x0

Linux version 4.1.15+ (usr@longbin) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Wed Oct 7 11:49:26 CST 2020

CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine model: Freescale i.MX6 ULL 14x14 EVK Board

Reserved memory: failed to allocate memory for node 'linux,cma'

Memory policy: Data cache writealloc

PERCPU: Embedded 12 pages/cpu @8fdd5000 s16908 r8192 d24052 u49152

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024

Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk1p2 rootwait rw rootfstype=ext4 rootdelay=5 mem=256M

PID hash table entries: 1024 (order: 0, 4096 bytes)

Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)

Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)

Memory: 247660K/262144K available (7855K kernel code, 429K rwdata, 2816K rodata, 460K init, 441K bss, 14484K reserved, 0K cma-reserved, 0K highmem)

Virtual kernel memory layout:

vector  : 0xffff0000 - 0xffff1000   (   4 kB)

fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)

vmalloc : 0x90800000 - 0xff000000   (1768 MB)

lowmem  : 0x80000000 - 0x90000000   ( 256 MB)

pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

modules : 0x7f000000 - 0x7fe00000   (  14 MB)

.text : 0x80008000 - 0x80a74180   (10673 kB)

.init : 0x80a75000 - 0x80ae8000   ( 460 kB)

.data : 0x80ae8000 - 0x80b537e0   ( 430 kB)

.bss : 0x80b56000 - 0x80bc4578   ( 442 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

Preemptible hierarchical RCU implementation.

Additional per-CPU info printed with stalls.

RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.

RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1

NR_IRQS:16 nr_irqs:16 16

mxc_clocksource_init 24000000

Switching to timer-based delay loop, resolution 41ns

sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns

clocksource mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)

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

/cpus/cpu@0 missing clock-frequency property

CPU0: thread -1, cpu 0, socket 0, mpidr 80000000

Setting up static identity map for 0x80008280 - 0x800082d8

Brought up 1 CPUs

SMP: Total of 1 processors activated (48.00 BogoMIPS).

CPU: All CPU(s) started in SVC mode.

devtmpfs: initialized

device-tree: Duplicate name in lcdif@021c8000, renamed to "display#1"

VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns

pinctrl core: initialized pinctrl subsystem

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

cpuidle: using governor menu

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 8 bytes.

imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver

imx6ul-pinctrl 2290000.iomuxc-snvs: no functions defined

imx6ul-pinctrl 2290000.iomuxc-snvs: fail to probe dt properties

imx6ul-pinctrl: probe of 2290000.iomuxc-snvs failed with error -22

mxs-dma 1804000.dma-apbh: initialized

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-0: can't use DMA

i2c i2c-3: IMX I2C adapter registered

i2c i2c-3: can't use DMA

media: Linux media interface: v0.10

Linux video capture interface: v2.00

pps_core: LinuxPPS API ver. 1 registered

pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti

PTP clock support registered

MIPI CSI2 driver module loaded

Advanced Linux Sound Architecture Driver Initialized.

Switched to clocksource mxc_timer1

NET: Registered protocol family 2

TCP established hash table entries: 2048 (order: 1, 8192 bytes)

TCP bind hash table entries: 2048 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

UDP hash table entries: 256 (order: 1, 8192 bytes)

UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

imx rpmsg driver is registered.

Bus freq driver module loaded

futex hash table entries: 256 (order: 2, 16384 bytes)

VFS: Disk quotas dquot_6.6.0

VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

fuse init (API version 7.23)

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

imx-weim 21b8000.weim: Driver registered.

backlight supply power not found, using dummy regulator

pwm-backlight backlight: invalid default brightness level: 8, using 7

MIPI DSI driver module loaded

MIPI DSI driver module loaded

21c8000.lcdif supply lcd not found, using dummy regulator

mxsfb 21c8000.lcdif: failed to find mxc display driver

Console: switching to colour frame buffer device 100x30

mxsfb 21c8000.lcdif: initialized

imx-sdma 20ec000.sdma: no event needs to be remapped

imx-sdma 20ec000.sdma: loaded firmware 3.3

imx-sdma 20ec000.sdma: initialized

2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 20, base_baud = 5000000) is a IMX

console [ttymxc0] enabled

21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 224, base_baud = 5000000) is a IMX

21ec000.serial: ttymxc2 at MMIO 0x21ec000 (irq = 225, base_baud = 5000000) is a IMX

21f4000.serial: ttymxc4 at MMIO 0x21f4000 (irq = 226, base_baud = 5000000) is a IMX

imx-rng 2284000.rngb: iMX RNG Registered.

imx sema4 driver is registered.

[drm] Initialized drm 1.1.0 20060810

[drm] Initialized vivante 1.0.0 20120216 on minor 0

brd: module loaded

loop: module loaded

at24 0-0050: 8192 byte 24c64 EEPROM, writable, 64 bytes/write

att7053bu spi0.0: start....

spi_imx 2008000.ecspi: probed

att7053bu spi1.0: start....

spi_imx 200c000.ecspi: probed

CAN device driver interface

2188000.ethernet supply phy not found, using dummy regulator

pps pps0: new PPS source ptp0

fec 2188000.ethernet (unnamed net_device) (uninitialized): Invalid MAC address: 00:00:00:00:00:00

fec 2188000.ethernet (unnamed net_device) (uninitialized): Using random MAC address: 8a:e4:a2:fb:97:ef

libphy: fec_enet_mii_bus: probed

fec 2188000.ethernet eth0: registered PHC device 0

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

SLIP: version 0.8.4-NET3.019-NEWTTY (dynamic channels, max=256) (6 bit encapsulation enabled).

CSLIP: code copyright 1989 Regents of the University of California.

SLIP linefill/keepalive option.

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver

ehci-mxc: Freescale On-Chip EHCI Host driver

usbcore: registered new interface driver usb-storage

usbcore: registered new interface driver usbserial

usbcore: registered new interface driver usbserial_generic

usbserial: USB Serial support registered for generic

usbcore: registered new interface driver option

usbserial: USB Serial support registered for GSM modem (1-port)

usbcore: registered new interface driver usb_ehset_test

2184800.usbmisc supply vbus-wakeup not found, using dummy regulator

2184000.usb supply vbus not found, using dummy regulator

ci_hdrc ci_hdrc.0: EHCI Host Controller

ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1

ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

mousedev: PS/2 mouse device common for all mice

input: 20cc000.snvs:snvs-powerkey as /devices/platform/soc/2000000.aips-bus/20cc000.snvs/20cc000.snvs:snvs-powerkey/input/input0

tp reset gpio=130

msg ft5x0x_i2c_rxdata i2c read error: -5

ft5x0x read ID error!

ft5x06_ts: probe of 3-0038 failed with error 161

ft5x0x_ts_init successful

Goodix-TS 3-005d: IC VERSION: 39 31 31 00 60 10

input: Goodix Capacitive TouchScreen as /devices/platform/soc/2100000.aips-bus/21f8000.i2c/i2c-3/3-005d/input/input1

rtc-rx8025 0-0032: rtc core: registered rx8025 as rtc0

i2c /dev entries driver

IR NEC protocol handler initialized

IR RC5(x/sz) protocol handler initialized

IR RC6 protocol handler initialized

IR JVC protocol handler initialized

IR Sony protocol handler initialized

IR SANYO protocol handler initialized

IR Sharp protocol handler initialized

IR MCE Keyboard/mouse protocol handler initialized

IR XMP protocol handler initialized

pxp-v4l2 pxp_v4l2: initialized

usbcore: registered new interface driver uvcvideo

USB Video Class driver (1.1.1)

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

/soc/aips-bus@02100000/usdhc@02194000: voltage-ranges unspecified

sdhci-esdhc-imx 2194000.usdhc: could not get ultra high speed state, work on normal mode

sdhci-esdhc-imx 2194000.usdhc: No vmmc regulator found

sdhci-esdhc-imx 2194000.usdhc: No vqmmc regulator found

mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

usbcore: registered new interface driver snd-usb-audio

fsl-asrc 2034000.asrc: driver registered

mmc1: MAN_BKOPS_EN bit is not set

NET: Registered protocol family 26

NET: Registered protocol family 10

sit: IPv6 over IPv4 tunneling driver

NET: Registered protocol family 17

can: controller area network core (rev 20120528 abi 9)

mmc1: new DDR MMC card at address 0001

NET: Registered protocol family 29

mmcblk1: mmc1:0001 Q2J54A 3.58 GiB

can: raw protocol (rev 20120528)

can: broadcast manager protocol (rev 20120528 t)

mmcblk1boot0: mmc1:0001 Q2J54A partition 1 16.0 MiB

can: netlink gateway (rev 20130117) max_hops=1

mmcblk1boot1: mmc1:0001 Q2J54A partition 2 16.0 MiB

mmcblk1rpmb: mmc1:0001 Q2J54A partition 3 512 KiB

8021q: 802.1Q VLAN Support v1.8

Key type dns_resolver registered

mmcblk1: p1 p2

rtc-rx8025 0-0032: setting system clock to 2016-01-10 19:13:23 UTC (1452453203)

(从这条打印信息说明了rx8025的时间已经保存)

VSD_3V3: disabling

can-3v3: disabling

ALSA device list:

No soundcards found.

Waiting 5 sec before mounting root device...

EXT4-fs (mmcblk1p2): recovery complete

EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)

VFS: Mounted root (ext4 filesystem) on device 179:2.

devtmpfs: mounted

Freeing unused kernel memory: 460K (80a75000 - 80ae8000)

INIT: version 2.88 booting

Starting udev

udevd[121]: starting version 3.1.5

random: udevd urandom read with 24 bits of entropy available

EXT4-fs (mmcblk1p2): re-mounted. Opts: (null)

bootlogd: cannot allocate pseudo tty: No such file or directory

FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.

ALSA: Restoring mixer settings...

/usr/sbin/alsactl: load_state:1735: No soundcards found...

Mon Sep 28 19:07:47 UTC 2020(不知道为什么系统的时间就变了)

INIT: Entering runlevel: 5

Configuring network interfaces... fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8041] (mii_bus:phy_addr=2188000.ethernet:00, irq=-1)

IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

done.

Starting system message bus: dbus.

Starting OpenBSD Secure Shell server: sshd

done.

Starting rpcbind daemon...done.

starting statd: done

Starting advanced power management daemon: No APM support in kernel

(failed.)

Starting atd: OK

exportfs: can't open /etc/exports for reading

NFS daemon support not enabled in kernel

Starting system log daemon...0

Starting kernel log daemon...0

* Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon                       [ ok ]

Starting Telephony daemon

Starting Linux NFC daemon

Starting crond: OK

Running local boot scripts (/etc/rc.local).

Freescale i.MX Release Distro 4.1.15-2.0.1 yada /dev/ttymxc0

yada login: fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx

IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

random: nonblocking pool is initialized

Freescale i.MX Release Distro 4.1.15-2.0.1 yada /dev/ttymxc0

yada login: root

Password:

root@yada:~# date

2020年09月28日 星期一19:15:13 UTC

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值