After a lot of tweaking, I’ve figured it out.
I’ve added the following code before starting the X11 process:
if which udevadm > /dev/null; then
set +e # Disable exit on error
udevadm control --reload-rules
service udev restart
udevadm trigger
set -e # Re-enable exit on error
fi
I restarted udev and did udevadm trigger
, and hotplugging USB’s started working. And I’ve combined it with the intel graphics drivers, so the UP Board uses the GPU instead of CPU.