Configuring kernel before building

Do you know how I could change the kernel config as part of building a kernel? I cannot find a config file in your repos.

Hi, Martin

You can refer the wiki build kernel section.

https://wiki.radxa.com/Rockpi4/dev/Debian#Build_kernel

Thanks for this. I’ll try it when I have time.

I’m currently trying to run the Debian build on the Ubuntu 64-bit image. So far I am getting an error ./build/mk-uboot.sh: line 86: /media/rock/BackupShenzhen/xiaomading/kernel3/rockchip-bsp/rkbin/tools/loaderimage: cannot execute binary file: Exec format error when I run mk-uboot. It seems that the rkbin/tools directory is full of x86 executables, which of course do not run on the Rock Pi 4.

Is it correct to say that the instructions only work on x86 Debian/Ubuntu boxes? If so, we might say so in the instructions.

Edit: I’ll probably just use the supplied Ubuntu image.

Yes, some pre-built binaries is x86 only. So it won’t build on ROCK Pi 4.

Jack, may I ask which file I need to change if I want to enable pin 8/10 TxD/RxD? There are 2 rockpi-4b-linux.dts files, one in kernel/arch/arm64/boot/… and one in u-boot/arch/arm…, I assume the 1st one is for arm64 and the 2nd one is for armhf? The location seems to be inconsistent, and the file structures are quite different too. Besides I don’t know what exactly need to be done, is adding these enough to make those pins working?

&uart1 {
status = “okay”;
};

I’m talking about Debian, not Ubuntu build.

Hi, O635789

To fix the issue about UART, we have just released the newest version of u-boot, kernel and rockpi4-dtbo package.

  1. To update u-boot, do:
sudo su
apt-get install rockpi4b-rk-u-boot-lastest
 
cd /usr/local/sbin/
./rockpi4b_upgrade_bootloader.sh
  1. To update kernel, do:
apt-get install linux-4.4-lastest
  1. To install dtbo packages, do:
apt-get install rockpi4-dtbo
  1. Want to use UART2, you can uncomment the following line in file /boot/hw_intfc.conf .
intfc:dtoverlay=console-disabled

Finally, reboot your ROCK Pi 4.
Bty, for more details about device tree overlay, check file /usr/local/share/doc/rockpi4-dtbo/README in ROCK Pi 4.

1 Like

@Stephen it doesn’t seem to be working. I changed hw_intc.conf to:
# setting off disables i2c6 bus and setting on enables i2c6 bus.

intfc:pwm0=off
intfc:pwm1=off
intfc:uart2=on
intfc:uart4=off
intfc:spi1=off
intfc:spi2=off
intfc:i2c2=off
intfc:i2c6=off
intfc:i2c7=off

#intfc:dtoverlay=at24c02
#intfc:dtoverlay=two-color-led
intfc:dtoverlay=console-disabled
#intfc:dtoverlay=console-on-uart4

and rebooted, check who:
linaro@linaro-alip:/boot$ who
root ttyFIQ0 2019-03-01 19:39
linaro tty7 2019-03-01 19:39 (:0)

ttyFIQ0 is still hanging there. I tried ttyS0, ttyS1, ttyS2, ttyS3 in Z-Way, the HAT couldn’t talk to any of them…

Back to my own build. I was able to disable fiq_debugger in the DTS and turn related features off in defconfig. I built for ARM64 thinking I might be able to find the ARM64 version of Z-Way or bottom line was to make OpenZWave or Home Assistant from the source code, all hit the dead end. The 2 open source apps need to be build in docker, so I downloaded docker and the daemon failed, took me hours to figure out the Overlay and AUFS were missing from the kernel.

Linux sucks, man. I spent way too much time on this thing, when I could just get a SmartThings or Vera hub. At this point my Rock Pi 4 set up is already more expensive than SmartThings or other alternatives. I hope it ultimately worth the effort. I’d rebuild Debian for armhf.

By the way, the ARM64 build somehow lost the WiFi stuff, I guess some kind of conflicts with UARTs.

@Stephen I saw your updates on github, the code makes sense, somehow the FIQ_DEBUGGER is still alive. Was the overlay not loaded properly? I made the same change directly in the DTS and rebuilt the whole system the debugger was apparently gone.

Hi, O635789

For rockpi-4b-linux.dts file, the one in kernel/arch/arm64/boot/dts/rockchip provides most of the hardware resources. So you can modify this one when you want to use UART, SPI, I2C and etc

As for UART on ROCK Pi 4, UART0 function pins are used for the communication between RK3399 Soc and AP6256 chip. UART1 and UART3 cannot be used since their pins are used for other function. While UART2 and UART4 are free to use.

@O635789 rockpi-4b-linux.dts is the basic tree. To support more features, use the device tree overlay. You can install rockpi4-dtbo package directly. Another way is adding file hw_intc.conf in /boot
and .dtbo files in /boot/overlays.

I see. Since I tried hw_intc.conf not working at this point, I’d would like to load it directly, how I’m supposed to do that? By the way, I’m building armhf now, should I set ARCH to arm instead of arm64 before building the kernel? What’s CROSS_COMPILE should I use in that case? Thanks

You should always to build the kernel for ROCK Pi 4 with ARCH64 and arm64 toolchain as described here:

https://wiki.radxa.com/Rockpi4/dev/kernel-4.4

The user space binaries are armhf for official Debian desktop currently.

@O635789 Well!

Firstly, you can load hw_intc.conf and .dtbo files by installing rockpi4-dtbo package.

$ sudo apt-get update
$ sudo apt-get install rockchip-overlay
$ sudo apt-get install rockchip-fstab
$ sudo apt-get install rockpi4-dtbo

Secondly, we have only arm64 kernel version for ROCK Pi 4, so you don’t have to set ARCH to arm.

It’s still not working, the fiq_debugger keeps coming up no matter how I tweak hw_intfc.conf. I can see it in the log:

linaro@linaro-alip:~$ dmesg | grep -e tty -e fiq
[ 0.003081] console [tty0] enabled
[ 0.148530] Registered FIQ tty driver
[ 0.232323] console [ttyFIQ0] enabled
[ 0.232875] Registered fiq debugger ttyFIQ0
[ 0.935096] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 37, base_baud = 1500000) is a 16550A
[ 0.936222] rockchip-pinctrl pinctrl: pin gpio4-19 already requested by fiq-debugger; cannot claim for ff1a0000.serial
[ 0.939880] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 38, base_baud = 1500000) is a 16550A
[ 0.941315] ff370000.serial: ttyS4 at MMIO 0xff370000 (irq = 40, base_baud = 1500000) is a 16550A
[ 6.611968] ttyS0 - failed to request DMA, use interrupt mode

The GPIO pins are really confusing, which pin exactly is gpio4-19 in the message? There are many different way to calculate the PIN on the internet (including one from wiki.radxa), but didn’t find one to get a number that makes sense. 32*4 + 19 = 147 makes it pin 10, but on the pinout diagram it’s labelled as GPIO4_C3. I guess whoever designed the whole GPIO mess just got too much time to kill and assume other people have the same luxury LOL

Hi, @O635789

Pin gpio4-19 is GPIO4_C3 (also pin UART2_RXD). Here gpio4 means GPIO4 group( Others groups are GPIO0 GPIO1 GPIO2 GPIO3). Every group has pins A0~A7 B0~B7 C0~C7 D0~D7.

A0~A7 <---> 0-7
B0~B7 <---> 8-15
C0~C7 <---> 16-23
D0~D7 <---> 24-31

From above, we know that 19 corresponds to C3.

Calculation method such as “32*4 + 19 = 147” is used for controlling the GPIO in userspace. You can check https://wiki.radxa.com/Rockpi4/hardware/gpio.

So the overlay turning off fiq_debugger somehow is not loaded or not effective, even if it’s configured in hw_intfc.conf. Could you please take a look at the issue? Thanks. I tried both of the methods you provided strictly.

Hi, @O635789

hw_intfc.config and dtbo files are parsed by u-boot. Can you see the u-boot log? The hw_intfc.config and dtbo files are read.

Is okay to copy the u-boot and kernel log to here?

