当前位置:首页>Linux>ARM Linux设备树

ARM Linux设备树

  • 2026-03-27 04:27:04
ARM Linux设备树

1、设备树

在过去的ARM Linux源码中,arch/arm/plat-xxx和arch/arm/mach-xxx中充斥着大量的垃圾代码,很多代码只是在描述板级设备硬件细节,而这些代码对内核来说就是垃圾

由此引出了设备树。

DTS(设备树)描述板级设备,起源自OpenFimware(OF)

——图片来自野火Linux教程

设备树的中节点会转化为linux中device,会代替平台驱动中的device和平台驱动进行匹配。

设备树文件也可以包含引用C语言的头文件


2、设备树编译

2.1 通过内核编译

//编译dtsmake ARCH=arm -j4 CROSS_COMPILE=arm-linux-gnueabihf- dtbs

2.3 手工编译

./scripts/dtc/dtc -I dts -O dtb -o xxx.dtb arch/arm/boot/dts/xxx.dts // 编译 dts 为 dtb./scripts/dtc/dtc -I dtb -O dts -o xxx.dts arch/arm/boot/dts/xxx.dtb // 反编译 dtb 为 dts
  • -I:指定输入格式
  • -O:指定输出格式
  • -o:指定输出文件

3、设备树可描述的信息

  • CPU的数量和类别
  • 内存寄地址和大小
  • 总线和桥
  • 外设连接
  • 中断控制器和中断使用情况
  • GPIO控制器和GPIO使用情况
  • 时钟控制器和时钟使用情况

4、设备树信息如何传递给内核?

设备树由bootloader传递给内核

5、设备树的文件

5.1 DTS (Device Tree Soure)

  • xxx.dts : ASCII文本格式的设备树描述文件
  • 一个xxx.dts对应一个ARM设备
  • dts文件一般放在内核arch/arm/boot/dts/目录中

5.2 DTSI

  • 把SoC公用的部分或者多个设备共同的部分一般提炼为.dtsi,类似于 C语言的头文件
  • 其他设备要使用xxx.dtsi就包含xxx.dtsi文件
  • xxx.dtsiu也可以包含其他dtsi
  • 一般.dtsi 文件用于描述 SOC 的内部外设信息,比如 CPU 架构、主频、外设寄存器地址范 围

5.3 DTC(Device Tree Compiler)

  • 将xxx.dts编译为xxx.dtb的工具

  • 类似C语言的编译器

  • DTC位于内核scripts/dtc/目录下

  • DTC可以在ubuntu中单独安装

    sudo apt-get install device-tree-compiler
  • 编译dts文件为dtb文件

    make dtbs
  • 反汇编dtb文件为dts文件

    ./scripts/dtc/dtc -I dtb -O dts -o xxx.dts arch/arm/boot/dts/xxx.dtb

5.4 DTB(Device Tree Blob)

  • DTC工具编译dts文件生成的二进制搁置的设备树描述文件
  • 可以由内核或uboot解析
  • 由uboot传递给内核

6、绑定(bindings)

  • 设备树节点和属性如何描述设备硬件细节需要文档来说明,一般是txt格式的文档

  • 该文档描述对应节点的兼容性、必须的属性和可选的属性

  • 这些文档位于内核目录Documentation/devicetree/bindings目录下


7、Bootloader

  • 一般使用的Uboot,Uboot从v1.1.3开始支持设备树

  • 使能设备,需要在编译uboot时在config文件加入如下宏定义

    #define CONFIG_OF_LIBFDT
  • 设置xxx.dtb设备树文件的地址

    UBoot> fdt addr 0x71000000//假设dtb文件存放在0x71000000地址

8、设备树语法

参考Devicetree  SpecificationV0.2.pdf

设备树由一系列被命名的节点(Node)和属性(Property)组成。节点还可以包含子节点。

属性:成对出现的名称和值

8.1 设备节点

设备树文件内容:

