Linux Kernel 4.18.8
#1
Someone has build kernel 4.18.8

https://github.com/ddimension/linux-mainline-kernel


Code:
[email protected]:~$ uname -a
Linux rockpro64 4.18.8-77394-g8cce48cacf88 #1 SMP PREEMPT Mon Sep 17 18:50:57 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux


Use at your own risk!
Sorry for any mistakes. English is not my native language

1. RP64 v2.1 / PCIe SATA Marvell 88SE9230 Chipsatz / sd-card / 2 * 3,5 Zoll 4TB HDD (raid1) / using as NAS / Kernel 4.4.202-1237-rockchip-ayufan-gfd4492386213 / Booting from an USB3 SSD

2. RP64 v2.1 / testing.....testing....testing 

https://forum.frank-mankel.org/category/14/rockpro64
  Reply
#2
Saw this on your forums - many thanks to av (or whoever has done the cooking)!

Seems like a couple of things are improved since rc8 (e.g. DRM-ROCKCHIP doesn't cause major delays/timeouts) - I hope you are OK if I use this thread to list problems I have with 4.18 (in fact 4.18.8 now)?

1) The video/armsoc/DRM/midgard is not quite right. Sorry my knowledge in this area is dangerous so apologies for any terminology abuses. The most obvious problem is in Xorg.log

Code:
[    36.693] (II) ARMSOC: Driver for ARM Mali compatible chipsets
[    36.693] (WW) Falling back to old probe method for armsoc
[    36.693] (II) No BusID or DriverName specified - opening /dev/dri/card0
[    36.693] (EE) ERROR: Cannot set the DRM interface version.
[    36.693] (EE) ERROR: Cannot open a connection with the DRM - Permission denied


Not sure if the early failure to bind to HDMI is significant?

Code:
$ dmesg | grep drm
[    1.419355] rockchip-drm display-subsystem: Linked as a consumer to ff8f0000.vop
[    1.420145] rockchip-drm display-subsystem: Linked as a consumer to ff900000.vop
[    1.421531] rockchip-drm display-subsystem: Linked as a consumer to ff940000.hdmi
[    1.426903] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops)
[    1.429626] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops)
[    1.430571] rockchip-drm display-subsystem: failed to bind ff940000.hdmi (ops dw_hdmi_rockchip_ops): -517
[    1.431852] rockchip-drm display-subsystem: master bind failed: -517
[    2.255270] rockchip-drm display-subsystem: bound ff8f0000.vop (ops vop_component_ops)
[    2.257496] rockchip-drm display-subsystem: bound ff900000.vop (ops vop_component_ops)
[    2.259748] rockchip-drm display-subsystem: bound ff940000.hdmi (ops dw_hdmi_rockchip_ops)
[    2.260483] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.261066] [drm] No driver support for vblank timestamp query.
[    2.478338] rockchip-drm display-subsystem: fb0:  frame buffer device
[    2.480186] [drm] Initialized rockchip 1.0.0 20140818 for display-subsystem on minor 0

2) Sound - no chance on HDMI but seems almost there on ES8316 but not quite again. And again my skills around sound are pathetic. The first time I try to play something with mpv the screen looks like it is playing, but nothing comes through the speakers, and dmesg has

PHP Code:
1002.035173es8316 1-0010No sysclk provided
1002.035579es8316 1-0010ASoCcan't open codec ES8316 HiFi: -22
[ 1002.040228] es8316 1-0010: No sysclk provided
[ 1002.040628] es8316 1-0010: ASoC: can'
t open codec ES8316 HiFi: -22
1002.043697es8316 1-0010No sysclk provided
1002.044221es8316 1-0010ASoCcan't open codec ES8316 HiFi: -22
[ 1002.045391] es8316 1-0010: No sysclk provided
[ 1002.045787] es8316 1-0010: ASoC: can'
t open codec ES8316 HiFi: -22
1002.047267es8316 1-0010No sysclk provided
1002.047669es8316 1-0010ASoCcan't open codec ES8316 HiFi: -22
[ 1002.048943] es8316 1-0010: No sysclk provided
[ 1002.049340] es8316 1-0010: ASoC: can'
t open codec ES8316 HiFi: -22 

