Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. mxlol233
    M
    • Profile
    • Following 0
    • Followers 0
    • my integral 398
    • Topics 3
    • Posts 9
    • Best 0
    • Groups 0

    mxlol233LV 3

    @mxlol233

    398
    integral
    0
    Reputation
    1
    Profile views
    9
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mxlol233 Unfollow Follow

    Latest posts made by mxlol233

    • Reply: dragonsecboot有arm版本吗?

      @whycan
      x64-> x86-64 or a64
      arm-> aarch64
      ok ?
      无所谓,用qemu运行也能用。

      posted in D1系列-RISC-V
      M
      mxlol233
    • dragonsecboot有arm版本吗?

      如题,这个工具只有x64版本?
      dragonsecboot: ELF 64-bit LSB executable, x86

      或者说-pack boot_package.cfg过程可以跳过吗?

      posted in D1系列-RISC-V
      M
      mxlol233
    • 编译平头哥最新的riscv工具链

      最近换了个aarch64的板子做服务器。玩d1-h的时候发现平头哥没有提供aarch64下的工具链。

      #启动一个ubuntu 18.04 环境:
      docker run -it -v `pwd`:/work/ ubuntu:18.04 /bin/bash
      
      cd /work
      
      #clone平头哥编译器源码:
      git clone --recursive https://github.com/T-head-Semi/xuantie-gnu-toolchain
      
      cd xuantie-gnu-toolchain
      #第一趟编译,使用默认的linux-header:
      ./configure --prefix=`pwd`/.build/install/  \
      --with-arch=rv64imafdcv_zfh_xtheadc  --with-abi=lp64d
      
      cd ..
      
      #clone d1-linux源码:
      git clone https://github.com/TuringKi/d1-linux
      
      cd d1-linux
      
      #用第一趟编译好的riscv64工具链在指定的linux内核上编译出linux-header:
      PATH=/work/xuantie-gnu-toolchain/.build/install/bin/:$PATH \
      make ARCH=riscv CROSS_COMPILE=riscv64-unknown-linux-gnu-  \
      headers_install INSTALL_HDR_PATH=`pwd`/.build/install/usr -j8
      
      cd ../xuantie-gnu-toolchain
      
      #第二趟编译,使用指定内核的linux-header版本:
      ./configure --prefix=`pwd`/.build/install/  \
      --with-linux-headers-src=`pwd`/../d1-linux/.build/install/usr/include/ \
      --with-arch=rv64imafdcv_zfh_xtheadc  --with-abi=lp64d
      
      make -j8
      

      注意,vector扩展在march的描述字符应该为v0p7,即vector扩展的0.7版。
      比如,要使用向量扩展进行编译:

      riscv64-unknown-linux-gnu-ar -march=rv64gcv0p7 vector.S
      

      不要使用:

      riscv64-unknown-linux-gnu-ar -march=rv64gcv vector.S
      

      编译器不认。

      posted in D1系列-RISC-V
      M
      mxlol233
    • Reply: 安装全志USB驱动那些事

      @whycan 嗯,也是个办法。
      我最后是在一个低版本的win10虚拟机里搞的。

      posted in 编译和烧写问题专区
      M
      mxlol233
    • Reply: 安装全志USB驱动那些事

      @yuzukitsuru
      8f43499b-42f9-4153-90db-7eac5a372874-image.png
      大佬,win11下安装不了。

      posted in 编译和烧写问题专区
      M
      mxlol233
    • 【D1-H】关于CLINT的地址映射问题

      在D1-H_User Manual_V1.1手册上的memory mapping章节中,没有描述CLINT寄存器的地址映射,请问这个应该在哪里找呢?

      posted in D1系列-RISC-V
      M
      mxlol233
    • Reply: 【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像!

      在下小白,请教一下各位,这个buildroot的流程,为什么没有烧写固件的步骤呢?
      因为按照道理来讲,是应该修过固件中bootloader的加载顺序的。拷贝到sd后,原来的固件怎么是知道去先去sd卡引导操作系统呢?

      posted in D1系列-RISC-V
      M
      mxlol233
    • Reply: 【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像!

      @yuzukitsuru 在 【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像! 中说:

      @mxlol233 更新buildroot 2022.05就ok了

      请教一下怎么升级到2022.05版本?
      我直接从buildroot官网下载原始版本后,按照韦神gitee仓库的commits一步步把d1相关的文件拷贝过来。但是执行make nezha_d1_defconfig的时候,报错:
      “You have legacy configuration in your .config! ”
      是新版本移除了一些旧的Makefile定义吗?

      posted in D1系列-RISC-V
      M
      mxlol233
    • Reply: 【极简操作】使用builroot 2021一键编译生成D1 nezha 系统镜像!

      遇到个问题,在这里反馈一下。在ubuntu22.04上,m4编译会报一个错:
      c-stack.c:55:26: error: missing binary operator before token "("
      55 | #elif HAVE_LIBSIGSEGV && SIGSTKSZ < 16384
      |
      这里可以去https://toolchains.bootlin.com/downloads/releases/sources/m4-1.4.18/ 下载0003-c-stack-stop-using-SIGSTKSZ.patch
      然后拷贝package/m4目录下重新编译即可。

      posted in D1系列-RISC-V
      M
      mxlol233