页次: 1
xboot 说:D1芯片的SVD寄存器文件,有什么好用的工具去看这玩意吗?
keil有所谓的svd文件,就是看寄存器的,但是keil肯定不可能支持riscv啊。
SVD不是ARM搞出来的寄存器布局描述文件吗,应该一般适用于ARM处理器吧
The compiler you showed is provided by Ubuntu and is NOT the one you can considered as "OFFICIALLY" supported by Allwinner.
Correct compiler version is something like this: (I'm using a D1 chip based on RISC-V, so your version info is guaranteed differ from mine)
❯ pwd
/home/seas0/Sources/Embedded/buildroot-d1x-t113/buildroot/output/host/opt/ext-toolchain/bin
❯ ./riscv64-unknown-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=./riscv64-unknown-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/home/seas0/Sources/Embedded/buildroot-d1x-t113/buildroot/output/host/opt/ext-toolchain/bin/../libexec/gcc/riscv64-unknown-linux-gnu/8.1.0/lto-wrapper
Target: riscv64-unknown-linux-gnu
Configured with: /ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/build/../source/riscv/riscv-gcc/configure --target=riscv64-unknown-linux-gnu --with-mpc=/ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/lib-for-gcc-x86_64-linux/ --with-mpfr=/ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/lib-for-gcc-x86_64-linux/ --with-gmp=/ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/lib-for-gcc-x86_64-linux/ --prefix=/ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/install --with-sysroot=/ldhome/software/toolsbuild/slave/workspace/riscv64_build_linux_x86_64/install/sysroot --with-system-zlib --enable-shared --enable-tls --enable-languages=c,c++,fortran --disable-libmudflap --disable-libssp --disable-libquadmath --disable-nls --disable-bootstrap --src=../../source/riscv/riscv-gcc --enable-checking=yes --with-pkgversion='C-SKY RISCV Tools V1.8.4 B20200702' --enable-multilib --with-abi=lp64d --with-arch=rv64gcxthead 'CFLAGS_FOR_TARGET=-O2 -mcmodel=medany' 'CXXFLAGS_FOR_TARGET=-O2 -mcmodel=medany' CC=gcc CXX=g++
Thread model: posix
gcc version 8.1.0 (C-SKY RISCV Tools V1.8.4 B20200702)
Use the compiler which your image builder generated (in $BUILDROOT/output/host/opt/ext-toolchain/bin/$TUPLE-gcc) should just work, as u were using the system provided cross-compiler which provided a higher version of glibc (2.33) not forward-compatible with the version configured in image builder.
Also, compiling with the '-static' flag should attach all the library used to your program, preventing any possible missing / version miss matched / etc. library problem at all, consider it when you are not familiar with target system environment.
页次: 1