Kernel 4.19-rc1 for testers


(Frank W.) #1

Hi,

i’ve added rc1 of 4.19 (currently without wifi-driver) for testing to my repo.

4.19-boot.log (39,7 KB)

the only errors i see on first look are these:

[    1.356979] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reg
[    1.365099] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185
[    1.371094] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.378109] pci 0000:01:00.0: reg 0x10: [io  size 0x0008]

but i don’t know how critical they are


(Frank W.) #2

in separate wifi-branch i added wifi-driver…seems to work on quick startup (i can connect to ap0)

4.19-wifi-boot.log (56,1 KB)


(Maciek Szelągowski) #3

Great to hear that.

You are main BPI R2 developer :wink:

But for now seems most features works on your 4.14 kernel


#4

[ 1.371094] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid

Can you try to connect to a net device to test it ?


(Frank W.) #5

@Ryder.Lee What is connected to this pci-bus? i have traffic on wan-interface

@Maciek_Szelagowski first step was only adding config,build-script and change order of mmc+uart…no that big change to get it running. Wifi-driver did also need not much changes


(Maciek Szelągowski) #6

One question: when I clone your github to build my kernel how to switch from 4.14.xx to 4.19 and back?


(Frank W.) #7

Switch code or kernel-binary in system?

Code:

git checkout 4.9-main
git checkout 4.14-main
git checkout 4.19-rc
git checkout 4.19-wifi

Binary:

Switch via uboot (debug-uart). Here you need different filenames for different kernels (will be done by build.sh option 2 -install)


(Maciek Szelągowski) #8

switch code :wink: thanks


(Robert) #9

You rock frank-w! Can’t wait to test!


(Frank W.) #10

Have merged wifi-driver, did some compilerfixes (compiles with gcc8 and maybe 7 now) and added automatic build (travis-ci)

releases here:


(Frank W.) #11

merged poweroff too

see https://github.com/frank-w/BPI-R2-4.14/issues/35 if you have soldered power-button


(Thomas) #12

Hi Frank, thank you for your great work!

Branch 4.19-rc I have tested on my BPi-R2 and can confirm working

  • SATA
  • iptables
  • docker*
  • USB ( tested with USB Stick. )

for docker I had to create more netfilter modules (all of iptables, nftables, ebtables etc.)

Also because I am using arno-iptables-firewall, I do also need more netfilter modules

I did compile branch 4.19-rc on archlinux directly on the BPi-R2. For that I did modify your build.sh

source /etc/os-release
if [ ${ID_LIKE} == "arch" ]; then
  for package in "ccache" "uboot-tools" "bc" "make" "gcc" "glibc" "ncurses" "openssl" "fakeroot" "ccache"; do
    TESTPKG=$(pacman -Qi ${package})
    if [[ -z "${TESTPKG}" ]];then echo "please install ${package}";PACKAGE_Error=1;fi
  done
else
  for package in "u-boot-tools" "bc" "make" "gcc" "libc6-dev" "libncurses5-dev" "libssl-dev" "fakeroot" "ccache"; do
    TESTPKG=$(dpkg -l |grep "\s${package}")
    if [[ -z "${TESTPKG}" ]];then echo "please install ${package}";PACKAGE_Error=1;fi
  done
fi
if [ ${PACKAGE_Error} == 1 ]; then exit 1; fi

(Frank W.) #13

thanks for your test…have you used last 4.19-rc? i’ve added many iptables-options yesterday (from 4.14)…if yes, which are missing, so that i can add them

for your build.sh-modification, we should try to make only 1 loop…avoiding redundant code. are some packages named different (e.g. u-boot-tools)? btw. ccache is listed twice

something like that (untested):

#generic packages
packages=("bc" "make" "gcc" "libc6-dev" "libncurses5-dev" "libssl-dev" "fakeroot" "ccache")

source /etc/os-release
if [ ${ID_LIKE} == "arch" ]; then
    pkg_chk="pacman -Qi "
    packages+=("uboot-tools")
else
    pkg_chk="dpkg -l | grep "
    packages+=("u-boot-tools")
fi

for package in $packages;do
    TESTPKG=$($pkg_chk "\s${package}")
    if [[ -z "${TESTPKG}" ]];then echo "please install ${package}";PACKAGE_Error=1;fi
done

if [ ${PACKAGE_Error} == 1 ]; then exit 1; fi

this construct is also helpful to check packages for special actions…e.g. libssl-dev is only needed to build openssl, fakeroot only needed for debian-package creation


(Thomas) #14

I was testing with commit f9d39524da625b2edfe7daaf0f7a5af923e2ce70 so I think your changes to config where there already. But docker was not working, the daemon did not start.

I do not have logs from docker with your 4.19-rc1 release on github. But I can retest if you like. Anyhow, because BPi-R2 is a router I think we should add more netfilter modules by default?

Several packages have different names.

This is tested:

#Check Dependencies
PACKAGE_Error=0

#generic package names
packages="bc make gcc fakeroot ccache "

source /etc/os-release
if [ ${ID_LIKE} == "arch" ]; then
    packages+="uboot-tools glibc ncurses openssl"
else
    packages+="u-boot-tools libc6-dev libncurses5-dev libssl-dev"
fi

for package in $packages; do
    if [ ${ID_LIKE} == "arch" ]; then
        TESTPKG=$(pacman -Qi ${package} 2>/dev/null)
    else
        TESTPKG=$(dpkg -l | grep "\s${package}")
    fi
    if [[ -z "${TESTPKG}" ]];then echo "please install ${package}";PACKAGE_Error=1;fi
done

if [ ${PACKAGE_Error} == 1 ]; then exit 1; fi

(Frank W.) #15

yes this commit adds the options from 4.14…so all added there should be in 4.19…i have added options which are needed to that point…not “all” :slight_smile:

just say me, which options do you need (your log misses the name after iptables target/match)…


(Thomas) #16

I tried your newest release in github 4.19-rc-20180902093159 docker works but complains about several missing kernel modules. I do only have very limited time to try to find the correct list of modules. Maybe till next sunday I can provide a list.

By the way: the tar.gz archived linked to the 4.19 releases do not contain the 4.19 source code, but the 4.14.67.

$ journalctl --boot=1 -u docker
Sep 02 19:26:41 alarmr2 systemd[1]: Starting Docker Application Container Engine...
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.274530282Z" level=info msg="libcontainerd: started new docker-containerd process" pid=1210
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.275186836Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.275309056Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.303157001Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/docker-containerd.sock 0  <nil>}]" module=grpc
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.303365058Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 02 19:26:43 alarmr2 dockerd[1184]: time="2018-09-02T19:26:43.303780404Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x1341e6e0, CONNECTING" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="starting containerd" revision=d64c661f1d51c48782c9cec8fda7604785f93587 version=v1.1.1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.content.v1.content"..." type=io.containerd.content.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.btrfs"..." type=io.containerd.snapshotter.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.btrfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.aufs"..." type=io.containerd.snapshotter.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.aufs" error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/4.19.0-rc1-bpi-r2-rc\n": exit status 1"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.native"..." type=io.containerd.snapshotter.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.overlayfs"..." type=io.containerd.snapshotter.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.snapshotter.v1.zfs"..." type=io.containerd.snapshotter.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.zfs" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.metadata.v1.bolt"..." type=io.containerd.metadata.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="could not use snapshotter btrfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs must be a btrfs filesystem to be used with the btrfs snapshotter"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="could not use snapshotter aufs in metadata plugin" error="modprobe aufs failed: "modprobe: FATAL: Module aufs not found in directory /lib/modules/4.19.0-rc1-bpi-r2-rc\n": exit status 1"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=warning msg="could not use snapshotter zfs in metadata plugin" error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.differ.v1.walking"..." type=io.containerd.differ.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.gc.v1.scheduler"..." type=io.containerd.gc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.containers-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.content-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.diff-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.images-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.leases-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.namespaces-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.snapshots-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.monitor.v1.cgroups"..." type=io.containerd.monitor.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.runtime.v1.linux"..." type=io.containerd.runtime.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.service.v1.tasks-service"..." type=io.containerd.service.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.containers"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.content"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.diff"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.events"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.healthcheck"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.images"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.leases"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.namespaces"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.snapshots"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.tasks"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.version"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.cri"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start cri plugin with config {PluginConfig:{ContainerdConfig:{Snapshotter:overlayfs DefaultRuntime:{Type:io.containerd.runtime.v1.linux Engine: Root:} UntrustedWorkloadRuntime:{Type: Engine: Root:}} CniConfig:{NetworkPluginBinDir:/opt/cni/bin NetworkPluginConfDir:/etc/cni/net.d NetworkPluginConfTemplate:} Registry:{Mirrors:map[docker.io:{Endpoints:[https://registry-1.docker.io]}]} StreamServerAddress: StreamServerPort:10010 EnableSelinux:false SandboxImage:k8s.gcr.io/pause:3.1 StatsCollectPeriod:10 SystemdCgroup:false EnableTLSStreaming:false} ContainerdRootDir:/var/lib/docker/containerd/daemon ContainerdEndpoint:/var/run/docker/containerd/docker-containerd.sock RootDir:/var/lib/docker/containerd/daemon/io.containerd.grpc.v1.cri StateDir:/var/run/docker/containerd/daemon/io.containerd.grpc.v1.cri}"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Connect containerd service"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Get image filesystem path "/var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.overlayfs""
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=error msg="Failed to load cni during init, please check CRI plugin status before setting up network for pods" error="cni config load failed: no network config found in /etc/cni/net.d: cni plugin not initialized: failed to load cni config"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="loading plugin "io.containerd.grpc.v1.introspection"..." type=io.containerd.grpc.v1
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start subscribing containerd event"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd-debug.sock"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start recovering state"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg=serving... address="/var/run/docker/containerd/docker-containerd.sock"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="containerd successfully booted in 0.058628s"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start event monitor"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start snapshots syncer"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44Z" level=info msg="Start streaming server"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.441939942Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x1341e6e0, READY" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.499067301Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.499245439Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.499574871Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/docker-containerd.sock 0  <nil>}]" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.499765546Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.500036752Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x131077b0, CONNECTING" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.501722138Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x131077b0, READY" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.542419217Z" level=info msg="[graphdriver] using prior storage driver: overlay2"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.663625536Z" level=info msg="Graph migration to content-addressability took 0.00 seconds"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.665635738Z" level=warning msg="Your kernel does not support swap memory limit"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.666602727Z" level=warning msg="Your kernel does not support cgroup cfs period"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.667197673Z" level=warning msg="Your kernel does not support cgroup cfs quotas"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.667732702Z" level=warning msg="Your kernel does not support cgroup rt period"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.668475481Z" level=warning msg="Your kernel does not support cgroup rt runtime"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.669096578Z" level=warning msg="Unable to find blkio cgroup in mounts"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.670307699Z" level=warning msg="mountpoint for pids not found"
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.673045989Z" level=info msg="parsed scheme: \"unix\"" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.673755310Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.674667458Z" level=info msg="ccResolverWrapper: sending new addresses to cc: [{unix:///var/run/docker/containerd/docker-containerd.sock 0  <nil>}]" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.675224715Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.675905884Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x1313e040, CONNECTING" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.677081470Z" level=info msg="pickfirstBalancer: HandleSubConnStateChange: 0x1313e040, READY" module=grpc
Sep 02 19:26:44 alarmr2 dockerd[1184]: time="2018-09-02T19:26:44.677307526Z" level=info msg="Loading containers: start."
Sep 02 19:26:45 alarmr2 dockerd[1184]: time="2018-09-02T19:26:45.957212208Z" level=warning msg="Could not load necessary modules for IPSEC rules: Running modprobe xfrm_user failed with message: `modprobe: WARNING: Module xfrm_user not found in directory /lib/modules/4.19.0-rc1-bpi-r2-rc`, error: exit status 1"
Sep 02 19:26:45 alarmr2 dockerd[1184]: time="2018-09-02T19:26:45.983385205Z" level=warning msg="Could not load necessary modules for Conntrack: Running modprobe nf_conntrack_netlink failed with message: `modprobe: WARNING: Module nf_conntrack_netlink not found in directory /lib/modules/4.19.0-rc1-bpi-r2-rc`, error: exit status 1"
Sep 02 19:26:47 alarmr2 dockerd[1184]: time="2018-09-02T19:26:47.100965582Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address"
Sep 02 19:26:47 alarmr2 dockerd[1184]: time="2018-09-02T19:26:47.786513408Z" level=info msg="Loading containers: done."
Sep 02 19:26:48 alarmr2 dockerd[1184]: time="2018-09-02T19:26:48.609460412Z" level=info msg="Docker daemon" commit=0ffa8257ec graphdriver(s)=overlay2 version=18.06.0-ce
Sep 02 19:26:48 alarmr2 dockerd[1184]: time="2018-09-02T19:26:48.611148966Z" level=info msg="Daemon has completed initialization"
Sep 02 19:26:48 alarmr2 dockerd[1184]: time="2018-09-02T19:26:48.799845959Z" level=info msg="API listen on /var/run/docker.sock"
Sep 02 19:26:48 alarmr2 systemd[1]: Started Docker Application Container Engine.
Sep 02 19:27:13 alarmr2 dockerd[1184]: time="2018-09-02T19:27:13.044582565Z" level=warning msg="Seccomp is not enabled in your kernel, running container without default profile."
Sep 02 19:27:13 alarmr2 dockerd[1184]: time="2018-09-02T19:27:13Z" level=info msg="shim docker-containerd-shim started" address="/containerd-shim/moby/494d697d2bedc3d15ec7b4d222370298f1759088b4c375769825938cad072cf1/shim.sock" debug=false pid=1710
Sep 02 19:28:21 alarmr2 dockerd[1184]: time="2018-09-02T19:28:21Z" level=info msg="shim reaped" id=494d697d2bedc3d15ec7b4d222370298f1759088b4c375769825938cad072cf1
Sep 02 19:28:21 alarmr2 dockerd[1184]: time="2018-09-02T19:28:21.781571695Z" level=info msg="ignoring event" module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"

(Frank W.) #17

from your log these seem to be missing…will try to find them in menuconfig

  • aufs
  • btrfs
  • zfs
  • xrfm_user
  • nf_conntrack_netlink
  • swap_memory_limit
  • cgroup cfs_period, cfs_quota, rt_period, rt_quota

thanks for the info about release-source. releases are created by travis-ci, controlled by .travis-ci.yml the source-archives are created automaticly…don’t know how to control that. maybe i have to contact support

aufs/zfs seems to be dropped from kernel, docker should use overlayfs, see https://en.wikipedia.org/wiki/Aufs

found http://aufs.sourceforge.net/ here…seems that it have to be included separately https://github.com/sfjro/aufs4-standalone/tree/aufs4.x-rcN

btrfs is included, also have not found cgroups and swap memory limit

currently i’m on the way to include these 3 Modules:

CONFIG_IP_MROUTE=y
CONFIG_NETFILTER_NETLINK=m
CONFIG_NF_CT_NETLINK=m

from docker documentation (based on kernel 3.6):

#cgroups
MEMCG_SWAP=y
MEMCG_SWAP_ENABLED=y
CONFIG_BLK_CGROUP=y
CONFIG_CFS_BANDWIDTH=y
RT_GROUP_SCHED=y
CONFIG_CGROUP_PIDS=y
CONFIG_CGROUP_PERF=y

CGROUP_NET_CLASSID=y
CGROUP_NET_PRIO=y

#net
CONFIG_DUMMY=m


#sheduler
CFQ_GROUP_IOSCHED=y

#device mapper
DM_THIN_PROVISIONING=m

(Frank W.) #18

hdmi+fbdev also merged to 4.19-rc


#19

hdmi related patches for 4.19:

https://patchwork.kernel.org/project/linux-mediatek/list/?series=15283

https://patchwork.kernel.org/project/linux-mediatek/list/?series=15213


(Frank W.) #20

thanks, have to compare with my current state… Is anything new in these patches? is there a resolution-update (dvi/vga)?

patch 8/13 seems to be broken

[17:16:18]$ patch -p1 < ~/Schreibtisch/4.19-hdmi/08_13.patch 
patching file drivers/gpu/drm/mediatek/mtk_hdmi.c
patch: **** malformed patch at line 27:

line 27 is the empty line at the end of chunk #1

08_13.patch (1,4 KB)

have done it manually: 08_13_new.patch (1,4 KB)

added patches to https://github.com/frank-w/BPI-R2-4.14/tree/4.19-hdmi_new

xserver works, but these patches seem not to be compatible to fbdev… @DeadMeat can you take a look? fbdev.patch (12,9 KB)

details
[    0.785566] mediatek-hdmi-phy 10209100.phy: Using default TX DRV impedance: 6
[    0.788434] random: crng init done
[    0.797429] [drm] hdmi-audio-codec driver bound to HDMI
[    0.806558] mediatek-dpi 14014000.dpi: Found bridge node: /
[    0.813421] mediatek-drm 14000000.dispsys: Adding component match for /ovl@10
[    0.821062] mediatek-drm 14000000.dispsys: Adding component match for /rdma@0
[    0.828869] mediatek-drm 14000000.dispsys: Adding component match for /color0
[    0.836755] mediatek-drm 14000000.dispsys: Adding component match for /rdma@0
[    0.844588] mediatek-drm 14000000.dispsys: Adding component match for /dpi@10
[    0.852827] mediatek-drm 14000000.dispsys: bound 14007000.ovl (ops mtk_disp_)
[    0.861430] mediatek-drm 14000000.dispsys: bound 14008000.rdma (ops mtk_disp)
[    0.870183] mediatek-drm 14000000.dispsys: bound 1400b000.color (ops mtk_dis)
[    0.879102] mediatek-drm 14000000.dispsys: bound 14012000.rdma (ops mtk_disp)
[    0.887867] mediatek-drm 14000000.dispsys: bound 14014000.dpi (ops mtk_dpi_c)
[    0.896108] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    0.902678] [drm] No driver support for vblank timestamp query.
[    0.944352] Unable to handle kernel NULL pointer dereference at virtual addr8
[    0.944362] pgd = 8e05a073
[    0.944366] [00000018] *pgd=00000000
[    0.944378] Internal error: Oops: 5 [#1] SMP ARM
[    0.944383] Modules linked in:
[    0.944394] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.0-rc1-bpi-r2-hdmi8
[    0.944397] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    0.944411] PC is at mtk_smi_larb_get+0x1c/0x70
[    0.944420] LR is at mtk_drm_crtc_atomic_enable+0x54/0x41c
[    0.944424] pc : [<c0766bfc>]    lr : [<c05133f8>]    psr: 60000013
[    0.944427] sp : de8fb750  ip : de8fb778  fp : de8fb774
[    0.944431] r10: dee64104  r9 : dee3e800  r8 : c0a4a358
[    0.944435] r7 : dee42750  r6 : deacaa10  r5 : dee478c0  r4 : 00000000
[    0.944439] r3 : cbdec946  r2 : cbdec946  r1 : c0c85fcc  r0 : deacaa10
[    0.944445] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.944449] Control: 10c5387d  Table: 8000406a  DAC: 00000051
[    0.944454] Process swapper/0 (pid: 1, stack limit = 0x33dc93aa)
[    0.944459] Stack: (0xde8fb750 to 0xde8fc000)
[    0.944466] b740:                                     de905010 dee478c0 c0f00
[    0.944474] b760: c0a4a358 dee3e800 de8fb7cc de8fb778 c05133f8 c0766bec 00008
[    0.944483] b780: de825810 debd28e4 debd2814 debb5d00 de8fb7bc de8fb7a0 c04f6
[    0.944491] b7a0: dee478c0 00000000 dee478c0 de905010 c0c1c140 c0a4a358 dee34
[    0.944499] b7c0: de8fb7fc de8fb7d0 c04d1c0c c05133b0 00000001 dee478c0 dee68
[    0.944508] b7e0: dee64400 dee64114 00000000 dee64104 de8fb81c de8fb800 c0510
[    0.944516] b800: 00000000 dee64010 dee478c0 dee64400 de8fb84c de8fb820 c0514
[    0.944524] b820: c0515138 00000000 dee478c0 dee64400 dee6412c 00000001 dee42
[    0.944533] b840: de8fb86c de8fb850 c04f15fc c0515144 dee478c0 dee64620 0000c
[    0.944541] b860: de8fb8cc de8fb870 c04d4808 c04f15b4 c0f04c48 dee64400 80100
[    0.944549] b880: 00000002 0000000b 00000000 00000000 de90703c de9053e8 00006
[    0.944558] b8a0: de8fb8e4 00000000 dee6412c c0f53668 00000000 dee641e0 c0fe0
[    0.944566] b8c0: de8fb90c de8fb8d0 c04d6650 c04d4640 00000001 00000000 de8f8
[    0.944574] b8e0: dee48300 00000000 dee6412c c0f53668 00000000 dee641e0 c0fe0
[    0.944583] b900: de8fb934 de8fb910 c04d844c c04d6610 00000000 dee65000 c0fe4
[    0.944591] b920: 00000000 c0fef4c0 de8fb94c de8fb938 c04d84dc c04d83f4 de8d0
[    0.944600] b940: de8fb9ac de8fb950 c0462a88 c04d84a8 de8d0400 c0ff18c0 de8f3
[    0.944608] b960: 00000043 000000f0 c0ff18c4 000000f0 00000000 00000001 00000
[    0.944616] b980: 00000001 de8d0400 00000000 de8d0514 00000001 c0c11d18 de8d0
[    0.944624] b9a0: de8fb9cc de8fb9b0 c04a15a8 c0462614 00000000 00000000 c0a21
[    0.944633] b9c0: de8fba1c de8fb9d0 c04a37a8 c04a14e4 0000003e 00000001 00000
[    0.944641] b9e0: c0ff18d0 00000000 0000003e 00000000 de8fba28 c0ff18dc c0a20
[    0.944649] ba00: 00000000 0000003e 00000001 00000000 de8fba5c de8fba20 c04a8
[    0.944657] ba20: c0f4ee7c c0c188fc 00000001 dee3f408 de8fba5c c0fef4c0 c0f40
[    0.944666] ba40: 00000000 00000000 dee65010 00000000 de8fba74 de8fba60 c0468
[    0.944674] ba60: c0fef5c0 c0f4a224 de8fbac4 de8fba78 c046692c c0462be0 00000
[    0.944682] ba80: de8fba9c 00000000 c0f04c48 c0f4a214 de8fbae4 de8fbaa0 c02ff
[    0.944691] baa0: 00000000 de8fbb3c 00000005 00000000 dee65010 00000000 de8f8
[    0.944699] bac0: c014bf34 c0465f90 00000005 c0f4a134 de8fbb3c c0f04c48 c0f00
[    0.944707] bae0: de8fbb14 de8fbaf0 c014c84c c014bee8 00000000 c096ab70 de8f0
[    0.944716] bb00: 00000000 c0fef4b8 de8fbb24 de8fbb18 c045a608 c014c7f8 de8f8
[    0.944724] bb20: c045c3f0 c045a5ec c0c11a00 00000000 00000000 dee65228 00000
[    0.944732] bb40: 00000000 00000000 00000000 00000780 00000438 00000000 00000
[    0.944740] bb60: 00000000 00000000 00000000 00000000 00000000 00000000 00006
[    0.944748] bb80: de8fbba4 dee6412c c0f04c48 dee65000 c0f53668 dee641e0 00000
[    0.944757] bba0: de8fbc04 de8fbbb0 c04d7ecc c045c1c0 dee47400 00000002 00000
[    0.944765] bbc0: 00000438 00000780 00000438 00000020 00000018 cbdec946 0000c
[    0.944773] bbe0: 00000020 00000000 c0f90318 dee45250 00000005 c0514fd4 de8f8
[    0.944782] bc00: c04d8724 c04d7c90 dee64400 dee6412c de8fbc3c de8fbc20 c051c
[    0.944790] bc20: dee64400 00000000 dee64010 c0f90318 de8fbc5c de8fbc40 c0510
[    0.944799] bc40: dee45000 df7f2234 dee452c0 c0f90318 de8fbcac de8fbc60 c0514
[    0.944807] bc60: c0381a94 c0176b74 de4c1b54 c0c239c0 c0f544d0 c0c239a4 00008
[    0.944815] bc80: de8fbcac dee452c0 c0f544d0 c0f544e4 deae84c0 c0a4ada0 dee60
[    0.944824] bca0: de8fbcd4 de8fbcb0 c051c718 c051c128 c0a4c9c4 c096ab70 00000
[    0.944832] bcc0: deaa9c00 00000005 de8fbd34 de8fbcd8 c0515888 c051c638 00000
[    0.944841] bce0: c0a4ada0 006080c0 deaa9c00 c0c6cd40 c0f04c48 c0514fd4 c0c20
[    0.944849] bd00: dee45250 cbdec946 c053c134 deaa9c10 00000000 c0f54268 00000
[    0.944858] bd20: 00000000 c0f54268 de8fbd54 de8fbd38 c0525d48 c0515518 c0ff0
[    0.944866] bd40: c0ff2be0 00000000 de8fbd94 de8fbd58 c052359c c0525cfc deaa4
[    0.944874] bd60: 00000000 00000000 de8fbd94 deaa9c10 c0f54268 c0f54268 c0520
[    0.944883] bd80: c0525cf0 00000000 de8fbdcc de8fbd98 c0523984 c0523354 c0754
[    0.944891] bda0: de8fbdcc de8fbdb0 deaa9c10 deaa9c44 c0f54268 c0523ad8 00000
[    0.944900] bdc0: de8fbdec de8fbdd0 c0523c08 c0523908 deaa39b4 c0f04c48 c0f58
[    0.944909] bde0: de8fbe1c de8fbdf0 c0520f70 c0523ae4 de8e7a6c de8e7a58 deaa6
[    0.944917] be00: c0f54268 c0f54958 dee2a900 c0f904f8 de8fbe2c de8fbe20 c0528
[    0.944925] be20: de8fbe5c de8fbe30 c05226e0 c0522d60 c0c22ae0 c052562c de8f8
[    0.944934] be40: 00000005 c0f907f8 c052562c c0525ca4 de8fbe74 de8fbe60 c052c
[    0.944942] be60: c0a4a9f0 00000005 de8fbeb4 de8fbe78 c0525fcc c0524900 c0a4c
[    0.944951] be80: c0a4a9ec 00000008 c05249a8 c0f894e0 c0f04c48 c0e33c8c 00000
[    0.944959] bea0: c0e68854 ffffe000 de8fbec4 de8fbeb8 c0e33cb4 c0525f54 de8f8
[    0.944968] bec0: c010304c c0e33c98 c0bda4dc c0bda4bc c0bda508 c0bee200 c0f00
[    0.944976] bee0: 00000000 c0c71b84 c0bda450 00000006 00000006 c0f8dd98 c0e08
[    0.944984] bf00: de8fbf24 e07fcd91 00000000 cbdec946 00000000 cbdec946 c0e04
[    0.944993] bf20: c0e97980 00000007 c0fb7ac0 c0fb7ac0 de8fbf94 de8fbf40 c0e04
[    0.945001] bf40: 00000006 00000006 00000000 c0e00534 de8fbf74 de8fbf60 c0cd4
[    0.945009] bf60: 000000d2 c0f894e0 de8fbf8c 00000000 c0964a80 00000000 00000
[    0.945018] bf80: 00000000 00000000 de8fbfac de8fbf98 c0964a98 c0e01018 00000
[    0.945026] bfa0: 00000000 de8fbfb0 c01010e8 c0964a8c 00000000 00000000 00000
[    0.945033] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000
[    0.945041] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000
[    0.945064] [<c0766bfc>] (mtk_smi_larb_get) from [<c05133f8>] (mtk_drm_crtc_)
[    0.945081] [<c05133f8>] (mtk_drm_crtc_atomic_enable) from [<c04d1c0c>] (drm)
[    0.945095] [<c04d1c0c>] (drm_atomic_helper_commit_modeset_enables) from [<c)
[    0.945105] [<c05150f4>] (mtk_atomic_complete) from [<c05151b8>] (mtk_atomic)
[    0.945118] [<c05151b8>] (mtk_atomic_commit) from [<c04f15fc>] (drm_atomic_c)
[    0.945131] [<c04f15fc>] (drm_atomic_commit) from [<c04d4808>] (restore_fbde)
[    0.945143] [<c04d4808>] (restore_fbdev_mode_atomic) from [<c04d6650>] (rest)
[    0.945153] [<c04d6650>] (restore_fbdev_mode) from [<c04d844c>] (drm_fb_help)
[    0.945163] [<c04d844c>] (drm_fb_helper_restore_fbdev_mode_unlocked) from [<)
[    0.945173] [<c04d84dc>] (drm_fb_helper_set_par) from [<c0462a88>] (fbcon_in)
[    0.945184] [<c0462a88>] (fbcon_init) from [<c04a15a8>] (visual_init+0xd0/0x)
[    0.945196] [<c04a15a8>] (visual_init) from [<c04a37a8>] (do_bind_con_driver)
[    0.945207] [<c04a37a8>] (do_bind_con_driver) from [<c04a3d54>] (do_take_ove)
[    0.945216] [<c04a3d54>] (do_take_over_console) from [<c0462c58>] (do_fbcon_)
[    0.945225] [<c0462c58>] (do_fbcon_takeover) from [<c046692c>] (fbcon_event_)
[    0.945236] [<c046692c>] (fbcon_event_notify) from [<c014bf34>] (notifier_ca)
[    0.945248] [<c014bf34>] (notifier_call_chain) from [<c014c84c>] (blocking_n)
[    0.945259] [<c014c84c>] (blocking_notifier_call_chain) from [<c045a608>] (f)
[    0.945271] [<c045a608>] (fb_notifier_call_chain) from [<c045c3f0>] (registe)
[    0.945282] [<c045c3f0>] (register_framebuffer) from [<c04d7ecc>] (__drm_fb_)
[    0.945292] [<c04d7ecc>] (__drm_fb_helper_initial_config_and_unlock) from [<)
[    0.945303] [<c04d8724>] (drm_fb_helper_initial_config) from [<c05199a0>] (m)
[    0.945314] [<c05199a0>] (mtk_fbdev_init) from [<c05153e0>] (mtk_drm_bind+0x)
[    0.945324] [<c05153e0>] (mtk_drm_bind) from [<c051c338>] (try_to_bring_up_m)
[    0.945336] [<c051c338>] (try_to_bring_up_master) from [<c051c718>] (compone)
[    0.945346] [<c051c718>] (component_master_add_with_match) from [<c0515888>])
[    0.945358] [<c0515888>] (mtk_drm_probe) from [<c0525d48>] (platform_drv_pro)
[    0.945369] [<c0525d48>] (platform_drv_probe) from [<c052359c>] (really_prob)
[    0.945379] [<c052359c>] (really_probe) from [<c0523984>] (driver_probe_devi)
[    0.945389] [<c0523984>] (driver_probe_device) from [<c0523c08>] (__driver_a)
[    0.945399] [<c0523c08>] (__driver_attach) from [<c0520f70>] (bus_for_each_d)
[    0.945409] [<c0520f70>] (bus_for_each_dev) from [<c0522d80>] (driver_attach)
[    0.945419] [<c0522d80>] (driver_attach) from [<c05226e0>] (bus_add_driver+0)
[    0.945429] [<c05226e0>] (bus_add_driver) from [<c0524978>] (driver_register)
[    0.945440] [<c0524978>] (driver_register) from [<c0525fcc>] (__platform_reg)
[    0.945452] [<c0525fcc>] (__platform_register_drivers) from [<c0e33cb4>] (mt)
[    0.945464] [<c0e33cb4>] (mtk_drm_init) from [<c010304c>] (do_one_initcall+0)
[    0.945477] [<c010304c>] (do_one_initcall) from [<c0e01294>] (kernel_init_fr)
[    0.945490] [<c0e01294>] (kernel_init_freeable) from [<c0964a98>] (kernel_in)
[    0.945500] [<c0964a98>] (kernel_init) from [<c01010e8>] (ret_from_fork+0x14)
[    0.945504] Exception stack(0xde8fbfb0 to 0xde8fbff8)
[    0.945510] bfa0:                                     00000000 00000000 00000
[    0.945518] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000
[    0.945524] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    0.945533] Code: e52de004 e8bd4000 e5904054 e1a06000 (e5943018) 
[    0.945556] ---[ end trace 24940f62ccdf6ae0 ]---
[    0.945587] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0b
[    0.945587] 
[    0.945601] CPU1: stopping
[    0.945609] CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D           4.19.08
[    0.945612] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    0.945631] [<c0114c78>] (unwind_backtrace) from [<c010e848>] (show_stack+0x)
[    0.945644] [<c010e848>] (show_stack) from [<c094f4a4>] (dump_stack+0x94/0xa)
[    0.945656] [<c094f4a4>] (dump_stack) from [<c0112a04>] (handle_IPI+0x350/0x)
[    0.945666] [<c0112a04>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x9c)
[    0.945675] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/)
[    0.945679] Exception stack(0xde933f30 to 0xde933f78)
[    0.945685] 3f20:                                     00000000 000016f0 df7a0
[    0.945693] 3f40: ffffe000 c0f04c70 c0f04cb4 00000002 00000001 c0f890b2 c0bdc
[    0.945700] 3f60: de933f90 de933f80 c010ab44 c010ab48 60000013 ffffffff
[    0.945712] [<c0101a0c>] (__irq_svc) from [<c010ab48>] (arch_cpu_idle+0x48/0)
[    0.945725] [<c010ab48>] (arch_cpu_idle) from [<c096aa00>] (default_idle_cal)
[    0.945737] [<c096aa00>] (default_idle_call) from [<c015a038>] (do_idle+0x12)
[    0.945748] [<c015a038>] (do_idle) from [<c015a334>] (cpu_startup_entry+0x28)
[    0.945758] [<c015a334>] (cpu_startup_entry) from [<c0112404>] (secondary_st)
[    0.945769] [<c0112404>] (secondary_start_kernel) from [<801026ec>] (0x80102)
[    0.945776] CPU2: stopping
[    0.945783] CPU: 2 PID: 0 Comm: swapper/2 Tainted: G      D           4.19.08
[    0.945786] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    0.945799] [<c0114c78>] (unwind_backtrace) from [<c010e848>] (show_stack+0x)
[    0.945810] [<c010e848>] (show_stack) from [<c094f4a4>] (dump_stack+0x94/0xa)
[    0.945821] [<c094f4a4>] (dump_stack) from [<c0112a04>] (handle_IPI+0x350/0x)
[    0.945830] [<c0112a04>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x9c)
[    0.945839] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/)
[    0.945842] Exception stack(0xde935f30 to 0xde935f78)
[    0.945849] 5f20:                                     00000000 000001ec df7c0
[    0.945857] 5f40: ffffe000 c0f04c70 c0f04cb4 00000004 00000001 c0f890b2 c0bdc
[    0.945864] 5f60: de935f90 de935f80 c010ab44 c010ab48 60000013 ffffffff
[    0.945874] [<c0101a0c>] (__irq_svc) from [<c010ab48>] (arch_cpu_idle+0x48/0)
[    0.945885] [<c010ab48>] (arch_cpu_idle) from [<c096aa00>] (default_idle_cal)
[    0.945895] [<c096aa00>] (default_idle_call) from [<c015a038>] (do_idle+0x12)
[    0.945905] [<c015a038>] (do_idle) from [<c015a334>] (cpu_startup_entry+0x28)
[    0.945915] [<c015a334>] (cpu_startup_entry) from [<c0112404>] (secondary_st)
[    0.945924] [<c0112404>] (secondary_start_kernel) from [<801026ec>] (0x80102)
[    0.945929] CPU3: stopping
[    0.945936] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G      D           4.19.08
[    0.945939] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    0.945953] [<c0114c78>] (unwind_backtrace) from [<c010e848>] (show_stack+0x)
[    0.945963] [<c010e848>] (show_stack) from [<c094f4a4>] (dump_stack+0x94/0xa)
[    0.945974] [<c094f4a4>] (dump_stack) from [<c0112a04>] (handle_IPI+0x350/0x)
[    0.945983] [<c0112a04>] (handle_IPI) from [<c01022a8>] (gic_handle_irq+0x9c)
[    0.945992] [<c01022a8>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/)
[    0.945996] Exception stack(0xde937f30 to 0xde937f78)
[    0.946002] 7f20:                                     00000000 00000320 df7d0
[    0.946011] 7f40: ffffe000 c0f04c70 c0f04cb4 00000008 00000001 c0f890b2 c0bdc
[    0.946018] 7f60: de937f90 de937f80 c010ab44 c010ab48 60000013 ffffffff
[    0.946028] [<c0101a0c>] (__irq_svc) from [<c010ab48>] (arch_cpu_idle+0x48/0)
[    0.946039] [<c010ab48>] (arch_cpu_idle) from [<c096aa00>] (default_idle_cal)
[    0.946049] [<c096aa00>] (default_idle_call) from [<c015a038>] (do_idle+0x12)
[    0.946059] [<c015a038>] (do_idle) from [<c015a334>] (cpu_startup_entry+0x28)
[    0.946069] [<c015a334>] (cpu_startup_entry) from [<c0112404>] (secondary_st)
[    0.946078] [<c0112404>] (secondary_start_kernel) from [<801026ec>] (0x80102)
[    2.403575] ---[ end Kernel panic - not syncing: Attempted to kill init! exib
[    2.403575]  ]---