3) The schedulling is not right: with either ondemand or performance high CPU jobs land on the little cores. I guess CONFIG_ARM_ROCKCHIP_CPUFREQ needs to be ported from 4.4?

4) Still get an infinite loop at boot "running CQE recovery" if eMMC is plugged in

5) This seems to be a defect in the DT but I cannot find it:

Code:
$ dmesg | grep vcc_sdio
[    2.092922] vcc_sdio: Bringing 3300000uV into 3000000-3000000uV
[    2.148951] vcc_sdio: unsupportable voltage range: 3300000-3000000uV

6) Similarly think this is an attempt to define OTG on USB2 whereas it should be the USB3 ports

Code:
$ dmesg | grep otg
[    1.818420] OF: graph: no port node found in /[email protected]/[email protected]/otg-port
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart :-)
  Reply
#3
(09-18-2018, 04:28 PM)Hi!dukla2000 Wrote: Saw this on your forums - many thanks to av (or whoever has done the cooking)!

Seems like a couple of things are improved since rc8 (e.g. DRM-ROCKCHIP doesn't cause major delays/timeouts) - I hope you are OK if I use this thread to list problems I have with 4.18 (in fact 4.18.8 now)?

3) The schedulling is not right: with either ondemand or performance high CPU jobs land on the little cores. I guess CONFIG_ARM_ROCKCHIP_CPUFREQ needs to be ported from 4.4?

4) Still get an infinite loop at boot "running CQE recovery" if eMMC is plugged in

5) This seems to be a defect in the DT but I cannot find it:

Code:
$ dmesg | grep vcc_sdio
[    2.092922] vcc_sdio: Bringing 3300000uV into 3000000-3000000uV
[    2.148951] vcc_sdio: unsupportable voltage range: 3300000-3000000uV

6) Similarly think this is an attempt to define OTG on USB2 whereas it should be the USB3 ports

Code:
$ dmesg | grep otg
[    1.818420] OF: graph: no port node found in /[email protected]/[email protected]/otg-port

Thanks for your statement. Some comments:
3)
I noticed that crypto performance varies a lot and did not notice it was the missing scheduling. Interesting. But there currently no driver..
6) 
There seems to support for usb-c ports in kernel.  Perhaps I can fix it later.

Also there is another problem with sata and ssd. It is not stable, I get SATA disconnects... Normal HDD works. Do you have the same problem?

The purpose of this kernel was to stabilize my NAS, which works now as desired. Hopefully someone with more experience can fix these problems.

A funny fact is, that all other platforms get support/developement in the kernel. But not our beloved RockPro64.
See https://git.kernel.org/pub/scm/linux/ker...h=for-next
  Reply
#4
(09-20-2018, 12:32 PM)ddimension Wrote: I noticed that crypto performance varies a lot and did not notice it was the missing scheduling. Interesting. But there currently no driver..

Possibly because threads tending to the little cores rather than being fixed to a big core. I think the CONFIG_ARM_ROCKCHIP_CPUFREQ in 4.4 is probably the thing we really need?  I did notice .../arch/arm64/configs/rockchip_linux_defconfig has a whole heap of CONFIG_CRYPTO parameters set Y and keep meaning to check my config. I thought the openSSL results I got from TKaiser sbc-bench were poor compared to Firefly.

(09-20-2018, 12:32 PM)ddimension Wrote: Also there is another problem with sata and ssd. It is not stable, I get SATA disconnects... Normal HDD works. Do you have the same problem?

Sorry - I no longer use any SATA nor SSD (except occasionally via USB for backup!) Since getting my NVMe to work (thanks again Bullet64!) I figure that is the way to go. And I do not have that much data beyond NVMe capacities.

(09-20-2018, 12:32 PM)ddimension Wrote: The purpose of this kernel was to stabilize my NAS, which works now as desired. Hopefully someone with more experience can fix these problems.

A funny fact is, that all other platforms get support/developement in the kernel. But not our beloved RockPro64.
See https://git.kernel.org/pub/scm/linux/ker...h=for-next

