Navigation

    全志在线开发者论坛

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

    哪吒d1-h开发板mmap /dev/mem设备,gdb不能访问

    MR Series
    1
    1
    1137
    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.
    • L
      liuruyi LV 3 last edited by liuruyi

      1.jpg 2.jpg
      使用的是2G的那张哪吒开发板,镜像是使用全志提供的sdk,其中在board.dts中加入了下面的内容预留了128M内存,其它无改动。

      reserved-memory {
                #address-cells = <2>;
                #size-cells = <2>;
                ranges;
      
                foobar_reserved {
                  compatible = "shared-dma-pool";
                  no-map;
                  reg = <0x0 0xb0000000 0x0 0x08000000>;
                };
              };
      

      为什么代码里面可以读到这段空间的内容,但是gdb不行呢?
      在本地一个centos8的虚拟机里面按照类似这样的操作,gdb是可以访问的。

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

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

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