device tree 配置proc 节点 用那个dts

来源:互联网 发布:网络教育大专多少钱 编辑:程序博客网 时间:2024/06/05 08:45

kernel/drivers/of/Kconfig


配置如下:

 10 config PROC_DEVICETREE                                                           
 11     bool "Support for device tree in /proc"                                      
 12     depends on PROC_FS && !SPARC                                                 
 13     default y                                                                                                                                       
 14     help                                                                         
 15       This option adds a device-tree directory under /proc which contains        
 16       an image of the device tree that the kernel copies from Open               
 17       Firmware or other boot firmware. If unsure, say Y here. 


编译后,在/proc/device-tree将有所有的节点和属性。

0 0