Hi, when you say that the folder does not exist, do you mean that the /sys folder is not present in the hostOS of your device?
Could you please ssh into the hostOS and paste the output from mount? There should be a:
sysfs on /sys type sysfs (rw,relatime)
Then you should be able to run:
mount -t debugfs nodev /sys/kernel/debug
On the hostOS. Once that works, you can reboot to make sure we start from a clean state, and then try the same thing from your container application. If your are running a multi-container app you will need to use the io.balena.features.sysfs label in your compose file so that the sys filesystem gets mounted in the container filesystem.
A little confused on which of these you wanted run on the hostOS and which inside the container, so did both:
On the hostOS:
root@b:/sys# sysfs on /sys type sysfs (rw,relatime)
-sh: syntax error near unexpected token `('
root@b:/sys# sysfs on /sys type sysfs
-sh: sysfs: command not found
root@b:/sys# mount -t debugfs nodev /sys/kernel/debug
mount: /sys/kernel/debug: mount point does not exist.
In the container:
root@b: balena run -it -e UDEV='on' --privileged --label io.balena.features.sysfs=1 balenalib/orange-pi-zero-alpine-node sh
mount: mounting nodev on /sys/kernel/debug failed: No such file or directory
Here are a few details about this Docker image (For more information please visit https://www.balena.io/docs/reference/base-images/base-images/):
Architecture: ARM v7
OS: Alpine Linux 3.12
Variant: run variant
Default variable(s): UDEV=off
The following software stack is preinstalled:
Node.js v15.0.1, Yarn v1.22.4
Extra features:
- Easy way to install packages with `install_packages <package-name>` command
- Run anywhere with cross-build feature (for ARM only)
- Keep the container idling with `balena-idle` command
- Show base image details with `balena-info` command
/ # sysfs on /sys type sysfs (rw,relatime)
/bin/sh: syntax error: unexpected "("
/ # sysfs on /sys type sysfs
/bin/sh: sysfs: not found
/ # mount -t debugfs nodev /sys/kernel/debug
mount: mounting nodev on /sys/kernel/debug failed: No such file or directory
/ #
To clarify my earlier comment, /sys/kernel exists inside the container and on the hostOS, but the folder debug in that location does not exist in either.
Hi, thanks for the information. The kernel shipped with this release lacks DEBUGFS support. I have opened an issue to solve this (https://github.com/balena-os/balena-allwinner/issues/128). Please use it to track progress, and we will update this thread once it’s fixed.