RT only的系统怎么进入msh />

Viewed 82

重现步骤
按照https://www.kendryte.com/k230_rtos/zh/main/userguide/how_to_build.html rtos文档编译了新的固件,menconfig内容:
image.png
基本没有怎么变过,MPP这两个也没有开:
image.png

期待结果和实际结果

menuconfig之后依次make clean和make,然后烧录生成的固件
image.png

软硬件版本信息

#############SDK VERSION######################################
SDK : v1.3-rc-20250514-153913-shusheng-D-01117KD7-1705-d66e43c
nncase: 2.9.0
##############################################################

错误日志

U-Boot SPL 2022.10 (May 14 2025 - 15:38:39 +0800)
lpddr4 2660
00000000: PMU Major Msg: End of CA training
00000000: PMU Major Msg: End of initialization
00000000: PMU Major Msg: End of read enable training
00000000: PMU Major Msg: End of fine write leveling
00000000: PMU Major Msg: End of read dq deskew training
00000000: PMU Major Msg: End of MPR read delay center optimization
00000000: PMU Major Msg: End of Write leveling coarse delay
00000000: PMU Major Msg: End of write delay center optimization
00000000: PMU Major Msg: End of read delay center optimization
00000000: PMU Major Msg: End of max read latency training
00000000: PMU Major Msg: Firmware run has completed
image: uboot load to 0x1000000, compress=1 src=0x2aaaacff len=0x49e1a

U-Boot 2022.10 (May 14 2025 - 15:38:39 +0800)

CPU: rv64imafdcvsu
Model: kendryte k230 canmv 01studio
DRAM: 1 GiB
Core: 22 devices, 13 uclasses, devicetree: embed
MMC: mmc0@91580000: 0
Loading Environment from MMC... OK
In: serial@91400000
Out: serial@91400000
Err: serial@91400000
Net: No ethernet found.
Hit any key to stop autoboot: 0
image: rtt load to 0x0, compress=1 src=0x2aaaad07 len=0x1a1e70
Jump to big hart

OpenSBI v1.2.2
heap: [0x0053aa00 - 0x0453aa00], size 65536 KB
page: [0x0453aa08 - 0x1fffec00], size 453392 KB
lwIP-2.1.2 initialized!
[I/SDIO] SD card capacity 31166976 KB.
found part[0], begin: 52428800, size: 10.0MB
found part[1], begin: 62914560, size: 1.0GB
found part[2], begin: -18446744071562067968, size: 27.740GB
[E/drv_touch] touch probe failed.
[I/sal.skt] Socket Abstraction Layer initialize success.
Can't find sensor on csi0
Can't find sensor on csi1
find sensor(gc2093_csi2) on csi2
vicap_mcm_init
#############SDK VERSION######################################
SDK : v1.3-rc-20250514-153913-shusheng-D-01117KD7-1705-d66e43c
nncase: 2.9.0
##############################################################
msh />usb disconnect
[I/WLAN.dev] wlan init success
[I/WLAN.lwip] eth device init ok name:w0
[I/WLAN.dev] wlan init success
[I/WLAN.lwip] eth device init ok name:w1
Config parameters:
Audio sample rate: 8000
Audio channel count: 1
Video encoder type: h264
Video encoder width: 1280
Video encoder height: 720
Video encoder bitrate (kbps): 2000
Video output connector type: LCD
OSD width: 480
OSD height: 800
Video output width: 800
Video output height: 480
AI input width: 1280
AI input height: 720
Kmodel file: /sdcard/app/examples/integrated_poc/face_detection_320.kmodel
Face detection threshold: 0.600000
Face detection NMS threshold: 0.400000
Enable video output: 1
Enable AI analysis: 1
Enable video encoding: 1

probe sensor type 29, mirror 0
detect sensor type: 29
with_video
with_audio
g711liveSubSession

"test" stream
Play this stream using the URL "rtsp://0.0.0.0:8554/test"
vb block size is 177000
phys_addr is 2112c000 osd_pool_id is 6
@@@@@@@@face detection init took 313.69 ms
vicap chn 0 set attr success.
vicap chn 1 set attr success.
vicap chn 2 set attr success.
audio i2s set clk freq is 512000(512000),ret:1
audio codec adc clk freq is 2048000(2048000)
@@@@@@_init_vo_layer_osd took 166.115 ms
<0>[6] [vi] wait stop timeout

[tuning] dev: 0
acq_win.width: 1920
acq_win.height: 1080
pipe_ctrl: 4261412857
sensor_fd: 16
sensor_type: 29
sensor_name: gc2093_csi2
database_name: gc2093-1920x1080
buffer_num: 0
buffer_size: 0
[tuning] chn: 0
out_win.width: 800
out_win.height: 480
bit_width: 0
pix_format: 5
buffer_num: 3
buffer_size: 576512
yraw_size: 0
uv_size: 0
v_size: 0
block_type: 1
wait_time: 500
chn_enable: 1
isp_3dnr_en is 1 g_isp_dev_ctx[dev_num].dev_attr.pipe_ctrl.bits.dnr3_enable is 0
VsiCamDeviceCreate hw:0-vt:0 created!
kd_mpi_isp_set_output_chn_format, width(800), height(480), pix_format(5)
kd_mpi_isp_set_output_chn_format, width(1280), height(720), pix_format(16)
kd_mpi_isp_set_output_chn_format, width(1280), height(720), pix_format(5)
[dw] init, version Apr 23 2025 00:06:17
@@@@@@_start_vi_cap took 1789.82 ms
MySmartIPC::start took 1972.74 ms
SmartIPC started.
total test took 2367.33 ms

开机之后直接跳到了这里,在msh />这里没有停留。我想知道如果我生成了一个应用固件(helloworld),在这种情况下要怎么在msh />后面输命令执行?目前我作不了任何操作

1 Answers

你好,输入ctrl+c来中断程序的运行,如果想默认进去msh,可以在menuconfig中关掉开机自动运行的指令。

您好,再请教一下,我在menuconfig里已经删除了CONFIG_RTT_AUTO_EXEC_CMD这里自动执行的指令,save之后make clean再make,为什么config会自动把CONFIG_RTT_AUTO_EXEC_CMD添加回来呢,而且我之前在putty这个串口界面ctrl+c是打断不了的

默认的配置文件需要使用make savedefconfig来更新。

我更新了配置重新编译烧录了一下,现在日志会卡在这里:#############SDK VERSION######################################
SDK : v1.3-rc-20250514-163423-shusheng-D-01117KD7-1705-d66e43c
nncase: 2.9.0
##############################################################
msh />usb disconnect
[I/WLAN.dev] wlan init success
[I/WLAN.lwip] eth device init ok name:w0
[I/WLAN.dev] wlan init success
[I/WLAN.lwip] eth device init ok name:w1
ctrl C也打断不了