根据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 vari ant 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
* f ROM 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
/* For V3 version of DTBs we have platform version field as part
* of vari ant 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
* f ROM 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