Jump to content

Proof of concept - Realtek 1295


Staars

Recommended Posts

I have nothing to show yet and I just decided, to refactor my efforts again. 

 

To give a rough overview about my (unprofessional) approach so far:

I have taken a standard 4.19.16 kernel and the "obvious" realtek files from the bsp-realtek-kernel. Then came the iterative compile->error-message->fix cycle, which really showed some progress and I could work out all the API changes so far (untested of course!). The nasty thing is, that there are various "realtek patches" all over the place and not only in the soc specific driver code. So you got to see lots of #ifdef CONFIG_RTK_blablabla in generic kernel code  parts.

The other problem is, that the tiny amount of RTD1295 code that is already in the kernel does interfere sometimes and does not include the concept of different realtek socs (119x, 129x, 139x, 16xx) of the family. There is no one to blame for (not realtek and not the kernel code contributor), but it does not make things easier. My initial idea (before I had a real overview about the code) was to integrate the bsp-realtek-1295-stuff into the already existing kernel-code (which basically is 1295, but with a generic name), but meanwhile I think, that this was a bad idea.

What I will try now is to strip the realtek-mainline-parts and introduce the generic realtek platform with the different socs in my kernel fork.

 

In a best-case-scenario this might work somehow in the end, but at best it should show no or small regression compared to the current 4.9.159-bsp-version. Mainlining this will be impossible (for me) but with a bit (extreme amounts) of luck it could be easier to patch newer kernels in the future. I am convinced, that it should be quite easy for realtek to do this or at least to change their code base to a more modular/driver-based model and I'm even more convinced that it would make their job easier in the future (watch for instance 

Spoiler

 

at about minute 38).

But don't be surprised, if this does not work at all !!

 

Link to comment
Share on other sites

a small teaser:

dpkg-deb: building package 'linux-source-4.19.16-dev-rtd1295' in '/home/vagrant/armbian/.tmp/linux-source-dev-rtd1295_5.76_all.deb'.
[ o.k. ] Kernel build done [ @host ]
[ o.k. ] Target directory [ /home/vagrant/armbian/output/debs/ ]
[ o.k. ] File name [ linux-image-dev-rtd1295_5.76_arm64.deb ]
[ o.k. ] Runtime [ 4 min ]

 

This can definitely NOT work atm, because some parts (i.e. DTS) are missing, but it is moving in the right direction. 

Link to comment
Share on other sites

[ o.k. ] Writing U-boot bootloader [ /dev/loop0 ]
[ o.k. ] Done building [ /home/vagrant/armbian/output/images/Armbian_5.76_Lake1_Debian_stretch_dev_4.19.16.img ]

Some updates:

1. Now I have a kernel tree based on stable 4.19.16 which should include most of the realtek specific files from the vendor kernel and compiles. There was a lot of guesswork and I am by no means a kernel developer. 

 

2. After some updates to the build files it is now possible to create a disc image for default and dev. It might be possible to build a vanilla mainline kernel now, but a new kernel config file would be needed.

 

3. My new Lake-TV-Box has finally arrived :) (but I am too lazy to solder the UART connection right now).

 

Link to comment
Share on other sites

First Thanx for the hint with the non-soldering method. This is way easier!

 

The new 4.19-images crashes immediately, but this is not totally unexpected. I will look into it.

 

BTW,  are you able to enter the mode, where we can write the SPI-rom? Like so: http://forum.zidoo.tv/index.php?threads/how-to-flash-zidoo-x9s-unit.2959/page-13

 

ATM, I assume that there is no SPI on the Lake-Box.

 

Link to comment
Share on other sites

I can't get access to SPI pompt, only to u-boot:

U-Boot 2015.07-g428cfe7-dirty (Jul 28 2017 - 10:10:26 +0800)
aarch64-linux-xgcc (Realtek ASDK64-4.9.3 Build 2180) 4.9.3 20150413 (prerelease)
GNU ld (Realtek ASDK64-4.9.3 Build 2180) 2.24.0.20141017

 

Link to comment
Share on other sites

So, crash improvement from 0 to about 4 seconds with 4.19.:

Spoiler

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]

[    0.000000] Linux version 4.19.16-rtd1295 (root@ubuntu-bionic) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.76 SMP Wed Mar 6 10:12:47 UTC 2019

[    0.000000] Machine model: Realtek_RTD1296

[    0.000000] earlycon: uart8250 at MMIO32 0x0000000098007800 (options '')

[    0.000000] bootconsole [uart8250] enabled

[    0.000000] rsvmem_remap_setup 234, not remap common@0 now

[    0.000000] rsvmem_remap_setup 234, not remap ringbuf@0 now

[    0.000000] rsvmem_remap_setup 234, not remap rbus@0 now

[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000

[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x3f0 with crng_init=0

[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s54424 r8192 d31592 u94208

[    0.000000] Detected VIPT I-cache on CPU0

[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096

[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200 noinitrd root=/dev/mmcblk0p1 rootfs=ext4 init=/sbin/init

[    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: 1658896K/2097152K available (9854K kernel code, 630K rwdata, 2872K rodata, 512K init, 397K bss, 421872K reserved, 16384K cma-reserved)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] rcu: Hierarchical RCU implementation.

[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.

[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4

[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0

[    0.000000] GIC: GICv2 detected, but range too small and irqchip.gicv2_force_probe not set

[    0.000000] arch_timer: cp15 timer(s) running at 27.00MHz (phys).

[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns

[    0.000006] sched_clock: 56 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns

[    0.009118] [RTK-TIMER0] set mode: shutdown

[    0.013827] [RTK-TIMER0] clocksource 0 register HZ

[    0.019220] clocksource: rtk_timer0_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.030827] [RTK-TIMER1] clocksource 1 register HZ

[    0.036220] clocksource: rtk_timer1_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.048227] Console: colour dummy device 80x25

[    0.053265] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=108000)

[    0.064942] pid_max: default: 32768 minimum: 301

[    0.070245] Security Framework initialized

[    0.074866] AppArmor: AppArmor disabled by boot time parameter

[    0.081493] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)

[    0.089057] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)

VVVEEERRR[BBOOBSOESS:E :E bbl: 3b1l3_1sle_ts31e_tuusppet

up

N N

7b7OOTTITCIICCEEE:: :   B  BBLLL33131:1 ::v  v1v1.12.(.22d(e(dbeudegb)b:u1ug)g:)5:211255a222b2a7ba

NO

  

1 NNTOOTTIIICCCEE::E   : B L BLB3L33111:::   BBuuBuiililtt l:  t:  1:1 661:363::3333:::44466,,6  O,Oc tOct  1c3t 1 230 121036

1NI60

I 6F

vNOINFF:O: O:         BB LL 313B1L::  3In1:Ini Itinitaliiitziialalngiiz rinziug nng rrtiuumnetn itmisemreev  issecrees

rIivNiFcOc:ee ss

I

i IStNaFNOrtF:O:  t  o   i   nSSitttar satert r vttioo  iicnen isitdt_ ts sesevrrvcv

scceI Ne FsO:st td  d_ _ssvFvincc i

I NF

    toOI: NiFn iOt:   s e  r vi FFicenii nssthi dts_oh sv tcion i

cs In NisFtO e: s rer vv Siticcaerte  ss tttodd_ _issnvic t v

eNFI

   IrOvN:F iOc:  e   o   ptSSetetadra_tfr atsto  it

iiItN t sFeOr:ov ic   ei n Fopitt ineiseedrsvhi_ tfceoa  stoin p

tisI NeFsOede_:rfvai c s te  F ionp

v  hI eNetodF _Oi:nf i ta s s Ft eir

nIiisNchFe  Oot:op  ti n e iet d_sBferL3as1vt: ic

BIL3noNpFiOtet:ie dal _i z fiBanL3stg 1 :

INi  2n

   IFtiNOaFl:iO  zi:   nBg L B3 1 :L 32In

PoitIrieN_aFlO1i:   zT inE ECSoMrCge _B_L23O 2T

_EETISEMNFCEO_:OD  P_T E RECEDo_TrRUEeTRU_R3N N_TE_EENESMNTTC_RYRO_YPDTOEN_EED OD

U:NINEEF OT

   RIN N F B_LE3NO1T:: RI Yn i ti_D aOBNlLiEz e3d

ni1:IL 3N2FIO

tX:t iI  aN FBlLiOz31:e:d    IBL n 3iE2

  iIITNa FBOlL3:i1

zI e NdEXF IO:TB L 3  B2

blI3NL3F11_O:

nkeeo  FO_ k: eE rnXI eT l b:BlL3 1_3ktoe1r_

  kelI_rNnrFeOl::e k s e um brel_n3ee1nlt_r_yre ts= ou0_mx1ek_ee0ernne0t0lr:y

e   =r I0Nxn1FOee00:l0_  r

:t IsbNFuOlm31:e  j u m _bel3p1sn trjuy tm o=  pE0sL 2:x1 eketro0 enE0Ll2 e0n

:  rky IeNFrOe

jnl    en btlr3y1

umps to EL2: kerenl entry

    0.098636] ASID allocator initialised with 32768 entries

[    0.253357] rcu: Hierarchical SRCU implementation.

[    0.259738] smp: Bringing up secondary CPUs ...

[    0.265258] Detected VIPT I-cache on CPU1

[    0.265305] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]

[    0.265821] Detected VIPT I-cache on CPU2

[    0.265858] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]

[    0.266361] Detected VIPT I-cache on CPU3

[    0.266398] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]

[    0.266504] smp: Brought up 1 node, 4 CPUs

[    0.306737] SMP: Total of 4 processors activated.

[    0.312042] CPU features: detected: 32-bit EL0 Support

[    0.320330] CPU: All CPU(s) started at EL2

[    0.324968] alternatives: patching kernel code

[    0.331382] devtmpfs: initialized

[    0.345529] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns

[    0.356534] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.364332] xor: measuring software checksum speed

[    0.407249]    8regs     :  1153.000 MB/sec

[    0.451318]    8regs_prefetch:  1028.000 MB/sec

[    0.495386]    32regs    :  1418.000 MB/sec

[    0.539453]    32regs_prefetch:  1192.000 MB/sec

[    0.544656] xor: using function: 32regs (1418.000 MB/sec)

[    0.550743] pinctrl core: initialized pinctrl subsystem

[    0.557994] NET: Registered protocol family 16

[    0.564960] audit: initializing netlink subsys (disabled)

[    0.571167] audit: type=2000 audit(0.324:1): state=initialized audit_enabled=0 res=1

[    0.579932] cpuidle: using governor menu

[    0.584589] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))

[    0.592935] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.

[    0.602046] DMA: preallocated 256 KiB pool for atomic allocations

[    0.609300] rst-control : base (____ptrval____), offset 0xb4

[    0.615691] ****** rtk_lockapi_init 618, chip: id=0x00000000, revision=0x00010000

[    0.624211] Serial: AMBA PL011 UART driver

[    0.630033] rtk-cgc 9800000c.clk-en: [CLK] rtk_cgc_probe

[    0.636050] mmio: use sb2_sem

[    0.639438] rtk-cgc 9800000c.clk-en: use mmio regmap

[    0.645384] rtk-cgc 98000010.clk-en: [CLK] rtk_cgc_probe

[    0.651398] rtk-cgc 98000010.clk-en: use mmio regmap

[    0.657317] rtk-cgc 98000450.clk-en: [CLK] rtk_cgc_probe

[    0.663508] rtk-cgc 9800708c.clk-en: [CLK] rtk_cgc_probe

[    0.669525] mmio: use sb2_sem

[    0.672878] (NULL device *): Failed to create dummy-mmio debugfs directory

[    0.680636] rtk-cgc 9800708c.clk-en: use mmio regmap

[    0.686517] rtk-cc 98000000.clock-controller: [CLK] rtk_cc_probe

[    0.693315] rtk-cc 98000000.clock-controller: use mmio regmap

[    0.699796] rtk-cc 98000000.clock-controller: cc_init_hw: pll_scpu

[    0.706786] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus

[    0.713676] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_div2

[    0.721055] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys

[    0.727947] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys_sb2

[    0.735228] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_h

[    0.742315] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sysh

[    0.749300] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsa

[    0.756289] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsb

[    0.763271] rtk-cc 98000000.clock-controller: cc_init_hw: pll_gpu

[    0.770158] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve1

[    0.777046] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve2

[    0.783932] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_gpu

[    0.791896] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve1

[    0.799861] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve2

[    0.807828] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve3

[    0.815998] rtk-reset 98000000.soft-reset: rtk_reset_probe

[    0.822209] rtk-reset 98000000.soft-reset: use mmio regmap

[    0.828570] rtk-reset 98000000.shadow-soft-reset: rtk_reset_probe

[    0.835458] rtk-reset 98000000.shadow-soft-reset: use mmio regmap

[    0.842505] rtk-reset 98000004.soft-reset: rtk_reset_probe

[    0.848706] rtk-reset 98000004.soft-reset: use mmio regmap

[    0.855065] rtk-reset 98000008.soft-reset: rtk_reset_probe

[    0.861267] rtk-reset 98000008.soft-reset: use mmio regmap

[    0.867631] rtk-reset 98000050.soft-reset: rtk_reset_probe

[    0.873834] rtk-reset 98000050.soft-reset: use mmio regmap

[    0.880188] rtk-reset 98007088.soft-reset: rtk_reset_probe

[    0.886392] rtk-reset 98007088.soft-reset: use mmio regmap

[    0.892753] rtk-reset 98000000.async-soft-reset: rtk_reset_probe

[    0.899546] rtk-reset 98000000.async-soft-reset: use mmio regmap

[    0.906488] rtk-reset 98000004.async-soft-reset: rtk_reset_probe

[    0.913277] rtk-reset 98000004.async-soft-reset: use mmio regmap

[    0.920206] rtk-rcp rcp: deprecated API OK

[    0.927981] [RTK_DCSYS_DBG] DC_EC_CTRL(0x98008300) = 70c0000

[    0.934387] [RTK_DCSYS_DBG] initialized

WARNING: Unimplemented Standard Service Call: 0x8400ff06

[    0.948513] [RTK_SB2_DBG] Info 0xffffffff

[    0.953168] [RTK_SB2_DBG] memory monitor 0x98013b00 - 0x98013c00

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff07

WARNING: Unimplemented Standard Service Call: 0x8400ff06

WARNING: Unimplemented Standard Service Call: 0x8400ff07

[    1.001740] [RTK_SB2_DBG] initialized

[    1.019693] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages

[    1.027764] cryptd: max_cpu_qlen set to 1000

[    1.100555] raid6: int64x1  gen()   221 MB/s

[    1.172547] raid6: int64x1  xor()   220 MB/s

[    1.244579] raid6: int64x2  gen()   338 MB/s

[    1.316704] raid6: int64x2  xor()   301 MB/s

[    1.388799] raid6: int64x4  gen()   520 MB/s

[    1.460913] raid6: int64x4  xor()   382 MB/s

[    1.533058] raid6: int64x8  gen()   492 MB/s

[    1.605073] raid6: int64x8  xor()   375 MB/s

[    1.677267] raid6: neonx1   gen()   364 MB/s

[    1.749267] raid6: neonx1   xor()   426 MB/s

[    1.821401] raid6: neonx2   gen()   583 MB/s

[    1.893455] raid6: neonx2   xor()   604 MB/s

[    1.965561] raid6: neonx4   gen()   753 MB/s

[    2.037653] raid6: neonx4   xor()   722 MB/s

[    2.109794] raid6: neonx8   gen()   827 MB/s

[    2.181846] raid6: neonx8   xor()   767 MB/s

[    2.186665] raid6: using algorithm neonx8 gen() 827 MB/s

[    2.192650] raid6: .... xor() 767 MB/s, rmw enabled

[    2.198142] raid6: using neon recovery algorithm

[    2.204236] vgaarb: loaded

[    2.207632] SCSI subsystem initialized

[    2.212338] usbcore: registered new interface driver usbfs

[    2.218580] usbcore: registered new interface driver hub

[    2.224651] usbcore: registered new device driver usb

[    2.230457] rtk-usb-manager 98000000.rtk_usb_power_manager: ENTER rtk_usb_manager_probe

[    2.239530] rtk-usb-manager 98000000.rtk_usb_power_manager: port0-power-gpio no found

[    2.248372] rtk-usb-manager 98000000.rtk_usb_power_manager: port1-power-gpio no found

[    2.257213] rtk-usb-manager 98000000.rtk_usb_power_manager: port2-power-gpio no found

[    2.266063] rtk-usb-manager 98000000.rtk_usb_power_manager: Error switch_ctrl-gpio no found

[    2.275491] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 0 rtk_dwc3_drd status is okay

[    2.285241] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 1 rtk_dwc3_u2host status is okay

[    2.295251] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ehci status is okay

[    2.304177] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ohci status is okay

[    2.313100] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 3 rtk_dwc3_u3host status is okay

