chirimen-oh / any-issues

CHIRIMEN Open HardwareのISSUESを検討するために用意されています。 従って、issuesの議論の目的のみで利用されます。Messaging board (Forum) to discuss several CHIRIMEN issues.
3 stars 3 forks source link

ueventd.rc rules are not applied under certain conditions #62

Open MSakamaki opened 8 years ago

MSakamaki commented 8 years ago

From @naobsd on May 5, 2015 9:47

following rules are not applied under certain conditions.

/sys/devices/virtual/gpio/gpio*   direction   0666   root       root
/sys/devices/virtual/gpio/gpio*   value       0666   root       root

workaround: add usleep(10000); just before chown()/chmod() in system/core/init/devices.c:fixup_sys_perms() (probably this is not correct fix...)

Copied from original issue: MozOpenHard/CHIRIMEN#14

MSakamaki commented 8 years ago

From @masap on May 5, 2015 11:58

This delay is required on gecko side also.

I have inserted usleep(10000); between exporting and setting direction.

MSakamaki commented 8 years ago

From @naobsd on May 21, 2015 7:28

workaround is commited https://github.com/MozOpenHard/platform_system_core/commit/4f177d0b25c259a9340329db0cea01c8feabce8e