last function from stacktrace i’ve found is drm_fb_helper_set_par which is linked in drivers/gpu/drm/mediatek/mtk_drm_fbdev.c, but i’ve not found its implementation…

static struct fb_ops mtk_fbdev_ops = {
...
	.fb_set_par = drm_fb_helper_set_par,

other functions seem not to be affected by the fbdev-patch

./include/soc/mediatek/smi.h:44:int mtk_smi_larb_get(struct device *larbdev);
./include/soc/mediatek/smi.h:49:static inline int mtk_smi_larb_get(struct device *larbdev)
./drivers/gpu/drm/mediatek/mtk_drm_crtc.c:369:static void mtk_drm_crtc_atomic_enable(struct drm_crtc *crtc,
./drivers/gpu/drm/mediatek/mtk_drm_drv.c:83:	drm_atomic_helper_commit_modeset_enables(drm, state);
./drivers/gpu/drm/mediatek/mtk_drm_drv.c:61:static void mtk_atomic_complete(struct mtk_drm_private *private,
./drivers/gpu/drm/mediatek/mtk_drm_drv.c:98:	mtk_atomic_complete(private, private->commit.state);
./drivers/gpu/drm/mediatek/mtk_drm_drv.c:126:		mtk_atomic_complete(private, state);

crash only occours if i connect tv (+on) to r2…if i boot without TV on no crash

4.19-hdmi-new.boot.log (25,7 KB)

mtk_smi_larb_get always return 0 and do nothing so i land here:

i miss the

DRM_DEBUG_DRIVER("%s %d\n", __func__, crtc->base.id);

to be printed…have drm.debug=0x7 set in boot-options, but maybe it’s the point it crashed…crtc->base.id or ovl->larb_dev may cause the crash