Linux Mainline
#21
I did not yet rebase all patches. May do that at some point.
Homepage: https://ayufan.eu

Releases:
Rock/Pro 64/Pinebook Pro: LinuxChromium OS
So/Pine A64/Pinebook: LinuxAndroid 6.0Android 7.1

Buy me a Beer
  Reply
#22
(09-26-2017, 05:55 AM)stuartiannaylor Wrote: @ayufan

How you doing with 4.14? RC2 is out and with the Rock64 inclusions seems like its a kernel we should be aiming for if early adopters.

https://www.phoronix.com/scan.php?page=n...2-Released
https://www.phoronix.com/scan.php?page=n...Linux-4.14

Since Rock64 has been included in 4.14,  I wonder if it would also mean that the current Gigabit Ethernet issue encountered in 4.13 have been fixed.  I guess it would take massive efforts to rebase 4.4 to 4.14. I just wish I had the know-how to help ayufan.
  Reply
#23
I have just been playing with the Artful minimal image and Lubuntu-QT-Desktop which works real nice.
17.10 has the 4.13 Kernel but was looking at the dates and hoping maybe the 4.14 LTS will be released before the 5th Kernel Freeze — October 5th.

The inclusion of 17.10 I guess is statement of intent and both LTS of 18.04 & 4.14 are a wished destination.

he complete release schedule of Ubuntu 17.10 as follows:

Alpha 1 — June 29th
Alpha 2 — July 27th
Feature Freeze — August 24th
Beta 1 — August 31st
Final Beta — September 28th
Kernel Freeze — October 5th
Release Candidate — October 12th
Ubuntu 17.10 final release — October 19th

4.14 is already RC2 so maybe and its brilliant to have a product and being among developers who are talented enough to be so bleeding edge.

Its looking really good for the Rock64 as a LTS product that will have a long life and the pains for some of early adoption are prob going to pay dividends.
I have seen some entries for other Arm SoCs but Rockchip & Pine have got much adoption in the kernel.
My alternative to the Rock64 is the Odroid XU4 and maybe I have missed things but its looks like hardkernel have missed the 4.14 boat.
Raspberry dont have a Pi4 till 2019 and looking like the Rock64 has a market space of 2 years.

There will be a beer for backporting 4.14 for Ayufan and think without asking that is going to happen if 17.10 misses 4.14 but it could end up in 17.10 and Ayufan & Ubuntu seem to have working images with 17.10 & the 130 release. 

Unlike all the other images the pre-release 130 works whilst 118 release doesn't with 17.10.

If your playing with linux I suggest having a look at 17.10 armHF Lubuntu-QT-Desktop as its under heavy development for the 17.10 release so actually its quite stable.
Also maybe its the MALI driver of 4.12 or a fix but the colours seem to look more vibrant.
  Reply
#24
Is there a problem with GbE driver in 4.14?

Image: stretch-minimal-rock64-0.5.14-133-arm64.img

Kernel 4.4:
Code:
[email protected]:~# uname -a
Linux rock64 4.4.77-rockchip-ayufan-133 #1 SMP Thu Sep 28 10:51:45 UTC 2017 aarch64 GNU/Linux
[email protected]:~# iperf3 -c 192.168.11.100 -f m
Connecting to host 192.168.11.100, port 5201
[  4] local 192.168.11.177 port 55506 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec   116 MBytes   964 Mbits/sec    0   1.45 MBytes      
[  4]   1.01-2.01   sec   112 MBytes   943 Mbits/sec    0   1.45 MBytes      
[  4]   2.01-3.00   sec   111 MBytes   938 Mbits/sec    0   1.45 MBytes      
[  4]   3.00-4.00   sec   112 MBytes   941 Mbits/sec    0   1.70 MBytes      
[  4]   4.00-5.00   sec   112 MBytes   944 Mbits/sec    0   1.70 MBytes      
[  4]   5.00-6.00   sec   111 MBytes   937 Mbits/sec    0   1.70 MBytes      
[  4]   6.00-7.00   sec   112 MBytes   943 Mbits/sec    0   1.70 MBytes      
[  4]   7.00-8.01   sec   112 MBytes   941 Mbits/sec    0   1.70 MBytes      
[  4]   8.01-9.01   sec   112 MBytes   943 Mbits/sec    0   1.70 MBytes      
[  4]   9.01-10.00  sec   112 MBytes   946 Mbits/sec    0   1.70 MBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.10 GBytes   944 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec                  receiver

