标题: HarmonyOS NEXT ARM64 模拟器镜像(从M1 Mac版DevEco Studio中获取)
时间: 05-25 14:31发布,05-25 14:34修改
『回复列表(5|隐藏机器人聊天)』
/Applications/DevEco-Studio.app/Contents/tools/emulator/Emulator -hvd Huawei_2in1 -path /Users/m1/.Huawei/Emulator/deployed -t trace_34110_commandPipe -imageRoot /Users/m1/Library/Huawei/Sdk
尝试在ARM Linux里启动:
#!/bin/bash
export LD_LIBRARY_PATH=/usr/local/lib/aarch64-linux-gnu
args=(
-machine virt
#-cpu cortex-a57
-cpu host
-smp 8,sockets=1,cores=8,threads=1
-m 4096
-enable-kvm
-kernel Image
-initrd ramdisk.img
-drive file=cache.img,format=raw,if=virtio
-drive file=system.img,format=raw,if=virtio
-drive file=vendor.img,format=raw,if=virtio
-drive file=userdata.img,format=raw,if=virtio
-drive file=sys_prod.img,format=raw,if=virtio
-append "console=ttyAMA0 root=/dev/ram0"
-serial stdio
-device virtio-gpu
#-device ramfb
-display gtk
)
exec /usr/local/bin/qemu-system-aarch64 "${args[@]}" "$@"
启动不了,kernel panic:
[ 1.523078][ T1] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000018
[ 1.524542][ T1] Mem abort info:
[ 1.524914][ T1] ESR = 0x96000005
[ 1.525323][ T1] EC = 0x25: DABT (current EL), IL = 32 bits
[ 1.525947][ T1] SET = 0, FnV = 0
[ 1.526341][ T1] EA = 0, S1PTW = 0
[ 1.526736][ T1] Data abort info:
[ 1.527102][ T1] ISV = 0, ISS = 0x00000005
[ 1.527545][ T1] CM = 0, WnR = 0
[ 1.527927][ T1] [0000000000000018] user address but active_mm is swapper
[ 1.528645][ T1] Internal error: Oops: 0000000096000005 [#1] SMP
[ 1.529253][ T1] Modules linked in:
[ 1.529631][ T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.10.210 #1
[ 1.530324][ T1] Hardware name: linux,dummy-virt (DT)
[ 1.530877][ T1] pstate: 80c00005 (Nzcv daif +PAN +UAO -TCO BTYPE=--)
[ 1.531586][ T1] pc : kmem_cache_alloc+0x17c/0x360
[ 1.532109][ T1] lr : kmem_cache_alloc+0x80/0x360
[ 1.532620][ T1] sp : ffffffc012e9bb40
[ 1.533047][ T1] x29: ffffffc012e9bb60 x28: 0000000000000000
[ 1.533728][ T1] x27: ffffffc011d27000 x26: ffffffffffffffff
[ 1.534413][ T1] x25: 0000000000000000 x24: ffffffc01148a008
[ 1.535094][ T1] x23: ffffffc010af169c x22: 0000000000000000
[ 1.535737][ T1] x21: ffffffc010af169c x20: 0000000000000000
[ 1.536746][ T1] x19: 0000000000000cc0 x18: 0000000000000000
[ 1.538786][ T1] x17: 0000000000000002 x16: ffffff80fea34bf4
[ 1.539430][ T1] x15: ffffffc0112c9000 x14: 0000000000000000
[ 1.540060][ T1] x13: 0000000000000000 x12: 0000000000002735
[ 1.541875][ T1] x11: ffffff80faa60d60 x10: ffffffc01166f680
[ 1.542390][ T1] x9 : ffffffc011ce9000 x8 : 0000000000000027
[ 1.542990][ T1] x7 : 0000000000000000 x6 : ffffffc01020fd28
[ 1.543625][ T1] x5 : 0000000000000000 x4 : 0000000000000001
[ 1.544246][ T1] x3 : 0000000000000000 x2 : 0000000000000000
[ 1.545444][ T1] x1 : 0000000000000cc0 x0 : 0000000000000000
[ 1.546468][ T1] Call trace:
[ 1.546811][ T1] kmem_cache_alloc+0x17c/0x360
[ 1.547331][ T1] alloc_flag_buf+0x3c/0x100
[ 1.547796][ T1] register_teleport_DMA_buffer+0x98/0x140
[ 1.548487][ T1] express_gps_probe+0x234/0x2e0
[ 1.549025][ T1] do_one_initcall+0x154/0x340
[ 1.549559][ T1] do_initcall_level+0x150/0x1a0
[ 1.550109][ T1] do_initcalls+0x58/0xa0
[ 1.550592][ T1] do_basic_setup+0x24/0x40
[ 1.551093][ T1] kernel_init_freeable+0x94/0xe0
[ 1.551634][ T1] kernel_init+0x18/0x1a0
[ 1.552136][ T1] ret_from_fork+0x10/0x1c
[ 1.553054][ T1] Code: 94000645 f9400bf6 f9400b68 f000d609 (29430e84)
[ 1.553835][ T1] ---[ end trace 1842fee6e94ffa1f ]---
[ 1.554410][ T1] Kernel panic - not syncing: Oops: Fatal exception
[ 1.555098][ T1] SMP: stopping secondary CPUs
[ 1.556506][ T1] Kernel Offset: disabled
[ 1.557903][ T1] CPU features: 0x0c040006,6a80a218
[ 1.560608][ T1] Memory Limit: none
[ 1.561203][ T1] ---[ end Kernel panic - not syncing: Oops: Fatal exception ]---