您的位置:首页 > 其它

高通平台lk是怎样匹配加载DTB的

2018-01-16 14:59 148 查看
根据dev_tree_get_entry_info函数中的提示,在dts文件中,将qcom,board-id修改为0x0102000a就可以了-4.png

/* For V3 version of DTBs we have platform version field as part

    * of variant ID, in such case the subtype will be mentioned as 0x0

    * As the qcom, board-id = <0xSSPMPmPH, 0x0>

    * SS -- Subtype

    * PM -- Platform major version

    * Pm -- Platform minor version

    * PH -- Platform hardware CDP/MTP

    * In such case to make it compatible with LK algorithm move the subtype

    * fROM variant_id to subtype field

跟了代码,还有以下疑问,请大家帮忙解决,十分感谢!

问题一:dev_tree_appended、dev_tree_compatible大概的流程

问题二:board_platform_id、board_soc_version、board_target_id、board_hardware_subtype这几个值是哪里来的?重点解析一下函数platform_detect中调用的smem_read_alloc_entry_offset
问题三:整体解析一下DTB,也就是dts文件的加载匹配过程,谢谢!

了解答案详情,可到一牛网论坛

参考资料:http://bbs.16rd.com/topic-XINPIANBAIKE.html   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  一牛网论坛 高通