iperf Done.
[email protected]:~# iperf3 -c 192.168.11.100 -f m -R
Connecting to host 192.168.11.100, port 5201
Reverse mode, remote host 192.168.11.100 is sending
[  4] local 192.168.11.177 port 55510 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  84.9 MBytes   712 Mbits/sec                  
[  4]   1.00-2.00   sec  64.5 MBytes   541 Mbits/sec                  
[  4]   2.00-3.00   sec  82.3 MBytes   690 Mbits/sec                  
[  4]   3.00-4.00   sec  83.0 MBytes   696 Mbits/sec                  
[  4]   4.00-5.00   sec  93.6 MBytes   785 Mbits/sec                  
[  4]   5.00-6.00   sec  91.1 MBytes   765 Mbits/sec                  
[  4]   6.00-7.00   sec  98.4 MBytes   826 Mbits/sec                  
[  4]   7.00-8.00   sec   104 MBytes   869 Mbits/sec                  
[  4]   8.00-9.00   sec  99.7 MBytes   837 Mbits/sec                  
[  4]   9.00-10.00  sec   104 MBytes   869 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   906 MBytes   760 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   906 MBytes   760 Mbits/sec                  receiver

iperf Done.
[email protected]:~# ethtool -S eth0 | grep err |grep -v ": 0"
[email protected]:~#
 

Kernel 4.14:
Code:
[email protected]:~# uname -a
Linux rock64 4.14.0-rockchip-ayufan-133-g13d5899 #1 SMP PREEMPT Thu Sep 28 11:08:43 UTC 2017 aarch64 GNU/Linux
[email protected]:~# iperf3 -c 192.168.11.100 -f m
Connecting to host 192.168.11.100, port 5201
[  4] local 192.168.11.177 port 44878 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   111 MBytes   926 Mbits/sec    0    535 KBytes      
[  4]   1.00-2.00   sec   112 MBytes   943 Mbits/sec    0    591 KBytes      
[  4]   2.00-3.00   sec   112 MBytes   942 Mbits/sec    0    591 KBytes      
[  4]   3.00-4.00   sec   112 MBytes   941 Mbits/sec    0    591 KBytes      
[  4]   4.00-5.00   sec   112 MBytes   942 Mbits/sec    0    591 KBytes      
[  4]   5.00-6.00   sec   112 MBytes   941 Mbits/sec    0    591 KBytes      
[  4]   6.00-7.00   sec   112 MBytes   943 Mbits/sec    0    621 KBytes      
[  4]   7.00-8.00   sec   112 MBytes   940 Mbits/sec   28    322 KBytes      
[  4]   8.00-9.00   sec   112 MBytes   942 Mbits/sec    0    351 KBytes      
[  4]   9.00-10.00  sec   112 MBytes   942 Mbits/sec    0    362 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec   28             sender
[  4]   0.00-10.00  sec  1.09 GBytes   937 Mbits/sec                  receiver

iperf Done.
[email protected]:~# iperf3 -c 192.168.11.100 -f m -R
Connecting to host 192.168.11.100, port 5201
Reverse mode, remote host 192.168.11.100 is sending
[  4] local 192.168.11.177 port 44882 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  7.07 KBytes  0.06 Mbits/sec                  
[  4]   1.00-2.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   2.00-3.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   8.00-9.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   9.00-10.00  sec  0.00 Bytes  0.00 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  53.7 KBytes  0.04 Mbits/sec    5             sender
[  4]   0.00-10.00  sec  7.07 KBytes  0.01 Mbits/sec                  receiver