OK, I don’t know how to get u-boot log, but I’m attaching the kernel log from the beginning to UART2 failed to get the pins:

Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Booting Linux on physical CPU 0x0
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Initializing cgroup subsys cpuset
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Initializing cgroup subsys cpu
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Linux version 4.4.154 (v@mrs-hebe) (gcc version 7.3.1 20180425 [linaro-7.3-2018.05 revision d29120a424ecfbc167ef90065c0eeb7f91977701] (Linaro GCC 7.3-2018.05) ) #13 SMP Mon Nov 5 18:25:35 CST 2018
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Boot CPU: AArch64 Processor [410fd034]
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Reserved memory: failed to reserve memory for node ‘drm-logo@00000000’: base 0x0000000000000000, size 0 MiB
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] On node 0 totalpages: 1015296
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] DMA zone: 15864 pages used for memmap
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] DMA zone: 0 pages reserved
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] DMA zone: 1015296 pages, LIFO batch:31
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] psci: probing for conduit method from DT.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] psci: PSCIv1.0 detected in firmware.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] psci: Using standard PSCI v0.2 function IDs
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] PERCPU: Embedded 21 pages/cpu @ffffffc0f7ed6000 s45800 r8192 d32024 u86016
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] pcpu-alloc: s45800 r8192 d32024 u86016 alloc=21*4096
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Detected VIPT I-cache on CPU0
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] CPU features: enabling workaround for ARM erratum 845719
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 999432
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Kernel command line: earlyprintk rw root=PARTUUID=b921b045-1d rootfstype=ext4 init=/sbin/init rootwait
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] PID hash table entries: 4096 (order: 3, 32768 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Dentry cache hash table entries: 524288 (order: 10, 4194304 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Inode-cache hash table entries: 262144 (order: 9, 2097152 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] software IO TLB [mem 0xef400000-0xf3400000] (64MB) mapped at [ffffffc0ef400000-ffffffc0f33fffff]
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Memory: 3902456K/4061184K available (11646K kernel code, 1706K rwdata, 4408K rodata, 1152K init, 758K bss, 158728K reserved, 0K cma-reserved)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Virtual kernel memory layout:
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] modules : 0xffffff8000000000 - 0xffffff8008000000 ( 128 MB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] vmalloc : 0xffffff8008000000 - 0xffffffbdbfff0000 ( 246 GB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] .init : 0xffffff8009040000 - 0xffffff8009160000 ( 1152 KB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] .text : 0xffffff8008080000 - 0xffffff8008be0000 ( 11648 KB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] .rodata : 0xffffff8008be0000 - 0xffffff8009040000 ( 4480 KB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] .data : 0xffffff8009160000 - 0xffffff800930a808 ( 1707 KB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] vmemmap : 0xffffffbdc0000000 - 0xffffffbfc0000000 ( 8 GB maximum)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] 0xffffffbdc0008000 - 0xffffffbdc3e00000 ( 61 MB actual)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] fixed : 0xffffffbffe7fb000 - 0xffffffbffec00000 ( 4116 KB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] PCI I/O : 0xffffffbffee00000 - 0xffffffbfffe00000 ( 16 MB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] memory : 0xffffffc000200000 - 0xffffffc0f8000000 ( 3966 MB)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=6, Nodes=1
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Hierarchical RCU implementation.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Build-time adjustment of leaf fanout to 64.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=6.
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=64, nr_cpu_ids=6
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] NR_IRQS:64 nr_irqs:64 0
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] GIC: Using split EOI/Deactivate mode
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] ITS: /interrupt-controller@fee00000/interrupt-controller@fee20000
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] ITS: allocated 65536 Devices @300000 (psz 64K, shr 0)
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] ITS: using cache flushing for cmd queue
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] GIC: using LPI property table @0x0000000000290000
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] ITS: Allocated 1792 chunks for LPIs
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] CPU0: found redistributor 0 region 0:0x00000000fef00000
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] CPU0: using LPI pending table @0x00000000002a0000
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] GIC: using cache flushing for LPI property table
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] GIC: PPI partition interrupt-partition-0[0] { /cpus/cpu@0[0] /cpus/cpu@1[1] /cpus/cpu@2[2] /cpus/cpu@3[3] }
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] GIC: PPI partition interrupt-partition-1[1] { /cpus/cpu@100[4] /cpus/cpu@101[5] }
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_mmc_get_phase: invalid clk rate
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop0_frac as parent of dclk_vop0, rate changes may not work
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] rockchip_clk_register_frac_branch: could not find dclk_vop1_frac as parent of dclk_vop1, rate changes may not work
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
Mar 6 18:05:09 linaro-alip kernel: [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
Mar 6 18:05:09 linaro-alip kernel: [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
Mar 6 18:05:09 linaro-alip kernel: [ 0.001361] Console: colour dummy device 80x25
Mar 6 18:05:09 linaro-alip kernel: [ 0.003077] console [tty0] enabled
Mar 6 18:05:09 linaro-alip kernel: [ 0.003121] Calibrating delay loop (skipped), value calculated using timer frequency… 48.00 BogoMIPS (lpj=24000)
Mar 6 18:05:09 linaro-alip kernel: [ 0.003182] pid_max: default: 32768 minimum: 301
Mar 6 18:05:09 linaro-alip kernel: [ 0.003365] Mount-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.003405] Mountpoint-cache hash table entries: 8192 (order: 4, 65536 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.004182] Initializing cgroup subsys devices
Mar 6 18:05:09 linaro-alip kernel: [ 0.004225] Initializing cgroup subsys freezer
Mar 6 18:05:09 linaro-alip kernel: [ 0.004274] ftrace: allocating 42154 entries in 165 pages
Mar 6 18:05:09 linaro-alip kernel: [ 0.111855] sched-energy: Sched-energy-costs installed from DT
Mar 6 18:05:09 linaro-alip kernel: [ 0.111904] CPU0: update cpu_capacity 401
Mar 6 18:05:09 linaro-alip kernel: [ 0.111978] ASID allocator initialised with 32768 entries
Mar 6 18:05:09 linaro-alip kernel: [ 0.115282] PCI/MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
Mar 6 18:05:09 linaro-alip kernel: [ 0.115862] Platform MSI: /interrupt-controller@fee00000/interrupt-controller@fee20000 domain created
Mar 6 18:05:09 linaro-alip kernel: [ 0.117237] Detected VIPT I-cache on CPU1
Mar 6 18:05:09 linaro-alip kernel: [ 0.117268] CPU1: found redistributor 1 region 0:0x00000000fef20000
Mar 6 18:05:09 linaro-alip kernel: [ 0.117297] CPU1: using LPI pending table @0x00000000eed30000
Mar 6 18:05:09 linaro-alip kernel: [ 0.117339] CPU1: update cpu_capacity 401
Mar 6 18:05:09 linaro-alip kernel: [ 0.117343] CPU1: Booted secondary processor [410fd034]
Mar 6 18:05:09 linaro-alip kernel: [ 0.117874] Detected VIPT I-cache on CPU2
Mar 6 18:05:09 linaro-alip kernel: [ 0.117894] CPU2: found redistributor 2 region 0:0x00000000fef40000
Mar 6 18:05:09 linaro-alip kernel: [ 0.117920] CPU2: using LPI pending table @0x00000000eed50000
Mar 6 18:05:09 linaro-alip kernel: [ 0.117947] CPU2: update cpu_capacity 401
Mar 6 18:05:09 linaro-alip kernel: [ 0.117950] CPU2: Booted secondary processor [410fd034]
Mar 6 18:05:09 linaro-alip kernel: [ 0.118460] Detected VIPT I-cache on CPU3
Mar 6 18:05:09 linaro-alip kernel: [ 0.118480] CPU3: found redistributor 3 region 0:0x00000000fef60000
Mar 6 18:05:09 linaro-alip kernel: [ 0.118507] CPU3: using LPI pending table @0x00000000eeda0000
Mar 6 18:05:09 linaro-alip kernel: [ 0.118533] CPU3: update cpu_capacity 401
Mar 6 18:05:09 linaro-alip kernel: [ 0.118537] CPU3: Booted secondary processor [410fd034]
Mar 6 18:05:09 linaro-alip kernel: [ 0.119069] Detected PIPT I-cache on CPU4
Mar 6 18:05:09 linaro-alip kernel: [ 0.119096] CPU4: found redistributor 100 region 0:0x00000000fef80000
Mar 6 18:05:09 linaro-alip kernel: [ 0.119135] CPU4: using LPI pending table @0x00000000eede0000
Mar 6 18:05:09 linaro-alip kernel: [ 0.119173] CPU4: update cpu_capacity 1024
Mar 6 18:05:09 linaro-alip kernel: [ 0.119176] CPU4: Booted secondary processor [410fd082]
Mar 6 18:05:09 linaro-alip kernel: [ 0.119712] Detected PIPT I-cache on CPU5
Mar 6 18:05:09 linaro-alip kernel: [ 0.119730] CPU5: found redistributor 101 region 0:0x00000000fefa0000
Mar 6 18:05:09 linaro-alip kernel: [ 0.119766] CPU5: using LPI pending table @0x00000000eee10000
Mar 6 18:05:09 linaro-alip kernel: [ 0.119793] CPU5: update cpu_capacity 1024
Mar 6 18:05:09 linaro-alip kernel: [ 0.119796] CPU5: Booted secondary processor [410fd082]
Mar 6 18:05:09 linaro-alip kernel: [ 0.119896] Brought up 6 CPUs
Mar 6 18:05:09 linaro-alip kernel: [ 0.120577] SMP: Total of 6 processors activated.
Mar 6 18:05:09 linaro-alip kernel: [ 0.120609] CPU features: detected feature: GIC system register CPU interface
Mar 6 18:05:09 linaro-alip kernel: [ 0.120647] CPU: All CPU(s) started at EL2
Mar 6 18:05:09 linaro-alip kernel: [ 0.120716] alternatives: patching kernel code
Mar 6 18:05:09 linaro-alip kernel: [ 0.122144] devtmpfs: initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.138368] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
Mar 6 18:05:09 linaro-alip kernel: [ 0.138424] futex hash table entries: 2048 (order: 5, 131072 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.138901] pinctrl core: initialized pinctrl subsystem
Mar 6 18:05:09 linaro-alip kernel: [ 0.139136] regulator-dummy: no parameters
Mar 6 18:05:09 linaro-alip kernel: [ 0.139668] NET: Registered protocol family 16
Mar 6 18:05:09 linaro-alip kernel: [ 0.144547] cpuidle: using governor ladder
Mar 6 18:05:09 linaro-alip kernel: [ 0.148556] cpuidle: using governor menu
Mar 6 18:05:09 linaro-alip kernel: [ 0.148595] Registered FIQ tty driver