[    2.323161] rtk_usb_iso_power_ctrl power_on ([0x98007fb0=0x0f000073)

[    2.330330] set power_domain on ([0x98007fb0]=0x0f000073)

[    2.342693] rtk-usb-manager 98000000.rtk_usb_power_manager: Realtek USB init OK

[    2.351653] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_probe OK (take 120 ms)

[    2.362459] pps_core: LinuxPPS API ver. 1 registered

[    2.368060] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>

[    2.378377] PTP clock support registered

[    2.384183] clocksource: Switched to clocksource arch_sys_counter

[    2.391243] VFS: Disk quotas dquot_6.6.0

[    2.395734] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

[    2.412386] NET: Registered protocol family 2

[    2.418002] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)

[    2.426893] TCP established hash table entries: 16384 (order: 5, 131072 bytes)

[    2.435240] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)

[    2.443058] TCP: Hash tables configured (established 16384 bind 16384)

[    2.450517] UDP hash table entries: 1024 (order: 3, 32768 bytes)

[    2.457364] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)

[    2.464843] NET: Registered protocol family 1

[    2.470171] RPC: Registered named UNIX socket transport module.

[    2.476855] RPC: Registered udp transport module.

[    2.482160] RPC: Registered tcp transport module.

[    2.487462] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    2.494925] Trying to unpack rootfs image as initramfs...

[    2.501218] rootfs image is not initramfs (junk in compressed archive); looks like an initrd

[    2.520543] Freeing initrd memory: 4096K

[    2.525859] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available

[    2.534932] kvm [1]: 8-bit VMID

[    2.539045] kvm [1]: Hyp mode initialized successfully

[    2.550520] Initialise system trusted keyrings

[    2.555684] workingset: timestamp_bits=46 max_order=19 bucket_order=0

[    2.570136] zbud: loaded

[    2.575841] NFS: Registering the id_resolver key type

[    2.581565] Key type id_resolver registered

[    2.586285] Key type id_legacy registered

[    2.590813] nfs4filelayout_init: NFSv4 File Layout Driver Registering...

[    2.598369] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    2.612622] Key type asymmetric registered

[    2.617259] Asymmetric key parser 'x509' registered

[    2.622820] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)

[    2.631283] io scheduler noop registered

[    2.635714] io scheduler deadline registered

[    2.640703] io scheduler cfq registered (default)

[    2.646013] io scheduler mq-deadline registered

[    2.651122] io scheduler kyber registered

[    2.655783] io scheduler bfq registered

[    2.662182] [RTK PCIE 2] 9803b000.pcie2: pcie host driver initial begin

[    2.669652] [RTK PCIE 2] 9803b000.pcie2: speed mode: GEN2

[    2.675817] [RTK PCIE 2] 9803b000.pcie2: rtk_pcie2_probe: gpio -517 is not valid

[    2.709506] ------------[ cut here ]------------

[    2.714709] invalid GPIO -517

[    2.718119] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    2.727230] Modules linked in:

[    2.730670] CPU: 2 PID: 1 Comm: swapper/0 Not tainted 4.19.16-rtd1295 #5.76

[    2.738505] Hardware name: Realtek_RTD1296 (DT)

[    2.743604] pstate: 60000005 (nZCv daif -PAN -UAO)

[    2.748999] pc : gpio_to_desc+0xcc/0x120

[    2.753415] lr : gpio_to_desc+0xcc/0x120

[    2.757829] sp : ffff00000802bb10

[    2.761554] x29: ffff00000802bb10 x28: 0000000000000007

[    2.767535] x27: ffff000008f46068 x26: ffff80007ba52000

[    2.773520] x25: 0000000000418958 x24: ffff00000802bba8

[    2.779502] x23: ffff000008f78000 x22: ffff80007bd2c010

[    2.785481] x21: 0000000000000000 x20: 0000000000000000

[    2.791465] x19: 00000000fffffdfb x18: ffffffffffffffff

[    2.797447] x17: 0000000000000000 x16: 0000000000007fff

[    2.803427] x15: ffff000008f78888 x14: ffff00008901809f

[    2.809408] x13: ffff000008f788c8 x12: ffff0000088950a0

[    2.815391] x11: ffff000008f53018 x10: 000000000000000d

[    2.821374] x9 : 00000000ffffffd0 x8 : 00000000000ae7d5

[    2.827356] x7 : 0000000000000000 x6 : 00000000000000d8

[    2.833339] x5 : 0000000000000003 x4 : 0000000000000000

[    2.839321] x3 : 0000000000000000 x2 : ffffffffffffffff

[    2.845301] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    2.851282] Call trace:

[    2.854031]  gpio_to_desc+0xcc/0x120

[    2.858058]  rtk_pcie2_probe+0x674/0xa80

[    2.862474]  platform_drv_probe+0x50/0xa0

[    2.866986]  really_probe+0x1c4/0x298

[    2.871105]  driver_probe_device+0x58/0x100

[    2.875812]  __driver_attach+0xd4/0xd8

[    2.880034]  bus_for_each_dev+0x74/0xc8

[    2.884348]  driver_attach+0x20/0x28

[    2.888374]  bus_add_driver+0x1ac/0x218

[    2.892690]  driver_register+0x60/0x110

[    2.897006]  __platform_driver_register+0x40/0x48

[    2.902302]  rtk_pcie2_driver_init+0x18/0x20

[    2.907110]  do_one_initcall+0x5c/0x178

[    2.911427]  kernel_init_freeable+0x1c0/0x26c

[    2.916333]  kernel_init+0x10/0x108

[    2.920258]  ret_from_fork+0x10/0x1c

[    2.924280] ---[ end trace c628c23946375f47 ]---

[    3.030571] ------------[ cut here ]------------

[    3.035774] invalid GPIO -517

[    3.039175] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    3.048282] Modules linked in:

[    3.051721] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.16-rtd1295 #5.76

[    3.061122] Hardware name: Realtek_RTD1296 (DT)

[    3.066223] pstate: 60000005 (nZCv daif -PAN -UAO)

[    3.071619] pc : gpio_to_desc+0xcc/0x120

[    3.076032] lr : gpio_to_desc+0xcc/0x120

[    3.080444] sp : ffff00000802bb10

[    3.084169] x29: ffff00000802bb10 x28: 0000000000000007

[    3.090149] x27: ffff000008f46068 x26: ffff80007ba52000

[    3.096130] x25: 0000000000418958 x24: ffff00000802bba8

[    3.102111] x23: ffff000008f78000 x22: ffff80007bd2c010

[    3.108094] x21: 0000000000000000 x20: 0000000000000000

[    3.114076] x19: 00000000fffffdfb x18: ffffffffffffffff

[    3.120059] x17: 0000000000000000 x16: 0000000000007fff

[    3.126041] x15: ffff000008f78888 x14: ffff00008901809f

[    3.132024] x13: ffff000008f788c8 x12: ffff0000088950a0

[    3.138006] x11: ffff000008f53018 x10: 000000000000000d

[    3.143988] x9 : 00000000ffffffd0 x8 : 31352d204f495047

[    3.149971] x7 : 2064696c61766e69 x6 : 0000000000000103

[    3.155953] x5 : 0000000000000003 x4 : 0000000000000000

[    3.161935] x3 : 0000000000000000 x2 : ffffffffffffffff

[    3.167920] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    3.173898] Call trace:

[    3.176648]  gpio_to_desc+0xcc/0x120

[    3.180671]  rtk_pcie2_probe+0x69c/0xa80

[    3.185086]  platform_drv_probe+0x50/0xa0

[    3.189599]  really_probe+0x1c4/0x298

[    3.193721]  driver_probe_device+0x58/0x100

[    3.198426]  __driver_attach+0xd4/0xd8

[    3.202646]  bus_for_each_dev+0x74/0xc8

[    3.206960]  driver_attach+0x20/0x28

[    3.210984]  bus_add_driver+0x1ac/0x218

[    3.215302]  driver_register+0x60/0x110

[    3.219618]  __platform_driver_register+0x40/0x48

[    3.224916]  rtk_pcie2_driver_init+0x18/0x20

[    3.229724]  do_one_initcall+0x5c/0x178

[    3.234042]  kernel_init_freeable+0x1c0/0x26c

[    3.238946]  kernel_init+0x10/0x108

[    3.242870]  ret_from_fork+0x10/0x1c

[    3.246888] ---[ end trace c628c23946375f48 ]---

[    3.363208] ------------[ cut here ]------------

[    3.368416] invalid GPIO -517

[    3.371802] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    3.380914] Modules linked in:

[    3.384353] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.16-rtd1295 #5.76

[    3.393755] Hardware name: Realtek_RTD1296 (DT)

[    3.398853] pstate: 60000005 (nZCv daif -PAN -UAO)

[    3.404250] pc : gpio_to_desc+0xcc/0x120

[    3.408662] lr : gpio_to_desc+0xcc/0x120

[    3.413073] sp : ffff00000802bb00

[    3.416798] x29: ffff00000802bb00 x28: 0000000000000007

[    3.422780] x27: ffff000008f46068 x26: ffff80007ba52000

[    3.428761] x25: 0000000000000000 x24: ffff00000802bba8

[    3.434743] x23: ffff000008f78000 x22: ffff80007bd2c010

[    3.440727] x21: 0000000000000000 x20: 0000000000000000

[    3.446708] x19: 00000000fffffdfb x18: ffffffffffffffff

[    3.452693] x17: 0000000000000000 x16: 0000000000007fff

[    3.458674] x15: ffff000008f78888 x14: ffff00008901809f

[    3.464657] x13: ffff000008f788c8 x12: ffff0000088950a0

[    3.470638] x11: ffff000008f53018 x10: 000000000000000d

[    3.476619] x9 : 00000000ffffffd0 x8 : 0000000000059f20

[    3.482601] x7 : 0000000000000000 x6 : 000000000000012e

[    3.488580] x5 : 0000000000000003 x4 : 0000000000000000

[    3.494560] x3 : 0000000000000000 x2 : ffffffffffffffff

[    3.500541] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    3.506521] Call trace:

[    3.509272]  gpio_to_desc+0xcc/0x120

[    3.513300]  gpio_free+0xc/0x18

[    3.516836]  rtk_pcie2_probe+0x878/0xa80

[    3.521253]  platform_drv_probe+0x50/0xa0

[    3.525765]  really_probe+0x1c4/0x298

[    3.529885]  driver_probe_device+0x58/0x100

[    3.534592]  __driver_attach+0xd4/0xd8

[    3.538811]  bus_for_each_dev+0x74/0xc8

[    3.543129]  driver_attach+0x20/0x28

[    3.547154]  bus_add_driver+0x1ac/0x218

[    3.551469]  driver_register+0x60/0x110

[    3.555785]  __platform_driver_register+0x40/0x48

[    3.561081]  rtk_pcie2_driver_init+0x18/0x20

[    3.565886]  do_one_initcall+0x5c/0x178

[    3.570202]  kernel_init_freeable+0x1c0/0x26c

[    3.575105]  kernel_init+0x10/0x108

[    3.579027]  ret_from_fork+0x10/0x1c

[    3.583048] ---[ end trace c628c23946375f49 ]---

[    3.588266] [RTK PCIE 2] 9803b000.pcie2: pcie device has link down in slot 2

[    3.596214] [RTK PCIE 2] 9803b000.pcie2: rtk_pcie2_hw_initial fail

[    3.603200] [RTK PCIE 2]: probe of 9803b000.pcie2 failed with error -22

[    3.610865] [RTK PCIE 1] 9804e000.pcie: pcie host driver initial begin

[    3.618300] [RTK PCIE 1] 9804e000.pcie: rtk_pcie_probe: gpio -517 is not valid

[    3.629588] ------------[ cut here ]------------

[    3.634797] invalid GPIO -517

[    3.638193] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    3.647301] Modules linked in:

[    3.650739] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.16-rtd1295 #5.76

[    3.660142] Hardware name: Realtek_RTD1296 (DT)

[    3.665238] pstate: 60000005 (nZCv daif -PAN -UAO)

[    3.670631] pc : gpio_to_desc+0xcc/0x120

[    3.675046] lr : gpio_to_desc+0xcc/0x120

[    3.679456] sp : ffff00000802bb20

[    3.683179] x29: ffff00000802bb20 x28: 0000000000000007

[    3.689162] x27: ffff000008f46068 x26: ffff80007ba55580

[    3.695144] x25: 0000000000418958 x24: ffff000008f78000

[    3.701125] x23: ffff00000802bba8 x22: ffff80007bcdbc10

[    3.707109] x21: 0000000000000000 x20: 0000000000000000

[    3.713093] x19: 00000000fffffdfb x18: ffffffffffffffff

[    3.719071] x17: 0000000000000000 x16: 0000000000007fff

[    3.725056] x15: ffff000008f78888 x14: ffff00008901809f

[    3.731038] x13: ffff000008f788c8 x12: ffff0000088950a0

[    3.737021] x11: ffff000008f53018 x10: 000000000000000d

[    3.743002] x9 : 00000000ffffffd0 x8 : 000000000009afad

[    3.748986] x7 : 0000000000000000 x6 : 000000000000015f

[    3.754970] x5 : 0000000000000003 x4 : 0000000000000000

[    3.760951] x3 : 0000000000000000 x2 : ffffffffffffffff

[    3.766934] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    3.772915] Call trace:

[    3.775665]  gpio_to_desc+0xcc/0x120

[    3.779690]  rtk_pcie_probe+0x62c/0xa60

[    3.784005]  platform_drv_probe+0x50/0xa0

[    3.788515]  really_probe+0x1c4/0x298

[    3.792635]  driver_probe_device+0x58/0x100

[    3.797342]  __driver_attach+0xd4/0xd8

[    3.801562]  bus_for_each_dev+0x74/0xc8

[    3.805877]  driver_attach+0x20/0x28

[    3.809901]  bus_add_driver+0x1ac/0x218

[    3.814216]  driver_register+0x60/0x110

[    3.818532]  __platform_driver_register+0x40/0x48

[    3.823829]  rtk_pcie_driver_init+0x18/0x20

[    3.828536]  do_one_initcall+0x5c/0x178

[    3.832855]  kernel_init_freeable+0x1c0/0x26c

[    3.837761]  kernel_init+0x10/0x108

[    3.841685]  ret_from_fork+0x10/0x1c

[    3.845704] ---[ end trace c628c23946375f4a ]---

[    3.951957] ------------[ cut here ]------------

[    3.957160] invalid GPIO -517

[    3.960556] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    3.969664] Modules linked in:

[    3.973103] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.16-rtd1295 #5.76

[    3.982506] Hardware name: Realtek_RTD1296 (DT)

[    3.987604] pstate: 60000005 (nZCv daif -PAN -UAO)

[    3.992998] pc : gpio_to_desc+0xcc/0x120

[    3.997413] lr : gpio_to_desc+0xcc/0x120

[    4.001824] sp : ffff00000802bb20

[    4.005551] x29: ffff00000802bb20 x28: 0000000000000007

[    4.011532] x27: ffff000008f46068 x26: ffff80007ba55580

[    4.017516] x25: 0000000000418958 x24: ffff000008f78000

[    4.023498] x23: ffff00000802bba8 x22: ffff80007bcdbc10

[    4.029479] x21: 0000000000000000 x20: 0000000000000000

[    4.035463] x19: 00000000fffffdfb x18: ffffffffffffffff

[    4.041445] x17: 0000000000000000 x16: 0000000000007fff

[    4.047428] x15: ffff000008f78888 x14: ffff00008901809f

[    4.053410] x13: ffff000008f788c8 x12: ffff0000088950a0

[    4.059391] x11: ffff000008f53018 x10: 000000000000000d

[    4.065373] x9 : 00000000ffffffd0 x8 : 00000000000e9ae8

[    4.071353] x7 : 0000000000000000 x6 : 000000000000018a

[    4.077332] x5 : 0000000000000003 x4 : 0000000000000000

[    4.083315] x3 : 0000000000000000 x2 : ffffffffffffffff

[    4.089299] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    4.095281] Call trace:

[    4.098031]  gpio_to_desc+0xcc/0x120

[    4.102054]  rtk_pcie_probe+0x654/0xa60

[    4.106370]  platform_drv_probe+0x50/0xa0

[    4.110880]  really_probe+0x1c4/0x298

[    4.114999]  driver_probe_device+0x58/0x100

[    4.119707]  __driver_attach+0xd4/0xd8

[    4.123926]  bus_for_each_dev+0x74/0xc8

[    4.128240]  driver_attach+0x20/0x28

[    4.132264]  bus_add_driver+0x1ac/0x218

[    4.136579]  driver_register+0x60/0x110

[    4.140894]  __platform_driver_register+0x40/0x48

[    4.146190]  rtk_pcie_driver_init+0x18/0x20

[    4.150898]  do_one_initcall+0x5c/0x178

[    4.155214]  kernel_init_freeable+0x1c0/0x26c

[    4.160119]  kernel_init+0x10/0x108

[    4.164043]  ret_from_fork+0x10/0x1c

[    4.168065] ---[ end trace c628c23946375f4b ]---

[    4.284475] ------------[ cut here ]------------

[    4.289679] invalid GPIO -517

[    4.293076] WARNING: CPU: 2 PID: 1 at drivers/gpio/gpiolib.c:123 gpio_to_desc+0xcc/0x120

[    4.302184] Modules linked in:

[    4.305620] CPU: 2 PID: 1 Comm: swapper/0 Tainted: G        W         4.19.16-rtd1295 #5.76

[    4.315024] Hardware name: Realtek_RTD1296 (DT)