iperf Done.
[email protected]:~# ethtool -S eth0 | grep err |grep -v ": 0"
    mmc_rx_crc_error: 12692
    mmc_rx_ipv4_hderr: 803
    mmc_rx_ipv4_hderr_octets: 41840
    mmc_rx_udp_err: 1
    mmc_rx_tcp_err: 6000
    mmc_rx_icmp_err: 4
    mmc_rx_udp_err_octets: 152
    mmc_rx_tcp_err_octets: 326664
    mmc_rx_icmp_err_octets: 256
[email protected]:~#
  Reply
#25
(10-05-2017, 10:06 AM)maal Wrote: Is there a problem with GbE driver in 4.14?

Image: stretch-minimal-rock64-0.5.14-133-arm64.img

Kernel 4.4:
Code:
[email protected]:~# uname -a
Linux rock64 4.4.77-rockchip-ayufan-133 #1 SMP Thu Sep 28 10:51:45 UTC 2017 aarch64 GNU/Linux
[email protected]:~# iperf3 -c 192.168.11.100 -f m
Connecting to host 192.168.11.100, port 5201
[  4] local 192.168.11.177 port 55506 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec   116 MBytes   964 Mbits/sec    0   1.45 MBytes      
[  4]   1.01-2.01   sec   112 MBytes   943 Mbits/sec    0   1.45 MBytes      
[  4]   2.01-3.00   sec   111 MBytes   938 Mbits/sec    0   1.45 MBytes      
[  4]   3.00-4.00   sec   112 MBytes   941 Mbits/sec    0   1.70 MBytes      
[  4]   4.00-5.00   sec   112 MBytes   944 Mbits/sec    0   1.70 MBytes      
[  4]   5.00-6.00   sec   111 MBytes   937 Mbits/sec    0   1.70 MBytes      
[  4]   6.00-7.00   sec   112 MBytes   943 Mbits/sec    0   1.70 MBytes      
[  4]   7.00-8.01   sec   112 MBytes   941 Mbits/sec    0   1.70 MBytes      
[  4]   8.01-9.01   sec   112 MBytes   943 Mbits/sec    0   1.70 MBytes      
[  4]   9.01-10.00  sec   112 MBytes   946 Mbits/sec    0   1.70 MBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.10 GBytes   944 Mbits/sec    0             sender
[  4]   0.00-10.00  sec  1.10 GBytes   941 Mbits/sec                  receiver

iperf Done.
[email protected]:~# iperf3 -c 192.168.11.100 -f m -R
Connecting to host 192.168.11.100, port 5201
Reverse mode, remote host 192.168.11.100 is sending
[  4] local 192.168.11.177 port 55510 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  84.9 MBytes   712 Mbits/sec                  
[  4]   1.00-2.00   sec  64.5 MBytes   541 Mbits/sec                  
[  4]   2.00-3.00   sec  82.3 MBytes   690 Mbits/sec                  
[  4]   3.00-4.00   sec  83.0 MBytes   696 Mbits/sec                  
[  4]   4.00-5.00   sec  93.6 MBytes   785 Mbits/sec                  
[  4]   5.00-6.00   sec  91.1 MBytes   765 Mbits/sec                  
[  4]   6.00-7.00   sec  98.4 MBytes   826 Mbits/sec                  
[  4]   7.00-8.00   sec   104 MBytes   869 Mbits/sec                  
[  4]   8.00-9.00   sec  99.7 MBytes   837 Mbits/sec                  
[  4]   9.00-10.00  sec   104 MBytes   869 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   906 MBytes   760 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   906 MBytes   760 Mbits/sec                  receiver

iperf Done.
[email protected]:~# ethtool -S eth0 | grep err |grep -v ": 0"
[email protected]:~#
 