Mar 6 18:05:09 linaro-alip kernel: [ 0.262984] reg-fixed-voltage vcc5v0-host-regulator: vcc5v0_host supplying 0uV
Mar 6 18:05:09 linaro-alip kernel: [ 0.263105] of_get_named_gpiod_flags: parsed ‘gpio’ property of node ‘/vcc5v0-otg-regulator[0]’ - status (0)
Mar 6 18:05:09 linaro-alip kernel: [ 0.263146] vcc5v0_otg: no parameters
Mar 6 18:05:09 linaro-alip kernel: [ 0.263302] reg-fixed-voltage vcc5v0-otg-regulator: vcc5v0_otg supplying 0uV
Mar 6 18:05:09 linaro-alip kernel: [ 0.263875] iommu: Adding device ff650000.vpu_service to group 0
Mar 6 18:05:09 linaro-alip kernel: [ 0.264499] iommu: Adding device ff660000.rkvdec to group 1
Mar 6 18:05:09 linaro-alip kernel: [ 0.265106] iommu: Adding device ff8f0000.vop to group 2
Mar 6 18:05:09 linaro-alip kernel: [ 0.265661] iommu: Adding device ff900000.vop to group 3
Mar 6 18:05:09 linaro-alip kernel: [ 0.266251] iommu: Adding device ff910000.cif_isp to group 4
Mar 6 18:05:09 linaro-alip kernel: [ 0.268418] SCSI subsystem initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.268945] usbcore: registered new interface driver usbfs
Mar 6 18:05:09 linaro-alip kernel: [ 0.269499] usbcore: registered new interface driver hub
Mar 6 18:05:09 linaro-alip kernel: [ 0.270063] usbcore: registered new device driver usb
Mar 6 18:05:09 linaro-alip kernel: [ 0.270594] media: Linux media interface: v0.10
Mar 6 18:05:09 linaro-alip kernel: [ 0.271033] Linux video capture interface: v2.00
Mar 6 18:05:09 linaro-alip kernel: [ 0.271496] pps_core: LinuxPPS API ver. 1 registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.271962] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
Mar 6 18:05:09 linaro-alip kernel: [ 0.272810] PTP clock support registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.274165] Advanced Linux Sound Architecture Driver Initialized.
Mar 6 18:05:09 linaro-alip kernel: [ 0.275194] Bluetooth: Core ver 2.21
Mar 6 18:05:09 linaro-alip kernel: [ 0.275544] NET: Registered protocol family 31
Mar 6 18:05:09 linaro-alip kernel: [ 0.275965] Bluetooth: HCI device and connection manager initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.276545] Bluetooth: HCI socket layer initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.277002] Bluetooth: L2CAP socket layer initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.277477] Bluetooth: SCO socket layer initialized
Mar 6 18:05:09 linaro-alip kernel: [ 0.278867] clocksource: Switched to clocksource arch_sys_counter
Mar 6 18:05:09 linaro-alip kernel: [ 0.327269] thermal thermal_zone1: power_allocator: sustainable_power will be estimated
Mar 6 18:05:09 linaro-alip kernel: [ 0.328231] NET: Registered protocol family 2
Mar 6 18:05:09 linaro-alip kernel: [ 0.329074] TCP established hash table entries: 32768 (order: 6, 262144 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.329932] TCP bind hash table entries: 32768 (order: 8, 1048576 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.331396] TCP: Hash tables configured (established 32768 bind 32768)
Mar 6 18:05:09 linaro-alip kernel: [ 0.332115] UDP hash table entries: 2048 (order: 5, 196608 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.332825] UDP-Lite hash table entries: 2048 (order: 5, 196608 bytes)
Mar 6 18:05:09 linaro-alip kernel: [ 0.333807] NET: Registered protocol family 1
Mar 6 18:05:09 linaro-alip kernel: [ 0.334519] RPC: Registered named UNIX socket transport module.
Mar 6 18:05:09 linaro-alip kernel: [ 0.335076] RPC: Registered udp transport module.
Mar 6 18:05:09 linaro-alip kernel: [ 0.335511] RPC: Registered tcp transport module.
Mar 6 18:05:09 linaro-alip kernel: [ 0.335953] RPC: Registered tcp NFSv4.1 backchannel transport module.
Mar 6 18:05:09 linaro-alip kernel: [ 0.336555] PCI: CLS 0 bytes, default 64
Mar 6 18:05:09 linaro-alip kernel: [ 0.337478] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available
Mar 6 18:05:09 linaro-alip kernel: [ 0.338331] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
Mar 6 18:05:09 linaro-alip kernel: [ 0.342197] Initialise system trusted keyring
Mar 6 18:05:09 linaro-alip kernel: [ 0.350489] squashfs: version 4.0 (2009/01/31) Phillip Lougher
Mar 6 18:05:09 linaro-alip kernel: [ 0.351795] NFS: Registering the id_resolver key type
Mar 6 18:05:09 linaro-alip kernel: [ 0.352296] Key type id_resolver registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.352685] Key type id_legacy registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.353150] fuse init (API version 7.23)
Mar 6 18:05:09 linaro-alip kernel: [ 0.353892] SGI XFS with security attributes, no debug enabled
Mar 6 18:05:09 linaro-alip kernel: [ 0.359262] NET: Registered protocol family 38
Mar 6 18:05:09 linaro-alip kernel: [ 0.359694] Key type asymmetric registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.360088] Asymmetric key parser ‘x509’ registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.360686] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
Mar 6 18:05:09 linaro-alip kernel: [ 0.361384] io scheduler noop registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.361754] io scheduler deadline registered
Mar 6 18:05:09 linaro-alip kernel: [ 0.362274] io scheduler cfq registered (default)
Mar 6 18:05:09 linaro-alip kernel: [ 0.363581] phy phy-ff770000.syscon:usb2-phy@e450.0: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.363680] vcc5v0_host: could not add device link phy-ff770000.syscon:usb2-phy@e450.0 err -2
Mar 6 18:05:09 linaro-alip kernel: [ 0.363999] phy phy-ff770000.syscon:usb2-phy@e450.1: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.364010] phy phy-ff770000.syscon:usb2-phy@e450.1: Looking up phy-supply property in node /syscon@ff770000/usb2-phy@e450/otg-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.364232] phy phy-ff770000.syscon:usb2-phy@e450.1: Looking up vbus-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.364242] phy phy-ff770000.syscon:usb2-phy@e450.1: Looking up vbus-supply property in node /syscon@ff770000/usb2-phy@e450/otg-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.364255] phy phy-ff770000.syscon:usb2-phy@e450.1: Failed to get VBUS supply regulator
Mar 6 18:05:09 linaro-alip kernel: [ 0.365744] phy phy-ff770000.syscon:usb2-phy@e460.2: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.365801] vcc5v0_host: could not add device link phy-ff770000.syscon:usb2-phy@e460.2 err -2
Mar 6 18:05:09 linaro-alip kernel: [ 0.366089] phy phy-ff770000.syscon:usb2-phy@e460.3: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.366099] phy phy-ff770000.syscon:usb2-phy@e460.3: Looking up phy-supply property in node /syscon@ff770000/usb2-phy@e460/otg-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.366309] phy phy-ff770000.syscon:usb2-phy@e460.3: Looking up vbus-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.366320] phy phy-ff770000.syscon:usb2-phy@e460.3: Looking up vbus-supply property in node /syscon@ff770000/usb2-phy@e460/otg-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.366332] phy phy-ff770000.syscon:usb2-phy@e460.3: Failed to get VBUS supply regulator
Mar 6 18:05:09 linaro-alip kernel: [ 0.368253] phy phy-ff770000.syscon:phy@f780.4: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.368264] phy phy-ff770000.syscon:phy@f780.4: Looking up phy-supply property in node /syscon@ff770000/phy@f780 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.369007] phy phy-ff7c0000.phy.5: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.369017] phy phy-ff7c0000.phy.5: Looking up phy-supply property in node /phy@ff7c0000/dp-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.369114] phy phy-ff7c0000.phy.6: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.369123] phy phy-ff7c0000.phy.6: Looking up phy-supply property in node /phy@ff7c0000/usb3-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.369573] phy phy-ff800000.phy.7: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.369584] phy phy-ff800000.phy.7: Looking up phy-supply property in node /phy@ff800000/dp-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.369675] phy phy-ff800000.phy.8: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.369685] phy phy-ff800000.phy.8: Looking up phy-supply property in node /phy@ff800000/usb3-port failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.370053] phy phy-pcie-phy.9: Looking up phy-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.370064] phy phy-pcie-phy.9: Looking up phy-supply property in node /pcie-phy failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.371500] rockchip-pcie f8000000.pcie: GPIO lookup for consumer ep
Mar 6 18:05:09 linaro-alip kernel: [ 0.371510] rockchip-pcie f8000000.pcie: using device tree for GPIO lookup
Mar 6 18:05:09 linaro-alip kernel: [ 0.371538] of_get_named_gpiod_flags: parsed ‘ep-gpios’ property of node ‘/pcie@f8000000[0]’ - status (0)
Mar 6 18:05:09 linaro-alip kernel: [ 0.371781] rockchip-pcie f8000000.pcie: Looking up vpcie3v3-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.371791] rockchip-pcie f8000000.pcie: Looking up vpcie3v3-supply property in node /pcie@f8000000 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.371805] rockchip-pcie f8000000.pcie: no vpcie3v3 regulator found
Mar 6 18:05:09 linaro-alip kernel: [ 0.372402] rockchip-pcie f8000000.pcie: Looking up vpcie1v8-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.372412] rockchip-pcie f8000000.pcie: Looking up vpcie1v8-supply property in node /pcie@f8000000 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.372423] rockchip-pcie f8000000.pcie: no vpcie1v8 regulator found
Mar 6 18:05:09 linaro-alip kernel: [ 0.373007] rockchip-pcie f8000000.pcie: Looking up vpcie0v9-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.373017] rockchip-pcie f8000000.pcie: Looking up vpcie0v9-supply property in node /pcie@f8000000 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.373027] rockchip-pcie f8000000.pcie: no vpcie0v9 regulator found
Mar 6 18:05:09 linaro-alip kernel: [ 0.914923] rockchip-pcie f8000000.pcie: PCIe link training gen1 timeout!
Mar 6 18:05:09 linaro-alip kernel: [ 0.915679] rockchip-pcie: probe of f8000000.pcie failed with error -110
Mar 6 18:05:09 linaro-alip kernel: [ 0.917432] rk-vcodec ff650000.vpu_service: Looking up vcodec-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.917447] rk-vcodec ff650000.vpu_service: Looking up vcodec-supply property in node /vpu_service@ff650000 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.917471] rk-vcodec ff650000.vpu_service: no regulator for vcodec
Mar 6 18:05:09 linaro-alip kernel: [ 0.918437] rk-vcodec ff650000.vpu_service: probe device
Mar 6 18:05:09 linaro-alip kernel: [ 0.919246] rk-vcodec ff650000.vpu_service: drm allocator with mmu enabled
Mar 6 18:05:09 linaro-alip kernel: [ 0.920622] rk-vcodec ff650000.vpu_service: could not find power_model node
Mar 6 18:05:09 linaro-alip kernel: [ 0.921285] rk-vcodec ff650000.vpu_service: init success
Mar 6 18:05:09 linaro-alip kernel: [ 0.922182] rk-vcodec ff660000.rkvdec: Looking up vcodec-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.922197] rk-vcodec ff660000.rkvdec: Looking up vcodec-supply property in node /rkvdec@ff660000 failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.922217] rk-vcodec ff660000.rkvdec: no regulator for vcodec
Mar 6 18:05:09 linaro-alip kernel: [ 0.923217] rk-vcodec ff660000.rkvdec: probe device
Mar 6 18:05:09 linaro-alip kernel: [ 0.923898] rk-vcodec ff660000.rkvdec: drm allocator with mmu enabled
Mar 6 18:05:09 linaro-alip kernel: [ 0.924902] rk-vcodec ff660000.rkvdec: could not find power_model node
Mar 6 18:05:09 linaro-alip kernel: [ 0.925492] rk-vcodec ff660000.rkvdec: init success
Mar 6 18:05:09 linaro-alip kernel: [ 0.927341] dma-pl330 ff6d0000.dma-controller: Loaded driver for PL330 DMAC-241330
Mar 6 18:05:09 linaro-alip kernel: [ 0.928049] dma-pl330 ff6d0000.dma-controller: DBUFF-32x8bytes Num_Chans-6 Num_Peri-12 Num_Events-12
Mar 6 18:05:09 linaro-alip kernel: [ 0.930314] dma-pl330 ff6e0000.dma-controller: Loaded driver for PL330 DMAC-241330
Mar 6 18:05:09 linaro-alip kernel: [ 0.931021] dma-pl330 ff6e0000.dma-controller: DBUFF-128x8bytes Num_Chans-8 Num_Peri-20 Num_Events-16
Mar 6 18:05:09 linaro-alip kernel: [ 0.932237] pwm-regulator vdd-log: GPIO lookup for consumer enable
Mar 6 18:05:09 linaro-alip kernel: [ 0.932246] pwm-regulator vdd-log: using device tree for GPIO lookup
Mar 6 18:05:09 linaro-alip kernel: [ 0.932256] of_get_named_gpiod_flags: can’t parse ‘enable-gpios’ property of node ‘/vdd-log[0]’
Mar 6 18:05:09 linaro-alip kernel: [ 0.932265] of_get_named_gpiod_flags: can’t parse ‘enable-gpio’ property of node ‘/vdd-log[0]’
Mar 6 18:05:09 linaro-alip kernel: [ 0.932273] pwm-regulator vdd-log: using lookup tables for GPIO lookup
Mar 6 18:05:09 linaro-alip kernel: [ 0.932281] pwm-regulator vdd-log: lookup for GPIO enable failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.932305] pwm-regulator vdd-log: Looking up pwm-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.932314] pwm-regulator vdd-log: Looking up pwm-supply property in node /vdd-log failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.932357] vdd_log: 800 <–> 1400 mV at 800 mV
Mar 6 18:05:09 linaro-alip kernel: [ 0.932518] pwm-regulator vdd-log: Looking up pwm-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.932528] pwm-regulator vdd-log: Looking up pwm-supply property in node /vdd-log failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.932573] pwm-regulator vdd-log: Looking up pwm-supply from device tree
Mar 6 18:05:09 linaro-alip kernel: [ 0.932582] pwm-regulator vdd-log: Looking up pwm-supply property in node /vdd-log failed
Mar 6 18:05:09 linaro-alip kernel: [ 0.932958] Serial: 8250/16550 driver, 5 ports, IRQ sharing disabled
Mar 6 18:05:09 linaro-alip kernel: [ 0.935184] ff180000.serial: ttyS0 at MMIO 0xff180000 (irq = 37, base_baud = 1500000) is a 16550A
Mar 6 18:05:09 linaro-alip kernel: [ 0.936316] rockchip-pinctrl pinctrl: pin gpio4-19 already requested by fiq-debugger; cannot claim for ff1a0000.serial
Mar 6 18:05:09 linaro-alip kernel: [ 0.937296] rockchip-pinctrl pinctrl: pin-147 (ff1a0000.serial) status -22
Mar 6 18:05:09 linaro-alip kernel: [ 0.937928] rockchip-pinctrl pinctrl: could not request pin 147 (gpio4-19) from group uart2c-xfer on device rockchip-pinctrl
Mar 6 18:05:09 linaro-alip kernel: [ 0.938955] dw-apb-uart ff1a0000.serial: Error applying setting, reverse things back
Mar 6 18:05:09 linaro-alip kernel: [ 0.939982] ff1a0000.serial: ttyS2 at MMIO 0xff1a0000 (irq = 38, base_baud = 1500000) is a 16550A
Mar 6 18:05:09 linaro-alip kernel: [ 0.941417] ff370000.serial: ttyS4 at MMIO 0xff370000 (irq = 40, base_baud = 1500000) is a 16550A