当前位置: 首页 > news >正文

k230学习笔记-疑难点(1)

1.出现boot failed with exit code 19:

需要将k230开发板的btoot0拨到ON

2.出现boot failed with exit code 13:

说明k230开发板的固件烧录已经丢失,需要重新烧录

*** 注意重新烧录时需要将btoot0重新拨到OFF,才会弹出加载固件需要的通用串行总线,Ganaan Creative K230 USB Boot Device ***

3.

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps$ scons --directory=04_rtt_shm_at

scons: Entering directory `/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/04_rtt_shm_at'

scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

scons: building associated VariantDir targets: build/rtt_shm_at

CC build/rtt_shm_at/main.o

sh: 1: riscv64-unknown-linux-musl-gcc: not found

scons: *** [build/rtt_shm_at/main.o] Error 127

scons: building terminated because of errors.

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps$ scons --directory=04_rtt_shm_get

scons: Entering directory `/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/04_rtt_shm_get'

scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

scons: building associated VariantDir targets: build/rtt_shm_get

CC build/rtt_shm_get/main.o

sh: 1: riscv64-unknown-linux-musl-gcc: not found

scons: *** [build/rtt_shm_get/main.o] Error 127

scons: building terminated because of errors.

总的来说,需要重新编译一下:

打开终端,切换到cd  k230_sdk

make prepare_toolchain
为什么呢,在/home/ubuntu/k230_sdk/Makefile文件下第109-120,162行出现。

随后在vscode的终端中

存在/home/ubuntu/k230_sdk/src/big/rt-smart/smart-env.sh文件第42行存在我们需要的东西

{

    "riscv64")

        export RTT_CC=gcc

        export  RTT_EXEC_PATH=$(pwd)/../../../toolchain/

riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin

        export RTT_CC_PREFIX=riscv64-unknown-linux-musl-

        export RTT_SDK_BUILD_DIR=build

        export MPP_SRC_DIR=$(pwd)/../mpp

        export CDK_SRC_DIR=$(pwd)/../../common/cdk

        cp userapps/configs/def_config_riscv64 userapps/.config

        ;;

}

使用命令

Source smart-env.sh riscv64

***注意,一定要在/home/ubuntu/k230_sdk/src/big/rt-smart这个文件下的终端,不然不管。

即可

source smart-env.sh riscv64 是一个命令,用于在当前的 shell 会话中加载一个名为 smart-env.sh 的脚本,并传递参数 riscv64 给它。这个命令通常用于配置环境变量或设置工具链,以便在开发过程中使用特定的工具链(如 RISC-V 工具链)

静态链接与动态链接:elf文件与out文件

通过gcc hello.c产生的a.out文件

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ file a.out

a.out: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=f0f27aaa6abdda45fd053b2fcbab5873609801dd, for GNU/Linux 3.2.0, not stripped

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ ls -a ./

.  ..  a.out  build  cconfig.h  hello.c  hello.elf  SConscript  .sconsign.dblite  SConstruct

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ ld -al ./

ld: unrecognized option '-al'

ld: use the --help option for usage information

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ ls -al ./

total 340

drwxrwxr-x  3 ubuntu ubuntu   4096 Apr 16 05:21 .

drwxrwxr-x 22 ubuntu ubuntu   4096 Apr 15 03:29 ..

-rwxrwxr-x  1 ubuntu ubuntu  16672 Apr 16 05:21 a.out

drwxrwxr-x  3 ubuntu ubuntu   4096 Apr 15 04:12 build

-rw-rw-r--  1 ubuntu ubuntu    352 Apr 16 02:34 cconfig.h

-rw-rw-r--  1 ubuntu ubuntu    111 Apr 15 04:11 hello.c

-rwxrwxr-x  1 ubuntu ubuntu 294312 Apr 15 04:12 hello.elf

-rw-rw-r--  1 ubuntu ubuntu    266 Apr 14 22:48 SConscript

-rw-rw-r--  1 ubuntu ubuntu   3921 Apr 16 02:34 .sconsign.dblite

-rw-rw-r--  1 ubuntu ubuntu    181 Apr 14 22:48 SConstruct

静态:

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ file hello.elf

hello.elf: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$

 readelf -a hello.elf

