Ping :-) On Sun, Mar 25, 2018 at 11:52 PM, Boris Shingarov <shinga...@labware.com> wrote:
> I thought Paul and I fixed this back in September. > I'll investigate in more detail tomorrow. > > -----"gem5-users" <gem5-users-boun...@gem5.org> wrote: ----- > To: gem5 users mailing list <gem5-users@gem5.org> > From: Ciro Santilli > Sent by: "gem5-users" > Date: 03/25/2018 05:40PM > Subject: [gem5-users] aarch64 GDB step debugging fails with "Remote 'g' > packet reply is too long" > > https://urldefense.proofpoint.com/v2/url?u=https-3A__github. > com_gem5_gem5_issues_22&d=DwIGaQ&c=sPZ6DeHLiehUHQWKIrsNwWp3t7snrE > -az24ztT0w7Jc&r=ecC5uu6ubGhPt6qQ8xWcSQh1QUJ8B1-CG4B9kRM0nd4&m= > TRc6bpCSt8UtOoeGItr2gmo-pFlIQj1Q6C3WEzBIafQ&s= > v4yfp47y98DI1fWLOklfoLLsW2cxyh__XhMAUx5IAGo&e= > > > Has anyone ever made this work? > > 68af229490fc811aebddf68b3e2e09e63a5fa475, gdb 7.11.1 built by Buildroot > > An extremely similar aarch64 setup works for QEMU, and x86 and arm > both work for gem5, just aarch64 does not. > > gem5 command: > > ``` > M5_PATH='/home/ciro/bak/git/linux-kernel-module-cheat/ > buildroot/output.aarch64~/build/gem5-1.0/system' > '/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/ > output.aarch64~/build/gem5-1.0/gem5/build/ARM/gem5.opt' > '/home/ciro/bak/git/linux-kernel-module-cheat/buildroot/ > output.aarch64~/build/gem5-1.0/gem5/configs/example/fs.py' > --checkpoint-dir='./m5out/cpts/aarch64' > --disk-image='/home/ciro/bak/git/linux-kernel-module-cheat/ > buildroot/output.aarch64~/images/rootfs.ext2' > --kernel='/home/ciro/bak/git/linux-kernel-module-cheat/ > buildroot/output.aarch64~/build/linux-custom/vmlinux' > --mem-size=256MB --num-cpus='1' > --command-line='earlyprintk=pl011,0x1c090000 console=ttyAMA0 > lpj=19988480 rw loglevel=8 mem=256MB root=/dev/sda nokaslr norandmaps > printk.devkmsg=on printk.time=y' > --dtb-file='/home/ciro/bak/git/linux-kernel-module-cheat/ > buildroot/output.aarch64~/build/gem5-1.0/gem5/system/ > arm/dt/armv8_gem5_v1_1cpu.dtb' > --machine-type=VExpress_GEM5_V1 > ``` > > gdb command: > > ``` > /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/ > output.aarch64~/host/usr/bin/aarch64-linux-gdb > -q -ex 'add-auto-load-safe-path > /home/ciro/bak/git/linux-kernel-module-cheat/buildroot/ > output.aarch64~/build/linux-custom' > -ex 'file vmlinux' -ex 'target remote localhost:7000' -ex 'continue' > -ex 'lx-symbols ../kernel_module-1.0/' > ``` > > gem5 stdout says: > > ``` > 4107766500: system.remote_gdb: remote gdb attached > warn: Couldn't read data from debugger. > 4107767500: system.remote_gdb: remote gdb detached > ``` > > Error message: > > ``` > Reading symbols from vmlinux...done. > Remote debugging using localhost:7000 > Remote 'g' packet reply is too long: > 000000000000000090a4f90fc0ffffff4875450ec0ffffff010000000000 > 000001000000000000000000000000000000010000000000000000000000 > 00000000ffffffffffffffff646d60616b64fffe7f7f7f7f7f7f7f7f0101 > 010101010101300000000000000000000000ffffffff48454422207d2c20 > 17162f212628201601000000000000000700000000000000010000000000 > 00004075450ec0ffffffc073450ec0ffffff82080000000000004075450e > c0ffffff8060f90fc0ffffffc073450ec0fffffff040900880ffffff40ab > 400ec0ffffff586d900880ffffff0068a20ec0ffffff903b010880ffffff > c8ff210880ffffff903b010880ffffffccff210880ffffff050000200000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000 > 000000000000000000000000000000000000000000000000000000000000000000000000 > ``` > > Tried to add `set tdesc filename aarch64.xml` as mentioned at: > https://urldefense.proofpoint.com/v2/url?u=https-3A__ > stackoverflow.com_questions_27411621_remote-2Dg-2Dpacket- > 2Dreply-2Dis-2Dtoo-2Dlong-2Daarch64-2Darm64_27430836- > 2327430836&d=DwIGaQ&c=sPZ6DeHLiehUHQWKIrsNwWp3t7snrE-az24ztT0w7Jc&r= > ecC5uu6ubGhPt6qQ8xWcSQh1QUJ8B1-CG4B9kRM0nd4&m=TRc6bpCSt8UtOoeGItr2gmo- > pFlIQj1Q6C3WEzBIafQ&s=ADlPS0xPPspiwXsUB4VvUOqHRd2IUBKWg38miw2tDMQ&e= > but no change. > > This is the exact reproduction setup: > https://urldefense.proofpoint.com/v2/url?u=https-3A__github. > com_cirosantilli_linux-2Dkernel-2Dmodule-2Dcheat_tree_ > a1a6a5d6fb417238ce4064ef7b3319686f02fd6b-23gem5-2Dgdb- > 2Dstep-2Ddebug-2Dkernel-2Daarch64&d=DwIGaQ&c= > sPZ6DeHLiehUHQWKIrsNwWp3t7snrE-az24ztT0w7Jc&r= > ecC5uu6ubGhPt6qQ8xWcSQh1QUJ8B1-CG4B9kRM0nd4&m=TRc6bpCSt8UtOoeGItr2gmo- > pFlIQj1Q6C3WEzBIafQ&s=xOcFG4YbFLbsgqZxptsJLf2sAnWESXdebLdBAeg9opI&e= > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim. > org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwIGaQ&c= > sPZ6DeHLiehUHQWKIrsNwWp3t7snrE-az24ztT0w7Jc&r= > ecC5uu6ubGhPt6qQ8xWcSQh1QUJ8B1-CG4B9kRM0nd4&m=TRc6bpCSt8UtOoeGItr2gmo- > pFlIQj1Q6C3WEzBIafQ&s=6W5AaVvUh816a0Mj0c4T5-YR8uZwzGrRqSVw3iK2sK0&e= > > > > <https://www.labware.com/2018NACEC> > > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users