[    4.320124] pstate: 60000005 (nZCv daif -PAN -UAO)

[    4.325520] pc : gpio_to_desc+0xcc/0x120

[    4.329933] lr : gpio_to_desc+0xcc/0x120

[    4.334343] sp : ffff00000802bb10

[    4.338068] x29: ffff00000802bb10 x28: 0000000000000007

[    4.344051] x27: ffff000008f46068 x26: ffff80007ba55580

[    4.350033] x25: 0000000000418958 x24: ffff000008f78000

[    4.356015] x23: ffff00000802bba8 x22: ffff80007bcdbc10

[    4.361997] x21: 0000000000000000 x20: 0000000000000000

[    4.367979] x19: 00000000fffffdfb x18: ffffffffffffffff

[    4.373961] x17: 0000000000000000 x16: 0000000000007fff

[    4.379943] x15: ffff000008f78888 x14: ffff00008901809f

[    4.385926] x13: ffff000008f788c8 x12: ffff0000088950a0

[    4.391909] x11: ffff000008f53018 x10: 000000000000000d

[    4.397893] x9 : 00000000ffffffd0 x8 : 0000000000046b8f

[    4.403873] x7 : 0000000000000000 x6 : 00000000000001b5

[    4.409854] x5 : 0000000000000003 x4 : 0000000000000000

[    4.415836] x3 : 0000000000000000 x2 : ffffffffffffffff

[    4.421817] x1 : 7e9eb13d28755900 x0 : 0000000000000000

[    4.427799] Call trace:

[    4.430549]  gpio_to_desc+0xcc/0x120

[    4.434572]  gpio_free+0xc/0x18

[    4.438109]  rtk_pcie_probe+0x800/0xa60

[    4.442426]  platform_drv_probe+0x50/0xa0

[    4.446937]  really_probe+0x1c4/0x298

[    4.451057]  driver_probe_device+0x58/0x100

[    4.455762]  __driver_attach+0xd4/0xd8

[    4.459984]  bus_for_each_dev+0x74/0xc8

[    4.464297]  driver_attach+0x20/0x28

[    4.468319]  bus_add_driver+0x1ac/0x218

[    4.472633]  driver_register+0x60/0x110

[    4.476948]  __platform_driver_register+0x40/0x48

[    4.482242]  rtk_pcie_driver_init+0x18/0x20

[    4.486949]  do_one_initcall+0x5c/0x178

[    4.491265]  kernel_init_freeable+0x1c0/0x26c

[    4.496167]  kernel_init+0x10/0x108

[    4.500093]  ret_from_fork+0x10/0x1c

[    4.504113] ---[ end trace c628c23946375f4c ]---

[    4.509331] [RTK PCIE 1] 9804e000.pcie: pcie device has link down in slot 1

[    4.517182] [RTK PCIE 1] 9804e000.pcie: rtk_pcie_hw_initial fail

[    4.523969] [RTK PCIE 1]: probe of 9804e000.pcie failed with error -22

[    4.532675] misc rtk_lockapi: registered.

[    4.537615] [RTK MCP] MCP driver initial begin.

[    4.542766] [RTK MCP] MCP Base: 0x(____ptrval____)

[    4.548175] [RTK MCP] TP Base: 0x(____ptrval____)

[    4.553627] [RTK MCP] MCP driver initial done.

[    4.562753] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

[    4.571087] dw-apb-uart 98007800.serial0: clock rate not defined

 

 

... little by little ..

Link to comment
Share on other sites

Hmmm, moving slowly foward:

Spoiler

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]

[    0.000000] Linux version 4.19.16-rtd1295 (root@ubuntu-bionic) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP Thu Mar 14 15:52:25 UTC 2019

[    0.000000] Machine model: Realtek_RTD1295

[    0.000000] earlycon: uart8250 at MMIO32 0x0000000098007800 (options '')

[    0.000000] bootconsole [uart8250] enabled

[    0.000000] efi: Getting EFI parameters from FDT:

[    0.000000] efi: UEFI not found.

[    0.000000] OF: reserved mem: failed to allocate memory for node 'tee'

[    0.000000] rsvmem_remap_setup 234, not remap common@0 now

[    0.000000] rsvmem_remap_setup 234, not remap ringbuf@0 now

[    0.000000] rsvmem_remap_setup 234, not remap rbus@0 now

[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000

[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x408 with crng_init=0

[    0.000000] percpu: Embedded 23 pages/cpu @(____ptrval____) s53336 r8192 d32680 u94208

[    0.000000] Detected VIPT I-cache on CPU0

[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096

[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200 noinitrd root=/dev/mmcblk0p1 rootfs=ext4 init=/sbin/init rootdelay=6

[    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: 1958872K/2097152K available (9148K kernel code, 620K rwdata, 2548K rodata, 512K init, 460K bss, 121896K reserved, 16384K cma-reserved)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] rcu: Hierarchical RCU implementation.

[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.

[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4

[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0

[    0.000000] GIC: GICv2 at 0x00000000ff012000, but range is too small (broken DT?), assuming 8kB

[    0.000000] GIC: Using split EOI/Deactivate mode

[    0.000000] arch_timer: cp15 timer(s) running at 27.00MHz (phys).

[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns

[    0.000006] sched_clock: 56 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns

[    0.009111] [RTK-TIMER0] set mode: shutdown

[    0.013824] [RTK-TIMER0] clocksource 0 register HZ

[    0.019217] clocksource: rtk_timer0_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.030821] [RTK-TIMER1] clocksource 1 register HZ

[    0.036216] clocksource: rtk_timer1_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.048526] arch_timer: multiple nodes in dt, skipping

[    0.054379] genirq: Flags mismatch irq 7. 00015204 (timer0) vs. 00015204 (timer0)

[    0.062803] [RTK-TIMER0] clocksource 0 register HZ

[    0.068196] clocksource: rtk_timer0_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.079783] genirq: Flags mismatch irq 8. 00014204 (timer1) vs. 00014204 (timer1)

[    0.088207] [RTK-TIMER1] clocksource 1 register HZ

[    0.093600] clocksource: rtk_timer1_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.105391] rmem_count: 4

[    0.109310]

[    0.110982] rsvmem_remap 143, rmem->name tee

[    0.116769] rsvmem_remap 147, no compatible prop

[    0.122939]

[    0.124609] rsvmem_remap 143, rmem->name common@0

[    0.130882] rsvmem_remap 151, type rsvmem-remap

[    0.136957] rsvmem_remap 163, ioremap(1f000,1000)

[    0.143236] rsvmem_remap 175, remap addr (____ptrval____)

[    0.150290] rsvmem_remap 184, save_remap_name common

[    0.156855] rsvmem_remap 203, save rpc_common_base

[    0.163223] rsvmem_remap 216, init common@0/common done

[    0.170077]

[    0.171749] rsvmem_remap 143, rmem->name ringbuf@0

[    0.178117] rsvmem_remap 151, type rsvmem-remap

[    0.184193] rsvmem_remap 163, ioremap(1ffe000,4000)

[    0.190660] rsvmem_remap 175, remap addr (____ptrval____)

[    0.197713] rsvmem_remap 184, save_remap_name ringbuf

[    0.204374] rsvmem_remap 210, save rpc_ringbuf_base

[    0.210839] rsvmem_remap 216, init ringbuf@0/ringbuf done

[    0.217888]

[    0.219559] rsvmem_remap 143, rmem->name rbus@0

[    0.225632] rsvmem_remap 151, type rsvmem-remap

[    0.231706] rsvmem_remap 163, ioremap(98000000,200000)

[    0.238468] rsvmem_remap 175, remap addr (____ptrval____)

[    0.245522] rsvmem_remap 184, save_remap_name rbus

[    0.251891] rsvmem_remap 188, save rbus_addr

[    0.257675] rsvmem_remap 195, set rtk_rbus_barrier_flag to 1

[    0.265021] rsvmem_remap 216, init rbus@0/rbus done

[    0.271629] Console: colour dummy device 80x25

[    0.276676] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=108000)

[    0.288359] pid_max: default: 32768 minimum: 301

[    0.293671] Security Framework initialized

[    0.298297] AppArmor: AppArmor disabled by boot time parameter

[    0.304931] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)

[    0.312502] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)

eVVEEERRR[BBOBOSSOEE:S: E :bb ll3311bl__3ssee1t_utpsu

TptNuO

NOpC

  ET:NIO  TCBLE3I:1 C: E BvL1:3 .12 :B( dLe3v11.:bu2 (vgde)b1:.u21g()5d2:e21b5a2u2bga)7:

1N5b2O72T

TENbC7O

t I:NC  EOBT:LI 3C1 :E: BB ui BlLL3t3 1::  1B:u1 6Bi:l3u3t:i 4:l6t ,1  :6: O3c136t :13:343: 62460,,1  O6Occ

Ot 1 31I 3 22N0F01166

s:I INN  FFO: O :B  L3   1:   BILn3BiL1t31i: alIniiztiing:a I lnirziitunnigta liizrmiuen tsnegr vimruicenetism es

IeerrvvNiicceFeOs:s

tdd__ FN SO:tF  aO  :S r t t ar Stt ot airtntoi tin t soe iirvntiict e  ssseertrvvdii_csevc ecs  st

     IssNvFvOc: c   

I

v_IFNiNFFOni:Osh:      t F i Foi nniiinsshh it tot  oisne iirtn istvie srceer vviicste ceds _tssvdc_tsd

FsvIc cN

IO

  IN:NFFO: O :       S St t aaSrttarr ttt to o  tiion initn itits  esserervrviciecve iopcte  eoeodpp_ttfeeeeads_tfd_a fsat

I

   F s:tF O:   

e    iI FNiFOnn:i shis  ht ot   ionFi intiis hnse triov iitn csieter vop icteesede_r vfoaipstceee dopt_t fe

IaNd_FfsatOs : t

N  I

ziBIFOL:3 1N :F O In :i t B Li31a :B lLi3z1I:in Inngii tBtiLai3lail2

  iziInng gB BNFLOL3:3 2 2

RTNNICFoNOrFe_:O 1:       TC EEoSrMeCCo_r_e3_2O P TTETEEEESESD_MRCE_MTOCP_UTORNEPE_DTE_RNTEERYDE_TU_DRRONETN_EEN U

DO _RYE_INDONTRNYEF _

  OINN:EFO :   

ti B L 3I1NB:FL I3On1i: t:i  Ia nili tizBLae3d 1:liB zLe3I2nid

   BIaNLFlOiz3e2d

E IN: L F3O2 :

   X IINEXT ITBF O:BL L33 1 1

 

311NIFNOF:O X: I  T   B Lb bl3l13

0n I_N_FttOo_o:_ k k ee rnbrln31elel_t::o_  kkkeerernrneelln__rereeslsuum:m eek__eenternrtnye ryl=_  0re= x10suxm1eee_0000e0

It

  rIyNFNF =OO :: 0 x  1e  0 b00 bl

n3311  IjNujmFpusO:m  pto  s  tE Lb2l:3o 1k Ee Lj2u:rm eknlpes  reentntlr oy  e

trEyL2 :

kerenl entry

    0.322081] ASID allocator initialised with 32768 entries

[    0.476823] rcu: Hierarchical SRCU implementation.

[    0.482991] EFI services will not be available.

[    0.488333] smp: Bringing up secondary CPUs ...

[    0.493847] Detected VIPT I-cache on CPU1

[    0.493885] [RTK-TIMER0] set mode: shutdown

[    0.493901] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]

[    0.494416] Detected VIPT I-cache on CPU2

[    0.494453] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]

[    0.494966] Detected VIPT I-cache on CPU3

[    0.495003] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]

[    0.495110] smp: Brought up 1 node, 4 CPUs

[    0.540082] SMP: Total of 4 processors activated.

[    0.545388] CPU features: detected: 32-bit EL0 Support

[    0.553636] CPU: All CPU(s) started at EL2

[    0.558281] alternatives: patching kernel code

[    0.564561] devtmpfs: initialized

[    0.579432] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns

[    0.590437] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.598256] xor: measuring software checksum speed

[    0.643542]    8regs     :  1154.000 MB/sec

[    0.687608]    8regs_prefetch:  1028.000 MB/sec

[    0.731677]    32regs    :  1418.000 MB/sec

[    0.775746]    32regs_prefetch:  1192.000 MB/sec

[    0.780946] xor: using function: 32regs (1418.000 MB/sec)

[    0.787038] pinctrl core: initialized pinctrl subsystem

[    0.793582] DMI not present or invalid.

[    0.798266] NET: Registered protocol family 16

[    0.805287] audit: initializing netlink subsys (disabled)

[    0.811509] audit: type=2000 audit(0.340:1): state=initialized audit_enabled=0 res=1

[    0.820296] cpuidle: using governor menu

[    0.824950] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))

[    0.833336] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.

[    0.842511] DMA: preallocated 256 KiB pool for atomic allocations

[    0.849791] rst-control : base (____ptrval____), offset 0xb4

[    0.856190] ****** rtk_lockapi_init 618, chip: id=0x00000000, revision=0x00010000

[    0.865890] rtk-cgc 9800000c.clk-en: [CLK] rtk_cgc_probe

[    0.871913] mmio: use sb2_sem

[    0.875302] rtk-cgc 9800000c.clk-en: use mmio regmap

[    0.881259] rtk-cgc 98000010.clk-en: [CLK] rtk_cgc_probe

[    0.887279] rtk-cgc 98000010.clk-en: use mmio regmap

[    0.893200] rtk-cgc 98000450.clk-en: [CLK] rtk_cgc_probe

[    0.899405] rtk-cgc 9800708c.clk-en: [CLK] rtk_cgc_probe

[    0.905429] mmio: use sb2_sem

[    0.908781] (NULL device *): Failed to create dummy-mmio debugfs directory

[    0.916546] rtk-cgc 9800708c.clk-en: use mmio regmap

[    0.922437] rtk-cc 98000000.clock-controller: [CLK] rtk_cc_probe

[    0.929239] rtk-cc 98000000.clock-controller: use mmio regmap

[    0.935733] rtk-cc 98000000.clock-controller: cc_init_hw: pll_scpu

[    0.942728] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus

[    0.949622] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_div2

[    0.957004] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys

[    0.963894] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys_sb2

[    0.971175] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_h

[    0.978263] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sysh

[    0.985258] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsa

[    0.992249] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsb

[    0.999241] rtk-cc 98000000.clock-controller: cc_init_hw: pll_gpu

[    1.006130] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve1

[    1.013022] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve2

[    1.019916] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_gpu

[    1.027891] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve1

[    1.035867] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve2

[    1.043838] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve3

[    1.052014] rtk-reset 98000000.soft-reset: rtk_reset_probe

[    1.058226] rtk-reset 98000000.soft-reset: use mmio regmap

[    1.064593] rtk-reset 98000000.shadow-soft-reset: rtk_reset_probe

[    1.071489] rtk-reset 98000000.shadow-soft-reset: use mmio regmap

[    1.078546] rtk-reset 98000004.soft-reset: rtk_reset_probe

[    1.084756] rtk-reset 98000004.soft-reset: use mmio regmap

[    1.091127] rtk-reset 98000008.soft-reset: rtk_reset_probe

[    1.097338] rtk-reset 98000008.soft-reset: use mmio regmap

[    1.103706] rtk-reset 98000050.soft-reset: rtk_reset_probe

[    1.109917] rtk-reset 98000050.soft-reset: use mmio regmap

[    1.116282] rtk-reset 98007088.soft-reset: rtk_reset_probe

[    1.122490] rtk-reset 98007088.soft-reset: use mmio regmap

[    1.128864] rtk-reset 98000000.async-soft-reset: rtk_reset_probe

[    1.135662] rtk-reset 98000000.async-soft-reset: use mmio regmap

[    1.142618] rtk-reset 98000004.async-soft-reset: rtk_reset_probe

[    1.149419] rtk-reset 98000004.async-soft-reset: use mmio regmap

[    1.156357] rtk-rcp rcp: deprecated API OK

[    1.161169] rtd129x-pc 98000000.power-controller: power_controller_probe

[    1.168764] ve1_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve1

[    1.175848] ve2_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve2

[    1.182934] gpu_pd: pwrctrl_pd_init: no genpd /as control pctrl_gpu

[    1.190026] ve3_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve3

[    1.197513] [PINCTRL] driver init

[    1.204145] [PINCTRL] init done

[    1.210034] [RTK_DCSYS_DBG] DC_EC_CTRL(0x98008300) = 70c0000

[    1.216444] [RTK_DCSYS_DBG] initialized

[    1.230546] [RTK_SB2_DBG] Info 0x10000

[    1.234781] [RTK_SB2_DBG] memory monitor 0x98013b00 - 0x98013c00

[    1.241558] [RTK_SB2_DBG] initialized

[    1.258000] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages

[    1.266051] cryptd: max_cpu_qlen set to 1000

[    1.336890] raid6: int64x1  gen()   220 MB/s

[    1.408840] raid6: int64x1  xor()   219 MB/s

[    1.480882] raid6: int64x2  gen()   338 MB/s

[    1.553018] raid6: int64x2  xor()   300 MB/s

[    1.625072] raid6: int64x4  gen()   516 MB/s

