Skip to content

[HELP] 编译完成后,运行模拟器提示 run_emulator.sh: 没有那个文件或目录 #456

@xiaosongqaq

Description

@xiaosongqaq

Description

发现2天前,快速入门文档进行了修改(关联提交:807534ec3fb263a1fec7521e067e9251675e500d),按照最新文档的操作方法,尝试编译运行,结果为编译成功,但运行模拟器异常

rtos@rtos-virtual-machine:~/Desktop/openvela$ ./build.sh vendor/openvela/boards/vela/configs/goldfish-arm64-v8a-ap/ --cmake -j$(nproc)


  • __ __ _ *
  • \ \ / / | | *
  • \ \ / / ___ | | __ _ *
  • \ / / / _ \ | | / _` | *
  • \ / | __/ | || (_| | *
  • \/   \___| |_| \__,_| *
    
  •                       *
    

Build CMake configuration:
cmake -B cmake_out/vela_goldfish-arm64-v8a-ap -S /home/rtos/Desktop/openvela/nuttx -DBOARD_CONFIG=../vendor/openvela/boards/vela/configs/goldfish-arm64-v8a-ap/ -DEXTRA_FLAGS="-Wno-cpp -Wno-deprecated-declarations" -GNinja
-- Initializing NuttX
Loaded configuration '/home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap/.config.compressed'
Minimal configuration saved to '/home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap/defconfig.tmp'
Select HOST_LINUX=y
-- CMake: 3.23.0
-- Ninja: 1.10.1
-- Board: vela
-- Config: goldfish-arm64-v8a-ap
-- Appdir: /home/rtos/Desktop/openvela/apps
-- The C compiler identification is GNU 13.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/rtos/Desktop/openvela/prebuilts/tools/linux/x86_64/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- NuttX Host Tools
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap/bin_host
-- The C compiler identification is GNU 13.4.0
-- The CXX compiler identification is GNU 13.4.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/rtos/Desktop/openvela/prebuilts/gcc/linux-x86_64/aarch64-none-elf/bin/aarch64-none-elf-gcc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /home/rtos/Desktop/openvela/prebuilts/gcc/linux-x86_64/aarch64-none-elf/bin/aarch64-none-elf-gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/rtos/Desktop/openvela/prebuilts/gcc/linux-x86_64/aarch64-none-elf/bin/aarch64-none-elf-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- libmetal version: 1.7.0 (/home/rtos/Desktop/openvela/nuttx)
-- Build type:
-- Host: Linux/x86_64
-- Target: NuttX/aarch64
-- Machine: arm64
-- Vendor: none
-- open-amp version: 1.7.0 (/home/rtos/Desktop/openvela/nuttx/openamp/open-amp)
-- Host: Linux/x86_64
-- Target: NuttX/aarch64
-- Machine: arm64
-- C_FLAGS : -Wall -Wextra
-- Looking for include file stdatomic.h
-- Looking for include file stdatomic.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap
cmake --build cmake_out/vela_goldfish-arm64-v8a-ap -j4
[3287/3301] Linking CXX executable nuttx
Memory region Used Size Region Size %age Used
[3292/3301] cd /home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap/boards/exclude_board...-v8a-ap/vela_data.bin -sv /home/rtos/Desktop/openvela/vendor/openvela/boards/vela/prebuilts/data/ ::
记录了256+0 的读入
记录了256+0 的写出
268435456字节(268 MB,256 MiB)已复制,0.497623 s,539 MB/s
mkfs.fat 4.2 (2021-01-31)
Copying data
Copying dummy
[3293/3301] Linking CXX executable first_link
Memory region Used Size Region Size %age Used
[3296/3301] Linking CXX executable second_link
Memory region Used Size Region Size %age Used
[3299/3301] Linking CXX executable final_nuttx
Memory region Used Size Region Size %age Used
[3301/3301] cd /home/rtos/Desktop/openvela/cmake_out/vela_goldfish-arm64-v8a-ap && cp nuttx vela_ap.elf && cp nuttx vela_ap.bin

rtos@rtos-virtual-machine:~/Desktop/openvela$ ./emulator.sh cmake_out/vela_goldfish-arm64-v8a-ap
HOST_OS = linux
HOST_ARCH = x86_64
TOP_DIR = /home/rtos/Desktop/openvela
TARGETDIR = /home/rtos/Desktop/openvela/vendor/openvela/boards/cmake_out/vela_goldfish-arm64-v8a-ap
./emulator.sh: 行 32: /home/rtos/Desktop/openvela/vendor/openvela/boards/cmake_out/vela_goldfish-arm64-v8a-ap/prebuilts/tools/run_emulator.sh: 没有那个文件或目录

请问如何运行模拟器?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions