@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
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
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
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"
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
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…