回复:回复:[Zephyr-devel] is there any gudeline on how to run SMP mode kernel on X86 architecture?
"曹子龙
Thank you! But it seems cant load the symbol, so how to compile the debug elf files? BTW: there are two elf files exist in build dir, zephyr.elf and zepyhr-qemu.elf, what is the difference? Thread 1 received signal SIGINT, Interrupt. 0x0000000000100dfb in ?? () (gdb) bt #0 0x0000000000100dfb in ?? () #1 0x0000000000102e7e in ?? () #2 0x0000000000102e5a in ?? () #3 0x00000000001004d2 in ?? () #4 0x0000000000000000 in ?? ()曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|
Carles Cufi
Hi there,
You are right, I made a mistake. Here’s the updated instructions that work for me:
$ cd ~/zephyrproject/zephyr $ source zephyr-env.sh $ west build -b qemu_x86_64 samples/hello_world/ $ cd build/ $ ninja debugserver
and then in another terminal
$ /opt/zephyr-sdk/x86_64-zephyr-elf/bin/x86_64-zephyr-elf-gdb build/zephyr/zephyr.elf (gdb) target remote localhost:1234 (gdb) dir ~/zephyrproject/zephyr/ (gdb) continue
So it’s a matter of using Zephyr’s SDK gdb and passing it as a parameter the path to build/zephyr/zephyr.elf
Carles
From:
曹子龙 <caozilong@...>
Sent: 25 January 2020 03:15 To: Cufi, Carles <Carles.Cufi@...>; Boie, Andrew P <andrew.p.boie@...>; devel <devel@...> Subject: 回复:回复:[Zephyr-devel] is there any gudeline on how to run SMP mode kernel on X86 architecture?
Thank you! But it seems cant load the symbol, so how to compile the debug elf files? BTW: there are two elf files exist in build dir, zephyr.elf and zepyhr-qemu.elf, what is the difference? Thread 1 received signal SIGINT, Interrupt. 0x0000000000100dfb in ?? () (gdb) bt #0 0x0000000000100dfb in ?? () #1 0x0000000000102e7e in ?? () #2 0x0000000000102e5a in ?? () #3 0x00000000001004d2 in ?? () #4 0x0000000000000000 in ?? ()
曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|