You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# 创建磁盘文件
make disk_img
# 启动AxVisor
make ACCEL=n ARCH=aarch64 LOG=debug VM_CONFIGS=configs/vms/arceos-aarch64.toml:configs/vms/arceos-aarch64_1.toml FEATURES=hv APP_FEATURES=fs SMP=2 MEM=4G SECOND_SERIAL=y run
# 打开第二个终端
telnet localhost 4321
运行结果
[ 0.401525 0 fatfs::dir:139] Is a directory
[ 0.409526 0 fatfs::dir:139] Is a directory
[ 0.416942 0 fatfs::dir:139] Is a directory
[ 0.423362 0 fatfs::dir:139] Is a directory
Available commands:
cat
cdechoexithelp
ls
mkdir
pwd
rm
uname
arceos:/$ ls
drwxr-xr-x 4096 dev
drwxr-xr-x 4096 proc
drwxr-xr-x 4096 sys
drwxr-xr-x 4096 tmp
arceos:/$ ls
drwxr-xr-x 4096 dev
drwxr-xr-x 4096 proc
drwxr-xr-x 4096 sys
drwxr-xr-x 4096 tmp
arceos:/$ mkdir 2222
arceos:/$ ls
ls: command not found
arceos:/$
arceos:/$
arceos:/$ ls
[ 24.626949 0 fatfs::dir:139] Is a directory
drwxr-xr-x 512 2222
drwxr-xr-x 4096 dev
drwxr-xr-x 4096 proc
drwxr-xr-x 4096 sys
drwxr-xr-x 4096 tmp
arceos:/$
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Clone代码
新建一个 clone.sh 文件
使用命令
bash clone.sh
来克隆代码,如果出错得清空文件夹重新克隆编译Arceos
编译命令以及脚本如下
编译VM0
首先需要编译第一个 vm,启动地址是在 0x4020_0000
编译 VM1,启动地址是在 0x8020_0000,这两个 Arcos 只有启动地址不一致,其他的都是一致的
启动AxVisor
运行结果
使用 ALT+F1 切换至 VM0,使用 ALT+F2 切换至 VM1
STDIO 后端实现原理
Beta Was this translation helpful? Give feedback.
All reactions