Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-14 Thread Richard W.M. Jones
On Mon, May 14, 2012 at 12:57:09AM -0400, Jon Masters wrote: On 05/13/2012 04:34 PM, Michael Hope wrote: On 12 May 2012 22:12, Richard W.M. Jones rjo...@redhat.com wrote: On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-14 Thread Michael Hope
On 14 May 2012 16:57, Jon Masters j...@redhat.com wrote: On 05/13/2012 04:34 PM, Michael Hope wrote: On 12 May 2012 22:12, Richard W.M. Jones rjo...@redhat.com wrote: On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has anyone

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-13 Thread Michael Hope
On 12 May 2012 22:12, Richard W.M. Jones rjo...@redhat.com wrote: On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has anyone tried to debug our Fedora/arm kernels under qemu-system-arm? (In this case, the host is also arm, but

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-13 Thread Jon Masters
On 05/13/2012 04:34 PM, Michael Hope wrote: On 12 May 2012 22:12, Richard W.M. Jones rjo...@redhat.com wrote: On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has anyone tried to debug our Fedora/arm kernels under

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-12 Thread Richard W.M. Jones
On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has anyone tried to debug our Fedora/arm kernels under qemu-system-arm? (In this case, the host is also arm, but I don't think that matters.) Richard, FYI, we as of a few

[fedora-arm] Debugging our kernels under qemu + gdb

2012-05-11 Thread Richard W.M. Jones
Has anyone tried to debug our Fedora/arm kernels under qemu-system-arm? (In this case, the host is also arm, but I don't think that matters.) After a lot of effort, I've managed to get to the point where prints this on the serial port: Uncompressing Linux... done, booting the kernel. and then

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-11 Thread Richard W.M. Jones
On Fri, May 11, 2012 at 09:04:40PM +0100, Richard W.M. Jones wrote: = 0x005fe934: nop ; (mov r0, r0) 0x005fe938: b 0x5fe934 Well I guess there's more than one way to skin this cat. I disassembled the whole of vmlinux and found the code: c05fe934

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-11 Thread Richard W.M. Jones
... and setting the right emulated -cpu, it boots! For reference (mainly mine), here is the qemu command line that works: kernel=3.3.4-4.fc17.armv7hl QEMUDIR=$HOME/d/qemu exec \ $QEMUDIR/arm-softmmu/qemu-system-arm \ -s \ -M versatilepb \ -cpu arm926 \ -nodefaults \ -nographic \ -serial stdio

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-11 Thread Richard W.M. Jones
On Fri, May 11, 2012 at 01:41:43PM -0700, Brendan Conoboy wrote: On 05/11/2012 01:04 PM, Richard W.M. Jones wrote: Has anyone tried to debug our Fedora/arm kernels under qemu-system-arm? (In this case, the host is also arm, but I don't think that matters.) Richard, FYI, we as of a few

Re: [fedora-arm] Debugging our kernels under qemu + gdb

2012-05-11 Thread Brendan Conoboy
On 05/11/2012 01:50 PM, Richard W.M. Jones wrote: Thanks, I will. Are these going to replace the current Fedora kernel config at some point? Yes, in a few days I would expect the default Fedora ARM kernel to be vexpress oriented. We're still working on integrating the necessary vexpress