我客製板使用 u-boot-2013.01.01-psp06.00.00.00,linux-3.2.0-psp04.06.00.11。filesystem 是 ubuntu
我下 date 030217302015
hwclock -w
hwclock -s
hwclock
可以寫入硬體RTC。但 reboot 之後,時間一樣 reset 到 2000年 1月1號。 我確認過 rtc_pwronrstn , pmic_power_en, rtc_kaldo_enn, rtc_pwronrstn 了,也用別的BSP驗證電池是有電的,硬體沒有問題,是軟體問題,請問我還可以去哪裡修改? 謝謝。以下為開機訊息。
[ 0.000000] Linux version 3.2.0-g4ea3cc5 (bernie@ubuntu) (gcc version 4.7.3 20130226 (prerelease) (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) ) #2 Mon Mar 2 17:14:40 CST 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine: am335xevm
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] On node 0 totalpages: 65536
[ 0.000000] free_area_init_node: node 0, pgdat c0655c20, node_mem_map c068f000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 65024 pages, LIFO batch:15
[ 0.000000] AM335X ES2.1 (neon )
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 mem=256M rootwait
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Memory: 256MB = 256MB total
[ 0.000000] Memory: 253140k/253140k available, 9004k 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] vmalloc : 0xd0800000 - 0xff000000 ( 744 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc05bb000 (5836 kB)
[ 0.000000] .init : 0xc05bb000 - 0xc05f5000 ( 232 kB)
[ 0.000000] .data : 0xc05f6000 - 0xc065ef20 ( 420 kB)
[ 0.000000] .bss : 0xc065ef44 - 0xc068e024 ( 189 kB)
[ 0.000000] NR_IRQS:396
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
[ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000091] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.058929] pid_max: default: 32768 minimum: 301
[ 0.059051] Security Framework initialized
[ 0.059143] Mount-cache hash table entries: 512
[ 0.059539] CPU: Testing write buffer coherency: ok
[ 0.079986] omap_hwmod: gfx: failed to hardreset
[ 0.096252] omap_hwmod: pruss: failed to hardreset
[ 0.097351] print_constraints: dummy:
[ 0.097717] NET: Registered protocol family 16
[ 0.099914] OMAP GPIO hardware version 0.1
[ 0.102539] omap_mux_init: Add partition: #1: core, flags: 0
[ 0.104492] omap_i2c.2: alias fck already exists
[ 0.105407] omap2_mcspi.1: alias fck already exists
[ 0.105651] omap2_mcspi.2: alias fck already exists
[ 0.105895] edma.0: alias fck already exists
[ 0.105926] edma.0: alias fck already exists
[ 0.105957] edma.0: alias fck already exists
[ 0.131835] bio: create slab <bio-0> at 0
[ 0.134033] SCSI subsystem initialized
[ 0.135711] usbcore: registered new interface driver usbfs
[ 0.136016] usbcore: registered new interface driver hub
[ 0.136230] usbcore: registered new device driver usb
[ 0.136505] registerd cppi-dma Intr @ IRQ 17
[ 0.136535] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
[ 0.136535] Cppi41 Init Done
[ 0.136566] musb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1
[ 0.136871] musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1
[ 0.138000] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
[ 0.139282] tps65910 2-002d: JTAGREVNUM 0x39
[ 0.139282] tps65910 2-002d: unknown version
[ 0.140441] Advanced Linux Sound Architecture Driver Version 1.0.24.
[ 0.141540] Switching to clocksource gp timer
[ 0.157104] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.157287] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
[ 0.157623] MUSB0 controller's USBSS revision = 4ea20800
[ 0.157653] TxFifo Empty intr disabled
[ 0.157653] musb0: Enabled SW babble control
[ 0.157958] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.157989] musb-hdrc: MHDRC RTL version 2.0
[ 0.157989] musb-hdrc: setup fifo_mode 4
[ 0.158020] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.158020] musb-hdrc.0: bulk split disabled
[ 0.158050] musb-hdrc.0: bulk combine disabled
[ 0.158142] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
[ 0.158233] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
[ 0.158386] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.158386] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.158416] usb usb1: Product: MUSB HDRC host driver
[ 0.158416] usb usb1: Manufacturer: Linux 3.2.0-g4ea3cc5 musb-hcd
[ 0.158416] usb usb1: SerialNumber: musb-hdrc.0
[ 0.159301] hub 1-0:1.0: USB hub found
[ 0.159332] hub 1-0:1.0: 1 port detected
[ 0.159912] musb-hdrc musb-hdrc.0: USB Host mode controller at d083c000 using DMA, IRQ 18
[ 0.160095] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
[ 0.160400] MUSB1 controller's USBSS revision = 4ea20800
[ 0.160430] TxFifo Empty intr disabled
[ 0.160430] musb1: Enabled SW babble control
[ 0.160736] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.160736] musb-hdrc: MHDRC RTL version 2.0
[ 0.160766] musb-hdrc: setup fifo_mode 4
[ 0.160766] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.160797] musb-hdrc.1: bulk split disabled
[ 0.160797] musb-hdrc.1: bulk combine disabled
[ 0.160888] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[ 0.160949] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
[ 0.161041] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.161041] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.161071] usb usb2: Product: MUSB HDRC host driver
[ 0.161071] usb usb2: Manufacturer: Linux 3.2.0-g4ea3cc5 musb-hcd
[ 0.161102] usb usb2: SerialNumber: musb-hdrc.1
[ 0.161956] hub 2-0:1.0: USB hub found
[ 0.161987] hub 2-0:1.0: 1 port detected
[ 0.162567] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
[ 0.162994] NET: Registered protocol family 2
[ 0.163177] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.163482] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.163635] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.163726] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.163757] TCP reno registered
[ 0.163757] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.163787] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.163970] NET: Registered protocol family 1
[ 0.164245] RPC: Registered named UNIX socket transport module.
[ 0.164245] RPC: Registered udp transport module.
[ 0.164276] RPC: Registered tcp transport module.
[ 0.164276] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.164520] NetWinder Floating Point Emulator V0.97 (double precision)
[ 0.175689] VFS: Disk quotas dquot_6.5.2
[ 0.175750] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.176300] msgmni has been set to 494
[ 0.179443] alg: No test for stdrng (krng)
[ 0.179504] io scheduler noop registered
[ 0.179534] io scheduler deadline registered
[ 0.179626] io scheduler cfq registered (default)
[ 0.181701] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
[ 0.819122] console [ttyO0] enabled
[ 0.823486] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
[ 0.831298] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
[ 0.839111] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
[ 0.846893] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
[ 0.854675] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
[ 0.862823] [drm] Initialized drm 1.1.0 20060810
[ 0.876922] brd: module loaded
[ 0.885223] loop: module loaded
[ 0.888671] i2c-core: driver [tsl2550] using legacy suspend method
[ 0.895141] i2c-core: driver [tsl2550] using legacy resume method
[ 0.901580] at24 2-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
[ 0.908843] The board is a AM335x Starter Kit.
[ 0.914215] omap_hsmmc.0: alias fck already exists
[ 0.919647] omap_hsmmc.1: alias fck already exists
[ 0.926116] omap-gpmc omap-gpmc: GPMC revision 6.0
[ 0.931121] Registering NAND on CS0
[ 0.935729] da8xx_lcdc.0: alias fck already exists
[ 0.941162] da8xx_lcdc da8xx_lcdc.0: GLCD: Found NHD-4.3-ATXI#-T-1 panel
[ 0.960571] Console: switching to colour frame buffer device 100x37
[ 0.974761] failed to get adapter i2c1
[ 0.978729] Configure Bluetooth Enable pin...
[ 0.984100] _regulator_get: l3_main.0 supply vdd_core not found, using dummy regulator
[ 0.992492] am335x_opp_update: physical regulator not present for core(-22)
[ 1.002319] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.009582] omap2-nand driver initializing
[ 1.014221] ONFI flash detected
[ 1.017822] NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit)
[ 1.026916] Creating 8 MTD partitions on "omap2-nand.0":
[ 1.032501] 0x000000000000-0x000000020000 : "SPL"
[ 1.038879] 0x000000020000-0x000000040000 : "SPL.backup1"
[ 1.044952] usb 1-1: new high-speed USB device number 2 using musb-hdrc
[ 1.053253] 0x000000040000-0x000000060000 : "SPL.backup2"
[ 1.060211] 0x000000060000-0x000000080000 : "SPL.backup3"
[ 1.067230] 0x000000080000-0x000000260000 : "U-Boot"
[ 1.074554] 0x000000260000-0x000000280000 : "U-Boot Env"
[ 1.081359] 0x000000280000-0x000000780000 : "Kernel"
[ 1.089874] 0x000000780000-0x000010000000 : "File System"
[ 1.199951] OneNAND driver initializing
[ 1.205535] CAN device driver interface
[ 1.209564] CAN bus driver for Bosch D_CAN controller 1.0
[ 1.262176] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
[ 1.268615] davinci_mdio davinci_mdio.0: detected phy mask f00fff00
[ 1.277435] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[ 1.284484] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.291931] usb 1-1: Product: USB2.0 Hub
[ 1.298828] hub 1-1:1.0: USB hub found
[ 1.303100] hub 1-1:1.0: 4 ports detected
[ 1.316040] davinci_mdio.0: probed
[ 1.319610] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
[ 1.326995] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver unknown
[ 1.334350] davinci_mdio davinci_mdio.0: phy[2]: device 0:02, driver unknown
[ 1.341705] davinci_mdio davinci_mdio.0: phy[3]: device 0:03, driver unknown
[ 1.349090] davinci_mdio davinci_mdio.0: phy[4]: device 0:04, driver unknown
[ 1.356445] davinci_mdio davinci_mdio.0: phy[5]: device 0:05, driver unknown
[ 1.363830] davinci_mdio davinci_mdio.0: phy[6]: device 0:06, driver unknown
[ 1.371185] davinci_mdio davinci_mdio.0: phy[7]: device 0:07, driver AR8035 Gigabit Ethernet
[ 1.380004] davinci_mdio davinci_mdio.0: phy[20]: device 0:14, driver unknown
[ 1.387451] davinci_mdio davinci_mdio.0: phy[21]: device 0:15, driver unknown
[ 1.394897] davinci_mdio davinci_mdio.0: phy[22]: device 0:16, driver unknown
[ 1.402343] davinci_mdio davinci_mdio.0: phy[23]: device 0:17, driver unknown
[ 1.409790] davinci_mdio davinci_mdio.0: phy[24]: device 0:18, driver unknown
[ 1.417266] davinci_mdio davinci_mdio.0: phy[25]: device 0:19, driver unknown
[ 1.424713] davinci_mdio davinci_mdio.0: phy[26]: device 0:1a, driver unknown
[ 1.432159] davinci_mdio davinci_mdio.0: phy[27]: device 0:1b, driver unknown
[ 1.439849] PPP generic driver version 2.4.2
[ 1.445465] PPP MPPE Compression module registered
[ 1.450775] usbcore: registered new interface driver zd1201
[ 1.456848] usbcore: registered new interface driver cdc_ether
[ 1.463134] usbcore: registered new interface driver cdc_eem
[ 1.469177] usbcore: registered new interface driver dm9601
[ 1.475067] cdc_ncm: 04-Aug-2011
[ 1.478607] usbcore: registered new interface driver cdc_ncm
[ 1.484527] Initializing USB Mass Storage driver...
[ 1.489868] usbcore: registered new interface driver usb-storage
[ 1.496154] USB Mass Storage support registered.
[ 1.501342] usbcore: registered new interface driver usbserial
[ 1.507598] USB Serial support registered for generic
[ 1.513153] usbcore: registered new interface driver usbserial_generic
[ 1.519958] usbserial: USB Serial Driver core
[ 1.524719] USB Serial support registered for GSM modem (1-port)
[ 1.531402] usbcore: registered new interface driver option
[ 1.537231] option: v0.7.2:USB Driver for GSM modems
[ 1.543029] mousedev: PS/2 mouse device common for all mice
[ 1.549865] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input0
[ 1.558593] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
[ 1.565856] i2c /dev entries driver
[ 1.569885] Linux video capture interface: v2.00
[ 1.575042] usbcore: registered new interface driver uvcvideo
[ 1.581054] USB Video Class driver (1.1.1)
[ 1.587432] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[ 1.594024] _regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
[ 1.602752] cpuidle: using governor ladder
[ 1.607543] cpuidle: using governor menu
[ 1.615264] Registered led device: am335x:EVM_SK:usr0
[ 1.615509] Registered led device: am335x:EVM_SK:usr1
[ 1.615722] Registered led device: am335x:EVM_SK:mmc0
[ 1.615905] Registered led device: am335x:EVM_SK:heartbeat
[ 1.618286] usbcore: registered new interface driver usbhid
[ 1.624145] usbhid: USB HID core driver
[ 1.628753] tiadc tiadc: attached adc driver
[ 1.634246] usbcore: registered new interface driver snd-usb-audio
[ 1.642395] ALSA device list:
[ 1.645477] No soundcards found.
[ 1.649017] oprofile: hardware counters not available
[ 1.654327] oprofile: using timer interrupt.
[ 1.658813] nf_conntrack version 0.5.0 (3955 buckets, 15820 max)
[ 1.665588] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 1.671234] TCP cubic registered
[ 1.674652] NET: Registered protocol family 17
[ 1.679290] can: controller area network core (rev 20090105 abi 8)
[ 1.685852] NET: Registered protocol family 29
[ 1.690521] can: raw protocol (rev 20090105)
[ 1.694976] can: broadcast manager protocol (rev 20090105 t)
[ 1.700927] Registering the dns_resolver key type
[ 1.705902] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 1.713928] ThumbEE CPU extension supported.
[ 1.718444] mux: Failed to setup hwmod io irq -22
[ 1.724029] Power Management for AM33XX family
[ 1.728881] Trying to load am335x-pm-firmware.bin (60 secs timeout)
[ 1.735565] Copied the M3 firmware to UMEM
[ 1.739929] Cortex M3 Firmware Version = 0x181
[ 1.753051] clock: disabling unused clocks to save power
[ 1.760711] Detected MACID=1c:ba:8c:96:51:7d
[ 1.766448] cpsw: Detected MACID = 1c:ba:8c:96:51:7f
[ 1.773925] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 1.783325] Waiting for root device /dev/mmcblk0p2...
[ 1.856140] mmc0: host does not support reading read-only switch. assuming write-enable.
[ 1.864898] usb 1-1.3: new high-speed USB device number 3 using musb-hdrc
[ 1.872100] mmc0: new high speed SDHC card at address e624
[ 1.878601] mmcblk0: mmc0:e624 SU04G 3.69 GiB
[ 1.886871] mmcblk0: p1 p2
[ 1.972656] kjournald starting. Commit interval 5 seconds
[ 1.988159] EXT3-fs (mmcblk0p2): using internal journal
[ 1.993652] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 2.000885] VFS: Mounted root (ext3 filesystem) on device 179:2.
[ 2.007598] Freeing init memory: 232K
[ 2.016143] mmc1: card claims to support voltages below the defined range. These will be ignored.
[ 2.034271] usb 1-1.3: New USB device found, idVendor=05c6, idProduct=9003
[ 2.041473] usb 1-1.3: New USB device strings: Mfr=3, Product=2, SerialNumber=0
[ 2.049133] usb 1-1.3: Product: UMTS/HSPA Module
[ 2.053955] usb 1-1.3: Manufacturer: Quectel, Incorporated
[ 2.062103] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
[ 2.069183] option 1-1.3:1.0: GSM modem (1-port) converter detected
[ 2.076873] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB0
[ 2.085388] option 1-1.3:1.1: GSM modem (1-port) converter detected
[ 2.093261] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB1
[ 2.101470] option 1-1.3:1.2: GSM modem (1-port) converter detected
[ 2.108856] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB2
[ 2.117767] option 1-1.3:1.3: GSM modem (1-port) converter detected
[ 2.125640] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB3
[ 2.134094] option 1-1.3:1.4: GSM modem (1-port) converter detected
[ 2.142211] usb 1-1.3: GSM modem (1-port) converter now attached to ttyUSB4
[ 2.150665] mmc1: new SDIO card at address 0001
[ 2.609405] init: ureadahead main process (745) terminated with status 5
[ 3.298583] udevd[811]: starting version 175
[ 6.756866] init: failsafe main process (1271) killed by TERM signal
[ 11.739288] Disabling lock debugging due to kernel taint
[ 11.744964] Compat-wireless backport release: ol_R5.SP7.01
[ 11.744995] Backport based on wl12xx.git ol_R5.SP4.01-2-g1aa2c8e
[ 11.793487] cfg80211: Calling CRDA to update world regulatory domain
[ 11.905487] wl12xx: driver version: ol_R5.SP4.01-2-g1aa2c8e
[ 11.905487] wl12xx: compilation time: Wed Oct 15 11:39:19 2014
[ 13.314483] wl12xx: loaded
[ 13.327880] wl12xx: state: 0
[ 14.066162] wl12xx: firmware booted (Rev 6.3.10.0.135)
[ 24.106903] net eth0: CPSW phy found : id is : 0x0
[ 26.103881] PHY: 0:05 - Link is Up - 100/Half