赞
踩
- 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、支持的CPU
- ./qemu-system-arm -m ?
- virt ARM Virtual Machine
- collie Collie PDA (SA-1110)
- realview-eb-mpcore ARM RealView Emulation Baseboard (ARM11MPCore)
- sx1 Siemens SX1 (OMAP310) V2
- hi1215-osn9800 hisi hi1215 SOC (Cortex-A15)
- musicpal Marvell 88w8618 / MusicPal (ARM926EJ-S)
- borzoi Borzoi PDA (PXA270)
- connex Gumstix Connex (PXA255)
- z2 Zipit Z2 (PXA27x)
- lm3s811evb Stellaris LM3S811EVB
- lm3s6965evb Stellaris LM3S6965EVB
- hi1215 hisi hi1215 SOC (Cortex-A15)
- spitz Spitz PDA (PXA270)
- vexpress-a9 ARM Versatile Express for Cortex-A9
- cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310)
- realview-eb ARM RealView Emulation Baseboard (ARM926EJ-S)
- vexpress-a15 ARM Versatile Express for Cortex-A15
- xilinx-zynq-a9 Xilinx Zynq Platform Baseboard for Cortex-A9
- integratorcp ARM Integrator/CP (ARM926EJ-S)
- cubieboard cubietech cubieboard
- akita Akita PDA (PXA270)
- realview-pb-a8 ARM RealView Platform Baseboard for Cortex-A8
- hi1381-hulk hisi hi1381 SOC (Cortex-A15)
- sx1-v1 Siemens SX1 (OMAP310) V1
- tosa Tosa PDA (PXA255)
- realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9
- n810 Nokia N810 tablet aka. RX-44 (OMAP2420)
- hi3518 hisi hi3518
- highbank Calxeda Highbank (ECX-1000)
- none empty machine
- hi1215-osn1800 hisi hi1215 SOC (Cortex-A15)
- midway Calxeda Midway (ECX-2000)
- hi1381 hisi hi1381 SOC (Cortex-A15)
- hi1215-ptn7900 hisi hi1215-ptn7900 board (Cortex-A15)
- versatilepb ARM Versatile/PB (ARM926EJ-S)
- kzm ARM KZM Emulation Baseboard (ARM1136)
- hi1215-ptn990 hisi hi1215-ptn990 board (Cortex-A15)
- verdex Gumstix Verdex (PXA270)
- n800 Nokia N800 tablet aka. RX-34 (OMAP2420)
- terrier Terrier PDA (PXA270)
- canon-a1100 Canon PowerShot A1100 IS
- mainstone Mainstone II (PXA27x)
- nuri Samsung NURI board (Exynos4210)
- smdkc210 Samsung SMDKC210 board (Exynos4210)
- versatileab ARM Versatile/AB (ARM926EJ-S)
- 9、其他
- 退出:先按ctrl+a再按x
- 先这样吧,以后再测试!
- ^_^

Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。