Kernel 4.14:
Code:
[email protected]:~# uname -a
Linux rock64 4.14.0-rockchip-ayufan-133-g13d5899 #1 SMP PREEMPT Thu Sep 28 11:08:43 UTC 2017 aarch64 GNU/Linux
[email protected]:~# iperf3 -c 192.168.11.100 -f m
Connecting to host 192.168.11.100, port 5201
[  4] local 192.168.11.177 port 44878 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec   111 MBytes   926 Mbits/sec    0    535 KBytes      
[  4]   1.00-2.00   sec   112 MBytes   943 Mbits/sec    0    591 KBytes      
[  4]   2.00-3.00   sec   112 MBytes   942 Mbits/sec    0    591 KBytes      
[  4]   3.00-4.00   sec   112 MBytes   941 Mbits/sec    0    591 KBytes      
[  4]   4.00-5.00   sec   112 MBytes   942 Mbits/sec    0    591 KBytes      
[  4]   5.00-6.00   sec   112 MBytes   941 Mbits/sec    0    591 KBytes      
[  4]   6.00-7.00   sec   112 MBytes   943 Mbits/sec    0    621 KBytes      
[  4]   7.00-8.00   sec   112 MBytes   940 Mbits/sec   28    322 KBytes      
[  4]   8.00-9.00   sec   112 MBytes   942 Mbits/sec    0    351 KBytes      
[  4]   9.00-10.00  sec   112 MBytes   942 Mbits/sec    0    362 KBytes      
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  1.09 GBytes   940 Mbits/sec   28             sender
[  4]   0.00-10.00  sec  1.09 GBytes   937 Mbits/sec                  receiver

iperf Done.
[email protected]:~# iperf3 -c 192.168.11.100 -f m -R
Connecting to host 192.168.11.100, port 5201
Reverse mode, remote host 192.168.11.100 is sending
[  4] local 192.168.11.177 port 44882 connected to 192.168.11.100 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec  7.07 KBytes  0.06 Mbits/sec                  
[  4]   1.00-2.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   2.00-3.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   3.00-4.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   4.00-5.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   5.00-6.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   6.00-7.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   7.00-8.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   8.00-9.00   sec  0.00 Bytes  0.00 Mbits/sec                  
[  4]   9.00-10.00  sec  0.00 Bytes  0.00 Mbits/sec                  
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec  53.7 KBytes  0.04 Mbits/sec    5             sender
[  4]   0.00-10.00  sec  7.07 KBytes  0.01 Mbits/sec                  receiver

iperf Done.
[email protected]:~# ethtool -S eth0 | grep err |grep -v ": 0"
    mmc_rx_crc_error: 12692
    mmc_rx_ipv4_hderr: 803
    mmc_rx_ipv4_hderr_octets: 41840
    mmc_rx_udp_err: 1
    mmc_rx_tcp_err: 6000
    mmc_rx_icmp_err: 4
    mmc_rx_udp_err_octets: 152
    mmc_rx_tcp_err_octets: 326664
    mmc_rx_icmp_err_octets: 256
[email protected]:~#

I don't think there is much support here until its released its RC3 only at the moment and prob just there for devs.
  Reply
#26
(09-28-2017, 07:22 AM)stuartiannaylor Wrote: My alternative to the Rock64 is the Odroid XU4 and maybe I have missed things but its looks like hardkernel have missed the 4.14 boat.

Kernel 4.14 RC5 works well on ODROID-XU4 including USB3, GB-ETH, GPU, HMP, MFC, G2D, GSC, sound, HYP, CEC....
https://forum.odroid.com/viewtopic.php?f=146&t=28692
I really hope my ROCK64 can run Kernel 4.14 flawlessly within a couple of months. Smile
  Reply
#27
Recently I have been experimenting with the stock 4.14.x kernel code from kernel.org on my ROCK64 (with no patches at all).     4.14 boots up ok although HDMI doesn't work.   Serial console and ethernet both work. 

