[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 <__e

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 Brendan Conoboy
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 hours ago have nearly-official F17-beta images for versatile express on

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

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 con

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

2012-05-11 Thread Jon Masters
On 05/11/2012 04: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.) Yea. Ping me if you need any help in general with this. Make sure you boot with "-s -S" and connect re

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

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 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 I don't t

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

2012-05-13 Thread Richard W.M. Jones
On Mon, May 14, 2012 at 08:34:13AM +1200, Michael Hope wrote: > On 12 May 2012 22:12, Richard W.M. Jones 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 q

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 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?

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 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 an

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

2012-05-14 Thread Jon Masters
On 05/14/2012 03:37 AM, Richard W.M. Jones wrote: > There's something quite broken about our qemu package. I haven't > looked at what it is yet, but at the moment I'm using qemu built from > upstream git for all testing. I'll try to look at what's going on > with the qemu package later. Note, o

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

2012-05-14 Thread Michael Hope
On 14 May 2012 16:57, Jon Masters wrote: > On 05/13/2012 04:34 PM, Michael Hope wrote: >> On 12 May 2012 22:12, Richard W.M. Jones 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