Re: 回复:回复:回复:[Zephyr-devel] is there any gudeline on how to run SMP mode kernel on X86 architecture?
Boie, Andrew P
Try this instead, this is what I do every day, I never use west as it doesn’t properly support emulators. For x86-64 the host GDB works great:
. zephyr-env.sh cd samples/hello_world mkdir out cd out cmake -DBOARD=qemu_x86_64 .. make -j32 make debugserver
In another terminal: cd samples/hello_world/out gdb zephyr/zephyr.elf -ex "target remote :1234"
GDB will start up and you can debug as usual.
From: devel@... <devel@...>
On Behalf Of "???
Sent: Sunday, January 26, 2020 7:54 PM To: devel <devel@...>; Boie, Andrew P <andrew.p.boie@...> Subject: 回复:回复:回复:[Zephyr-devel] is there any gudeline on how to run SMP mode kernel on X86 architecture?
Thank you! It seems work seeing the source code, but still has problem on connection: (gdb) target remote localhost:1234 Remote debugging using localhost:1234 warning: Selected architecture i386:x64-32 is not compatible with reported target architecture i386:x86-64 Remote 'g' packet reply is too long (expected 596 bytes, got 608 bytes): 00000000000000000000000000000000000000000000000063060000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0ff0000000000000200000000f0000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000001000006000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f0300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000801f0000 (gdb)
BTW, can this debug method view each core of SMP? how ? thank you!
曹子龙 珠海全志科技股份有限公司 BU1-PSW 地址:广东省珠海市高新区唐家湾镇科技2路9号 TEL:13824125580 Email:caozilong@... 网址: http://www.allwinnertech.com
|
|