Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    V853 的 CPU1(E907)启动流程

    RTOS
    2
    3
    104
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      bubb1e LV 2 last edited by

      想写一个 E907 的裸机代码,但 V853 手册上好像对从核启动方式描述很模糊,有大佬研究过吗?

      1 Reply Last reply Reply Quote Share 1
      • A
        awwwwa LV 7 last edited by

        参考Linux端代码即可,本质上为:

        1. 加载固件
          1. 调用 firmware 接口获取文件系统中的固件
          2. 解析固件的 resource_table 段,该段有如下内容
            1. 声明需要的内存(Linux 为其分配)
            2. 声明使用的 vdev(固定为一个)
            3. 声明使用的 vring(固定为两个)
          3. 将固件加载到指定地址
        2. 注册 rpmsg virtio 设备
          1. 提供 vdev->ops(基于 virtio 接口实现的)
          2. 与 rpmsg_bus 驱动匹配,完成 rpmsg 初始化
        3. 启动小核
          1. 调用 rproc->ops->start
        B 1 Reply Last reply Reply Quote Share 1
        • B
          bubb1e LV 2 @awwwwa last edited by

          @awwwwa 感谢您的帮助,我看一下

          1 Reply Last reply Reply Quote Share 1
          • 1 / 1
          • First post
            Last post

          Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

          行为准则 | 用户协议 | 隐私权政策