The 4.14 kernel does need the dtb that is generated from the 4.14 build.   You must update both the kernel and dtb to the 4.14 versions created in the 4.14 build for it to work.   If you try to boot the 4.14 kernel without updating the dtb also, it doesn't work.

I took a shot at porting the mali code to 4.14.    WIth some changes to the mali code I got it incorporated into my kernel but I still don't get any HDMI output.    I don't know much about graphics but there may be more pieces needed before HDMI works.
  Reply
#28
Probably these patches (at least) are needed:

http://lists.infradead.org/pipermail/lin...47151.html
http://lists.infradead.org/pipermail/lin...47150.html
http://lists.infradead.org/pipermail/lin...47152.html
http://lists.infradead.org/pipermail/lin...47149.html
  Reply
#29
Just placed an order for my rock64 but didn't read this thread.
Chose rock64 board for good throughput from NIC and USB 3 but now reading these posts makes me worry the Xenial builds will be unstable.
Tell me it isn't so..

I got fed up with my Banana Pi2 Ultra having poor support and crashing once in a while.

Just need a 24/7 Single NAS drive...
  Reply
#30
Hi,
I installed Fedora rawhide (up coming 28) on my rock64 by replacing the rootfs of one of the debian images. It works well - no problems there. The next step I tried was to replace the Ayufan 4.4 kernel with mainline. I resized the boot partition (and added swap partition while at it) and things still worked OK. I had to do this so that I could fit the necessary files on the boot partition.I tried to replace Image, dtb and initrd.img with the corresponding files from Fedora as follows (built the source rpm):
Image <- arch/arm64/boot/Image  (also tried vmlinuz from the binary kernel rpm)
dtb <- /usr/lib/modules/4.15.0-0.rc3.git1.1.fc28.aarch64/dtb/rockchip/rk3328-rock64.dtb
and finally to prepare the initrd.img I did: dracut -f /boot/initrd.img 4.15.0-0.rc3.git1.1.fc28.aarch64 (also tried using the initramfs produced by installing the binary kernel rpm)

Well, no cigar. It does not seem to boot. I also tried modifying /boot/extlinux the same way as it would be on standard fedora (and use the standard files that appear under /boot on installing the kernel rpm), but no go.

Any thoughts how this should be done? Also, has anyone gotten 4.15.0-rc3 to boot (I did not try 4.14)? I have the system setup so that it will go online on boot and start sshd. So, I should be able to tell if it came up over the network even if the console did not come up. I can get the system to boot again if I copy the original Image, dtb and initrd.img to /boot.

Thanks,

Jussi
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Does anybody run the mainline kernel? CameronNemo 3 158 09-09-2019, 07:56 PM
Last Post: CameronNemo
  Linux Images (ROCK64) pineadmin 156 74,368 08-30-2019, 05:08 PM
Last Post: kcirap
  Alpine Linux isndw 10 1,774 08-13-2019, 05:25 PM
Last Post: rock7
  Underclocking the Rock64 (latest stable linux image) va88 2 111 08-07-2019, 05:39 PM
Last Post: evilbunny
  HDMI output with Arch Linux Arm yogo1212 2 191 07-17-2019, 02:46 AM
Last Post: yogo1212
  NEMS Linux for Rock64 Luke 7 1,350 05-19-2019, 05:55 AM
Last Post: evilbunny
  Video : Media Script for the Rock64/4K video in Linux NicoD 1 531 03-30-2019, 02:17 AM
Last Post: zet_lab
  ROCK64 Linux Development - Stalled? thewonderer 7 1,228 03-25-2019, 08:30 AM
Last Post: gregb49
Star 0.7.8 Linux release from ayufan for Rock64 Luke 30 19,883 02-25-2019, 02:53 PM
Last Post: Luke
Lightbulb Nagios for Rock64 (NEMS Linux) Baldnerd 3 473 12-01-2018, 01:46 AM
Last Post: tllim

Forum Jump:


Users browsing this thread: 1 Guest(s)