the errors you are seeing is because the pins are not setup
pins get setup by using an overlay at boot time
verify the overlay you require is being loaded in /boot/uEnv.txt
as of any 4.x kernel everything must be loaded at boot time from that file
the cape manager is not used
On 2/26/2018 6:5
After upgrading kernel with update_kernel script
I have got more issues:
can't open: /sys/devices/platform/ocp/ocp:H18_pinmux/state
Pinmux: No such file or directory
can't open: /sys/devices/platform/ocp/ocp:C18_pinmux/state
Pinmux: No such file or directory
can't open: /sys/devices/platform/ocp/