[    1.697215] raid6: int64x4  xor()   381 MB/s

[    1.769258] raid6: int64x8  gen()   491 MB/s

[    1.841419] raid6: int64x8  xor()   370 MB/s

[    1.913499] raid6: neonx1   gen()   363 MB/s

[    1.985575] raid6: neonx1   xor()   425 MB/s

[    2.057734] raid6: neonx2   gen()   583 MB/s

[    2.129749] raid6: neonx2   xor()   600 MB/s

[    2.201851] raid6: neonx4   gen()   755 MB/s

[    2.273977] raid6: neonx4   xor()   719 MB/s

[    2.346077] raid6: neonx8   gen()   823 MB/s

[    2.418149] raid6: neonx8   xor()   766 MB/s

[    2.422972] raid6: using algorithm neonx8 gen() 823 MB/s

[    2.428961] raid6: .... xor() 766 MB/s, rmw enabled

[    2.434465] raid6: using neon recovery algorithm

[    2.440976] vgaarb: loaded

[    2.444347] SCSI subsystem initialized

[    2.448847] usbcore: registered new interface driver usbfs

[    2.455099] usbcore: registered new interface driver hub

[    2.461178] usbcore: registered new device driver usb

[    2.466963] rtk-usb-manager 98000000.rtk_usb_power_manager: ENTER rtk_usb_manager_probe

[    2.476095] rtk-usb-manager 98000000.rtk_usb_power_manager: Error switch_ctrl-gpio no found

[    2.485537] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 0 rtk_dwc3_drd status is okay

[    2.495295] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 1 rtk_dwc3_u2host status is okay

[    2.505308] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ehci status is okay

[    2.514241] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ohci status is okay

[    2.523234] rtk_usb_iso_power_ctrl power_on ([0x98007fb0=0x0f000073)

[    2.530411] set power_domain on ([0x98007fb0]=0x0f000073)

[    2.542748] rtk-usb-manager 98000000.rtk_usb_power_manager: Realtek USB init OK

[    2.551012] rtk-usb-manager 98000000.rtk_usb_power_manager: __port0_gpio_on_off to set port0 power off by gpio (id=102) OK

[    2.563486] rtk-usb-manager 98000000.rtk_usb_power_manager: __port1_gpio_on_off to set port1 power off by gpio (id=19) OK

[    2.575865] rtk-usb-manager 98000000.rtk_usb_power_manager: __port2_gpio_on_off to set port2 power off by gpio (id=19) OK

[    2.588326] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_probe OK (take 120 ms)

[    2.600135] clocksource: Switched to clocksource arch_sys_counter

[    2.607173] VFS: Disk quotas dquot_6.6.0

[    2.611668] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

[    2.628597] NET: Registered protocol family 2

[    2.634133] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)

[    2.643029] TCP established hash table entries: 16384 (order: 5, 131072 bytes)

[    2.651390] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)

[    2.659216] TCP: Hash tables configured (established 16384 bind 16384)

[    2.666676] UDP hash table entries: 1024 (order: 3, 32768 bytes)

[    2.673526] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)

[    2.681021] NET: Registered protocol family 1

[    2.686340] RPC: Registered named UNIX socket transport module.

[    2.693043] RPC: Registered udp transport module.

[    2.698353] RPC: Registered tcp transport module.

[    2.703658] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    2.711127] Unpacking initramfs...

[    2.714986] Initramfs unpacking failed: junk in compressed archive

[    2.724061] Freeing initrd memory: 4096K

[    2.729281] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available

[    2.743674] Initialise system trusted keyrings

[    2.748824] workingset: timestamp_bits=46 max_order=19 bucket_order=0

[    2.763394] zbud: loaded

[    2.769154] NFS: Registering the id_resolver key type

[    2.774895] Key type id_resolver registered

[    2.779619] Key type id_legacy registered

[    2.784155] nfs4filelayout_init: NFSv4 File Layout Driver Registering...

[    2.791721] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    2.806403] Key type asymmetric registered

[    2.811038] Asymmetric key parser 'x509' registered

[    2.816585] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)

[    2.825045] io scheduler noop registered

[    2.829485] io scheduler deadline registered

[    2.834487] io scheduler cfq registered (default)

[    2.839800] io scheduler mq-deadline registered

[    2.844913] io scheduler kyber registered

[    2.849581] io scheduler bfq registered

[    2.854958] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(0) enable=(0) duty_rate=(5) clksrc_div=(1) clkout_div=(255)---

[    2.866551] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.875103] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(1) enable=(1) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    2.886780] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.895322] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(2) enable=(0) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    2.906998] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.915543] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(3) enable=(0) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    2.927218] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.936166] [RTK PCIE 2] 9803b000.pcie: pcie host driver initial begin

[    2.943536] [RTK PCIE 2] 9803b000.pcie: speed mode: GEN2

[    3.187222] [RTK PCIE 2] 9803b000.pcie: pcie device has link down in slot 2

[    3.195081] [RTK PCIE 2] 9803b000.pcie: rtk_pcie2_hw_initial fail

[    3.201976] [RTK PCIE 2]: probe of 9803b000.pcie failed with error -22

[    3.209536] [RTK PCIE 1] 9804e000.pcie: pcie host driver initial begin

[    3.432585] [RTK PCIE 1] 9804e000.pcie: pcie device has link down in slot 1

[    3.440442] [RTK PCIE 1] 9804e000.pcie: rtk_pcie_hw_initial fail

[    3.447238] [RTK PCIE 1]: probe of 9804e000.pcie failed with error -22

[    3.455282] misc rtk_lockapi: registered.

[    3.460224] [RTK MCP] MCP driver initial begin.

[    3.465368] [RTK MCP] MCP Base: 0x(____ptrval____)

[    3.470776] [RTK MCP] TP Base: 0x(____ptrval____)

[    3.476242] [RTK MCP] MCP driver initial done.

[    3.485134] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled

[    3.493880] console [ttyS0] disabled

[    3.497956] 98007800.serial0: ttyS0 at MMIO 0x98007800 (irq = 194, base_baud = 1687500) is a 16550A

[    3.508184] console [ttyS0] enabled

[    3.508184] console [ttyS0] enabled

[    3.515692] bootconsole [uart8250] disabled

[    3.515692] bootconsole [uart8250] disabled

[    3.525129] [RTK_SB2_DBG] sb2 get int 0x00000002 from SB2_INV_INTSTAT

[    3.531730] [RTK_SB2_DBG] Invalid access issued by SCPU

[    3.537973] [RTK_SB2_DBG] Invalid address is 0x9801b2f8

[    3.544303] [RTK_SB2_DBG] Timeout threshold(0x0000004d)

[    3.549823] 9801b200.serial1: ttyS1 at MMIO 0x9801b200 (irq = 163, base_baud = 27000000) is a 16550A

[    3.559235] [RTK_SB2_DBG] sb2 get int 0x00000002 from SB2_INV_INTSTAT

[    3.565836] [RTK_SB2_DBG] Invalid access issued by SCPU

[    3.572078] [RTK_SB2_DBG] Invalid address is 0x9801b210

[    3.578408] [RTK_SB2_DBG] Timeout threshold(0x0000004d)

[    3.590126] loop: module loaded

[    3.593878] zram: Added device: zram0

[    3.598634] libphy: Fixed MDIO Bus: probed

[    3.603882] rtk-usb-phy-rle0599 98013824.usb_phy_rle0599: Probe RTK USB 2.0 RLE0599 PHY

[    3.612499] rtk-usb2phy 98028280.dwc3_drd_usb2phy: drivers/usb/phy/phy-rtk-usb2.c Probe RTK USB 2.0 PHY

[    3.622321] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: drivers/usb/phy/phy-rtk-usb2.c Probe RTK USB 2.0 PHY

[    3.632566] rtk-usb3phy 98013210.dwc3_drd_usb3phy: drivers/usb/phy/phy-rtk-usb3.c Probe RTK USB 3.0 PHY

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

[    3.649110] ehci-pci: EHCI PCI platform driver

[    3.653731] ehci-rtk: EHCI realtek driver init

[    3.658401] rtk-ehci 98013000.ehci: Probe Realtek-SoC USB EHCI Host Controller

[    3.665826] rtk-ehci 98013000.ehci: No usb phy found

[    3.671068] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[    3.677426] ohci-pci: OHCI PCI platform driver

[    3.682563] usbcore: registered new interface driver uas

[    3.688084] usbcore: registered new interface driver usb-storage

[    3.694564] mousedev: PS/2 mouse device common for all mice

[    3.700441] i2c /dev entries driver

[    3.705061] [rtk_wdt] rtk_wdt_probe enter

[    3.709459] [rtk_wdt] rtk_wdt_probe exit

[    3.713710] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)

[    3.722895] rtk-cpufreq dvfs: rtk_dvfs_probe

[    3.727822] RTK: rtk_sdmmc_probe: sdmmc_on(1) enable rtk_sdmmc driver

[    3.734582] rtk-sdmmc: build at : #5.77 SMP Thu Mar 14 15:52:25 UTC 2019

[    3.741552] rtk-sdmmc: CONFIG_MMC_BLOCK_BOUNCE disable

[    3.746827] RTK: reset rtk_sdmmc ...

[    3.800841] EMMC : emmc of_node found

[    3.804689] [rtkemmc_probe] get speed-step : 2

[    3.809349] [rtkemmc_probe] no driving nf_s1 warning !!

[    3.814803] [rtkemmc_probe] get driving s2 : 0x1

[    3.819545] [rtkemmc_probe] get driving s2 : 0xbb

[    3.824376] [rtkemmc_probe] get driving s2 : 0xbb

[    3.829206] [rtkemmc_probe] get driving s2 : 0xbb

[    3.834036] [rtkemmc_probe] get driving s2 : 0x33

[    3.838865] [rtkemmc_probe] no driving nf_s3 warning !!

[    3.844319] [rtkemmc_probe] get tx tuning switch : 0

[    3.849415] [rtkemmc_probe] get rx tuning switch : 0

[    3.854512] [rtkemmc_probe] no dqs_tuning switch node !!

[    3.860053] [rtkemmc_probe] no tx & rx reference phase switch node !!

[    3.866848] rtkemmc_set_pin_mux: EMMC_PFUNC_NF1 = 0x33333333

[    3.872767] EMMC: set to 0x00000000, EMMC_CTYPE=00000000

[    3.878223] EMMC: set_wrapper_div to 0x00002100

[    3.882876] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    3.889407] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    3.903008] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    3.916023] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    3.921941] rtk_sdmmc_get_cd: SD card exists, regCARD_EXIST = 4

[    3.932591] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    3.945611] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    3.964035] mmc1: EMMC driver initialized

[    3.969059] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    3.982082] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    3.988025] ledtrig-cpu: registered to indicate activity on CPUs

[    3.994358] usbcore: registered new interface driver usbhid

[    4.000083] usbhid: USB HID core driver

[    4.005076] NET: Registered protocol family 10

[    4.010418] Segment Routing with IPv6

[    4.014265] NET: Registered protocol family 17

[    4.018900] Key type dns_resolver registered

[    4.024011] registered taskstats version 1

[    4.028235] Loading compiled-in X.509 certificates

[    4.033238] zswap: loaded using pool lzo/zbud

[    4.039415] Btrfs loaded, crc32c=crc32c-generic

[    4.044677] Key type encrypted registered

[    4.052647] [RTK_SCPU_WRAPPER] scpu wrappee irq 24, scpu_wrap_addr 0xffff000009275000

[    4.060745] [RTK_SCPU_WRAPPER] initialized

[    4.064968] [RTK_SCPU_WRAPPER] memory monitor 0x98013b00 - 0x98013c00

[    4.071715] rtk-uctrl uctrl: [UCTRL] rtk_uctrl_probe

[    4.078152] rtk-cpufreq dvfs: rtk_dvfs_probe

[    4.082832] rtk-cpufreq dvfs: rtk_dvfs_probe

[    4.087655] hctosys: unable to open rtc device (rtc0)

[    4.093020] rtk-thermal-sensor 9801d150.thermal-sensor: thermal_sensor_probe

[    4.102663] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.115682] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.123281] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.136303] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.136485] rtk-thermal-sensor 980124b4.thermal-sensor: thermal_sensor_probe

[    4.145886] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.149626] rtk-cpufreq dvfs: rtk_dvfs_probe

[    4.162443] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.162878] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.176026] clk_mmio_gate_disable_unused: clk_en_i2c1

[    4.185720] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.190909] clk_mmio_gate_disable_unused: clk_en_i2c0

[    4.201978] clk_mmio_gate_disable_unused: clk_en_ur2

[    4.207086] clk_mmio_gate_disable_unused: clk_en_misc_i2c_1

[    4.212809] clk_mmio_gate_disable_unused: clk_en_misc_i2c_2

[    4.218530] clk_mmio_gate_disable_unused: clk_en_misc_i2c_3

[    4.224253] clk_mmio_gate_disable_unused: clk_en_misc_i2c_4

[    4.229974] clk_mmio_gate_disable_unused: clk_en_misc_rtc

[    4.235523] clk_mmio_gate_disable_unused: clk_en_misc_i2c_5

[    4.241253] clk_mmio_gate_disable_unused: clk_en_nf

[    4.246287] pll_ve2: clk_pll_unprepare_unused

[    4.250763] pll_ve1: clk_pll_unprepare_unused

[    4.255238] pll_gpu: clk_pll_unprepare_unused

[    4.259711] pll_ddsb: clk_pll_unprepare_unused

[    4.264281] rtkgpio_regulator: disabling

[    4.264726] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.268534] rtk-cpufreq dvfs: rtk_dvfs_probe

[    4.281318] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.287426] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.304624] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.305342] rtkemmc_set_rspparam : cmd7 arg : 0x00010000

[    4.315980] rtkemmc_set_rspparam : cmd7 with rsp

[    4.320761] ttyS0 - failed to request DMA

[    4.324922] Waiting 6 sec before mounting root device...

[    4.343008] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.356029] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.361929] set bus width 8

[    4.364806] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    4.376626] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    4.389655] EMMC: set div to 0x00, EMMC_CLKDIV=00000000

[    4.395020] set bus width 8

[    4.397899] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    4.403801] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    4.416817] EMMC, set_ip_div = cur_div(0x00000000), ignored.

[    4.422714] set bus width 8

[    4.425593] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    4.431048] host->card is null!

[    4.434370] EMMC: set_wrapper_div to 0x00002100

[    4.439453] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    4.452466] EMMC, set_ip_div = cur_div(0x00000000), ignored.

[    4.458573] Inherit bootcode tuning phase: TX=0x12, RX=0x6

[    4.474252] HS200: final phase=0x693

[    4.480179] mmc1: new HS200 MMC card at address 0001

[    4.486282] mmcblk1: mmc1:0001 NCard  14.5 GiB

[    4.491690] mmcblk1boot0: mmc1:0001 NCard  partition 1 4.00 MiB

[    4.498506] mmcblk1boot1: mmc1:0001 NCard  partition 2 4.00 MiB

[    4.504744] mmcblk1rpmb: mmc1:0001 NCard  partition 3 4.00 MiB, chardev (249:0)

[    4.515390]  mmcblk1: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 >

[    4.523822] rtk-cpufreq dvfs: rtk_dvfs_probe

[    6.846233] SD card is being inserted now...!!!

[    6.850880] [SD] SD card power register=33333323

[    6.856149] rtk_sdmmc_get_cd: SD card exists, regCARD_EXIST = 4

[    7.117901] mmc0: cannot verify signal voltage switch

[    7.702839] SD/MMC card init done.

[    7.712837] rtk_sdmmc_get_ro: SD card is not write protect, regCARD_EXIST = 4

[    7.751628] rtk_sdmmc_execute_tuning CR_PLL_SD3: 86 (0x56)

[    7.757267] rtk_sdmmc_execute_tuning CLK_GEN DVI: 1

[    7.762288] mmc0: new ultra high speed SDR50 SDHC card at address aaaa

[    7.769484] mmcblk0: mmc0:aaaa SS08G 7.40 GiB

[    7.779661]  mmcblk0: p1

[    7.783014] rtk-cpufreq dvfs: rtk_dvfs_probe

[   10.425302] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem

[   10.432821] EXT4-fs (mmcblk0p1): write access will be enabled during recovery

[   10.482608] random: fast init done

[   10.962579] random: crng init done

[   19.064956] EXT4-fs (mmcblk0p1): recovery complete

[   20.412306] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)

[   20.420817] VFS: Mounted root (ext4 filesystem) readonly on device 179:25.

[   20.431428] devtmpfs: mounted

[   20.434739] Freeing unused kernel memory: 512K

[   20.439419] Run /sbin/init as init process

[   20.896454] systemd[1]: System time before build time, advancing clock.

[   20.979147] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)

[   20.998212] systemd[1]: Detected architecture arm64.

 

Welcome to Debian GNU/Linux 9 (stretch)!

 

[   21.035984] systemd[1]: Set hostname to <lake1>.

[   21.410226] systemd[1]: Started Forward Password Requests to Wall Directory Watch.

[  OK  ] Started Forward Password Requests to Wall Directory Watch.

[   21.432276] systemd[1]: Reached target Swap.

[  OK  ] Reached target Swap.