As soon as I posted my earlier reply with a list of 6 things that do not work I thought it was possibly too negative. The reality is that 4.18 is 99% brilliant, and having learned how to compile a kernel, playing with the CONFIG parameters is great fun. Let alone tampering with the DTS. My latest version I swapped rk3399-oppp.dtsi for rk3399-op1-opp.dtsi to get "official" 2/1.5GHz!

I do see quite a few Arm & Rockchip patches in the changelogs so am really optimistic for this SBC. For sure we need Ayufan back cooking as well and hopefully upstream some stuff if Rockchip do not.
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart :-)
  Reply
#5
(09-20-2018, 12:32 PM)ddimension Wrote: Thanks for your statement. Some comments:
3)
I noticed that crypto performance varies a lot and did not notice it was the missing scheduling. Interesting. But there currently no driver..
6) 
There seems to support for usb-c ports in kernel.  Perhaps I can fix it later.

Also there is another problem with sata and ssd. It is not stable, I get SATA disconnects... Normal HDD works. Do you have the same problem?

The purpose of this kernel was to stabilize my NAS, which works now as desired. Hopefully someone with more experience can fix these problems.

A funny fact is, that all other platforms get support/developement in the kernel. But not our beloved RockPro64.
See https://git.kernel.org/pub/scm/linux/ker...h=for-next

Thanks for compiling the kernel ddimension Smile

My plan is to use this board as a NAS as well. You're writing that you managed to stabilize functionality. What exactly was not working for you? I'm using normal HDDs and I haven't seen SATA disconnects.

One of the things I ran into with Ayufan's 4.18 kernel was that downloading speeds via openVPN were intermittent. It kept dropping to 0 kb/s all the time. I first thought it was a 'writing to disk' issue, but downloading not through a VPN was stable at max speed. Have you seen this?
  Reply
#6
I have just finished compiling this kernel and noticed the following message during booting:

Code:
[    0.000000] Number of cores (6) exceeds configured maximum of 4 - clipping


The corresponding value (CONFIG_NR_CPUS=4) can be found via menuconfig under Kernel Features --> Maximum number of CPUs.

I will change this to 6, recompile and see what happens.
  Reply
#7
(09-22-2018, 08:36 AM)Yoast Wrote: The corresponding value (CONFIG_NR_CPUS=4) can be found via menuconfig under Kernel Features --> Maximum number of CPUs.

I will change this to 6, recompile and see what happens.

Mine is 64 - never seen the message Smile.

Then again, as I am aiming for small kernel, may as well reduce to 8 in case it makes any difference.
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart :-)
  Reply
#8
(09-21-2018, 03:44 AM)dukla2000 Wrote:
(09-20-2018, 12:32 PM)ddimension Wrote: I noticed that crypto performance varies a lot and did not notice it was the missing scheduling. Interesting. But there currently no driver..

Possibly because threads tending to the little cores rather than being fixed to a big core. I think the CONFIG_ARM_ROCKCHIP_CPUFREQ in 4.4 is probably the thing we really need?  I did notice .../arch/arm64/configs/rockchip_linux_defconfig has a whole heap of CONFIG_CRYPTO parameters set Y and keep meaning to check my config. I thought the openSSL results I got from TKaiser sbc-bench were poor compared to Firefly.

(09-20-2018, 12:32 PM)ddimension Wrote: Also there is another problem with sata and ssd. It is not stable, I get SATA disconnects... Normal HDD works. Do you have the same problem?

Sorry - I no longer use any SATA nor SSD (except occasionally via USB for backup!) Since getting my NVMe to work (thanks again Bullet64!) I figure that is the way to go. And I do not have that much data beyond NVMe capacities.

(09-20-2018, 12:32 PM)ddimension Wrote: The purpose of this kernel was to stabilize my NAS, which works now as desired. Hopefully someone with more experience can fix these problems.

A funny fact is, that all other platforms get support/developement in the kernel. But not our beloved RockPro64.
See https://git.kernel.org/pub/scm/linux/ker...h=for-next

As soon as I posted my earlier reply with a list of 6 things that do not work I thought it was possibly too negative. The reality is that 4.18 is 99% brilliant, and having learned how to compile a kernel, playing with the CONFIG parameters is great fun. Let alone tampering with the DTS. My latest version I swapped rk3399-oppp.dtsi for rk3399-op1-opp.dtsi to get "official" 2/1.5GHz!

I do see quite a few Arm & Rockchip patches in the changelogs so am really optimistic for this SBC. For sure we need Ayufan back cooking as well and hopefully upstream some stuff if Rockchip do not.
How is your stability/temps at 2/1.5GHz? My plex server sure could use that extra gear.
  Reply
#9
(09-22-2018, 06:24 PM)Takenover83 Wrote: How is your stability/temps at 2/1.5GHz? My plex server sure could use that extra gear.

Short answer - fine Smile 

Long answer: it all depends on cooling/heatsink etc. I have the stock 30mm Pine64 heatsink and no fan. At 1.8/1.4 I can run cpuminer for "a long time" (around 20C ambient) without ever getting to 80C (and so without throttling). At 2/1.5 I get to 80C and start throttling after about 15 minutes. I do have another heatsink on order that I hope will be better than the Pine 30mm one - I am loath to add a fan as the noise irritates me (which is why I was happy to downscale from Wintel!)

Also have not done a complete thrashing of the setup. I am bemused to see in the RockChip specs they mention a RK3399K which is specd at 2/1.6 as long as you keep it between 0-80C, and the RK3399 is 1.8/1.4 0-80C. My particular RK3399 has no K on the heatspreader (and does have what seems to be a January 2017 manufacturing date - 1701) and so I would be pretty sure is a bog standard RK3399. My RockPro64 is from the first 2.1 batch - I can image as volumes rise and purchasing between Pine and Rockchip gets busier this could all change.

Equally I have not yet had cause to play with the voltages but seems there is quite a bit a headroom there: the Rockchip spec is 1.25/1.20V max for the A72/A53 cores. My current DT has 2GHz @ 1.25V but I previously briefly had it at 2GHz @ 1.2V with no big problems. The "standard" RK3399 is apparently 1.8GHz @ 1.2V (in the stock DT) whereas (possibly for the K?) the "standard" device tree has 1.8GHz at 1.15V - at some stage I am tempted to try 2.1 or even 2.2 @ 1.25V. (I am less motivated to play with the LITTLE A53 cores as there is not much to gain for single threaded stuff!)
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart :-)
  Reply
#10
@ddimension - thanks for 4.18.9.

I enabled some CRYPTO NEON options in my config (that were previously unset) but it seems to have made very little difference to my OpenSSL results (from sbc-bench).
* ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Started Bionic minimal - now eoan, Openbox desktop for general purpose daily PC.
* PinePhone BraveHeart :-)
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Rockpro64 and stock arch linux TaborFife 6 673 01-15-2020, 05:17 PM
Last Post: dragop
  Problem with compiling ayufans linux kernel voegelit 4 188 01-14-2020, 07:38 AM
Last Post: patstew
  Mainline Kernel 5.4 Solution khaosgrille 1 152 01-05-2020, 12:57 PM
Last Post: khaosgrille
  Upgrade Debian kernel on a SD/SATA drive boot combo. linuxha 6 163 12-12-2019, 04:43 AM
Last Post: dukla2000
  Frequent kernel panic, possibly due to PCIe SSD? meier 4 286 11-22-2019, 05:15 PM
Last Post: meier
  My PCIe disk controller works with Linux 5.3.6 guannais 1 179 10-30-2019, 07:11 PM
Last Post: guannais
  Linux Build Help: Stuck at "Starting kernel ..." ihamilton 2 479 10-10-2019, 12:51 PM
Last Post: ihamilton
  Void Linux WIP losinggeneration 0 312 10-04-2019, 03:23 AM
Last Post: losinggeneration
  Arch Linux on RockPro64 mmatyas 27 9,596 09-28-2019, 04:30 AM
Last Post: TaborFife
  Linux distro that will work with Kodi? SBCraok 9 420 09-18-2019, 02:12 AM
Last Post: mtrcycllvr

Forum Jump:


Users browsing this thread: 1 Guest(s)