[linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post Reply
stas-t
Posts: 5
Joined: Sun Jan 19, 2020 1:09 am
languages_spoken: english
ODROIDs: C2, XU4, GO
Has thanked: 0
Been thanked: 0
Contact:

[linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by stas-t » Sun Jan 19, 2020 1:19 am

Arch user here. I've reported the issue here first: https://archlinuxarm.org/forum/viewtopi ... 15&t=14225.
So briefly: DTB file was patched, the box was rebooted, but RTC device was not available after reboot.
What may be the possible cause of this?

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 625 times
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by odroid » Mon Jan 20, 2020 10:05 am

Could you load the RTC driver module rtc_pcf8563 with aml_i2cmanually?

mdrjr
Site Admin
Posts: 11743
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 22 times
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by mdrjr » Tue Jan 21, 2020 6:35 am

Hello,

I tested here on Ubuntu with the current kernel without any issues.

Code: Select all

root@odroid:~# uname -a
Linux odroid 3.16.81-49 #1 SMP PREEMPT Wed Jan 15 21:38:53 -02 2020 aarch64 aarch64 aarch64 GNU/Linux
root@odroid:~# hwclock -w
root@odroid:~# hwclock -r
2020-01-20 21:33:24.730790+0000
root@odroid:~# date
Mon Jan 20 21:33:28 UTC 2020
root@odroid:~#
make sure as @odroid said that aml_i2c and rtc_pcf8563 are loaded.
These users thanked the author mdrjr for the post:
odroid (Tue Jan 21, 2020 9:39 am)

stas-t
Posts: 5
Joined: Sun Jan 19, 2020 1:09 am
languages_spoken: english
ODROIDs: C2, XU4, GO
Has thanked: 0
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by stas-t » Sat Jan 25, 2020 10:13 pm

Sorry for the delay. Yes, both modules seem to be loaded:

Code: Select all

$ lsmod | grep rtc_pcf8563
rtc_pcf8563             4388  0
$ lsmod | grep aml_i2c
aml_i2c                17911  1
$ uname -a
Linux alarm 3.16.81-1-ARCH #1 SMP PREEMPT Fri Jan 17 18:41:33 MST 2020 aarch64 GNU/Linux
However hwclock is still failing:

Code: Select all

$ sudo hwclock --verbose --hctosys
hwclock from util-linux 2.35
System Time: 1579957920.025394
Trying to open: /dev/rtc0
Trying to open: /dev/rtc
Trying to open: /dev/misc/rtc
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
Are there any other checks I can perform?

User avatar
graysky
Posts: 158
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by graysky » Sun Jan 26, 2020 5:10 am

I have the same problem. Arch ARM.

Code: Select all

# uname -a
Linux odroid 3.16.81-1-ARCH #1 SMP PREEMPT Fri Jan 17 18:41:33 MST 2020 aarch64 GNU/Linux

# lsmod | grep 'rtc\|aml'
rtc_pcf8563             4388  0
aml_i2c                17911  1

# /usr/bin/hwclock -s --verbose
hwclock from util-linux 2.35
System Time: 1579983104.965645
Trying to open: /dev/rtc0
Trying to open: /dev/rtc
Trying to open: /dev/misc/rtc
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
The change that broke it definitely occurred when 3.16.78 --> 3.16.81. If I downgrade my system to the kernel and headers from 3.16.78, everything works as it should:

Code: Select all

# uname -a
Linux odroid 3.16.78-1-ARCH #1 SMP PREEMPT Thu Dec 12 14:50:21 UTC 2019 aarch64 GNU/Linux

# /usr/bin/fdtput -t s /boot/dtbs/meson64_odroidc2.dtb /i2c@c1108500/pcf8563@51 status "okay"
# /usr/bin/hwclock -s --verbose                                                              
hwclock from util-linux 2.35
System Time: 1579983537.214373
Trying to open: /dev/rtc0
Using the rtc interface to the clock.
Last drift adjustment done at 1545347934 seconds after 1969
Last calibration done at 1545347934 seconds after 1969
Hardware clock is on UTC time
Assuming hardware clock is kept in UTC time.
Waiting for clock tick...
ioctl(3, RTC_UIE_ON, 0): Invalid argument
Waiting in loop for time from /dev/rtc0 to change
...got clock tick
Time read from Hardware Clock: 2020/01/25 20:18:57
Hw clock time : 2020/01/25 20:18:57 = 1579983537 seconds since 1969
Time since last adjustment is 34635603 seconds
Calculated Hardware Clock drift is 0.000000 seconds
Calling settimeofday(1579983537.000000, 300)[code]

mdrjr
Site Admin
Posts: 11743
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 22 times
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by mdrjr » Mon Jan 27, 2020 12:09 am

Both have the dtb patched ?

User avatar
graysky
Posts: 158
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by graysky » Mon Jan 27, 2020 1:47 am

@mdrjr - I do not see any differences in these versions with respect to any special patches... if there is a difference it lies with upstream (kernel code). Do you agree?

mdrjr
Site Admin
Posts: 11743
Joined: Fri Feb 22, 2013 11:34 pm
languages_spoken: english, portuguese
ODROIDs: -
Location: Brazil
Has thanked: 1 time
Been thanked: 22 times
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by mdrjr » Mon Jan 27, 2020 11:19 pm

Nope, if the dtb is patched it should work.

stas-t
Posts: 5
Joined: Sun Jan 19, 2020 1:09 am
languages_spoken: english
ODROIDs: C2, XU4, GO
Has thanked: 0
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by stas-t » Wed Mar 04, 2020 6:38 am

Sorry for complaining again, but since it still doesn't work on my C2 box running arch - I decided to provide some details.
When booting 3.16.81 kernel - I see these messages in the log:

Code: Select all

Feb 13 21:01:09 alarm kernel: rtc-pcf8563 1-0051: chip found, driver version 0.4.3
Feb 13 21:01:09 alarm kernel: Unhandled fault: alignment fault (0x96000021) at 0xffffff800047a501
Feb 13 21:01:09 alarm kernel: Internal error: : 96000021 [#1] PREEMPT SMP
Feb 13 21:01:09 alarm kernel: Modules linked in: rtc_pcf8563 aml_i2c(+)
Feb 13 21:01:09 alarm kernel: CPU: 0 PID: 114 Comm: modprobe Not tainted 3.16.81-1-ARCH #1
Feb 13 21:01:09 alarm kernel: task: ffffffc073895780 ti: ffffffc073bdc000 task.ti: ffffffc073bdc000
Feb 13 21:01:09 alarm kernel: pc : aml_i2c_xfer_prepare+0x7c/0x120 [aml_i2c]
Feb 13 21:01:09 alarm kernel: lr : aml_i2c_xfer_prepare+0x44/0x120 [aml_i2c]
Feb 13 21:01:09 alarm kernel: sp : ffffffc073bdf450 pstate : 80000145
Feb 13 21:01:09 alarm kernel: x29: ffffffc073bdf450 x28: ffffffc073a47304 
Feb 13 21:01:09 alarm kernel: x27: 0000000000000001 x26: ffffffc0020dd000 
Feb 13 21:01:09 alarm kernel: x25: 00000000ffff8cae x24: 0000000000000000 
Feb 13 21:01:09 alarm kernel: x23: 0000000000000002 x22: ffffffc073bdf5a0 
Feb 13 21:01:09 alarm kernel: x21: 00000000000493e0 x20: ffffffc073a47000 
Feb 13 21:01:09 alarm kernel: x19: 000000000000008a x18: 0000000000000000 
Feb 13 21:01:09 alarm kernel: x17: 000000000000000e x16: 0000000000000001 
Feb 13 21:01:09 alarm kernel: x15: 0000000000000005 x14: 00000000000000a0 
Feb 13 21:01:09 alarm kernel: x13: ffffffc0018f2278 x12: 0000000000000000 
Feb 13 21:01:09 alarm kernel: x11: 0000000000000007 x10: 0101010101010101 
Feb 13 21:01:09 alarm kernel: x9 : 0000000000000000 x8 : ffffffc0739c2c00 
Feb 13 21:01:09 alarm kernel: x7 : 0000000000000000 x6 : 0000000000000001 
Feb 13 21:01:09 alarm kernel: x5 : ffffffc073bdf3e0 x4 : ffffffc073bdf3c0 
Feb 13 21:01:09 alarm kernel: x3 : 00000000f9ffc00f x2 : ffffff800047a500 
Feb 13 21:01:09 alarm kernel: x1 : 0000000000001150 x0 : 0000000000001150 
Feb 13 21:01:09 alarm kernel: 
Feb 13 21:01:09 alarm kernel: Process modprobe (pid: 114, stack limit = 0xffffffc073bdc058)
Feb 13 21:01:09 alarm kernel: Call trace:
Feb 13 21:01:09 alarm kernel:  aml_i2c_xfer_prepare+0x7c/0x120 [aml_i2c]
Feb 13 21:01:09 alarm kernel:  $x+0x78/0x3b0 [aml_i2c]
Feb 13 21:01:09 alarm kernel:  __i2c_transfer+0x94/0x3a8
Feb 13 21:01:09 alarm kernel:  i2c_transfer+0x6c/0xb0
Feb 13 21:01:09 alarm kernel:  pcf8563_get_datetime+0x80/0x1c0 [rtc_pcf8563]
Feb 13 21:01:09 alarm kernel:  $x+0x28/0x38 [rtc_pcf8563]
Feb 13 21:01:09 alarm kernel:  __rtc_read_time.isra.0+0x54/0x78
Feb 13 21:01:09 alarm kernel:  rtc_read_time+0x44/0x68
Feb 13 21:01:09 alarm kernel:  __rtc_read_alarm+0x2c/0x390
Feb 13 21:01:09 alarm kernel:  rtc_device_register+0x174/0x2f0
Feb 13 21:01:09 alarm kernel:  devm_rtc_device_register+0x5c/0xb8
Feb 13 21:01:09 alarm kernel:  $x+0x74/0xc0 [rtc_pcf8563]
Feb 13 21:01:09 alarm kernel:  i2c_device_probe+0x8c/0xf0
Feb 13 21:01:09 alarm kernel:  really_probe+0x7c/0x218
Feb 13 21:01:09 alarm kernel:  __device_attach+0x4c/0x60
Feb 13 21:01:09 alarm kernel:  bus_for_each_drv+0x74/0xb0
Feb 13 21:01:09 alarm kernel:  device_attach+0xa8/0xf0
Feb 13 21:01:09 alarm kernel:  bus_probe_device+0x9c/0xc0
Feb 13 21:01:09 alarm kernel:  device_add+0x378/0x528
Feb 13 21:01:09 alarm kernel:  device_register+0x28/0x38
Feb 13 21:01:09 alarm kernel:  i2c_new_device+0x10c/0x190
Feb 13 21:01:09 alarm kernel:  i2c_register_adapter+0x208/0x488
Feb 13 21:01:09 alarm kernel:  __i2c_add_numbered_adapter+0x68/0xa0
Feb 13 21:01:09 alarm kernel:  i2c_add_numbered_adapter+0x2c/0x48
Feb 13 21:01:09 alarm kernel:  $x+0x2a0/0x688 [aml_i2c]
Feb 13 21:01:09 alarm kernel:  platform_drv_probe+0x2c/0x68
Feb 13 21:01:09 alarm kernel:  really_probe+0x7c/0x218
Feb 13 21:01:09 alarm kernel:  __driver_attach+0xb4/0xb8
Feb 13 21:01:09 alarm kernel:  bus_for_each_dev+0x78/0xb8
Feb 13 21:01:09 alarm kernel:  driver_attach+0x30/0x40
Feb 13 21:01:09 alarm kernel:  bus_add_driver+0x154/0x1e8
Feb 13 21:01:09 alarm kernel:  driver_register+0x68/0x128
Feb 13 21:01:09 alarm kernel:  __platform_driver_register+0x70/0x80
Feb 13 21:01:09 alarm kernel:  $x+0x20/0x40 [aml_i2c]
Feb 13 21:01:09 alarm kernel:  do_one_initcall+0x9c/0x1a0
Feb 13 21:01:09 alarm kernel:  load_module+0x1800/0x1f10
Feb 13 21:01:09 alarm kernel:  SyS_finit_module+0x98/0xb0
Feb 13 21:01:09 alarm kernel: Code: 530a7e60 531c2661 53017e73 2a006420 (b8401041) 
Feb 13 21:01:09 alarm kernel: ---[ end trace ebf0234bfa3e483e ]---
So RTC chip is detected, but immediately after that the kernel reports an internal error.
The only workaround I know so far is to downgrade the kernel package back to 3.16.78.

I would appreciate any suggestion.

UPD: You can find all related linux-odroid-c2 package information here: https://archlinuxarm.org/packages/aarch ... d-c2/files

User avatar
graysky
Posts: 158
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by graysky » Sat Mar 07, 2020 6:26 am

3.16.82 was released on 11-Feb... perhaps when odroid-c2-v3.16.y is updated, this will be fixed?

User avatar
graysky
Posts: 158
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by graysky » Fri Mar 20, 2020 12:02 am

odroid wrote:
Mon Jan 20, 2020 10:05 am
Could you load the RTC driver module rtc_pcf8563 with aml_i2cmanually?
These are loaded...

Code: Select all

# lsmod | grep rtc
rtc_pcf8563             4388  0

# lsmod | grep aml
aml_i2c                17911  1
I updated to 3.16.82-1 today but the RTC problem is still present.

Code: Select all

# uname -a
Linux odroid 3.16.82-1-ARCH #1 SMP PREEMPT Tue Mar 17 23:40:03 UTC 2020 aarch64 GNU/Linux

# /usr/bin/fdtput -t s /boot/dtbs/meson64_odroidc2.dtb /i2c@c1108500/pcf8563@51 status "okay"
# echo ?
0

# /usr/bin/hwclock -s --verbose
hwclock from util-linux 2.35.1
System Time: 1584630045.088573
Trying to open: /dev/rtc0
Trying to open: /dev/rtc
Trying to open: /dev/misc/rtc
No usable clock interface found.
hwclock: Cannot access the Hardware Clock via any known method.
Complete dmesg:

Code: Select all

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.82-1-ARCH (builduser@leming) (gcc version 9.2.0 (GCC) ) #1 SMP PREEMPT Tue Mar 17 23:40:03 UTC 2020
[    0.000000] CPU: AArch64 Processor [410fd034] revision 4
[    0.000000] cma: CMA: reserved 8 MiB at 7f800000
[    0.000000] On node 0 totalpages: 520192
[    0.000000]   Normal zone: 7112 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 520192 pages, LIFO batch:31
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] PERCPU: Embedded 12 pages/cpu s19648 r8192 d21312 u49152
[    0.000000] pcpu-alloc: s19648 r8192 d21312 u49152 alloc=12*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 513080
[    0.000000] Kernel command line: root=/dev/mmcblk0p1 rootwait rw console=ttyS0,115200n8 console=tty0 no_console_suspend hdmimode=1080p60hz  m_bpp=32 vout=dvi fsck.repair=yes net.ifnames=0 elevator=noop disablehpd=true max_freq=1536 maxcpus=4 monitor_onoff=false disableuhs=false mmc_removable=true usbmulticam=false  audit=0 pty.legacy_count=2
[    0.000000] logo: get hdmimode: 1080p60hz
[    0.000000] dvfs [get_max_freq] - max_freq : 1536000000
[    0.000000] audit: disabled (until reboot)
[    0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
[    0.000000] Dentry cache hash table entries: 262144 (order: 9, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.000000] Memory: 2013720K/2080768K available (8241K kernel code, 878K rwdata, 4796K rodata, 907K init, 4092K bss, 67048K reserved)
[    0.000000] Virtual kernel memory layout:
                   vmalloc : 0xffffff8000000000 - 0xffffffbbffff0000   (245759 MB)
                   vmemmap : 0xffffffbc00000000 - 0xffffffbc01c00000   (    28 MB)
                   modules : 0xffffffbffc000000 - 0xffffffc000000000   (    64 MB)
                   memory  : 0xffffffc000000000 - 0xffffffc080000000   (  2048 MB)
                     .init : 0xffffffc001d3d000 - 0xffffffc001e1fcc0   (   908 kB)
                     .text : 0xffffffc001080000 - 0xffffffc001d3c724   ( 13042 kB)
                     .data : 0xffffffc001e20000 - 0xffffffc001efba00   (   879 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:64 nr_irqs:64 0
[    0.000006] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483648000ns
[    0.000027] mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000a994
[    0.000071] local timer MESON TIMER-G mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000c998
[    0.000093] local timer MESON TIMER-H mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff800000e99c
[    0.000115] local timer MESON TIMER-I mclk->mux_reg =ffffff8000002990,mclk->reg =ffffff80000109a0
[    0.000126] Switching to timer-based delay loop
[    0.000358] Console: colour dummy device 80x25
[    0.000672] console [tty0] enabled
[    0.002997] allocated 8388608 bytes of page_cgroup
[    0.003006] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[    0.003023] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.003041] pid_max: default: 32768 minimum: 301
[    0.003095] Security Framework initialized
[    0.003112] AppArmor: AppArmor disabled by boot time parameter
[    0.003141] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.003154] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)
[    0.003619] Initializing cgroup subsys memory
[    0.003694] Initializing cgroup subsys devices
[    0.003718] Initializing cgroup subsys freezer
[    0.003733] Initializing cgroup subsys net_cls
[    0.003750] Initializing cgroup subsys blkio
[    0.003766] Initializing cgroup subsys perf_event
[    0.003778] Initializing cgroup subsys net_prio
[    0.003802] Initializing cgroup subsys hugetlb
[    0.003813] Initializing cgroup subsys debug
[    0.003864] ftrace: allocating 30058 entries in 118 pages
[    0.030723] hw perfevents: enabled with arm/armv8-pmuv3 PMU driver, 7 counters available
[    0.071914] Meson chip version = RevB (1F:B - 0:0)
[    0.090850] CPU1: Booted secondary processor
[    0.110827] CPU2: Booted secondary processor
[    0.130814] CPU3: Booted secondary processor
[    0.130854] Brought up 4 CPUs
[    0.130885] SMP: Total of 4 processors activated.
[    0.131339] devtmpfs: initialized
[    0.137220] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.140169] pinctrl core: initialized pinctrl subsystem
[    0.140432] regulator-dummy: no parameters
[    0.142711] device-tree: Duplicate name in efusekey, renamed to "key0#1"
[    0.142746] device-tree: Duplicate name in efusekey, renamed to "key1#1"
[    0.142779] device-tree: Duplicate name in efusekey, renamed to "key2#1"
[    0.142811] device-tree: Duplicate name in efusekey, renamed to "key3#1"
[    0.144728] NET: Registered protocol family 16
[    0.145796] register canvas platform driver
[    0.145811] codec:ignore bus ops for cpu=25
[    0.145820] codec:ignore bus ops for cpu=29
[    0.145830] codec:register amports ops for bus[0]
[    0.145838] codec:register amports ops for bus[4]
[    0.145847] codec:register amports ops for bus[3]
[    0.145856] codec:register amports ops for bus[2]
[    0.145864] codec:register amports ops for bus[1]
[    0.145873] codec:register amports ops for bus[13]
[    0.145882] codec:register amports ops for bus[2]
[    0.145891] codec:register amports ops for bus[14]
[    0.145921] register rdma platform driver
[    0.146451] vdso: 2 pages (1 code, 1 data) at base ffffffc001e26000
[    0.146489] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.147095] DMA: preallocated 256 KiB pool for atomic allocations
[    0.148282] software IO TLB: mapped [mem 0x7c400000-0x7c800000] (4MB)
[    0.148296] Serial: AMBA PL011 UART driver
[    0.148376] hdmitx: system: amhdmitx_init
[    0.148385] hdmitx: system: Ver: 2014May6
[    0.148431] tv_vout: tv_init_module
[    0.148446] tv_vout: major number 254 for disp
[    0.148455] vout_notify: vout_register_server
[    0.148464] tv_vout: register tv module server ok
[    0.148499] codec_mm:codec_mm_module_init
[    0.148827] gxbb clk HIU base is 0xffffff8000058000
[    0.148837] gxbb clk ao base is 0xffffff800005a000
[    0.148886] register mpll_clk_out0 success done
[    0.148900] register mpll_clk_out1 success done
[    0.148912] register mpll_clk_out2 success done
[    0.149099] register sys pll success done
[    0.149145] clkrate [ xtal 	] : 24000000Hz
[    0.149155] clkrate [ 32Khz 	] : 32000Hz
[    0.149164] clkrate [ clk81 	] : 166666666Hz
[    0.149173] clkrate [ fixed_pll 	] : 2000000000Hz
[    0.149183] clkrate [ fclk_div2 	] : 1000000000Hz
[    0.149193] clkrate [ fclk_div3 	] : 666666000Hz
[    0.149202] clkrate [ fclk_div4 	] : 500000000Hz
[    0.149211] clkrate [ fclk_div5 	] : 400000000Hz
[    0.149220] clkrate [ fclk_div7 	] : 285714000Hz
[    0.149250] gxbb clock initialization complete
[    0.149294] msr_clk_reg0=ffffff800005c75c,msr_clk_reg2=ffffff800005e764
[    0.150224] amlogic iomap probe done
[    0.150561] Init pinux probe!
[    0.151567] pinmux-gxbb c1109880.pinmux: Probed amlogic pinctrl driver
[    0.151901] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x118)
[    0.151923] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x118)
[    0.152003] genirq: Setting trigger mode 8 for irq 241 failed (gic_set_type+0x0/0x118)
[    0.152024] genirq: Setting trigger mode 8 for irq 242 failed (gic_set_type+0x0/0x118)
[    0.152213] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 1536000000
[    0.152639] codec:codec map io source 0x00000000c1100000,size=1048576 to 0xffffff8000680000
[    0.152665] codec:codec map io source 0x00000000c8820000,size=65536 to 0xffffff80000a0000
[    0.152686] codec:codec map io source 0x00000000c883c000,size=8192 to 0xffffff8000094000
[    0.152719] codec:codec map io source 0x00000000c8100000,size=1048576 to 0xffffff8000800000
[    0.152742] codec:codec map io source 0x00000000d0100000,size=262144 to 0xffffff8000980000
[    0.152762] codec:codec map io source 0x00000000c8838000,size=1024 to 0xffffff800007e000
[    0.153377] VPU driver version: v01
[    0.153387] vpu driver detect cpu type: gxbaby
[    0.153404] load vpu_clk in dts: 666667000Hz(7)
[    0.153434] vpu_probe OK
[    0.153821] canvas_probe reg=00000000c8838000,size=400
[    0.153837] canvas maped reg_base =ffffff800009a000
[    0.158075] rdma_probe
[    0.221117] SCSI subsystem initialized
[    0.221310] usbcore: registered new interface driver usbfs
[    0.221355] usbcore: registered new interface driver hub
[    0.221413] usbcore: registered new device driver usb
[    0.221508] media: Linux media interface: v0.10
[    0.221547] Linux video capture interface: v2.00
[    0.221607] pps_core: LinuxPPS API ver. 1 registered
[    0.221617] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.221646] PTP clock support registered
[    0.221861] logo: logo_init
[    0.221921] Advanced Linux Sound Architecture Driver Initialized.
[    0.222287] Bluetooth: Core ver 2.19
[    0.222314] NET: Registered protocol family 31
[    0.222323] Bluetooth: HCI device and connection manager initialized
[    0.222342] Bluetooth: HCI socket layer initialized
[    0.222356] Bluetooth: L2CAP socket layer initialized
[    0.222383] Bluetooth: SCO socket layer initialized
[    0.222405] NetLabel: Initializing
[    0.222413] NetLabel:  domain hash size = 128
[    0.222421] NetLabel:  protocols = UNLABELED CIPSOv4
[    0.222462] NetLabel:  unlabeled traffic allowed by default
[    0.223181] Switched to clocksource Timer-E
[    0.260345] NET: Registered protocol family 2
[    0.260867] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
[    0.260963] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)
[    0.261136] TCP: Hash tables configured (established 16384 bind 16384)
[    0.261207] TCP: reno registered
[    0.261220] UDP hash table entries: 1024 (order: 3, 32768 bytes)
[    0.261258] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)
[    0.261417] NET: Registered protocol family 1
[    0.261627] RPC: Registered named UNIX socket transport module.
[    0.261638] RPC: Registered udp transport module.
[    0.261646] RPC: Registered tcp transport module.
[    0.261654] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261844] Unpacking initramfs...
[    0.513328] Freeing initrd memory: 7692K (ffffffc0737a6000 - ffffffc073f29000)
[    0.519332] kvm [1]: interrupt-controller@c4304000 IRQ25
[    0.519470] kvm [1]: kvm_arch_timer: can't find DT node
[    0.519525] kvm [1]: error initializing Hyp mode: -19
[    0.521009] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    0.526318] VFS: Disk quotas dquot_6.5.2
[    0.526458] Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    0.528261] NFS: Registering the id_resolver key type
[    0.528295] Key type id_resolver registered
[    0.528304] Key type id_legacy registered
[    0.528324] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.528369] msgmni has been set to 3964
[    0.529412] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.529531] io scheduler noop registered (default)
[    0.529545] io scheduler deadline registered
[    0.529644] io scheduler cfq registered
[    0.530193] meson-rng c8834000.rng: hwrng registered
[    0.530494] enter  cpufreq
[    0.530525] probe  cpufreq okay
[    0.530652] dvfs [scpi_dvfs_get_opps] - new count 6, max_freq 1536000000
[    0.531617] aml-thermal aml-sensor@0: min state:500000 400 1 2
[    0.531796] aml-thermal aml-sensor@0: gpu coef:437, pp:3
[    0.536855] aml-thermal aml-sensor@0: cdev1 set upper to 3
[    0.536868] aml-thermal aml-sensor@0: cdev2 set upper to 3
[    0.536880] aml-thermal aml-sensor@0: cdev0 set upper to 3
[    0.539462] [drm] Initialized drm 1.1.0 20060810
[    0.539505] mali-utgard d00c0000.mali: max pp is 3
[    0.539517] mali-utgard d00c0000.mali: min pp is 3
[    0.539529] mali-utgard d00c0000.mali: min clk  is 4
[    0.539555] mali-utgard d00c0000.mali: hiu io source  0xffffff80000d2000
[    0.539572] mali-utgard d00c0000.mali: hiu io source  0xffffff80000d4000
[    0.539586] mali-utgard d00c0000.mali: num of pp used most of time 3
[    0.539598] mali-utgard d00c0000.mali: clock dvfs table size is 6
[    0.539611] mali-utgard d00c0000.mali: max clk set 4
[    0.539621] mali-utgard d00c0000.mali: max clk  is 4
[    0.539633] mali-utgard d00c0000.mali: turbo clk set to 5
[    0.539644] mali-utgard d00c0000.mali: turbo clk  is 5
[    0.539655] mali-utgard d00c0000.mali: default clk  is 4
[    0.539724] mali-utgard d00c0000.mali: ====================0====================
               clk_freq= 125000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<30 120>, clk_sample=125
[    0.539751] mali-utgard d00c0000.mali: ====================1====================
               clk_freq= 285000000, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<100 190>, clk_sample=285
[    0.539777] mali-utgard d00c0000.mali: ====================2====================
               clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[    0.539803] mali-utgard d00c0000.mali: ====================3====================
               clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<180 220>, clk_sample=500
[    0.539829] mali-utgard d00c0000.mali: ====================4====================
               clk_freq= 666000000, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<210 236>, clk_sample=666
[    0.539856] mali-utgard d00c0000.mali: ====================5====================
               clk_freq= 792000000, clk_parent=  gp0_pll, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=792
[    0.541487] cdev3 set upper to 2
[    0.541501] cdev4 set upper to 2
[    0.541509] gpu cooling register okay with err=0
[    0.541570] cdev5 set upper to 1
[    0.541579] gpu core cooling register okay with err=0
[    0.541733] Mali: Mali device driver loaded
[    0.541882] UMP: UMP device driver  loaded
[    0.544319] loop: module loaded
[    0.544654] mtdoops: mtd device (mtddev=name/number) must be supplied
[    0.545137] stmmac - user ID: 0x11, Synopsys ID: 0x37
[    0.545148]  Ring mode enabled
[    0.545157]  DMA HW capability register supported
[    0.545164]  Normal descriptors
[    0.545174]  RX Checksum Offload Engine supported (type 2)
[    0.545184]  TX Checksum insertion supported
[    0.545192]  Wake-Up On Lan supported
[    0.545227]  Enable RX Mitigation via HW Watchdog Timer
[    0.556539] libphy: stmmac: probed
[    0.556563] eth0: PHY ID 001cc916 at 0 IRQ POLL (stmmac-0:00) active
[    0.556576] eth0: PHY ID 001cc916 at 7 IRQ POLL (stmmac-0:07)
[    0.556861] usbcore: registered new interface driver cdc_ether
[    0.556932] usbcore: registered new interface driver cdc_ncm
[    0.557059] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.557075] ehci-h20ahb: H20AHB-EHCI Host Controller driver
[    0.557174] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    0.557240] usbcore: registered new interface driver cdc_acm
[    0.557250] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    0.557297] usbcore: registered new interface driver uas
[    0.557352] usbcore: registered new interface driver usb-storage
[    0.557388] usbcore: registered new interface driver ums-cypress
[    0.557489] usbcore: registered new interface driver usbserial
[    0.557522] usbcore: registered new interface driver usbserial_generic
[    0.557554] usbserial: USB Serial support registered for generic
[    0.557825] mousedev: PS/2 mouse device common for all mice
[    0.558134] i2c /dev entries driver
[    0.558506] IR Sharp protocol handler initialized
[    0.558903] ledtrig-cpu: registered to indicate activity on CPUs
[    0.558979] hidraw: raw HID events driver (C) Jiri Kosina
[    0.559132] usbcore: registered new interface driver usbhid
[    0.559142] usbhid: USB HID core driver
[    0.559296] ==uart0 reg addr = ffffff80002104c0
[    0.559323] c81004c0.serial: ttyS0 at MMIO 0xc81004c0 (irq = 225, base_baud = 1500000) is a meson_uart
[    1.998626] console [ttyS0] enabled
[    2.002283] ==uart1 reg addr = ffffff80002124c0
[    2.006570] c11084c0.serial: ttyS1 at MMIO 0xc11084c0 (irq = 58, base_baud = 1500000) is a meson_uart
[    2.056023] dwc_otg: usb1: type: 1 speed: 0, config: 0, dma: 0, id: 1, phy: c0000020, ctrl: 0
[    2.061534] dwc_otg: Core Release: 3.10a
[    2.062770] dwc_otg: Setting default values for core params
[    2.068306] dwc_otg: curmode: 1, host_only: 1
[    2.074811] dwc_otg: Using Buffer DMA mode
[    2.076655] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    2.081743] dwc_otg: Working on port type = HOST
[    2.086476] dwc_otg dwc2_b: DWC OTG Controller
[    2.090725] dwc_otg dwc2_b: new USB bus registered, assigned bus number 1
[    2.097465] dwc_otg dwc2_b: irq 63, io mem 0x00000000
[    2.102444] dwc_otg: -------hcd->flags.d32 = 0
[    2.106865] dwc_otg: Init: Port Power? op_state=1
[    2.111499] dwc_otg: Init1: Power Port (0)
[    2.116060] hub 1-0:1.0: USB hub found
[    2.119279] hub 1-0:1.0: 1 port detected
[    2.123355] dwc_otg: usb0: type: 0 speed: 0, config: 0, dma: 0, id: 0, phy: c0000000, ctrl: 0
[    2.143190] dwc_otg: Core Release: 3.10a
[    2.143215] dwc_otg: Setting default values for core params
[    2.147006] dwc_otg: curmode: 1, host_only: 0
[    2.155521] dwc_otg: Using Buffer DMA mode
[    2.155545] dwc_otg: OTG VER PARAM: 1, OTG VER FLAG: 1
[    2.160455] dwc_otg: Working on port type = OTG
[    2.164949] dwc_otg: Current port type: SLAVE
[    2.169319] dwc_otg dwc2_a: DWC OTG Controller
[    2.173671] dwc_otg dwc2_a: new USB bus registered, assigned bus number 2
[    2.180392] dwc_otg dwc2_a: irq 62, io mem 0x00000000
[    2.185783] hub 2-0:1.0: USB hub found
[    2.189106] hub 2-0:1.0: 1 port detected
[    2.193108] dwc_otg: Dedicated Tx FIFOs mode
[    2.197402] dwc_otg: using timer detectid change, ffffffc07d661800
[    2.203464] fb: osd_init_module
[    2.206564] vout_serve: vout_init_module
[    2.210383] ge2d: ge2d_init_module
[    2.213688] ge2d: ge2d_dev major:242
[    2.217357] ge2d: ge2d clock is 400 MHZ
[    2.221003] ge2d: ge2d: pdev=ffffffc07d718400, irq=182, rstc=0xffffffc07aaa0c40, clk=ffffffc07d634600
[    2.230226] ge2d: mapped phy: 0xd0160000
[    2.234039] ge2d: ge2d start monitor
[    2.237633] ge2d: ge2d workqueue monitor start
[    2.237764] BLASTER Driver Init
[    2.237930] secmon has 1 memory regions
[    2.237971] /secmon: could not find phandle
[    2.237972] secmon: probe done
[    2.238072] storage: storage in base: 0xffffffc010000000
[    2.238074] storage: storage out base: 0xffffffc010040000
[    2.238075] storage: storage block base: 0xffffffc010080000
[    2.238076] storage: probe done!
[    2.238830] aml_sd_emmc_probe: line 2898
[    2.238833] mmc driver version: 1.07, 2015-01-21: fix a bug in tuning which caused eMMC data CRC error
[    2.239216] aml_sd_emmc_reg_init 621
[    2.239288] pdata->caps 60007
[    2.239294] pdata->caps2 0
[    2.239298] get property:                ocr_avail, value:0x00200080
[    2.239301] get property:                    f_min, value:0x00061a80
[    2.239303] get property:                    f_max, value:0x0510ff40
[    2.239307] get property:             max_req_size, value:0x00020000
[    2.239310] get property:                   irq_in, value:0x00000003
[    2.239313] get property:                  irq_out, value:0x00000005
[    2.239316] get property:              power_level, value:0x00000001
[    2.239328] get property:                  gpio_cd, str:
[    2.239333] get property:               gpio_power, str:
[    2.239335] get property:                  pinname, str:sd
[    2.239339] get property:                 jtag_pin, str:
[    2.239342] get property:                card_type, value:0x00000005
[    2.239346] get property:                gpio_dat3, str:
[    2.239351] get property:               gpio_volsw, str:
[    2.293359] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.293375] aml_sd_emmc_probe: line 2898
[    2.293750] aml_sd_emmc_reg_init 621
[    2.293809] pdata->caps 80000547
[    2.293816] pdata->caps2 a1
[    2.293821] get property:                ocr_avail, value:0x00200080
[    2.293824] get property:                    f_min, value:0x00061a80
[    2.293827] get property:                    f_max, value:0x0bebc200
[    2.293830] get property:             max_req_size, value:0x00020000
[    2.293837] get property:                  pinname, str:emmc
[    2.293840] get property:                card_type, value:0x00000001
[    2.293847] get property:                gpio_dat3, str:
[    2.293852] get property:                 hw_reset, str:
[    2.323255] dwc_otg: Indeed it is in host mode hprt0 = 00021501
[    2.363194] [aml_sd_emmc_probe] aml_sd_emmc_probe() success!
[    2.363335] ion_dev has 1 memory regions
[    2.363373] /ion_dev: could not find phandle
[    2.363665] codec:[tsync_pcr_init]init success.
[    2.363710] codec:regist mpeg12 codec profile
[    2.363754] codec:regist mpeg4 codec profile
[    2.363758] codec:amvdec_vc1 module init
[    2.363798] codec:regist vc1 codec profile
[    2.363803] codec:amvdec_h264 module init
[    2.363865] codec:regist h264 codec profile
[    2.363870] codec:amvdec_h264mvc module init
[    2.363914] codec:regist hmvc codec profile
[    2.363919] codec:amvdec_h264_4k2k module init
[    2.363958] codec:regist h264_4k2k codec profile
[    2.363963] codec:amvdec_h265 module init
[    2.364003] codec:regist hevc codec profile
[    2.364045] codec:regist mjpeg codec profile
[    2.364050] codec:amvdec_real module init
[    2.364095] codec:regist real codec profile
[    2.364099] codec:amvdec_avs module init
[    2.364138] codec:regist avs codec profile
[    2.364189] amvenc_avc_probe -- reserved memory config fail.
[    2.364192] amvenc_avc - cma memory pool size: 0 MB
[    2.364201] encode_wq_init.
[    2.364207] encode start monitor.
[    2.364285] encode workqueue monitor start.
[    2.364470] jpegenc module init
[    2.364516] jpegenc probe start.
[    2.364519] jpegenc has 1 memory regions
[    2.364543] /jpegenc: could not find phandle
[    2.364546] jpegenc - cma memory pool size: 8 MB
[    2.364557] jpegenc memory config sucess, buff size is 0x800000, level: VGA
[    2.364558] jpegenc_wq_init.
[    2.364639] jpegenc probe end.
[    2.364766] switch_vpu_mem_pd: vpu_arb ON
[    2.364954] tv_vout: tv_set_current_vmode[706]fps_target_mode=10
[    2.364959] tv_vout: mode is 10,sync_duration_den=1,sync_duration_num=60
[    2.364965] switch_vpu_mem_pd: vencp ON
[    2.364970] tv_vout: TV mode 720p60hz selected.
[    2.364977] tv_vout: new mode =720p60hz set ok
[    2.364979] vout_serve: vinfo mode is: 720p60hz
[    2.365030] codec:create_ge2d_work_queue video task ok
[    2.365301] codec:register clk_set_setting cpu[31]
[    2.365650] di_module_init ok.
[    2.365655] di_module_init: major 238
[    2.365936] efusekeynum: 4
[    2.365947] efusekeyname:             mac	offset:     0	size:     6
[    2.365953] efusekeyname:          mac_bt	offset:     6	size:     6
[    2.365960] efusekeyname:        mac_wifi	offset:    12	size:     6
[    2.365967] efusekeyname:            usid	offset:    18	size:    16
[    2.366152] secmon: secmon share mem in base: 0xffffffc0100fe000
[    2.366154] secmon: secmon share mem out base: 0xffffffc0100ff000
[    2.366162] efuse efuse: probe OK!
[    2.366301] \x016aml_unifykeys_init done!
[    2.366306] ppmgr module init func called
[    2.366582] ionvideo-000: V4L2 device registered as video13
[    2.366598] [dsp]register dsp to char divece(257)
[    2.366910] amaudio: driver amaudio succuess!
[    2.366918] amlvideo_init called
[    2.366918] amlvideo_create_instance called
[    2.366921] v4l2_dev.name=:amlvideo-000
[    2.366998] amlvideo-000: V4L2 device registered as video10
[    2.367004] 
               
                VECM init