/ {      model = "Seeed i.MX6 ULL NPi Board";    compatible = "fsl,imx6ull-14x14-evk""fsl,imx6ull";    aliases {            pwm0 = &pwm1;            pwm1 = &pwm2;            pwm2 = &pwm3;            pwm3 = &pwm4;    };    chosen {stdout-path = &uart1;    };    memory {            reg = <0x800000000x20000000>;    };    reserved-memory {#address-cells = <1>;#size-cells = <1>;            ranges;            linux,cma {                    compatible = "shared-dma-pool";                    reusable;                    size = <0x14000000>;                    linux,cma-default;            };    };    ...};
  • /  -  最外层的大括号的/表示根节点,每个设备树只有一个根节点
  • 在.dtsi文件中也会有根节点,当包含dtsi文件后,根节点会合并,只有一个根节点
  • 根节点包含多个子节点,子节点也可以包含子节点

8.2 向节点追加内容

&cpu0 {    dc-supply = <®_gpio_dvfs>;    clock-frequency = <800000000>;};&clks {    assigned-clocks = <&clks IMX6UL_CLK_PLL4_AUDIO_DIV>;    assigned-clock-rates = <786432000>;};

在节点名称前加&符号表示向该节点追加内容

8.3 节点命名模板

node-name@unit-address {    属性1 = …    属性2 = …    属性3= …    子节点…}
  • node-name - 节点名字
  • unit-address - 节点"单元地址"

8.4 节点标签

所谓节点标签就是给节点起别名

cpu0: cpu@0 {    compatible = "arm,cortex-a7";    device_type = "cpu";    reg = <0>;}

给节点cpu起一个别名为cpu0

当节点名字很长时,可以通过给节点起别名,方便访问

8.5 特殊节点

8.5.1 aliases别名子节点
aliases {    can0 = &flexcan1;    can1 = &flexcan2;    ethernet0 = &fec1;    ethernet1 = &fec2;    ...}

统一在一个节点中给其它节点定义"别名"

8.5.2 chosen 子节点

chosen 节点主要是为了 uboot 向 Linux 内核传递数据

一般.dts 文件中 chosen 节点通常为空或者内容很少

设备树文件chosen节点内容:

chosen {stdout-path = &uart1;};

设置了stdout-path = &uart1,表示标准输出使用uart1

查看内核中的chosen子节点:

debian@npi:/proc/device-tree$ ls chosen/bootargs  linux,initrd-end  linux,initrd-start  name  stdout-path

该子节点bootargs  linux,initrd-end  linux,initrd-start  name几个属性。

bootargs是uboot传递给内核的启动参数,可以得知多出来的几个属性是uboot设置的

8.6 设备树中断控制器属性

  • interrupt-controller

    表明自己是中断控制器,该属性为空
  • #interrupt-cells

    设备中断属性的cell大小
  • interrupt-parent

    通过它来指定它所依附的中断控制器的phandle如:    intc:interrupt-controller@10140000    interrupt-parent=<&intc>

9、Linux解析DTB文件

内核启动会解析DTB,在/proc/device-tree/目录生成节点对应的和设备树节点名字相同的文件

内核解析设备树文件流程:

start_kernel()  -> setup_arch() -> unflatten_device_tree()  -> __unflatten_device_tree() -> unflatten_dt_node()

最终解析设备树节点的函数为unflatten_dt_node()


10、设备树常用OF函数

include/linux/of.h描述设备节点数据结构:

structdevice_node {constchar *name;         /* 节点名字 */constchar *type;         /* 设备类型 */    phandle phandle;constchar *full_name;structfwnode_handlefwnode;structproperty *properties;/* 属性       */structproperty *deadprops;/* removed properties */structdevice_node *parent;/* 父节点 */structdevice_node *child;/* 子节点 */structdevice_node *sibling;#if defined(CONFIG_OF_KOBJ)structkobjectkobj;#endifunsignedlong _flags;void    *data;#if defined(CONFIG_SPARC)constchar *path_component_name;unsignedint unique_id;structof_irq_controller *irq_trans;#endif};

描述属性的数据结构:

structproperty {char    *name;int    length;void    *value;structproperty *next;#if defined(CONFIG_OF_DYNAMIC) || defined(CONFIG_SPARC)unsignedlong _flags;#endif#if defined(CONFIG_OF_PROMTREE)unsignedint unique_id;#endif#if defined(CONFIG_OF_KOBJ)structbin_attributeattr;#endif};

查找指定节点函数:

externstruct device_node *of_find_node_by_name(struct device_node *from,constchar *name);externstruct device_node *of_find_node_by_type(struct device_node *from,constchar *type);externstruct device_node *of_find_compatible_node(struct device_node *from,constchar *type, constchar *compat);staticinlinestruct device_node *of_find_node_by_path(constchar *path)
  • from,开始查找的节点,若为NULL表示从根节点开始查找
  • name, 根据节点名字查找
  • type,根据设备类型查找
  • compat, 要查找的节点所对应的 compatible 属性列表
  • path,根据绝对路径查找,如"/red_led"表示根节点下的red_led节点

查找父/子节点 :

externstruct device_node *of_get_parent(conststruct device_node *node);externstruct device_node *of_get_next_parent(struct device_node *node);externstruct device_node *of_get_next_child(conststruct device_node *node,struct device_node *prev);externstruct device_node *of_get_compatible_child(conststruct device_node *parent,constchar *compatible);externstruct device_node *of_get_child_by_name(conststruct device_node *node,constchar *name);

获取属性值:

externintof_property_read_u32_index(conststruct device_node *np,constchar *propname,                       u32 index, u32 *out_value);
  • np,设备节点
  • propname, 属性名
  • index,索引号,一个属性可能存在多个值
  • out_value,存放获取的属性值
  • 返回值,0成功,负值失败,-EINVAL表示属性不存在,-ENODATA 表示没有要读取的数据,-EOVERFLOW 表示属性值列表太小
staticinlineintof_property_read_u8_array(conststruct device_node *np,constchar *propname,                        u8 *out_values, size_t sz)staticinlineintof_property_read_u16_array(conststruct device_node *np,constchar *propname,                         u16 *out_values, size_t sz)staticinlineintof_property_read_u32_array(conststruct device_node *np,constchar *propname,                         u32 *out_values, size_t sz)staticinlineintof_property_read_u64_array(conststruct device_node *np,constchar *propname,                         u64 *out_values, size_t sz)
  • np,设备节点。
  • proname,  要读取的属性名字。
  • out_value,读取到的数组值,类型分别为 u8、u16、u32 和 u64。
  • sz,要读取的数组元素数量。
  • 返回值,0-成功,负值读取失败,-EINVAL表示属性不存在,-ENODATA 表示没有要读取的数据,-EOVERFLOW 表示属性值列表太小

示例:

/*添加led节点*/rgb_led_red@0x020C406C{    compatible = "red_led";    reg = <0x020C406C0x000000040x020E006C0x000000040x020E02F80x000000040x0209C0000x000000040x0209C0040x00000004>;    status = "okay";};//设备树的匹配条件staticstructof_device_iddts_match_table[] = {    {.compatible = "red_led", },                     //通过设备树来匹配};staticintled_red_driver_probe(struct platform_device *dev){int err;int ret;    u32 regdata[8];int i;structdevice *tmpdev;    led_dev.dev_node = of_find_node_by_path(RED_LED_DTS_NODE);         //找到red_led的设备树节点if (!led_dev.dev_node) {                  printk("red led can not found!\r\n"); return -EINVAL;     }/* 获取设备中寄存器属性值 */    ret = of_property_read_u32_array(led_dev.dev_node, "reg", regdata, 8);    ....../* 将寄存器物理地址转换成虚拟地址 */      led_dev.virtual_ccgr1 = ioremap(regdata[0], regdata[1]);            led_dev.virtual_gpio1_io4 = ioremap(regdata[2], regdata[3]);     led_dev.virtual_dr = ioremap(regdata[4], regdata[5]);     led_dev.virtual_gdir = ioremap(regdata[6], regdata[7]); }

获取属性值为字符串的函数:

externintof_property_read_string(conststruct device_node *np,constchar *propname,constchar **out_string);

更多函数可以查看 内核文件include/linux/of.h

最新文章

随机文章

基本 文件 流程 错误 SQL 调试
  1. 请求信息 : 2026-03-27 15:05:36 HTTP/2.0 GET : https://f.mffb.com.cn/a/479883.html
  2. 运行时间 : 0.110719s [ 吞吐率:9.03req/s ] 内存消耗:4,544.80kb 文件加载:140
  3. 缓存信息 : 0 reads,0 writes
  4. 会话信息 : SESSION_ID=2cd7bb605cb00f8027231d70f0386c96
  1. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/public/index.php ( 0.79 KB )
  2. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/autoload.php ( 0.17 KB )
  3. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_real.php ( 2.49 KB )
  4. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/platform_check.php ( 0.90 KB )
  5. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/ClassLoader.php ( 14.03 KB )
  6. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/composer/autoload_static.php ( 4.90 KB )
  7. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper.php ( 8.34 KB )
  8. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/helper.php ( 2.19 KB )
  9. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/helper.php ( 1.47 KB )
  10. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/stubs/load_stubs.php ( 0.16 KB )
  11. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Exception.php ( 1.69 KB )
  12. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Facade.php ( 2.71 KB )
  13. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/deprecation-contracts/function.php ( 0.99 KB )
  14. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap.php ( 8.26 KB )
  15. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/polyfill-mbstring/bootstrap80.php ( 9.78 KB )
  16. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/Resources/functions/dump.php ( 1.49 KB )
  17. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-dumper/src/helper.php ( 0.18 KB )
  18. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/symfony/var-dumper/VarDumper.php ( 4.30 KB )
  19. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/App.php ( 15.30 KB )
  20. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-container/src/Container.php ( 15.76 KB )
  21. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/container/src/ContainerInterface.php ( 1.02 KB )
  22. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/provider.php ( 0.19 KB )
  23. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Http.php ( 6.04 KB )
  24. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Str.php ( 7.29 KB )
  25. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Env.php ( 4.68 KB )
  26. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/common.php ( 0.03 KB )
  27. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/helper.php ( 18.78 KB )
  28. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Config.php ( 5.54 KB )
  29. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/app.php ( 0.95 KB )
  30. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cache.php ( 0.78 KB )
  31. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/console.php ( 0.23 KB )
  32. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/cookie.php ( 0.56 KB )
  33. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/database.php ( 2.48 KB )
  34. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Env.php ( 1.67 KB )
  35. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/filesystem.php ( 0.61 KB )
  36. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/lang.php ( 0.91 KB )
  37. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/log.php ( 1.35 KB )
  38. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/middleware.php ( 0.19 KB )
  39. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/route.php ( 1.89 KB )
  40. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/session.php ( 0.57 KB )
  41. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/trace.php ( 0.34 KB )
  42. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/config/view.php ( 0.82 KB )
  43. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/event.php ( 0.25 KB )
  44. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Event.php ( 7.67 KB )
  45. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/service.php ( 0.13 KB )
  46. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/AppService.php ( 0.26 KB )
  47. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Service.php ( 1.64 KB )
  48. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Lang.php ( 7.35 KB )
  49. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/lang/zh-cn.php ( 13.70 KB )
  50. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/Error.php ( 3.31 KB )
  51. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/RegisterService.php ( 1.33 KB )
  52. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/services.php ( 0.14 KB )
  53. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/PaginatorService.php ( 1.52 KB )
  54. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ValidateService.php ( 0.99 KB )
  55. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/service/ModelService.php ( 2.04 KB )
  56. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Service.php ( 0.77 KB )
  57. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Middleware.php ( 6.72 KB )
  58. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/initializer/BootService.php ( 0.77 KB )
  59. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Paginator.php ( 11.86 KB )
  60. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-validate/src/Validate.php ( 63.20 KB )
  61. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/Model.php ( 23.55 KB )
  62. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Attribute.php ( 21.05 KB )
  63. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/AutoWriteData.php ( 4.21 KB )
  64. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/Conversion.php ( 6.44 KB )
  65. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/DbConnect.php ( 5.16 KB )
  66. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/ModelEvent.php ( 2.33 KB )
  67. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/concern/RelationShip.php ( 28.29 KB )
  68. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Arrayable.php ( 0.09 KB )
  69. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/contract/Jsonable.php ( 0.13 KB )
  70. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/model/contract/Modelable.php ( 0.09 KB )
  71. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Db.php ( 2.88 KB )
  72. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/DbManager.php ( 8.52 KB )
  73. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Log.php ( 6.28 KB )
  74. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Manager.php ( 3.92 KB )
  75. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerTrait.php ( 2.69 KB )
  76. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/log/src/LoggerInterface.php ( 2.71 KB )
  77. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cache.php ( 4.92 KB )
  78. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/psr/simple-cache/src/CacheInterface.php ( 4.71 KB )
  79. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/helper/Arr.php ( 16.63 KB )
  80. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/driver/File.php ( 7.84 KB )
  81. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/cache/Driver.php ( 9.03 KB )
  82. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/CacheHandlerInterface.php ( 1.99 KB )
  83. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/Request.php ( 0.09 KB )
  84. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Request.php ( 55.78 KB )
  85. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/middleware.php ( 0.25 KB )
  86. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Pipeline.php ( 2.61 KB )
  87. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/TraceDebug.php ( 3.40 KB )
  88. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/middleware/SessionInit.php ( 1.94 KB )
  89. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Session.php ( 1.80 KB )
  90. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/driver/File.php ( 6.27 KB )
  91. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/SessionHandlerInterface.php ( 0.87 KB )
  92. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/session/Store.php ( 7.12 KB )
  93. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Route.php ( 23.73 KB )
  94. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleName.php ( 5.75 KB )
  95. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Domain.php ( 2.53 KB )
  96. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleGroup.php ( 22.43 KB )
  97. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Rule.php ( 26.95 KB )
  98. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/RuleItem.php ( 9.78 KB )
  99. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/route/app.php ( 1.72 KB )
  100. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/Route.php ( 4.70 KB )
  101. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/dispatch/Controller.php ( 4.74 KB )
  102. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/route/Dispatch.php ( 10.44 KB )
  103. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/controller/Index.php ( 4.81 KB )
  104. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/app/BaseController.php ( 2.05 KB )
  105. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/facade/Db.php ( 0.93 KB )
  106. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/connector/Mysql.php ( 5.44 KB )
  107. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/PDOConnection.php ( 52.47 KB )
  108. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Connection.php ( 8.39 KB )
  109. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/ConnectionInterface.php ( 4.57 KB )
  110. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/builder/Mysql.php ( 16.58 KB )
  111. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Builder.php ( 24.06 KB )
  112. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseBuilder.php ( 27.50 KB )
  113. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/Query.php ( 15.71 KB )
  114. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/BaseQuery.php ( 45.13 KB )
  115. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TimeFieldQuery.php ( 7.43 KB )
  116. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/AggregateQuery.php ( 3.26 KB )
  117. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ModelRelationQuery.php ( 20.07 KB )
  118. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ParamsBind.php ( 3.66 KB )
  119. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/ResultOperation.php ( 7.01 KB )
  120. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/WhereQuery.php ( 19.37 KB )
  121. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/JoinAndViewQuery.php ( 7.11 KB )
  122. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/TableFieldInfo.php ( 2.63 KB )
  123. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-orm/src/db/concern/Transaction.php ( 2.77 KB )
  124. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/driver/File.php ( 5.96 KB )
  125. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/LogHandlerInterface.php ( 0.86 KB )
  126. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/log/Channel.php ( 3.89 KB )
  127. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/event/LogRecord.php ( 1.02 KB )
  128. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-helper/src/Collection.php ( 16.47 KB )
  129. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/facade/View.php ( 1.70 KB )
  130. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/View.php ( 4.39 KB )
  131. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Response.php ( 8.81 KB )
  132. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/response/View.php ( 3.29 KB )
  133. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/Cookie.php ( 6.06 KB )
  134. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-view/src/Think.php ( 8.38 KB )
  135. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/framework/src/think/contract/TemplateHandlerInterface.php ( 1.60 KB )
  136. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/Template.php ( 46.61 KB )
  137. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/driver/File.php ( 2.41 KB )
  138. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-template/src/template/contract/DriverInterface.php ( 0.86 KB )
  139. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/runtime/temp/067d451b9a0c665040f3f1bdd3293d68.php ( 11.98 KB )
  140. /yingpanguazai/ssd/ssd1/www/f.mffb.com.cn/vendor/topthink/think-trace/src/Html.php ( 4.42 KB )
  1. CONNECT:[ UseTime:0.000324s ] mysql:host=127.0.0.1;port=3306;dbname=f_mffb;charset=utf8mb4
  2. SHOW FULL COLUMNS FROM `fenlei` [ RunTime:0.000624s ]
  3. SELECT * FROM `fenlei` WHERE `fid` = 0 [ RunTime:0.006690s ]
  4. SELECT * FROM `fenlei` WHERE `fid` = 63 [ RunTime:0.000702s ]
  5. SHOW FULL COLUMNS FROM `set` [ RunTime:0.000469s ]
  6. SELECT * FROM `set` [ RunTime:0.005492s ]
  7. SHOW FULL COLUMNS FROM `article` [ RunTime:0.000630s ]
  8. SELECT * FROM `article` WHERE `id` = 479883 LIMIT 1 [ RunTime:0.000816s ]
  9. UPDATE `article` SET `lasttime` = 1774595136 WHERE `id` = 479883 [ RunTime:0.014194s ]
  10. SELECT * FROM `fenlei` WHERE `id` = 67 LIMIT 1 [ RunTime:0.000459s ]
  11. SELECT * FROM `article` WHERE `id` < 479883 ORDER BY `id` DESC LIMIT 1 [ RunTime:0.000750s ]
  12. SELECT * FROM `article` WHERE `id` > 479883 ORDER BY `id` ASC LIMIT 1 [ RunTime:0.005835s ]
  13. SELECT * FROM `article` WHERE `id` < 479883 ORDER BY `id` DESC LIMIT 10 [ RunTime:0.001281s ]
  14. SELECT * FROM `article` WHERE `id` < 479883 ORDER BY `id` DESC LIMIT 10,10 [ RunTime:0.000916s ]
  15. SELECT * FROM `article` WHERE `id` < 479883 ORDER BY `id` DESC LIMIT 20,10 [ RunTime:0.000674s ]
0.112285s