Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们正在尝试使用在文件系统和内核中禁用 sysfs 的自定义 linux。我想问一下如何使用驱动程序,或者在使用使用 sysfs 的驱动程序时需要进行哪些更改。
谢谢,冉
是的你可以。
用户空间和内核空间之间没有通过 sysfs 建立强联系,因为 sysfs 只出现在 2.6 内核中。
必须这样做:您将没有 udev 守护程序,因此您必须使用 mknod 命令静态创建设备文件。
ttyS0 设备文件示例:
mknod /dev/ttyS0 c 4 64