[    2.367349] saradc c1108680.saradc: initialized by BL30
[    2.367353] saradc c1108680.saradc: calibration start:
[    2.367401] saradc c1108680.saradc: nominal=0, value=0
[    2.367446] saradc c1108680.saradc: nominal=256, value=248
[    2.367492] saradc c1108680.saradc: nominal=512, value=507
[    2.367538] saradc c1108680.saradc: nominal=768, value=767
[    2.367584] saradc c1108680.saradc: nominal=1023, value=1023
[    2.367587] saradc c1108680.saradc: calibration end: coef=4040
[    2.367639] remote: Driver init
[    2.367861] gpio_key- gpio_key_probe
[    2.367878] gpio-key c8100000.gpio_keypad: gpio_key: find key_name=0 fail
[    2.367891] gpio-key: probe of c8100000.gpio_keypad failed with error -22
[    2.368013] \x016--------------------------------------------------------
[    2.368016] \x016odroid_sysfs_init(321) : Sleep Enable !!
[    2.368017] \x016--------------------------------------------------------
[    2.368179] input: vt-input as /devices/virtual/input/input0
[    2.368267] \x016Virtual-Key input driver registered!!
[    2.368757] enter aml_soc_platform_pcm2bt_probe
[    2.369045] divider=16,frac=33920000,SDMval=4523
[    2.369178] enter aml_pcm_dai_probe
[    2.369222] [aml-spdif-dai]enter aml_dai_spdif_init
[    2.369276] aml_spdif_probe
[    2.369396] enter spdif_dit_probe
[    2.370078] odroid_hdmi_snd odroid_hdmi: dit-hifi <-> I2S mapping ok
[    2.503198] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.860350] aml_emmc_hw_reset 1356
[    2.863361] dwc_otg: Indeed it is in host mode hprt0 = 00001101
[    2.874954] [aml_sd_emmc_irq]\x1b[0;40;32m emmc: resp_timeout,vstat:0x2800,virqc:3fff
               \x1b[0m
[    2.877230] aml_sd_emmc_data_thread 2154 emmc: cmd:1
[    2.882317] [aml_is_card_insert]\x1b[0;40;33m card IN
               \x1b[0m
[    2.882318] emmc: error -110 whilst initialising MMC card
[    2.930436] normal card in
[    2.930945] GACT probability on
[    2.930978] Mirror/redirect action on
[    2.934261] u32 classifier
[    2.936919]     Performance counters on
[    2.940715] [aml_is_card_insert]\x1b[0;40;33m card IN
               \x1b[0m
[    2.940715]     input device check on
[    2.950899]     Actions configured
[    2.954399] TCP: cubic registered
[    2.957592] NET: Registered protocol family 17
[    2.961964] NET: Registered protocol family 15
[    2.966414] Bluetooth: RFCOMM TTY layer initialized
[    2.971168] Bluetooth: RFCOMM socket layer initialized
[    2.976291] Bluetooth: RFCOMM ver 1.11
[    2.979969] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[    2.985228] Bluetooth: BNEP filters: protocol multicast
[    2.990401] Bluetooth: BNEP socket layer initialized
[    2.995325] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[    3.001181] Bluetooth: HIDP socket layer initialized
[    3.006159] NET: Registered protocol family 35
[    3.010683] Key type dns_resolver registered
[    3.015310] Registering SWP/SWPB emulation handler
[    3.019753] registered taskstats version 1
[    3.023911] Mali DRM initialize, driver name: mali_drm, version 2.1
[    3.029910] [drm] Initialized mali_drm 2.1.1 20140306 on minor 0
[    3.035703] Mali DRM initialize, driver name: mali_drm, version 2.1
[    3.041992] [drm] Initialized mali_drm 2.1.1 20140306 on minor 1
[    3.047978] rtc_hctosys: unable to open rtc device (rtc0)
[    3.054420] \x016enter meson_pm_probe!
[    3.056704] meson_pm_probe done
[    3.059940] ALSA device list:
[    3.062673]   #0: ODROID-HDMI
[    3.066071] Freeing unused kernel memory: 904K (ffffffc001d3d000 - ffffffc001e1f000)
[    3.085156] hub 1-1:1.0: USB hub found
[    3.085488] hub 1-1:1.0: 4 ports detected
[    3.144603] aml_i2c version: 20140813
[    3.149740] rtc-pcf8563 1-0051: chip found, driver version 0.4.3
[    3.150139] Unhandled fault: alignment fault (0x96000021) at 0xffffff800027e501
[    3.157532] Internal error: : 96000021 [#1] PREEMPT SMP
[    3.162534] Modules linked in: rtc_pcf8563 aml_i2c(+)
[    3.167538] CPU: 0 PID: 101 Comm: modprobe Not tainted 3.16.82-1-ARCH #1
[    3.174178] task: ffffffc07a9fa580 ti: ffffffc073890000 task.ti: ffffffc073890000
[    3.181605] pc : aml_i2c_xfer_prepare+0x7c/0x120 [aml_i2c]
[    3.187033] lr : aml_i2c_xfer_prepare+0x44/0x120 [aml_i2c]
[    3.192462] sp : ffffffc073893450 pstate : 80000145
[    3.197291] x29: ffffffc073893450 x28: ffffffc07a94d304 
[    3.202552] x27: 0000000000000001 x26: ffffffc0020dd000 
[    3.207813] x25: 00000000ffff8c09 x24: 0000000000000000 
[    3.213074] x23: 0000000000000002 x22: ffffffc0738935a0 
[    3.218336] x21: 00000000000493e0 x20: ffffffc07a94d000 
[    3.223597] x19: 000000000000008a x18: 0000000000000000 
[    3.228858] x17: 000000000000270f x16: ffffffc001123e30 
[    3.234119] x15: ffffffc081f03b1f x14: 0720072007200720 
[    3.239381] x13: 0720072007200720 x12: 0720072007200720 
[    3.244642] x11: 0000000000000007 x10: 0101010101010101 
[    3.249903] x9 : 0000000000000000 x8 : ffffffc073845400 
[    3.255164] x7 : 0000000000000000 x6 : 0000000000000001 
[    3.260426] x5 : ffffffc0738933e0 x4 : ffffffc0738933c0 
[    3.265687] x3 : 00000000f9ffc00f x2 : ffffff800027e500 
[    3.270948] x1 : 0000000000001150 x0 : 0000000000001150 

[    3.277677] Process modprobe (pid: 101, stack limit = 0xffffffc073890058)
[    3.284403] Call trace:
[    3.286824]  aml_i2c_xfer_prepare+0x7c/0x120 [aml_i2c]
[    3.291913]  $x+0x78/0x3b0 [aml_i2c]
[    3.295449]  __i2c_transfer+0x94/0x3a8
[    3.299154]  i2c_transfer+0x6c/0xb0
[    3.302606]  pcf8563_get_datetime+0x80/0x1c0 [rtc_pcf8563]
[    3.308038]  $x+0x28/0x38 [rtc_pcf8563]
[    3.311835]  __rtc_read_time.isra.0+0x54/0x78
[    3.316145]  rtc_read_time+0x44/0x68
[    3.319681]  __rtc_read_alarm+0x2c/0x390
[    3.323562]  rtc_device_register+0x174/0x2f0
[    3.327788]  devm_rtc_device_register+0x5c/0xb8
[    3.332274]  $x+0x74/0xc0 [rtc_pcf8563]
[    3.336069]  i2c_device_probe+0x8c/0xf0
[    3.339865]  really_probe+0x7c/0x218
[    3.343399]  __device_attach+0x4c/0x60
[    3.347110]  bus_for_each_drv+0x74/0xb0
[    3.350903]  device_attach+0xa8/0xf0
[    3.354439]  bus_probe_device+0x9c/0xc0
[    3.358236]  device_add+0x378/0x528
[    3.361685]  device_register+0x28/0x38
[    3.365393]  i2c_new_device+0x10c/0x190
[    3.369188]  i2c_register_adapter+0x208/0x488
[    3.373501]  __i2c_add_numbered_adapter+0x68/0xa0
[    3.378158]  i2c_add_numbered_adapter+0x2c/0x48
[    3.382648]  $x+0x2a0/0x688 [aml_i2c]
[    3.386266]  platform_drv_probe+0x2c/0x68
[    3.390233]  really_probe+0x7c/0x218
[    3.393769]  __driver_attach+0xb4/0xb8
[    3.397479]  bus_for_each_dev+0x78/0xb8
[    3.401273]  driver_attach+0x30/0x40
[    3.404809]  bus_add_driver+0x154/0x1e8
[    3.408604]  driver_register+0x68/0x128
[    3.412400]  __platform_driver_register+0x70/0x80
[    3.417061]  $x+0x20/0x40 [aml_i2c]
[    3.420508]  do_one_initcall+0x9c/0x1a0
[    3.424307]  load_module+0x1800/0x1f10
[    3.428012]  SyS_finit_module+0x98/0xb0
[    3.431807] Code: 530a7e60 531c2661 53017e73 2a006420 (b8401041) 
[    3.437847] ---[ end trace 99a6c78137a078e2 ]---
[    3.641047] sd: clk 83333333 SDR mode tuning start
[    3.641818] rx_tuning_result[0][0] = 10
[    3.644505] rx_tuning_result[0][1] = 10
[    3.648221] rx_tuning_result[0][2] = 10
[    3.652033] rx_tuning_result[0][3] = 10
[    3.655854] rx_tuning_result[0][4] = 10
[    3.659604] rx_tuning_result[0][5] = 10
[    3.663425] rx_tuning_result[0][6] = 10
[    3.667188] rx_tuning_result[0][7] = 10
[    3.670994] rx_tuning_result[0][8] = 10
[    3.674819] rx_tuning_result[0][9] = 10
[    3.678630] rx_tuning_result[0][11] = 10
[    3.682045] best_win_start =11, best_win_size =11
[    3.688921] sd_emmc_regs->gclock =0x100024c, sd_emmc_regs->gadjust =0x42000
[    3.693630] sd: gclock =0x100024c, gdelay=0x0
[    3.693636] gadjust=0x42000
[    3.693647] sd: new ultra high speed SDR104 SDHC card at address aaaa
[    3.697989] mmcblk0: sd:aaaa SE16G 14.8 GiB 
[    3.705883]  mmcblk0: p1
[    3.836326] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    4.120352] random: nonblocking pool is initialized
[    4.366079] systemd[1]: System time before build time, advancing clock.
[    4.408225] systemd[1]: Inserted module 'autofs4'
[    4.433964] NET: Registered protocol family 10
[    4.437962] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.472135] systemd[1]: systemd 245-3-arch running in system mode. (+PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
[    4.488817] systemd[1]: Detected architecture arm64.
[    4.503487] systemd[1]: Set hostname to <odroid>.
[    4.834085] switch_vpu_mem_pd: viu_vd1 OFF
[    4.834125] switch_vpu_mem_pd: afbc_dec OFF
[    4.836706] switch_vpu_mem_pd: di_post OFF
[    4.840760] switch_vpu_mem_pd: viu_vd2 OFF
[    4.993289] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[    4.999976] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[    5.009918] systemd[1]: Created slice system-getty.slice.
[    5.014660] systemd[1]: Created slice system-modprobe.slice.
[    5.020068] systemd[1]: Created slice system-serial\x2dgetty.slice.
[    5.026228] systemd[1]: Created slice User and Session Slice.
[    5.031589] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    5.039418] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[    5.047335] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.056181] systemd[1]: Reached target Local Encrypted Volumes.
[    5.062000] systemd[1]: Reached target Paths.
[    5.066300] systemd[1]: Reached target Remote File Systems.
[    5.071770] systemd[1]: Reached target Slices.
[    5.076196] systemd[1]: Reached target Swap.
[    5.080641] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[    5.092268] systemd[1]: Listening on Process Core Dump Socket.
[    5.092889] systemd[1]: Listening on initctl Compatibility Named Pipe.
[    5.103667] systemd[1]: Condition check resulted in Journal Audit Socket being skipped.
[    5.107413] systemd[1]: Listening on Journal Socket (/dev/log).
[    5.113365] systemd[1]: Listening on Journal Socket.
[    5.118268] systemd[1]: Listening on Network Service Netlink Socket.
[    5.124462] systemd[1]: Listening on udev Control Socket.
[    5.129642] systemd[1]: Listening on udev Kernel Socket.
[    5.135016] systemd[1]: Listening on User Database Manager Socket.
[    5.143316] systemd[1]: Mounting Huge Pages File System...
[    5.149071] systemd[1]: Mounting POSIX Message Queue File System...
[    5.155634] systemd[1]: Mounting Kernel Debug File System...
[    5.158617] systemd[1]: Condition check resulted in Kernel Trace File System being skipped.
[    5.169783] systemd[1]: Mounting Temporary Directory (/tmp)...
[    5.175648] systemd[1]: Starting Create list of static device nodes for the current kernel...
[    5.180954] systemd[1]: Condition check resulted in Load Kernel Module drm being skipped.
[    5.191258] systemd[1]: Condition check resulted in Set Up Additional Binary Formats being skipped.
[    5.201325] systemd[1]: Starting Journal Service...
[    5.204520] systemd[1]: Condition check resulted in Load Kernel Modules being skipped.
[    5.210759] systemd[1]: Condition check resulted in FUSE Control File System being skipped.
[    5.221552] systemd[1]: Mounting Kernel Configuration File System...
[    5.227863] systemd[1]: Starting Remount Root and Kernel File Systems...
[    5.234551] systemd[1]: Starting Repartition Root Disk...
[    5.240553] systemd[1]: Starting Apply Kernel Variables...
[    5.246384] systemd[1]: Starting udev Coldplug all Devices...
[    5.254924] systemd[1]: Mounted Huge Pages File System.
[    5.255842] systemd[1]: Mounted POSIX Message Queue File System.
[    5.261454] systemd[1]: Mounted Kernel Debug File System.
[    5.266877] systemd[1]: Mounted Temporary Directory (/tmp).
[    5.273456] systemd[1]: Finished Create list of static device nodes for the current kernel.
[    5.295528] systemd[1]: Mounted Kernel Configuration File System.
[    5.297480] systemd[1]: Finished Remount Root and Kernel File Systems.
[    5.394469] systemd[1]: Finished Repartition Root Disk.
[    5.396689] systemd[1]: Finished Apply Kernel Variables.
[    5.402574] systemd[1]: Condition check resulted in First Boot Wizard being skipped.
[    5.419875] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
[    5.425488] systemd[1]: Starting Load/Save Random Seed...
[    5.431185] systemd[1]: Starting Create System Users...
[    5.437502] systemd[1]: Starting CLI Netfilter Manager...
[    5.584751] systemd[1]: Finished Load/Save Random Seed.
[    5.586653] systemd[1]: Finished udev Coldplug all Devices.
[    5.591813] systemd[1]: Finished Create System Users.
[    5.598512] systemd[1]: Starting Create Static Device Nodes in /dev...
[    5.650090] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[    5.681826] systemd[1]: Finished Create Static Device Nodes in /dev.
[    5.683410] systemd[1]: Reached target Local File Systems (Pre).
[    5.688940] systemd[1]: Condition check resulted in Virtual Machine and Container Storage (Compatibility) being skipped.
[    5.699663] systemd[1]: Reached target Local File Systems.
[    5.707918] systemd[1]: Starting Rebuild Dynamic Linker Cache...
[    5.708254] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    5.716542] systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped.
[    5.725917] systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped.
[    5.875887] systemd[1]: Starting udev Kernel Device Manager...
[    5.919576] systemd[1]: Finished Rebuild Dynamic Linker Cache.
[    5.953000] systemd[1]: Started Journal Service.
[    5.992392] systemd-journald[158]: Received client request to flush runtime journal.
[    6.004805] systemd-journald[158]: File /var/log/journal/15de6dc58e8e47fa8ce7fe691587c7a4/system.journal corrupted or uncleanly shut down, renaming and replacing.
[    6.758153] gpiomem-meson c8834000.gpiomem: Initialised: Registers at 0xc8834000
[    6.835122] Driver for 1-wire Dallas network protocol.
[    7.019154] ionvideo open
[    7.213216] ionvideo_stop_generating!!!!
[    7.213288] ionvideo release
[    7.311355] eth0: device MAC address 00:1e:06:33:59:e7
[    7.323332] ERROR stmmaceth, debugfs create directory failed
[    7.323377] stmmac_hw_setup: failed debugFS registration
[   12.303498] stmmaceth c9410000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx

User avatar
graysky
Posts: 158
Joined: Wed Jul 13, 2016 9:11 am
languages_spoken: english
ODROIDs: C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by graysky » Mon Mar 30, 2020 6:52 pm

mdrjr wrote:
Fri Mar 20, 2020 11:27 pm
I'm looking onto the RTC issue
Did you get a chance to dig into this failure? Thanks!

LucGIS
Posts: 9
Joined: Tue Nov 29, 2016 5:06 am
languages_spoken: english
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by LucGIS » Thu May 21, 2020 2:45 am

I also get these errors:

Odroid C2
# uname -a
Linux JILS-odroid 3.16.82+ #1 SMP PREEMPT Tue Mar 17 18:33:26 CET 2020 aarch64 GNU/Linux

# date
Wed May 20 19:44:00 CEST 2020

# hwclock -r
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Input/output error

# hwclock -r
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Input/output error

# hwclock --systohc
hwclock: ioctl(RTC_RD_TIME) to /dev/rtc to read the time failed: Input/output error
hwclock: ioctl(RTC_SET_TIME) to /dev/rtc to set the time failed.: Input/output error

# hwclock --systohc -D --noadjfile --utc
hwclock from util-linux 2.29.2
Using the /dev interface to the clock.
Assuming hardware clock is kept in UTC time.
Time since last adjustment is 0 seconds
Calculated Hardware Clock drift is 0.000000 seconds
missed it - 1589996735.880195 is too far past 1589996735.500000 (0.380195 > 0.001000)
1589996736.500000 is close enough to 1589996736.500000 (0.000000 < 0.002000)
Set RTC to 1589996736 (1589996735 + 1; refsystime = 1589996735.000000)
Setting Hardware Clock to 17:45:36 = 1589996736 seconds since 1969
hwclock: ioctl(RTC_SET_TIME) to /dev/rtc to set the time failed.: Input/output error

User avatar
odroid
Site Admin
Posts: 34195
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 701 times
Been thanked: 625 times
Contact:

Re: [linux-odroid-c2] rtc not available since upgrade to 3.16.81

Post by odroid » Thu May 21, 2020 9:48 am

@LucGIS,
You have to check whether rtc_pcf8563 and aml_i2c drivers are loaded well or not first.
https://wiki.odroid.com/accessory/add-o ... rtc_shield

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 3 guests