[   21.448415] systemd[1]: Listening on udev Control Socket.

[  OK  ] Listening on udev Control Socket.

[   21.468343] systemd[1]: Listening on Syslog Socket.

[  OK  ] Listening on Syslog Socket.

[   21.484256] systemd[1]: Reached target Remote File Systems.

[  OK  ] Reached target Remote File Systems.

[   21.504951] systemd[1]: Created slice User and Session Slice.

[  OK  ] Created slice User and Session Slice.

[   21.524468] systemd[1]: Listening on Journal Socket.

[  OK  ] Listening on Journal Socket.

[  OK  ] Listening on Journal Socket (/dev/log).

[  OK  ] Listening on fsck to fsckd communication Socket.

[  OK  ] Listening on Journal Audit Socket.

[  OK  ] Created slice System Slice.

         Mounting Debug File System...

         Starting Journal Service...

         Starting Create list of required st…ce nodes for the current kernel...

[  OK  ] Started Dispatch Password Requests to Console Directory Watch.

[  OK  ] Listening on udev Kernel Socket.

         Starting Load Kernel Modules...

[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.

         Starting Set the console keyboard layout...

         Starting Nameserver information manager...

         Starting Restore / save the current clock...

         Starting File System Check on Root Device...

[  OK  ] Reached target Slices.

         Mounting Huge Pages File System...

[  OK  ] Reached target Encrypted Volumes.

         Mounting POSIX Message Queue File System...

[  OK  ] Created slice system-serial\x2dgetty.slice.

[  OK  ] Reached target Paths.

[  OK  ] Mounted POSIX Message Queue File System.

[  OK  ] Mounted Debug File System.

[  OK  ] Mounted Huge Pages File System.

[  OK  ] Started Journal Service.

[  OK  ] Started Create list of required sta…vice nodes for the current kernel.

[  OK  ] Started Load Kernel Modules.

[  OK  ] Started Restore / save the current clock.

[  OK  ] Started File System Check Daemon to report status.

         Mounting Configuration File System...

         Starting Apply Kernel Variables...

         Starting Create Static Device Nodes in /dev...

[  OK  ] Mounted Configuration File System.

[  OK  ] Started File System Check on Root Device.

[  OK  ] Started Nameserver information manager.

[  OK  ] Started Apply Kernel Variables.

         Starting Remount Root and Kernel File Systems...

[  OK  ] Started Create Static Device Nodes in /dev.

         Starting udev Kernel Device Manager...

[  OK  ] Started udev Kernel Device Manager.

[  OK  ] Started Set the console keyboard layout.

[  OK  ] Started Remount Root and Kernel File Systems.

[  OK  ] Reached target Local File Systems (Pre).

         Mounting /tmp...

         Starting Flush Journal to Persistent Storage...

         Starting Load/Save Random Seed...

         Starting udev Coldplug all Devices...

[  OK  ] Mounted /tmp.

[  OK  ] Reached target Local File Systems.

         Starting Set console font and keymap...

         Starting Raise network interfaces...

         Starting Armbian ZRAM config...

[  OK  ] Started Load/Save Random Seed.

[  OK  ] Started Set console font and keymap.

[  OK  ] Started Flush Journal to Persistent Storage.

         Starting Create Volatile Files and Directories...

[  OK  ] Started Create Volatile Files and Directories.

[  OK  ] Reached target System Time Synchronized.

         Starting Update UTMP about System Boot/Shutdown...

[  OK  ] Started Entropy daemon using the HAVEGE algorithm.

[  OK  ] Started udev Coldplug all Devices.

[  OK  ] Found device /dev/ttyS0.

[  OK  ] Started Update UTMP about System Boot/Shutdown.

[  OK  ] Started Armbian ZRAM config.

         Starting Armbian memory supported logging...

[  OK  ] Started Raise network interfaces.

[  OK  ] Started Armbian memory supported logging.

[  OK  ] Reached target System Initialization.

[  OK  ] Listening on D-Bus System Message Bus Socket.

[  OK  ] Reached target Sockets.

[  OK  ] Started Daily apt download activities.

[  OK  ] Started Daily apt upgrade and clean activities.

         Starting Armbian hardware monitoring...

         Starting Armbian filesystem resize...

[  OK  ] Started Daily Cleanup of Temporary Directories.

[  OK  ] Reached target Timers.

         Starting Armbian hardware optimization...

[  OK  ] Started Armbian hardware monitoring.

[  OK  ] Started Armbian hardware optimization.

 

After digging deeper and deeper, I think that I could get some things to work, but to be honest: I had hoped, that this would be easier.

 

I did not upload all the new things yet, so this is not repeatable at the moment. Hopefully there is more to come.

Link to comment
Share on other sites

This is only for sake of booting it somehow, but at least:

 _          _          _ 
| |    __ _| | _____  / |
| |   / _` | |/ / _ \ | |
| |__| (_| |   <  __/ | |
|_____\__,_|_|\_\___| |_|
                         

Welcome to ARMBIAN 5.77 user-built Debian GNU/Linux 9 (stretch) 4.19.16-rtd1295   
System load:   2.81 1.25 0.47   Up time:       2 min
Memory usage:  5 % of 1932MB    IP:            
CPU temp:      42°C             
Usage of /:    15% of 7.1G      

 

This is useful for nothing at the moment (no usb, no net, no straightforward installation method), but I am not yet in the state to give up.

It is a buggy mess at the moment and again I have not uploaded all stuff to my repo.

To reach this pseudo-success, I had to boot with kernel 4.9.y, then let armbian resize the initial image (which does not work with 4.19.y for whatever reason) and then write the 4.19.-kernel and the DTB to the SD-card. So it is a bit of a click-bait ;)

 

Link to comment
Share on other sites

It seems, like I hit a wall with my attempts (to port 4.9. to 4.19.). This is simply unknown territory for me and "too low level".

As far as I understand, there is a problem with the dma-code and I have no clue how to fix this. Between 4.9 and 4.19 there were some API-changes and you can find realtek-specific code fragments in generic kernel parts, which is the only "documentation" for this topic for me.

Here is the current boot log:

Spoiler

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]

[    0.000000] Linux version 4.19.16-rtd1295 (root@ubuntu-bionic) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05)) #5.77 SMP Mon Apr 1 06:57:44 UTC 2019

[    0.000000] Machine model: Realtek_RTD1295

[    0.000000] earlycon: uart8250 at MMIO32 0x0000000098007800 (options '')

[    0.000000] bootconsole [uart8250] enabled

[    0.000000] efi: Getting EFI parameters from FDT:

[    0.000000] efi: UEFI not found.

[    0.000000] OF: reserved mem: failed to allocate memory for node 'tee'

[    0.000000] rsvmem_remap_setup 234, not remap common@0 now

[    0.000000] rsvmem_remap_setup 234, not remap ringbuf@0 now

[    0.000000] rsvmem_remap_setup 234, not remap rbus@0 now

[    0.000000] cma: Reserved 16 MiB at 0x000000007f000000

[    0.000000] random: get_random_bytes called from start_kernel+0xa8/0x410 with crng_init=0

[    0.000000] percpu: Embedded 22 pages/cpu @(____ptrval____) s52504 r8192 d29416 u90112

[    0.000000] Detected VIPT I-cache on CPU0

[    0.000000] CPU features: detected: Kernel page table isolation (KPTI)

[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 516096

[    0.000000] Kernel command line: earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200 noinitrd root=/dev/mmcblk0p1 rootfs=ext4 init=/sbin/init rootwait

[    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: 1957508K/2097152K available (10108K kernel code, 654K rwdata, 2864K rodata, 576K init, 465K bss, 123260K reserved, 16384K cma-reserved)

[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1

[    0.000000] rcu: Hierarchical RCU implementation.

[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4.

[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4

[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0

[    0.000000] GIC: GICv2 at 0x00000000ff012000, but range is too small (broken DT?), assuming 8kB

[    0.000000] GIC: Using split EOI/Deactivate mode

[    0.000000] arch_timer: cp15 timer(s) running at 27.00MHz (phys).

[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x63a1e71a3, max_idle_ns: 440795203123 ns

[    0.000005] sched_clock: 56 bits at 27MHz, resolution 37ns, wraps every 4398046511093ns

[    0.009102] [RTK-TIMER0] set mode: shutdown

[    0.013812] [RTK-TIMER0] clocksource 0 register HZ

[    0.019206] clocksource: rtk_timer0_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.030808] [RTK-TIMER1] clocksource 1 register HZ

[    0.036201] clocksource: rtk_timer1_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.048522] arch_timer: multiple nodes in dt, skipping

[    0.054378] genirq: Flags mismatch irq 8. 00015204 (timer0) vs. 00015204 (timer0)

[    0.062804] [RTK-TIMER0] clocksource 0 register HZ

[    0.068195] clocksource: rtk_timer0_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.079784] genirq: Flags mismatch irq 9. 00014204 (timer1) vs. 00014204 (timer1)

[    0.088208] [RTK-TIMER1] clocksource 1 register HZ

[    0.093600] clocksource: rtk_timer1_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 70787423951 ns

[    0.105391] rmem_count: 4

[    0.109311]

[    0.110983] rsvmem_remap 143, rmem->name tee

[    0.116769] rsvmem_remap 147, no compatible prop

[    0.122939]

[    0.124611] rsvmem_remap 143, rmem->name common@0

[    0.130884] rsvmem_remap 151, type rsvmem-remap

[    0.136962] rsvmem_remap 163, ioremap(1f000,1000)

[    0.143236] rsvmem_remap 175, remap addr (____ptrval____)

[    0.150292] rsvmem_remap 184, save_remap_name common

[    0.156854] rsvmem_remap 203, save rpc_common_base

[    0.163223] rsvmem_remap 216, init common@0/common done

[    0.170077]

[    0.171749] rsvmem_remap 143, rmem->name ringbuf@0

[    0.178117] rsvmem_remap 151, type rsvmem-remap

[    0.184192] rsvmem_remap 163, ioremap(1ffe000,4000)

[    0.190660] rsvmem_remap 175, remap addr (____ptrval____)

[    0.197715] rsvmem_remap 184, save_remap_name ringbuf

[    0.204376] rsvmem_remap 210, save rpc_ringbuf_base

[    0.210844] rsvmem_remap 216, init ringbuf@0/ringbuf done

[    0.217896]

[    0.219567] rsvmem_remap 143, rmem->name rbus@0

[    0.225642] rsvmem_remap 151, type rsvmem-remap

[    0.231719] rsvmem_remap 163, ioremap(98000000,200000)

[    0.238483] rsvmem_remap 175, remap addr (____ptrval____)

[    0.245537] rsvmem_remap 184, save_remap_name rbus

[    0.251906] rsvmem_remap 188, save rbus_addr

[    0.257692] rsvmem_remap 195, set rtk_rbus_barrier_flag to 1

[    0.265041] rsvmem_remap 216, init rbus@0/rbus done

[    0.271649] Console: colour dummy device 80x25

[    0.276694] Calibrating delay loop (skipped), value calculated using timer frequency.. 54.00 BogoMIPS (lpj=108000)

[    0.288376] pid_max: default: 32768 minimum: 301

[    0.293688] Security Framework initialized

[    0.298315] AppArmor: AppArmor disabled by boot time parameter

[    0.304948] Mount-cache hash table entries: 4096 (order: 3, 32768 bytes)

[    0.312517] Mountpoint-cache hash table entries: 4096 (order: 3, 32768 bytes)

tuuEEERRR[BBBOOSOSES:EE:  :bb lbl3l1331__1se_tsseutep

N  pp

ON

7a TOINTOITCCIEE:C :E:     BBBLLL33311::1  :v 1vv.121.(2d.e(b2du(gdebeub)ugg):1:51)522:2a1b52a2b27

NbO7

    NT

1ITCIEN:C OE:T I BCLE 3B1:L: 3  1B:BL3u1i lB: utB uilitl:t   :1 61: 61::363:333:3::4446,6 ,6 OOc, tO ct1 3c 12t3  21030 11266

IN6

ersFFOIONF:: O   :    B LB 3L 1 3:B1 :LI I31ni:niti taIialniliizzitiniangg  rlruunnittizmiie mnegs  rsueenrtirmvviec iesces

I  v

F  cOIeNs:

s   O S:IN Ft Oar:t     tS  otaSrta rinti ttto s etor i inivnt iitsc erevseirc e ssvtitdd_cse_ svstvcdc _

vIc

N   I

cNFINFFOOO:::         F  i FiniFsinnihi sshtoh   ttoion i iint itns esrivetriv cseer iviccseet dst _dsst_sdvvc_sc  v

  I

   NIN

etFON:OF : O    : St  ar t S S tttoa arrtin titt o  steoirn viiinticte   sseropetveicreev d_oifpactse toep

  eeIddN__FfOf:aas st  t

F

rrvnIIiNFsNOh : FOto  : i ni Ft i  nsiesr hvFiicne iosp htt toeo ied i_nnfiitat  stsese

sniviIicNcFee O oop:t pe te d e_BedfLa_3sf1t:  aI

Iiatt

L IINlFNOiF:O  z i n:B  gL 3BL 3 12B:

   31n:I iItiNnFiO:ati l ial  ziCiznoigrnge_ B1  LB32TEL

IM2S

E CN_IOFONP: FOT: E      CoEDreC__oR3rEe_ TU2TRN ETEE_EESMSNCMTC__ORYPOTP_DTOEEENEED_D_ RR

EniTIUNUFRRO:N_N_EE N NTT R BRYYL__DDO31NON: E I

N  It i

BL1lNFFiOzO: e :  d  BBL L  332

L33:31I :NInF itOIinali: ti z eid  alEBiXzLITe d3BL B2

   21IN

FI

L13_tIF N O:FO   :      E XEIXbTI TB lLB313

NFkOe:rn1

ls      IelN:  F k O :be  lr 3n 1_elb_ltor3e1s_kuemre__tneo_enkletrn:r keyel r:=n  k0ex1lee0_0rr0nee

2 IuN_merFOe:_ se un t merb_leyn3 1= jt r0yum xp=s 10 x1et0e0o 00E00L

I:NF

oto OIN F:kO e r: e n l    bbll3311 en jtjuurmpmyps  st

     EELL22::  kkeerreennll  eennttrryy

 

    0.322087] ASID allocator initialised with 32768 entries

[    0.476823] rcu: Hierarchical SRCU implementation.

[    0.482995] EFI services will not be available.

[    0.488329] smp: Bringing up secondary CPUs ...

[    0.493845] Detected VIPT I-cache on CPU1

[    0.493882] [RTK-TIMER0] set mode: shutdown

[    0.493898] CPU1: Booted secondary processor 0x0000000001 [0x410fd034]

[    0.494405] Detected VIPT I-cache on CPU2

[    0.494442] CPU2: Booted secondary processor 0x0000000002 [0x410fd034]

[    0.494947] Detected VIPT I-cache on CPU3

[    0.494984] CPU3: Booted secondary processor 0x0000000003 [0x410fd034]

[    0.495090] smp: Brought up 1 node, 4 CPUs

[    0.540065] SMP: Total of 4 processors activated.

[    0.545373] CPU features: detected: 32-bit EL0 Support

[    0.553634] CPU: All CPU(s) started at EL2

[    0.558277] alternatives: patching kernel code

[    0.564525] devtmpfs: initialized

[    0.578571] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns

[    0.589580] futex hash table entries: 1024 (order: 4, 65536 bytes)

[    0.597405] xor: measuring software checksum speed

[    0.639535]    8regs     :  1153.000 MB/sec

[    0.683607]    8regs_prefetch:  1028.000 MB/sec

[    0.727680]    32regs    :  1418.000 MB/sec

[    0.771754]    32regs_prefetch:  1192.000 MB/sec

[    0.776960] xor: using function: 32regs (1418.000 MB/sec)

[    0.783053] pinctrl core: initialized pinctrl subsystem

[    0.789582] DMI not present or invalid.

[    0.794262] NET: Registered protocol family 16

[    0.801308] audit: initializing netlink subsys (disabled)

[    0.807522] audit: type=2000 audit(0.336:1): state=initialized audit_enabled=0 res=1

[    0.816375] cpuidle: using governor menu

[    0.821082] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))

[    0.829476] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.

[    0.838594] DMA: preallocated 256 KiB pool for atomic allocations

[    0.845882] rst-control : base (____ptrval____), offset 0xb4

[    0.852281] ****** rtk_lockapi_init 618, chip: id=0x00000000, revision=0x00010000

[    0.861969] rtk-cgc 9800000c.clk-en: [CLK] rtk_cgc_probe

[    0.867996] mmio: use sb2_sem

[    0.871388] rtk-cgc 9800000c.clk-en: use mmio regmap

[    0.877332] rtk-cgc 98000010.clk-en: [CLK] rtk_cgc_probe

[    0.883352] rtk-cgc 98000010.clk-en: use mmio regmap

[    0.889281] rtk-cgc 98000450.clk-en: [CLK] rtk_cgc_probe

[    0.895483] rtk-cgc 9800708c.clk-en: [CLK] rtk_cgc_probe

[    0.901505] mmio: use sb2_sem

[    0.904858] (NULL device *): Failed to create dummy-mmio debugfs directory

[    0.912626] rtk-cgc 9800708c.clk-en: use mmio regmap

[    0.918516] rtk-cc 98000000.clock-controller: [CLK] rtk_cc_probe

[    0.925315] rtk-cc 98000000.clock-controller: use mmio regmap

[    0.931800] rtk-cc 98000000.clock-controller: cc_init_hw: pll_scpu

[    0.938793] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus

[    0.945686] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_div2

[    0.953067] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys

[    0.959966] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sys_sb2

[    0.967254] rtk-cc 98000000.clock-controller: cc_init_hw: pll_bus_h

[    0.974341] rtk-cc 98000000.clock-controller: cc_init_hw: clk_sysh

[    0.981329] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsa

[    0.988320] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ddsb

[    0.995308] rtk-cc 98000000.clock-controller: cc_init_hw: pll_gpu

[    1.002198] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve1

[    1.009087] rtk-cc 98000000.clock-controller: cc_init_hw: pll_ve2

[    1.015983] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_gpu

[    1.023956] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve1

[    1.031927] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve2

[    1.039901] rtk-cc 98000000.clock-controller: cc_init_composite_clk: clk_ve3

[    1.048077] rtk-reset 98000000.soft-reset: rtk_reset_probe

[    1.054287] rtk-reset 98000000.soft-reset: use mmio regmap

[    1.060672] rtk-reset 98000000.shadow-soft-reset: rtk_reset_probe

[    1.067568] rtk-reset 98000000.shadow-soft-reset: use mmio regmap

[    1.074616] rtk-reset 98000004.soft-reset: rtk_reset_probe

[    1.080828] rtk-reset 98000004.soft-reset: use mmio regmap

[    1.087191] rtk-reset 98000008.soft-reset: rtk_reset_probe

[    1.093409] rtk-reset 98000008.soft-reset: use mmio regmap

[    1.099778] rtk-reset 98000050.soft-reset: rtk_reset_probe

[    1.105988] rtk-reset 98000050.soft-reset: use mmio regmap

[    1.112354] rtk-reset 98007088.soft-reset: rtk_reset_probe

[    1.118566] rtk-reset 98007088.soft-reset: use mmio regmap

[    1.124930] rtk-reset 98000000.async-soft-reset: rtk_reset_probe

[    1.131726] rtk-reset 98000000.async-soft-reset: use mmio regmap

[    1.138685] rtk-reset 98000004.async-soft-reset: rtk_reset_probe

[    1.145481] rtk-reset 98000004.async-soft-reset: use mmio regmap

[    1.152416] rtk-rcp rcp: deprecated API OK

[    1.157239] rtd129x-pc 98000000.power-controller: power_controller_probe

[    1.164858] ve1_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve1

[    1.171943] ve2_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve2

[    1.179025] gpu_pd: pwrctrl_pd_init: no genpd /as control pctrl_gpu

[    1.186108] ve3_pd: pwrctrl_pd_init: no genpd /as control pctrl_ve3

[    1.193569] [PINCTRL] driver init

[    1.200177] [PINCTRL] init done

[    1.206456] [RTK_DCSYS_DBG] DC_EC_CTRL(0x98008300) = 70c0000

[    1.212873] [RTK_DCSYS_DBG] initialized

[    1.226758] [RTK_SB2_DBG] Info 0x10000

[    1.230994] [RTK_SB2_DBG] memory monitor 0x98013b00 - 0x98013c00

[    1.237771] [RTK_SB2_DBG] initialized

[    1.256402] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages

[    1.264445] cryptd: max_cpu_qlen set to 1000

[    1.336945] raid6: int64x1  gen()   220 MB/s

[    1.408842] raid6: int64x1  xor()   221 MB/s

[    1.481067] raid6: int64x2  gen()   338 MB/s

[    1.553114] raid6: int64x2  xor()   301 MB/s

[    1.625213] raid6: int64x4  gen()   520 MB/s

[    1.697256] raid6: int64x4  xor()   382 MB/s

[    1.769434] raid6: int64x8  gen()   492 MB/s

[    1.841504] raid6: int64x8  xor()   375 MB/s

[    1.913569] raid6: neonx1   gen()   363 MB/s

[    1.985694] raid6: neonx1   xor()   426 MB/s

[    2.057825] raid6: neonx2   gen()   582 MB/s

[    2.129893] raid6: neonx2   xor()   604 MB/s

[    2.201999] raid6: neonx4   gen()   755 MB/s

[    2.274092] raid6: neonx4   xor()   723 MB/s

[    2.346202] raid6: neonx8   gen()   828 MB/s

[    2.418324] raid6: neonx8   xor()   768 MB/s

[    2.423146] raid6: using algorithm neonx8 gen() 828 MB/s

[    2.429136] raid6: .... xor() 768 MB/s, rmw enabled

[    2.434635] raid6: using neon recovery algorithm

[    2.440039] ACPI: Interpreter disabled.

[    2.444602] vgaarb: loaded

[    2.447949] SCSI subsystem initialized

[    2.452539] usbcore: registered new interface driver usbfs

[    2.458786] usbcore: registered new interface driver hub

[    2.464855] usbcore: registered new device driver usb

[    2.470690] rtk-usb-manager 98000000.rtk_usb_power_manager: ENTER rtk_usb_manager_probe

[    2.479838] rtk-usb-manager 98000000.rtk_usb_power_manager: Error switch_ctrl-gpio no found

[    2.489278] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 0 rtk_dwc3_drd status is okay

[    2.499035] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 1 rtk_dwc3_u2host status is okay

[    2.509052] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ehci status is okay

[    2.517984] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 2 ohci status is okay

[    2.526918] rtk-usb-manager 98000000.rtk_usb_power_manager: Port 3 rtk_dwc3_u3host status is okay

[    2.536987] rtk_usb_iso_power_ctrl power_on ([0x98007fb0=0x0f000073)

[    2.544163] set power_domain on ([0x98007fb0]=0x0f000073)

[    2.556513] rtk-usb-manager 98000000.rtk_usb_power_manager: Realtek USB init OK

[    2.564774] rtk-usb-manager 98000000.rtk_usb_power_manager: __port0_gpio_on_off to set port0 power off by gpio (id=102) OK

[    2.577261] rtk-usb-manager 98000000.rtk_usb_power_manager: __port1_gpio_on_off to set port1 power off by gpio (id=132) OK

[    2.589737] rtk-usb-manager 98000000.rtk_usb_power_manager: __port2_gpio_on_off to set port2 power off by gpio (id=19) OK

[    2.602117] rtk-usb-manager 98000000.rtk_usb_power_manager: __port3_gpio_on_off to set port3 power off by gpio (id=133) OK

[    2.614682] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_probe OK (take 144 ms)

[    2.625444] Failed to device reset: -2

[    2.630067] Failed to device reset: -2

[    2.634545] Failed to device reset: -2

[    2.639019] Failed to device reset: -2

[    2.643559] Failed to device reset: -2

[    2.648032] Failed to device reset: -2

[    2.653075] rtk-efuse 98017000.efuse: rtk_efuse_probe

[    2.660063] clocksource: Switched to clocksource arch_sys_counter

[    2.667106] VFS: Disk quotas dquot_6.6.0

[    2.671597] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)

[    2.679539] pnp: PnP ACPI: disabled

[    2.692419] NET: Registered protocol family 2

[    2.697956] tcp_listen_portaddr_hash hash table entries: 1024 (order: 2, 16384 bytes)

[    2.707005] TCP established hash table entries: 16384 (order: 5, 131072 bytes)

[    2.715356] TCP bind hash table entries: 16384 (order: 6, 262144 bytes)

[    2.723180] TCP: Hash tables configured (established 16384 bind 16384)

[    2.730642] UDP hash table entries: 1024 (order: 3, 32768 bytes)

[    2.737495] UDP-Lite hash table entries: 1024 (order: 3, 32768 bytes)

[    2.744997] NET: Registered protocol family 1

[    2.750320] RPC: Registered named UNIX socket transport module.

[    2.757023] RPC: Registered udp transport module.

[    2.762332] RPC: Registered tcp transport module.

[    2.767641] RPC: Registered tcp NFSv4.1 backchannel transport module.

[    2.775118] Trying to unpack rootfs image as initramfs...

[    2.781416] rootfs image is not initramfs (junk in compressed archive); looks like an initrd

[    2.801222] Freeing initrd memory: 4096K

[    2.806612] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available

[    2.821354] Initialise system trusted keyrings

[    2.826519] workingset: timestamp_bits=46 max_order=19 bucket_order=0

[    2.840837] zbud: loaded

[    2.846558] NFS: Registering the id_resolver key type

[    2.852288] Key type id_resolver registered

[    2.857011] Key type id_legacy registered

[    2.861545] nfs4filelayout_init: NFSv4 File Layout Driver Registering...

[    2.869107] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).

[    2.883253] Key type asymmetric registered

[    2.887892] Asymmetric key parser 'x509' registered

[    2.893452] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)

[    2.901920] io scheduler noop registered

[    2.906363] io scheduler deadline registered

[    2.911350] io scheduler cfq registered (default)

[    2.916667] io scheduler mq-deadline registered

[    2.921782] io scheduler kyber registered

[    2.926448] io scheduler bfq registered

[    2.931884] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(0) enable=(0) duty_rate=(5) clksrc_div=(1) clkout_div=(255)---

[    2.943472] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.952020] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(1) enable=(1) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    2.963695] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.972244] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(2) enable=(0) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    2.983917] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    2.992462] [RTK_PWM] rtd1295_pwm_probe - hwpwm=(3) enable=(0) duty_rate=(50) clksrc_div=(1) clkout_div=(255)---

[    3.004133] [RTK_PWM] rtd1295_pwm_probe - defualt output frequence = 26367Hz ---

[    3.013051] [RTK PCIE 2] 9803b000.pcie: pcie host driver initial begin

[    3.020426] [RTK PCIE 2] 9803b000.pcie: speed mode: GEN2

[    3.264381] [RTK PCIE 2] 9803b000.pcie: pcie device has link down in slot 2

[    3.272241] [RTK PCIE 2] 9803b000.pcie: rtk_pcie2_hw_initial fail

[    3.279133] [RTK PCIE 2]: probe of 9803b000.pcie failed with error -22

[    3.286714] [RTK PCIE 1] 9804e000.pcie: pcie host driver initial begin

[    3.509622] [RTK PCIE 1] 9804e000.pcie: pcie device has link down in slot 1

[    3.517480] [RTK PCIE 1] 9804e000.pcie: rtk_pcie_hw_initial fail

[    3.524272] [RTK PCIE 1]: probe of 9804e000.pcie failed with error -22

[    3.532706] misc rtk_lockapi: registered.

[    3.537652] [RTK MCP] MCP driver initial begin.

[    3.542807] [RTK MCP] MCP Base: 0x(____ptrval____)

[    3.548214] [RTK MCP] TP Base: 0x(____ptrval____)

[    3.553665] [RTK MCP] MCP driver initial done.

[    3.558830] gmt-g2227 0-0012: g2227_regulator_probe

[    3.565922] gmt-g2227 0-0012: g2227 version 03

[    3.581722] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled

[    3.590539] console [ttyS0] disabled

[    3.594618] 98007800.serial0: ttyS0 at MMIO 0x98007800 (irq = 194, base_baud = 1687500) is a 16550A

[    3.604849] console [ttyS0] enabled

[    3.604849] console [ttyS0] enabled

[    3.612358] bootconsole [uart8250] disabled

[    3.612358] bootconsole [uart8250] disabled

[    3.621834] [RTK_SB2_DBG] sb2 get int 0x00000002 from SB2_INV_INTSTAT

[    3.622047] 9801b200.serial1: ttyS1 at MMIO 0x9801b200 (irq = 163, base_baud = 27000000) is a 16550A

[    3.628433] [RTK_SB2_DBG] Invalid access issued by SCPU

[    3.628437] [RTK_SB2_DBG] Invalid address is 0x9801b2f8

[    3.628440] [RTK_SB2_DBG] Timeout threshold(0x0000004d)

[    3.655852] [RTK_SB2_DBG] sb2 get int 0x00000002 from SB2_INV_INTSTAT

[    3.662452] [RTK_SB2_DBG] Invalid access issued by SCPU

[    3.668693] [RTK_SB2_DBG] Invalid address is 0x9801b210

[    3.675024] [RTK_SB2_DBG] Timeout threshold(0x0000004d)

[    3.683411] brd: module loaded

[    3.692021] loop: module loaded

[    3.716086] drbd: initialized. Version: 8.4.10 (api:1/proto:86-101)

[    3.722542] drbd: built-in

[    3.725329] drbd: registered as block device major 147

[    3.731224] zram: Added device: zram0

[    3.801941] phy-rtk-sata 9803ff60.sata_phy: init phy0 OK

[    3.807991] [GSPI] spi-cs-gpio(6)

[    3.811676] rtk-gspi 9801bd00.spi: base (____ptrval____), irq 0

[    3.817853] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

[    3.827539] libphy: Fixed MDIO Bus: probed

[    3.832206] PPP generic driver version 2.4.2

[    3.836787] PPP BSD Compression module registered

[    3.841756] PPP Deflate Compression module registered

[    3.846976] PPP MPPE Compression module registered

[    3.851899] NET: Registered protocol family 24

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

[    3.866379] CSLIP: code copyright 1989 Regents of the University of California.

[    3.873876] SLIP linefill/keepalive option.

[    3.878448] rtk-usb-phy-rle0599 98013824.usb_phy_rle0599: Probe RTK USB 2.0 RLE0599 PHY

[    3.887059] rtk-usb2phy 98028280.dwc3_drd_usb2phy: drivers/usb/phy/phy-rtk-usb2.c Probe RTK USB 2.0 PHY

[    3.896818] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: drivers/usb/phy/phy-rtk-usb2.c Probe RTK USB 2.0 PHY

[    3.906844] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: drivers/usb/phy/phy-rtk-usb2.c Probe RTK USB 2.0 PHY

[    3.917090] rtk-usb3phy 98013210.dwc3_drd_usb3phy: drivers/usb/phy/phy-rtk-usb3.c Probe RTK USB 3.0 PHY

[    3.926848] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: drivers/usb/phy/phy-rtk-usb3.c Probe RTK USB 3.0 PHY

[    3.937325] rtk-dwc3 98013200.rtk_dwc3_drd: Probe Realtek-SoC USB DWC3 Host Controller

[    3.945774] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_schedule_work for 98013200.rtk_dwc3_drd

[    3.956490] rtk-dwc3 98013200.rtk_dwc3_drd: dwc3_rtk_probe ok! (take 20 ms)

[    3.956499] rtk-dwc3 98013200.rtk_dwc3_drd: dwc3_rtk_probe_work Start ...

[    3.963708] rtk-dwc3 98013c00.rtk_dwc3_u2host: Probe Realtek-SoC USB DWC3 Host Controller

[    3.970932] dwc3 98020000.dwc3_drd: rtk dwc3 fixed dwc3 globals register start address 0x(____ptrval____)

[    3.979260] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_schedule_work for 98013c00.rtk_dwc3_u2host

[    3.999779] rtk-dwc3 98013c00.rtk_dwc3_u2host: dwc3_rtk_probe ok! (take 36 ms)

[    4.007283] rtk-dwc3 98013e00.rtk_dwc3_u3host: Probe Realtek-SoC USB DWC3 Host Controller

[    4.015932] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_schedule_work for 98013e00.rtk_dwc3_u3host

[    4.026914] rtk-dwc3 98013e00.rtk_dwc3_u3host: dwc3_rtk_probe ok! (take 20 ms)

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

[    4.041559] ehci-pci: EHCI PCI platform driver

[    4.046181] ehci-rtk: EHCI realtek driver init

[    4.050851] rtk-ehci 98013000.ehci: Probe Realtek-SoC USB EHCI Host Controller

[    4.058333] rtk-ehci 98013000.ehci: ehci_rtk_drv_probe Enable fixed_async_list_addr_bug

[    4.066601] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_schedule_work for 98013000.ehci

[    4.076602] rtk-ehci 98013000.ehci: ehci_rtk_drv_probe OK (take 28 ms)

[    4.083484] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver

[    4.089845] ohci-pci: OHCI PCI platform driver

[    4.095042] usbcore: registered new interface driver uas

[    4.100559] usbcore: registered new interface driver usb-storage

[    4.107062] mousedev: PS/2 mouse device common for all mice

[    4.113093] [RTK_RTC] 9801b600.rtc: rtk_rtc_probe

[    4.117952] [RTK_RTC] 9801b600.rtc: rtk_base_year = 2014

[    4.123453] [RTK_RTC] 9801b600.rtc: rtk_rtc_base = 0xffff0000091dd600

[    4.130066] [RTK_RTC] 9801b600.rtc: rtk_iso_base = 0xffff0000091ed000

[    4.136678] [RTK_RTC] 9801b600.rtc: rtk_rtc rtcacr = 0x80

[    4.142220] [RTK_RTC] 9801b600.rtc: rtk_rtc already enabled

[    4.148023] [RTK_RTC] 9801b600.rtc: enable REG_SEC = 0x33

[    4.153557] [RTK_RTC] 9801b600.rtc: enable REG_MIN = 0x33

[    4.159090] [RTK_RTC] 9801b600.rtc: enable REG_HR = 0x6

[    4.164445] [RTK_RTC] 9801b600.rtc: enable REG_DATA_LOW = 0x7c

[    4.170422] [RTK_RTC] 9801b600.rtc: enable REG_DATE_HIGH = 0x7

[    4.176409] [RTK_RTC] 9801b600.rtc: reset bit 0x1f840e3d

[    4.181862] [RTK_RTC] 9801b600.rtc: clock bit 0x4801e406

[    4.187369] [RTK_RTC] 9801b600.rtc: sec=0x19 , min=0x33 . day=0x77c

[    4.193809] [RTK_RTC] 9801b600.rtc: time read as 2019.03.01 06:51:25

[    4.200485] [RTK_RTC] 9801b600.rtc: rtc core: registered rtc as rtc0

[    4.207144] i2c /dev entries driver

[    4.211002] dwc3 98020000.dwc3_drd: will try to initialize core

[    4.217246] rtk-usb3phy 98013210.dwc3_drd_usb3phy: rtk_usb_phy_init Init RTK USB 3.0 PHY

[    4.225556] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb_phy_init Init RTK USB 3.0 PHY phy#0

[    4.235541] [rtk_wdt] rtk_wdt_probe enter

[    4.239925] [rtk_wdt] rtk_wdt_probe exit

[    4.240501] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb3_phy_toggle ########## to toggle PHY addr 0x09 BIT(9)

[    4.244205] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)

[    4.255948] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb3_phy_toggle ########## PHY addr 0x1f = 0x90001f10

[    4.263563] rtk-cpufreq dvfs: rtk_dvfs_probe

[    4.273639] rtk-usb3phy 98013210.dwc3_drd_usb3phy: rtk_usb_phy_init Initialized RTK USB 3.0 PHY

[    4.273648] rtk-usb2phy 98028280.dwc3_drd_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    4.278118] cpu cpu0: Linked as a consumer to regulator.2

[    4.286942] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    4.286990] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    4.295397] cpu cpu0: Dropping the link to regulator.2

[    4.301876] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    4.310157] rtk-cpufreq dvfs: Linked as a consumer to regulator.8

[    4.320942] rtk-usb2phy 98028280.dwc3_drd_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    4.351502] cpu cpu0: Linked as a consumer to regulator.2

[    4.357099] cpu cpu0: Dropping the link to regulator.2

[    4.362399] rtk-cpufreq dvfs: no dynamic opmode

[    4.367114] cpu cpu0: used in cpufreq

[    4.370958] cpu cpu0: Linked as a consumer to regulator.2

[    4.376534] cpu cpu0: dev_pm_opp_set_prop_name(): prop_name=a01

[    4.384006] rtk-cpufreq dvfs: no auto-boost

[    4.388920] RTK: rtk_sdmmc_probe: sdmmc_on(1) enable rtk_sdmmc driver

[    4.395678] rtk-sdmmc: build at : #5.77 SMP Mon Apr 1 06:57:44 UTC 2019

[    4.402556] rtk-sdmmc: CONFIG_MMC_BLOCK_BOUNCE disable

[    4.407829] RTK: reset rtk_sdmmc ...

[    4.422062] dwc3 98020000.dwc3_drd: dwc3_gadget_init Enter

[    4.438656]  (null): DMA mask not set

[    4.442629] dwc3 98020000.dwc3_drd: dwc3_gadget_init Exit

[    4.448590] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: ENTER dwc3_rtk_type_c_probe

[    4.456640] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: No mapping memory for type_c_reg_base!

[    4.460242] EMMC : emmc of_node found

[    4.460299] [rtkemmc_probe] get speed-step : 2

[    4.460303] [rtkemmc_probe] no driving nf_s1 warning !!

[    4.460306] [rtkemmc_probe] get driving s2 : 0x1

[    4.460308] [rtkemmc_probe] get driving s2 : 0xbb

[    4.460309] [rtkemmc_probe] get driving s2 : 0xbb

[    4.460311] [rtkemmc_probe] get driving s2 : 0xbb

[    4.460313] [rtkemmc_probe] get driving s2 : 0x33

[    4.460315] [rtkemmc_probe] no driving nf_s3 warning !!

[    4.460317] [rtkemmc_probe] get tx tuning switch : 0

[    4.460319] [rtkemmc_probe] get rx tuning switch : 0

[    4.460321] [rtkemmc_probe] no dqs_tuning switch node !!

[    4.460324] [rtkemmc_probe] no tx & rx reference phase switch node !!

[    4.460401] rtkemmc_set_pin_mux: EMMC_PFUNC_NF1 = 0x33333333

[    4.460419] EMMC: set to 0x00000000, EMMC_CTYPE=00000000

[    4.460425] EMMC: set_wrapper_div to 0x00002100

[    4.460427] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.461054] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.461544] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.461546] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.461557] rtk_sdmmc_get_cd: SD card exists, regCARD_EXIST = 4

[    4.465645] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: Let type_c_reg_base = (____ptrval____)

[    4.472475] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.472478] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.474083] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: dwc3_rtk_type_c_probe get rd_ctrl-gpio (id=135) OK

[    4.484057] mmc1: EMMC driver initialized

[    4.484220] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: Set device mode boot_check_time 30000 ms

[    4.484818] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.484820] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.661195] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: Chip 1295 revision is a01 (support revision a01) to load A01 parameter

[    4.673072] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: DWC3_DRD is DRD mode

[    4.680518] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_manager_schedule_work for 98013200.rtk_dwc3_drd_type_c

[    4.691833] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: Exit dwc3_rtk_type_c_probe OK (take 240 ms)

[    4.701341] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_init_gpio_power_on for 98013200.rtk_dwc3_drd

[    4.711781] rtk-dwc3 98013200.rtk_dwc3_drd: dwc3_rtk_probe_work End ... ok! (take 752 ms)

[    4.720171] rtk-dwc3 98013c00.rtk_dwc3_u2host: dwc3_rtk_probe_work Start ...

[    4.720361] ledtrig-cpu: registered to indicate activity on CPUs

[    4.727611] dwc3 98029000.dwc3_u2host: rtk dwc3 fixed dwc3 globals register start address 0x(____ptrval____)

[    4.733641] usbcore: registered new interface driver usbhid

[    4.749334] usbhid: USB HID core driver

[    4.753761] NET: Registered protocol family 10

[    4.758830] Segment Routing with IPv6

[    4.762618] NET: Registered protocol family 17

[    4.767224] Key type dns_resolver registered

[    4.772215] dwc3 98029000.dwc3_u2host: will try to initialize core

[    4.772230] registered taskstats version 1

[    4.778580] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    4.782751] Loading compiled-in X.509 certificates

[    4.791392] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    4.796346] zswap: loaded using pool lzo/zbud

[    4.805771] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    4.811033] Btrfs loaded, crc32c=crc32c-generic

[    4.822361] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    4.826383] Key type encrypted registered

[    4.836211] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    4.851742] [RTK_SCPU_WRAPPER] scpu wrappee irq 25, scpu_wrap_addr 0xffff00000950d000

[    4.859802] [RTK_SCPU_WRAPPER] initialized

[    4.863999] [RTK_SCPU_WRAPPER] memory monitor 0x98013b00 - 0x98013c00

[    4.870686] rtk-uctrl uctrl: [UCTRL] rtk_uctrl_probe

[    4.876316] [RTK_RTC] 9801b600.rtc: sec=0x1a , min=0x33 . day=0x77c

[    4.882745] [RTK_RTC] 9801b600.rtc: time read as 2019.03.01 06:51:26

[    4.889269] [RTK_RTC] 9801b600.rtc: setting system clock to 2019-04-01 06:51:26 UTC (1554101486)

[    4.898339] rtk-thermal-sensor 9801d150.thermal-sensor: thermal_sensor_probe

[    4.906008] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.919007] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.926578] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.937525] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    4.939580] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.939696] rtk-thermal-sensor 980124b4.thermal-sensor: thermal_sensor_probe

[    4.948216] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    4.957718] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.961350] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    4.966017] clk_mmio_gate_disable_unused: clk_en_ur2

[    4.966025] clk_mmio_gate_disable_unused: clk_en_misc_i2c_1

[    4.966038] clk_mmio_gate_disable_unused: clk_en_nf

[    4.966055] pll_ve2: clk_pll_unprepare_unused

[    4.966058] pll_ve1: clk_pll_unprepare_unused

[    4.966060] pll_gpu: clk_pll_unprepare_unused

[    4.966061] pll_ddsb: clk_pll_unprepare_unused

[    4.970758] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    4.984760] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    4.995300] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    4.999964] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    5.005670] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    5.010664] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller

[    5.018249] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    5.019596] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 1

[    5.024052] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    5.105399] ttyS0 - failed to request DMA

[    5.109909] xhci-hcd xhci-hcd.6.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010

[    5.111122] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    5.119558] xhci-hcd xhci-hcd.6.auto: irq 10, io mem 0x98029000

[    5.132547] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    5.138786] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19

[    5.152953] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    5.152958] usb usb1: Product: xHCI Host Controller

[    5.161811] rtkemmc_set_rspparam : cmd7 arg : 0x00010000

[    5.165351] usb usb1: Manufacturer: Linux 4.19.16-rtd1295 xhci-hcd

[    5.170791] rtkemmc_set_rspparam : cmd7 with rsp

[    5.177120] usb usb1: SerialNumber: xhci-hcd.6.auto

[    5.187154] hub 1-0:1.0: USB hub found

[    5.191862] hub 1-0:1.0: 1 port detected

[    5.196171] xhci-hcd xhci-hcd.6.auto: xHCI Host Controller

[    5.201810] xhci-hcd xhci-hcd.6.auto: new USB bus registered, assigned bus number 2

[    5.209664] xhci-hcd xhci-hcd.6.auto: Host supports USB 3.0  SuperSpeed

[    5.216510] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.

[    5.224912] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19

[    5.233390] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    5.240792] usb usb2: Product: xHCI Host Controller

[    5.240796] usb usb2: Manufacturer: Linux 4.19.16-rtd1295 xhci-hcd

[    5.252125] usb usb2: SerialNumber: xhci-hcd.6.auto

[    5.256782] EMMC: set_freq to 0x46, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00464388, PLL_EMMC4=00000007

[    5.257346] hub 2-0:1.0: USB hub found

[    5.270121] EMMC, set_ip_div = cur_div(0x00000080), ignored.

[    5.273978] hub 2-0:1.0: config failed, hub doesn't have any ports! (err -19)

[    5.279843] set bus width 8

[    5.279848] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    5.287435] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_init_gpio_power_on for 98013c00.rtk_dwc3_u2host

[    5.288528] Waiting for root device /dev/mmcblk0p1...

[    5.297285] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    5.306148] rtk-dwc3 98013c00.rtk_dwc3_u2host: dwc3_rtk_probe_work End ... ok! (take 584 ms)

[    5.306162] rtk-dwc3 98013e00.rtk_dwc3_u3host: dwc3_rtk_probe_work Start ...

[    5.311331] EMMC: set div to 0x00, EMMC_CLKDIV=00000000

[    5.324614] dwc3 981f0000.dwc3_u3host: rtk dwc3 fixed dwc3 globals register start address 0x(____ptrval____)

[    5.332963] set bus width 8

[    5.332966] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    5.333447] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    5.376907] EMMC, set_ip_div = cur_div(0x00000000), ignored.

[    5.382792] set bus width 8

[    5.385657] EMMC: set to 0x00010000, EMMC_CTYPE=00010000

[    5.391098] host->card is null!

[    5.394406] EMMC: set_wrapper_div to 0x00002100

[    5.399460] EMMC: set_freq to 0xa6, EMMC_CKGEN_CTL=0x00002100, PLL_EMMC1=00000003, PLL_EMMC2=04517893, PLL_EMMC3=00a64388, PLL_EMMC4=00000007

[    5.412460] EMMC, set_ip_div = cur_div(0x00000000), ignored.

[    5.418551] Inherit bootcode tuning phase: TX=0x12, RX=0x7

[    5.434326] HS200: final phase=0x793

[    5.438066] xhci-hcd xhci-hcd.6.auto: port_event call RTK_usb2_phy_toggle (port=0)

[    5.438104] dwc3 981f0000.dwc3_u3host: will try to initialize core

[    5.445832] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    5.452185] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: rtk_usb_phy_init Init RTK USB 3.0 PHY

[    5.464294] rtk-usb2phy 98031280.dwc3_u2host_usb2phy: do_rtk_usb2_phy_toggle connect to set Page0 0xE7 = 81

[    5.471849] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: do_rtk_usb_phy_init Init RTK USB 3.0 PHY phy#0

[    5.481824] usb usb1-port1: port 1, status 0101, change 0000, 12 Mb/s

[    5.497006] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: do_rtk_usb3_phy_toggle ########## to toggle PHY addr 0x09 BIT(9)

[    5.498141] mmc1: new HS200 MMC card at address 0001

[    5.510019] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: do_rtk_usb3_phy_toggle ########## PHY addr 0x1f = 0x90001f10

[    5.514483] mmcblk1: mmc1:0001 NCard  14.5 GiB

[    5.524403] rtk-usb3phy 98013e10.dwc3_u3host_usb3phy: rtk_usb_phy_init Initialized RTK USB 3.0 PHY

[    5.524408] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    5.529568] mmcblk1boot0: mmc1:0001 NCard  partition 1 4.00 MiB

[    5.538224] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    5.547391] mmcblk1boot1: mmc1:0001 NCard  partition 2 4.00 MiB

[    5.552972] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    5.562455] mmcblk1rpmb: mmc1:0001 NCard  partition 3 4.00 MiB, chardev (247:0)

[    5.569442] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    5.582143]  mmcblk1: p1 p2 p3 p4 < p5 p6 p7 p8 p9 p10 >

[    5.587051] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    5.688063] usb 1-1: new high-speed USB device number 2 using xhci-hcd

[    5.688242] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    5.703399] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    5.712879] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    5.725019] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    5.735264] rtk-usb2phy 981f8280.dwc3_u3host_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    5.744531] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller

[    5.750163] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned bus number 3

[    5.758626] xhci-hcd xhci-hcd.7.auto: hcc params 0x0220fe64 hci version 0x110 quirks 0x0000000002010010

[    5.768270] xhci-hcd xhci-hcd.7.auto: irq 10, io mem 0x981f0000

[    5.774537] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19

[    5.783014] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    5.790415] usb usb3: Product: xHCI Host Controller

[    5.795415] usb usb3: Manufacturer: Linux 4.19.16-rtd1295 xhci-hcd

[    5.801749] usb usb3: SerialNumber: xhci-hcd.7.auto

[    5.807021] hub 3-0:1.0: USB hub found

[    5.810923] hub 3-0:1.0: 1 port detected

[    5.815241] xhci-hcd xhci-hcd.7.auto: xHCI Host Controller

[    5.820885] xhci-hcd xhci-hcd.7.auto: new USB bus registered, assigned bus number 4

[    5.828749] xhci-hcd xhci-hcd.7.auto: Host supports USB 3.0  SuperSpeed

[    5.835597] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.

[    5.844151] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19

[    5.852571] usb 1-1: New USB device found, idVendor=0bda, idProduct=0823, bcdDevice= 2.00

[    5.852576] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[    5.852580] usb 1-1: Product: 802.11ac WLAN Adapter

[    5.852583] usb 1-1: Manufacturer: Realtek

[    5.852587] usb 1-1: SerialNumber: 00e04c000001

[    5.852628] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    5.868311] usb usb4: Product: xHCI Host Controller

[    5.877686] usb usb4: Manufacturer: Linux 4.19.16-rtd1295 xhci-hcd

[    5.901051] usb usb4: SerialNumber: xhci-hcd.7.auto

[    5.906288] hub 4-0:1.0: USB hub found

[    5.910177] hub 4-0:1.0: 1 port detected

[    5.914578] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_init_gpio_power_on for 98013e00.rtk_dwc3_u3host

[    5.925718] rtk-usb-manager 98000000.rtk_usb_power_manager: __port3_gpio_on_off to set port3 power on by gpio (id=133) OK

[    5.936951] rtk-dwc3 98013e00.rtk_dwc3_u3host: dwc3_rtk_probe_work End ... ok! (take 632 ms)

[    5.945611] rtk-ehci 98013000.ehci: ehci_rtk_probe_work Start ...

[    5.951866] rtk-usb-phy-rle0599 98013824.usb_phy_rle0599: Init RTK USB phy-rle0599

[    5.959691] rtk-usb-phy-rle0599 98013824.usb_phy_rle0599: rtk_rle0599_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    5.972180] rtk-usb-phy-rle0599 98013824.usb_phy_rle0599: drivers/usb/phy/phy-rtk-rle0599.c Initialized RTK USB PHY rle0599

[    5.983598] rtk-ehci 98013000.ehci: EHCI Host Controller

[    5.989050] rtk-ehci 98013000.ehci: new USB bus registered, assigned bus number 5

[    5.997019] rtk-ehci 98013000.ehci: irq 10, io mem 0x98013000

[    6.016075] rtk-ehci 98013000.ehci: USB 2.0 started, EHCI 1.00

[    6.024283] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19

[    6.033110] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1

[    6.033119] usb usb5: Product: EHCI Host Controller

[    6.046241] usb usb5: Manufacturer: Linux 4.19.16-rtd1295 ehci_hcd

[    6.046246] usb usb5: SerialNumber: 98013000.ehci

[    6.057685] hub 5-0:1.0: USB hub found

[    6.061561] hub 5-0:1.0: 1 port detected

[    6.065825] rtk-usb-manager 98000000.rtk_usb_power_manager: rtk_usb_init_gpio_power_on for 98013000.ehci

[    6.075542] rtk-ehci 98013000.ehci: ehci_rtk_probe_work End ... ok! (take 128 ms)

[    6.083239] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: dwc3_rtk_type_c_probe_work Start ...

[    6.092070] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: dwc3_rtk_type_c_init set debounce = 0x7f (check--> 0xff)

[    6.102686] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: switch_dwc3_mode dr_mode=0

[    6.110621] dwc3 98020000.dwc3_drd: dwc3_drd_to_stop_all START....

[    6.116953] dwc3 98020000.dwc3_drd: dwc3_gadget_exit Enter

[    6.122688] dwc3 98020000.dwc3_drd: dwc3_gadget_exit Exit

[    6.128223] dwc3 98020000.dwc3_drd: dwc3_drd_to_stop_all END....

[    6.134378] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: DWC3_DRD run in USB_DR_MODE_PERIPHERAL at DRD mode

[    6.484159] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: dwc3_rtk_type_c_probe_work End ... ok! (take 404 ms)

[    6.494483] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: host_device_switch: usb cable connection change

[    6.504329] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: host_connected: a Host connect

[    6.512655] rtk-dwc3-type_c 98013200.rtk_dwc3_drd_type_c: switch_dwc3_mode dr_mode=USB_DR_MODE_PERIPHERAL

[    6.522493] dwc3 98020000.dwc3_drd: dwc3_drd_to_device START....

[    6.529105] rtk-usb3phy 98013210.dwc3_drd_usb3phy: rtk_usb_phy_init Init RTK USB 3.0 PHY

[    6.537437] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb_phy_init Init RTK USB 3.0 PHY phy#0

[    6.553229] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb3_phy_toggle ########## to toggle PHY addr 0x09 BIT(9)

[    6.565260] rtk-usb3phy 98013210.dwc3_drd_usb3phy: do_rtk_usb3_phy_toggle ########## PHY addr 0x1f = 0x70001f10

[    6.575632] rtk-usb3phy 98013210.dwc3_drd_usb3phy: rtk_usb_phy_init Initialized RTK USB 3.0 PHY

[    6.584585] rtk-usb2phy 98028280.dwc3_drd_usb2phy: rtk_usb2_phy_init Init RTK USB 2.0 PHY

[    6.592998] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_init Init RTK USB 2.0 PHY phy#0

[    6.602262] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_toggle ########## to toggle Page1 addr 0xe0 BIT(2)

[    6.614182] rtk-usb2phy 98028280.dwc3_drd_usb2phy: do_rtk_usb2_phy_toggle disconnect to set Page0 0xE7 = f1

[    6.624194] rtk-usb2phy 98028280.dwc3_drd_usb2phy: rtk_usb2_phy_init Initialized RTK USB 2.0 PHY

[    7.092171] ahci_rtk 9803f000.sata: masking port_map 0x3 -> 0x1

[    7.098364] ahci_rtk 9803f000.sata: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x1 impl platform mode

[    7.107506] ahci_rtk 9803f000.sata: flags: ncq sntf pm led clo only pmp fbs pio slum part ccc sadm sds apst

[  243.124132] INFO: task kworker/2:2:1004 blocked for more than 120 seconds.

[  243.131217]       Not tainted 4.19.16-rtd1295 #5.77

[  243.136252] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.

[  243.144302] kworker/2:2     D    0  1004      2 0x00000028

[  243.149987] Workqueue: events rtk_sata_host_ctrl

[  243.154752] Call trace:

[  243.157705]  __switch_to+0x6c/0x90

[  243.161232]  __schedule+0x1f8/0x678

[  243.164845]  schedule+0x24/0x80

[  243.168101]  schedule_timeout+0x214/0x398

[  243.172643]  wait_for_common+0x100/0x218

[  243.177044]  wait_for_completion+0x14/0x20

[  243.181280]  __flush_work+0x114/0x250

[  243.185066]  flush_work+0x10/0x18

[  243.188503]  drain_all_pages+0x184/0x288

[  243.192558]  start_isolate_page_range+0x1c4/0x2f8

[  243.197418]  alloc_contig_range+0xf4/0x3e8

[  243.201650]  cma_alloc+0x12c/0x238

[  243.205175]  dma_alloc_from_contiguous+0x3c/0x48

[  243.209942]  dma_direct_alloc+0x90/0x1e0

[  243.214005]  swiotlb_alloc+0x3c/0x178

[  243.217792]  __dma_alloc+0xbc/0x200

[  243.221404]  dmam_alloc_coherent+0xb0/0x168

[  243.225723]  ahci_port_start+0xac/0x1c8

[  243.229699]  ata_host_start.part.7+0x104/0x210

[  243.234286]  ata_host_activate+0x64/0x148

[  243.238428]  ahci_host_activate+0x16c/0x1c8

[  243.242747]  ahci_platform_init_host+0x3b0/0x460

[  243.247517]  rtk_sata_host_ctrl+0x15c/0x198

[  243.251837]  process_one_work+0x1e4/0x360

[  243.255978]  worker_thread+0x48/0x4b0

[  243.259767]  kthread+0x128/0x130

[  243.263117]  ret_from_fork+0x10/0x1c

 

The board can boot without USB drivers, but that only masks the real problem (I think). Deactivating the AHCI-RTK-driver just leads to another type of crash and I think, this is not the source of failure.

 

But anyway, I learned a thing or two and I do not consider the unsuccessful work of the last few weeks as wasted time.

I will try to clean up some things in the 4.9.-branch (basically only the compiler warnings) and return to the plan to do a eMMc-only boot.  And I still have to explain, how I bricked my first box ... ;)

Link to comment
Share on other sites

2 hours ago, Staars said:

It seems, like I hit a wall with my attempts (to port 4.9. to 4.19.). This is simply unknown territory for me and "too low level".

Hi Staars,

First, I commend you for your porting effort. And here is a quick tip for kernel development, in case you have not done it yet: check the MAINTAINERS file in the kernel source for the list of people who are maintaining the arm64 Realtek code, and correspond directly with the kernel developers.

Next, be methodical about your development work. Just like the Linux kernel required the work of thousands of talented programmers, your development effort will require the cooperation of more persons, you can't do everything alone. Make a list of objectives and tackle them one by one, with all the help you can get from every single source you can try, including the good programmers at Realtek.

So again: great work! Carry on! :thumbup:

Link to comment
Share on other sites

9 hours ago, AndrewDB said:

check the MAINTAINERS file in the kernel source for the list of people who are maintaining the arm64 Realtek code,

basically for the SoC in question there are only a few people working on it.. One is Andreas Färber (https://github.com/afaerber) but if you look into his rdt1295 branch, there isn't much activity.. https://github.com/afaerber/linux/commits/rtd1295-next

 

Last thing I heard is that the irqchip driver has some bugs which avoids further upstreaming the SoC.. You won't find him here cause he works for suse, so probably not the guy you find on a debian related project. ;) But on github he has also a mail address, so you might get in contact with him there.. I've a BPi-W2 at home but I'm very limited in time atm so I won't dig into it (at least for the next 2 months) - and my kernel related experience is also very limited. Maybe @Nora Lee or @Lion Wang might be interested in this work cause the W2 is their product, and I'm quite sure they would like to see a more recent kernel for their board.

 

Maybe @parrotgeek1 can also help you a bit.. At least he had a look into the code when Sinovoip released their kernel: https://github.com/BPI-SINOVOIP/BPI-W2-bsp/issues/1#issuecomment-423243677

 

Since their kernel has more or less no git history.. Dig into changes is a bit harder than with a well sorted kernelsource.

Link to comment
Share on other sites

Thanks to all for the recent responses! It helps to keep the motivation above zero and yes, maybe it is time to search for external help.

 

But now the short guide "how to brick such a box":

It was not bad luck but active stupitidy.

Some weeks ago in a mixture of impatience, lack of time and sleep I decided to try out various commands of the u-boot-shell. Before that I had to reflash my box several times, which worked easily and besides I was under the (incorrect) impression, that things like the RPMB were already written to the box by the vendor. That led to a situation of recklessness. 

So I typed in the command:  m m c  k s (I added additional spaces here to avoid dangerous copy-and-paste-actions!!)

The I got:

Spoiler

ready to burn

start program : start

startbit = 2048, totalbytes = 16

 

Byte[0]: 11010010

Byte[1]: 10001101

Byte[2]: 10000101

Byte[3]: 01110111

Byte[4]: 11000100

Byte[5]: 01001110

Byte[6]: 01011010

Byte[7]: 01001011

Byte[8]: 11001101

Byte[9]: 10110001

Byte[10]: 10110010

Byte[11]: 01011011

Byte[12]: 11011001

Byte[13]: 01010100

Byte[14]: 01010100

Byte[15]: 01011000OTP_Program_End : done

 

start program : end

burned done!

ks:85b8847771953d2598696c3f0047800b

 

That did not look promising and it turned out to do the bricking.

The good thing is, that you have to actively kill the box and it should not happen so easy.

So the general advice of common sense is valid here too: Do not do things in a hurry, read through every available resource before you press enter button!

 

My last try to recover the box  would be to solder a SPI flash chip onto the PCB and flash it with the REALTEK tool. Can someone provide a hint which chip type could be compatible?

Link to comment
Share on other sites

maybe the one soldered on the BPi W2?

 

It's a winbond 25q128jvsq

 

from the few pictures I found online there seems to be a reference design part (likely some sort of pmic related stuff) where it should be possible.

Link to comment
Share on other sites

On 3/5/2019 at 3:26 AM, Staars said:

ATM, I assume that there is no SPI on the Lake-Box.

 

Take a pic of the board - both sides, and folks can tell you if there is a SPI-NOR (it's not a ROM, BTW)...

 

FWIW - any time one is bringing up a board, this is useful info to have, along with a bootlog or dmesg on a fresh boot...

 

The /cat/proc/mtd will show if there is SPI-NOR

 

Someone with some spare time could script this I suppose...

cat /proc/version
cat /proc/cmdline
cat /proc/cpuinfo
cat /proc/meminfo
cat /proc/devices
cat /proc/mtd
ls /sys/devices/platform
ls /sys/class/net
ifconfig -a

See attached - this is NanoPi Neo2, the other is from a Qualcomm Atheros IPQ4018 board (interesting device with Wave2 WiFi)

 

nanopineo2_boardinfo.txt

ipq4018_boardinfo.txt

Link to comment
Share on other sites

Okay, my first try with the addition of SPI-Flash did not work, which may have many different reasons:

 

IMG_4153.thumb.jpeg.2fccbff3252110614958ac6a9edd8615.jpeg

 

1. The wrong chip. I only had 64mb-chips at hand and ordered the version, that chwe mentioned (winbond 25q128jvsq).

2. Defective chip, bad soldering (did resolder twice)?

3. The need to add or remove a resistor somewhere?

4. A complete misconception on my side, how the things are working on this platform. I did not find any documentation regarding this topic.

 

The early boot log on my bricked device looks like this:

C1:80000000
C2
+
C3hswitch frequency to 0x00000046
frequency divider is 0x00000080
switch frequency to 0x00000046
frequency divider is 0x00000004
switch to SDR 8 bit
switch bus width to 0x00000008 bits success
1
hwsetting size: 00000708
C4
f 
5-5
Goto FSBL: 0x10100000
<=============================================>
fsbl_main: sys_secure_type = 0x0000DAAA
fsbl_main: sys_boot_type = 0x00000002
fsbl_main: sys_boot_enc = 0x00000000
fsbl_main: sys_bisr_done = 0x00000000
OTP verification fail
ret = 0x00000095
Return from FSBL(ret = 0x00000095)
00000000C7
C1:80000000
C2
+uu3-1

When I press one of the hidden buttons I get this:

C1:80000000
C2
+uu3-1

My assumption was, that '+uu3-1' looks for SPI, but that may be completely wrong.

 

The behaviour before and after soldering was completely identical. I could not reach the SPI-prompt with ctrl-q nor see any positive response with the KYLIN-RECOVERY-TOOL in Win 10.

 

I wait for the new chips.

Link to comment
Share on other sites

Wow, You have a W2?! Then it should be possible to make an Armbian build for it with minor modifications (the dts is already in the repo) and nowI know how you have figured out the SPI chip type ;).

 

Yes, your early boot log should be very helpful. But no need to hurry, I am a bit short of time atm.

Link to comment
Share on other sites

Not much to tell at the moment (and recently I am a bit time constrained):

 

Updated the 4.9.-kernel and checked with debian buster without problems. It may be coincidence, but the slight sluggishness of the WIFI-connection was totally gone today.

Spoiler

_          _          _

| |    __ _| | _____  / |

| |   / _` | |/ / _ \ | |

| |__| (_| |   <  __/ | |

|_____\__,_|_|\_\___| |_|

                         

 

Welcome to ARMBIAN 5.86 user-built Debian GNU/Linux buster/sid 4.9.174-rtd1295   

System load: 1.02 1.29 1.00  Up time:       17 min

Memory usage: 6 % of 1636MB IP:            192.168.0.116

CPU temp:      47°C           

Usage of /:    17% of 7.1G   

 

[ General system configuration (beta): armbian-config ]

 

Last login: Thu May 16 08:37:33 2019 from 192.168.0.114

 

The update of 4.19.16 to 4.19.41 did not change anything perceptible. I still assume, that something "quite low level" is broken in the DMA-land. 

Link to comment
Share on other sites

Hi guys, I have Zidoo X8 which is basically X9S with unpopulated SATA connectors.

Here is my bootlog:

https://pastebin.com/CJ2wQiLz

eMMC dump:

https://cloud.danman.eu/index.php/s/3mQkrXj8Kk2Hf5w

u-boot env:

Realtek> env print
baudrate=115200
bootcmd=bootr
bootcode2nd_loadaddr=0x00021000
bootcode2ndtmp_loadaddr=0x01500000
bootdelay=0
ethact=r8168#0
ethaddr=80:0A:80:5A:4D:1E
fdt_loadaddr=0x01F00000
gatewayip=192.168.100.254
ipaddr=192.168.100.1
kernel_loadaddr=0x03000000
mtd_part=mtdparts=rtk_nand:
netmask=255.255.255.0
rescue_audio=bluecore.audio
rescue_dtb=rescue.emmc.dtb
rescue_rootfs=rescue.root.emmc.cpio.gz_pad.img
rescue_vmlinux=emmc.uImage
rootfs_loadaddr=0x02200000
serverip=192.168.100.2

Environment size: 516/131068 bytes

 

Do you have any image I can try? I'm lazy to compile...

 

Link to comment
Share on other sites

15 hours ago, danman said:

Do you have any image I can try? I'm lazy to compile...

Hi,

Staars and I, we have compiled an image locally from his config pushed to armbian build script. LakeI is available in csc tv boxes when launching compile.sh. I have a slow connection and no cloud system account, so it will be faster for you to compile an image by yourself.

For zidoo x8 the device tree may be different, so you'd better try to extract the android dtb to build one for linux from lakeI dtb.

Link to comment
Share on other sites

I can only repeat, what jeanrhum said.

 

IMO opinion the chance, that the current image will work is relatively good. These boxes seem to be quite similiar. The different chip versions (lake1 is A, zidoo X8 reports revision B in your post) should be handled in u-boot and the soc drivers.

 

I think in the current state, it does not make sense to upload an image, which must be booted in a rather complicated way. So the hurdle of compiling the image yourself is a little test, if you are worth to be part of the very exclusive club of realtek-1295-linux-users (2 members, I guess) :D.

Good luck and please report success or the lack thereof.

Link to comment
Share on other sites

Houston, we have a problem. I don't have `sd` command in my uboot:

 

Realtek> 
Realtek> help
b2ndbc  - load 2nd stage bootcode
bdinfo  - print Board Info structure
bootm   - boot application image from memory
bootr   - boot realtek platform
dcache  - enable or disable data cache
env     - environment handling commands
factory - FACTORY sub system
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
gettime - get timer val elapsed
go      - start application at address 'addr' or start running fw
goru    - start rescue linux from usb
help    - print command description/usage
icache  - enable or disable instruction cache
keyset  - keyset - write keyset file into factory area
loady   - load binary file over serial line (ymodem mode)
md      - memory display
mmc     - MMC sub system (patch for rtd299x)
mtest   - simple RAM read/write test
mtest2  - simple RAM read/write test
mw      - memory write (fill)
ping    - send ICMP ECHO_REQUEST to network host
reset   - Perform RESET of the CPU
rtkemmc - RTK EMMC functions
saveenv - save environment variables to persistent storage
source  - run script from memory
tftp    - download image from TFTP server
tftpput - TFTP put command, for uploading files to a server
uart_write- for uart mp tool burn mac and sn key

unzip   - unzip a memory region
usb     - USB sub-system
Realtek> 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines