openeuler21.03移植 qemu 模拟Hi3518开发板
作者:互联网
openeuler21.03移植 qemu 模拟Hi3518开发板
希望openeuler21.03社区志愿者维护人员将下列组件打包,进一步壮大华为生态链。
1、下载 OpenHarmonyEmulator
说明:OpenHarmonyEmulator基于qemu项目,能够模拟OpenHarmony Hi3518开发板,可以在虚拟环境中运行Open Harmony系统。
git clone https://gitee.com/singularsecuritylab/open-harmony-emulator
2、下载vdeplug4源码并手工编译
https://codeload.github.com/rd235/vdeplug4/zip/refs/heads/master
3、下载libexecs并手工编译
http://archive.ubuntu.com/ubuntu/pool/universe/libe/libexecs/
http://archive.ubuntu.com/ubuntu/pool/universe/libe/libexecs/libexecs_1.1.orig.tar.gz
4、libjpeg.so.8.0.2
这个不用载了,WPS里居然有直接拿来使用
版本:libjpeg.so.8.0.2
sudo ln -s libjpeg.so.8.0.2 libjpeg.so.8
5、下载libvte并编译安装
http://ftp.us.debian.org/debian/pool/main/v/vte/vte_0.28.2.orig.tar.xz
6、下载libfdt
libfdt.so.1
sudo dnf install python3-libfdt.x86_64
7、测试
上面安装完成后,可以测试了,qemu用法可以能参考下面
https://blog.csdn.net/lenovo8088/article/details/114874376
不要运行start_qemu.sh,直接运行下载命令
a.启动
./qemu-system-arm \
-M hi3518 \
-m 512 \
-kernel liteos.bin \
-nographic \
-net nic,macaddr=88-88-88-88-88-66 \
-net bridge,id=net0,helper=/usr/libexec/qemu-bridge-helper,br=virbr0 \
b.欢迎界面
******************Welcome******************
Processor : unknown
Run Mode : UP
GIC Rev : unknown
build time : Oct 29 2020 15:00:51
Kernel : Huawei LiteOS 2.0.0.35/debug
*******************************************
c、帮助
help
*******************shell commands:*************************
arp cat cd chgrp chmod chown cp cpup
date dhclient dmesg dns format free help hwi
ifconfig ipdebug kill log ls lsfd memcheck mkdir
mount netstat oom partinfo partition ping ping6 pmm
pwd readreg reset rm rmdir sem stack statfs
su swtmr sync systeminfo task telnet tftp touch
umount uname v2p virstatfs vmm watch writeproc
d、查看及配置网络
OHOS # ifconfig
OHOS # dhclient eth0
OHOS # ping www.baidu.com
[0]Reply from 220.181.38.150: time=23ms TTL=52
[1]Reply from 220.181.38.150: time=22ms TTL=52
[2]Reply from 220.181.38.150: time=22ms TTL=52
[3]Reply from 220.181.38.150: time=22ms TTL=52
--- 220.181.38.150 ping statistics ---
4 packets transmitted, 4 received, 0 loss
8、其他
退出:先按ctrl+a再按x
先这样吧,以后再测试!
^_^
标签:openeuler21.03,com,开发板,88,38.150,Hi3518,time,220.181,qemu 来源: https://blog.csdn.net/lenovo8088/article/details/115828700