SAtacker / bb-config

Configure your beagle device
MIT License
41 stars 7 forks source link

Check /sys/class/remoteproc/ exists before iterating in it. #41

Closed ArthurSonzogni closed 3 years ago

ArthurSonzogni commented 3 years ago

Check /sys/class/remoteproc/ exists before iterating in it.

If we don't, this triggers the exception:

terminate called after throwing an instance of
'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: directory iterator cannot open directory:
  No such file or directory [/sys/class/remoteproc/]
SAtacker commented 3 years ago

Check /sys/class/remoteproc/ exists before iterating in it.

If we don't, this triggers the exception:

terminate called after throwing an instance of
'std::filesystem::__cxx11::filesystem_error'
  what():  filesystem error: directory iterator cannot open directory:
  No such file or directory [/sys/class/remoteproc/]

Thanks! I would further investigate as to why remoteproc mounts late.