产生很多信息,以至于我的终端被爆掉了,逐渐静态编译包含很多无用信息。。。

  0
 .................

  1703: 000000020000b308    48 FUNC    GLOBAL DEFAULT    1 close

  1704: 0000000200012010     0 NOTYPE  GLOBAL DEFAULT    8 __got_start__

  1705: 0000000200009822   268 FUNC    GLOBAL DEFAULT    1 vfprintf

  1706: 000000020000c040   156 FUNC    GLOBAL HIDDEN     1 __stpncpy

  1707: 0000000200012ea8     8 OBJECT  GLOBAL DEFAULT   16 __progname_full

  1708: 0000000200007608    48 FUNC    GLOBAL DEFAULT    1 free

No version information found in this file.

Attribute Section: riscv

File Attributes

  Tag_RISCV_stack_align: 16-bytes

  Tag_RISCV_arch: "rv64i2p1_m2p0_a2p1_f2p2_d2p2_c2p0_v1p0_zicsr2p0_zve32f1p0_zve32x1p0_zve64d1p0_zve64f1p0_zve64x1p0_zvl128b1p0_zvl32b1p0_zvl64b1p0"

  Tag_RISCV_priv_spec: 1

  Tag_RISCV_priv_spec_minor: 11

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$

4.

msh />mount

filesystem  device  mountpoint

----------  ------  ----------

devfs       (NULL)  /dev

procfs      (NULL)  /proc

rom         (NULL)  /

tmp         (NULL)  /dev/shm

share       (NULL)  /sharefs

什么意思呢?
1. 什么是 mount 命令?

mount 是一个命令,用来查看或管理文件系统的挂载情况。简单来说,它会告诉你系统中有哪些文件系统被挂载到了哪些位置。文件系统就像是一个“存储规则”,它决定了数据如何被组织和访问。

2. 输出的每一列是什么意思?

mount 命令的输出有三列:

filesystem(文件系统):这是文件系统的类型,比如 devfs、procfs 等。

device(设备):这是文件系统所在的设备或资源。如果显示 (NULL),说明这个文件系统没有具体的硬件设备,而是虚拟的。

mountpoint(挂载点):这是文件系统被挂载到的具体位置,比如 /dev、/proc 等。

3. 逐条解释输出内容

根据你的输出:

复制

filesystem  device  mountpoint

----------  ------  ----------

devfs       (NULL)  /dev

procfs      (NULL)  /proc

rom         (NULL)  /

tmp         (NULL)  /dev/shm

share       (NULL)  /sharefs

第一条:devfs

filesystem:devfs 是设备文件系统。

device:(NULL),说明这是一个虚拟的文件系统,没有具体的硬件设备。

mountpoint:/dev,这是设备文件的挂载点。所有设备(比如键盘、鼠标、串口等)都会在这个目录下以文件的形式出现,方便程序访问。

简单理解:/dev 是一个特殊的目录,里面存放了所有设备的文件。

第二条:procfs

filesystem:procfs 是进程文件系统。

device:(NULL),同样是一个虚拟文件系统。

mountpoint:/proc,这是进程信息的挂载点。系统会把运行中的进程信息(比如进程 ID、内存占用等)以文件的形式放在这个目录下。

简单理解:/proc 是一个特殊的目录,里面存放了系统和进程的运行信息。

第三条:rom

filesystem:rom 是只读存储文件系统。

device:(NULL),说明这是一个虚拟文件系统。

mountpoint:/,这是根目录,也就是整个文件系统的起点。

简单理解:/ 是系统的根目录,所有文件和目录的组织都从这里开始。

第四条:tmp

filesystem:tmp 是临时文件系统。

device:(NULL),虚拟文件系统。

mountpoint:/dev/shm,这是共享内存的挂载点。程序可以在这个目录下创建临时文件,这些文件会存储在内存中,断电后会消失。

简单理解:/dev/shm 是一个临时存储区域,用来存放程序的临时数据。

第五条:share

filesystem:share 是共享文件系统。

device:(NULL),虚拟文件系统。

mountpoint:/sharefs,这是一个共享目录,可能用于设备之间的数据共享。

简单理解:/sharefs 是一个共享目录,不同程序或设备可以通过它交换数据。

4. 总结

这个 mount 命令的输出,实际上是在告诉你 RT-Thread 系统中有哪些文件系统被挂载到了哪些位置。这些文件系统有些是虚拟的(比如 devfs、procfs),有些是实际的存储(比如 rom 和 share)。它们共同组成了系统的文件结构,方便程序访问设备、进程信息、临时数据等。

  1. 考虑链接点:

考察一下他们的不同:
buntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ gcc hello.c -0 hello__

gcc: error: hello__: No such file or directory

gcc: error: unrecognized command line option ‘-0’

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ gcc hello.c -o hello__

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ ./hello

bash: ./hello: No such file or directory

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ ./hello__

Hello World!

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static

/* hello.elf文件是通过scons编译的,嗯up主的补救之路,通过修改SConstruct文件 */

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ file hello_back.elf

hello_back.elf: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped

/* 通过 riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static 编译*/

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ file hello.elf

hello.elf: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, not stripped

很明显少了with debug_info文件,scons编译与riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static 编译。

但通过这样,就又有了

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static -g

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ file hello.elf

hello.elf: ELF 64-bit LSB executable, UCB RISC-V, version 1 (SYSV), statically linked, with debug_info, not stripped

哈哈哈,多么有趣。

但是就算文件都一样了,依旧无法再小核里使用哦,其中脚本语言涉及很多东西很复杂,我也不懂。

会报这个错误:

msh />/sharefs/hello.elf  

[E/LWP] lwp load faild, -1

[E/LWP] lwp load ret = -1

/sharefs/hello.elf: command not found.

**** 注意这个hello.elf文件是通过riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static -g

编译的 ****

其中的差异到底是什么呢?

显然重点是这个:

通过scons编译:

编译命令:

riscv64-unknown-linux-musl-gcc -o build/hello_back/hello.o -c -mcmodel=medany -march=rv64imafdcv -mabi=lp64d -Werror -Wall -O0 -g -gdwarf-2 -n --static -DHAVE_CCONFIG_H -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps -I. -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/include -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/dfs -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/drivers -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/finsh -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/net hello.c

链接命令:

riscv64-unknown-linux-musl-gcc -o hello_back.elf -mcmodel=medany -march=rv64imafdcv -mabi=lp64d -T ../linker_scripts/riscv64/link.lds -Lsdk/rt-thread/lib -Wl,--whole-archive -lrtthread -Wl,--no-whole-archive -n --static build/hello_back/hello.o -L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/lib/risc-v/rv64 -L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/lib/risc-v/rv64 -Wl,--start-group -lrtthread -Wl,--end-group

编译命令:

工具:riscv64-unknown-linux-musl-gcc(RISC-V 架构的 GCC 编译器)。

目标文件:build/hello_back/hello.o。

选项:

-c:编译源文件,不进行链接。

-mcmodel=medany:指定内存模型。

-march=rv64imafdcv:指定目标架构(RISC-V 64 位)。

-mabi=lp64d:指定 ABI(应用程序二进制接口)。

-Werror:将警告视为错误。

-Wall:启用所有警告。

-O0:禁用优化。

-g:生成调试信息。

-gdwarf-2:使用 DWARF 2 格式的调试信息。

-n:生成紧凑的代码。

--static:静态链接。

-DHAVE_CCONFIG_H:定义宏 HAVE_CCONFIG_H。

包含路径:

-I:指定头文件的搜索路径。

链接命令:

工具:riscv64-unknown-linux-musl-gcc。

目标文件:hello_back.elf。

选项:

-T ../linker_scripts/riscv64/link.lds:指定链接脚本。

-Lsdk/rt-thread/lib:指定库文件的搜索路径。

-Wl,--whole-archive:链接整个库。

-lrtthread:链接 RT-Thread 库。

-Wl,--no-whole-archive:停止链接整个库。

-n:生成紧凑的代码。

--static:静态链接。

库路径:

-L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/lib/risc-v/rv64:库文件路径。

-L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/lib/risc-v/rv64:RT-Thread 库路径。

库组:

-Wl,--start-group 和 -Wl,--end-group:指定库的分组链接。

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps$ scons --directory=hello --verbose

scons: Entering directory `/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/hello'

scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

scons: building associated VariantDir targets: build/hello_back

riscv64-unknown-linux-musl-gcc -o build/hello_back/hello.o -c -mcmodel=medany -march=rv64imafdcv -mabi=lp64d -Werror -Wall -O0 -g -gdwarf-2 -n --static -DHAVE_CCONFIG_H -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps -I. -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/include -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/dfs -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/drivers -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/finsh -I/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/components/net hello.c

riscv64-unknown-linux-musl-gcc -o hello_back.elf -mcmodel=medany -march=rv64imafdcv -mabi=lp64d -T ../linker_scripts/riscv64/link.lds -Lsdk/rt-thread/lib -Wl,--whole-archive -lrtthread -Wl,--no-whole-archive -n --static build/hello_back/hello.o -L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/lib/risc-v/rv64 -L/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/sdk/rt-thread/lib/risc-v/rv64 -Wl,--start-group -lrtthread -Wl,--end-group

/home/ubuntu/k230_sdk/toolchain/riscv64-linux-musleabi_for_x86_64-pc-linux-gnu/bin/../lib/gcc/riscv64-unknown-linux-musl/12.0.1/../../../../riscv64-unknown-linux-musl/bin/ld: warning: hello_back.elf has a LOAD segment with RWX permissions

scons: done building targets.

我们在改善一下,使用这个命令怎么样?riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static -g -mcmodel=medany -march=rv64imafdcv -mabi=lp64d
依旧无用:小核报错
msh />/sharefs/hello.elf

[E/LWP] lwp load faild, -1

[E/LWP] lwp load ret = -1

/sharefs/hello.elf: command not found.

继续探讨:

/* riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static -g -mcmodel=medany -march=rv64imafdcv -mabi=lp64d编译 */

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ readelf -h hello.elf

ELF Header:

  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF64

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              EXEC (Executable file)

  Machine:                           RISC-V

  Version:                           0x1

  Entry point address:               0x0

  Start of program headers:          64 (bytes into file)

  Start of section headers:          70712 (bytes into file)

  Flags:                             0x5, RVC, double-float ABI

  Size of this header:               64 (bytes)

  Size of program headers:           56 (bytes)

  Number of program headers:         5

  Size of section headers:           64 (bytes)

  Number of section headers:         23

  Section header string table index: 22

/* 这个是scons编译的 */

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ readelf -h hello_back.elf

ELF Header:

  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF64

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              EXEC (Executable file)

  Machine:                           RISC-V

  Version:                           0x1

  Entry point address:               0x200000000

  Start of program headers:          64 (bytes into file)

  Start of section headers:          290664 (bytes into file)

  Flags:                             0x5, RVC, double-float ABI

  Size of this header:               64 (bytes)

  Size of program headers:           56 (bytes)

  Number of program headers:         3

  Size of section headers:           64 (bytes)

  Number of section headers:         57

  Section header string table index: 56

readelf: Error: Section 8 has invalid sh_entsize of 0000000000000008

readelf: Error: (Using the expected size of 24 for the rest of this dump)

  1. 报错提醒

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps$ scons --directory=hello --verbose

scons: Entering directory `/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/hello'

scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Building targets ...

scons: building associated VariantDir targets: build/hello_back

scons: `.' is up to date.

scons: done building targets.

从你的输出信息来看,SCons 构建工具成功运行了,并且没有生成新的目标文件,因为目标文件已经是“最新状态”(up to date)

解决方法

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps$ scons --directory=hello -c

scons: Entering directory `/home/ubuntu/k230_sdk/src/big/rt-smart/userapps/hello'

scons: Reading SConscript files ...

scons: done reading SConscript files.

scons: Cleaning targets ...

Removed build/hello_back/hello.o

Removed hello_back.elf

scons: done cleaning targets.

RT-Thread ELF 文件对比分析

1. 入口地址

- hello.elf:

  - 入口地址:0x0

  - 解释:入口地址为 0x0,通常表示程序的入口点未正确设置,或是一个默认值。

  

- hello_back.elf:

  - 入口地址:0x200000000

  - 解释:入口地址为 0x200000000,表明程序的入口点被正确设置为一个合理的内存地址。

2. 程序头部数量

- hello.elf:

  - 程序头部数量:5

  - 解释:包含 5 个程序头部,通常表示有更多的加载段(如代码段、数据段等)。

  

- hello_back.elf:

  - 程序头部数量:3

  - 解释:包含 3 个程序头部,表明加载段较少,可能是由于链接脚本或构建工具的优化。

3. 节头部数量

- hello.elf:

  - 节头部数量:23

  - 解释:包含 23 个节头部,表示节(如 .text、.data、.bss 等)较少。

  

- hello_back.elf:

  - 节头部数量:57

  - 解释:包含 57 个节头部,表明节较多,可能是由于链接脚本或构建工具生成了更多的调试信息或元数据。

4. 节头部字符串表索引

- hello.elf:

  - 节头部字符串表索引:22

  - 解释:节名称字符串表的位置为索引 22。

  

- hello_back.elf:

  - 节头部字符串表索引:56

  - 解释:节名称字符串表的位置为索引 56。

5. readelf 错误

- hello_back.elf:

  - 错误信息:

    readelf: Error: Section 8 has invalid sh_entsize of 0000000000000008

    readelf: Error: (Using the expected size of 24 for the rest of this dump)

  - 解释:某个节头部的 sh_entsize 字段值无效(0x8),readelf 工具无法正确解析该节的大小。这可能是由于链接脚本或构建工具的问题,导致生成的 ELF 文件不符合规范。

总结

- hello.elf 是通过手动编译生成的,入口地址为 0x0,程序头部和节头部数量较少。

- hello_back.elf 是通过 SCons 构建工具生成的,入口地址为 0x200000000,程序头部和节头部数量较多,但存在 readelf 解析错误。

建议

1. 检查链接脚本:

   - 确保链接脚本(如 link.lds)正确设置了入口地址和段布局。

   - 修复 sh_entsize 错误,确保生成的 ELF 文件符合规范。

2. 使用构建工具:

   - 使用 SCons 或其他构建工具可以简化构建过程,并减少手动编译时的错误。

通过补充编译链接-T /home/ubuntu/k230_sdk/src/big/rt-smart/userapps/linker_scripts/riscv64/link.lds

可以产生合适的Entry point address

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ riscv64-unknown-linux-musl-gcc hello.c -o hello.elf -static -g -mcmodel=medany -march=rv64imafdcv -mabi=lp64d -T /home/ubuntu/k230_sdk/src/big/rt-smart/userapps/linker_scripts/riscv64/link.lds

ubuntu@ubuntu2004:~/k230_sdk/src/big/rt-smart/userapps/hello$ readelf -h hello.elf

ELF Header:

  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF64

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              EXEC (Executable file)

  Machine:                           RISC-V

  Version:                           0x1

  Entry point address:               0x200000000

  Start of program headers:          64 (bytes into file)

  Start of section headers:          75296 (bytes into file)

  Flags:                             0x5, RVC, double-float ABI

  Size of this header:               64 (bytes)

  Size of program headers:           56 (bytes)

  Number of program headers:         4

  Size of section headers:           64 (bytes)

  Number of section headers:         31

  Section header string table index: 30

终于,完美解决了,哈哈,实在有趣。

msh />./sharefs/hello.elf

Hello World!

可认为是一个有意义的探索。

7.

如果端口缺失,OpenMV Cam USB COM Port (COM11),这需要在这个网站下载。
https://openmv.io/pages/download,就解决了


http://www.mrgr.cn/news/98814.html

相关文章:

  • html+js+clickhouse环境搭建
  • 蓝牙网关的功能与应用场景
  • 面试题之高频面试题
  • 探索关系型数据库 MySQL
  • 优化方法介绍(二)——BFGS 方法介绍
  • 信息科技伦理与道德0:课程安排
  • rk算力集群usb做网卡
  • jenkins凭据管理(配置github密钥)
  • 十三种物联网/通信模块综合对比——《数据手册--物联网/通信模块》
  • openGauss使用指南与SQL转换注意事项
  • 虚幻基础:ue引擎的碰撞
  • Freertos----信号量
  • 【DVWA 靶场通关】 File Inclusion(文件包含漏洞)
  • Orin NX开发板的烧录脚本注解
  • C++11智能指针深度解析:在Visual Studio中高效管理内存
  • Linux网络编程实战:从字节序到UDP协议栈的深度解析与开发指南
  • 【ROS】DWA 规划器
  • Day2-UFS协议栈
  • 基础智能体的进展与挑战——从类脑智能到进化、协作和安全系统(译文)
  • 【c语言】深入理解指针2