Use mdev to automatically generate the device node
2013-01-14 19:04
323 查看
in the init script, e.g: rc.local
cat etc/init.d/rcS
#!/bin/sh
mount -o sys /sys
mount -o proc /proc
echo "----------mount /sys as sysfs"
mount -t tmpfs mdev /dev
echo "----------Starting mdev......"
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
cat etc/init.d/rcS
#!/bin/sh
mount -o sys /sys
mount -o proc /proc
echo "----------mount /sys as sysfs"
mount -t tmpfs mdev /dev
echo "----------Starting mdev......"
echo /sbin/mdev > /proc/sys/kernel/hotplug
mdev -s
相关文章推荐
- Use Rome to generate the RSS
- Use XML Schema Definition Tool to Generate the classes
- [Python] Use Python to generate Java Unit Test codes automatically
- How to use the xsd generator generate the class
- How to use the xsd generator generate the class
- 【Angular2】You have to be inside an angular-cli project in order to use the generate command
- How to use the xsd generator generate the class
- How to use the xsd generator generate the class
- How to use bindings-generator to generate lua binding automatically
- How to use the xsd generator generate the class
- why not use the following way to generate the CSV file?
- use code to generate Silverlight Controls at run time, and serialize the control into XAML file
- How to use the xsd generator generate the class
- "To use this device with Xcode, unlock the device and choose "Trust".
- How to use the xsd generator generate the class
- How to use the xsd generator generate the class
- The source file is different from when the module was built. Would you like the debugger to use it anyway?
- Unable to get the focused window from device - android
- You need to use a Theme.AppCompat theme (or descendant) with this activity
- [D3] Add image to the node