Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-13 Thread Piotr Król
On Mon, Aug 11, 2014 at 04:00:19PM -0700, ron minnich wrote: During debugging I found that stack is initialized in range 0x4-0x7FF00 (using .Stack and .Stack_size). When coreboot code is executed: reset init_stack_loop call_bootblock main +- armv7_invalidate_caches +-

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-12 Thread Piotr Król
On Mon, Aug 11, 2014 at 04:00:19PM -0700, ron minnich wrote: Sorry, in other words, how much ROM are you setting up on that qemu board? The 'execute outside ram or rom' is usually a jump to an IP that qemu does not recognize as ROM/RAM. ROM is probably represented in vexpress-a9 as

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-12 Thread Piotr Król
On Tue, Aug 12, 2014 at 05:30:03AM +0200, Patrick Georgi wrote: Am 12.08.2014 um 00:37 schrieb Piotr Król: Anyone know how to load bootblock debug symbols to gdb when debugging using '-s -S' option ? add-symbol-file $filename $loadaddr When I try: gdb$ target remote :1234 Remote debugging

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread Piotr Król
On Mon, Aug 11, 2014 at 12:15:32AM +0200, Peter Stuge wrote: There is no coreboot gdb support There is some gdb support in coreboot, but maybe not for ARM? What I tried to say is that it happens to early to connect to coreboot using gdb support, but maybe I'm wrong. so I used qemu '-s

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread ron minnich
So, if you comment that one line out, do things work for you? Just double checking. ron On Mon, Aug 11, 2014 at 2:09 AM, Piotr Król pietrush...@gmail.com wrote: On Mon, Aug 11, 2014 at 12:15:32AM +0200, Peter Stuge wrote: There is no coreboot gdb support There is some gdb support in

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread Piotr Król
On Mon, Aug 11, 2014 at 07:36:42AM -0700, ron minnich wrote: So, if you comment that one line out, do things work for you? Just double checking. Comment is not enough to make it work. VE_NORFLASHALIAS has to be -1, then it works for me. So patch for QEMU is: diff --git a/hw/arm/vexpress.c

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread ron minnich
I can't recall for ARM, it's been more than a year since I used qemu on that platform. That said, ... on the platforms we use ROM is in low memory. What's your coreboot system.map say? ron On Mon, Aug 11, 2014 at 1:11 PM, Piotr Król pietrush...@gmail.com wrote: On Mon, Aug 11, 2014 at

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread Piotr Król
On Mon, Aug 11, 2014 at 01:51:16PM -0700, ron minnich wrote: I can't recall for ARM, it's been more than a year since I used qemu on that platform. That said, ... on the platforms we use ROM is in low memory. What's your coreboot system.map say? I'm not sure what 'coreboot system.map' is but

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread ron minnich
So what this is saying is that we expect the ROM for coreboot to start at 64K. I hope this makes sense to you. Does this conflict with some qemu expectation, do you know? ron On Mon, Aug 11, 2014 at 3:37 PM, Piotr Król pietrush...@gmail.com wrote: On Mon, Aug 11, 2014 at 01:51:16PM -0700, ron

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread ron minnich
Sorry, in other words, how much ROM are you setting up on that qemu board? The 'execute outside ram or rom' is usually a jump to an IP that qemu does not recognize as ROM/RAM. I suspect our emulator is assuming SRAM in there somewhere, can you check? Certainly we depend on SRAM on the real

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-11 Thread Patrick Georgi
Am 12.08.2014 um 00:37 schrieb Piotr Król: Anyone know how to load bootblock debug symbols to gdb when debugging using '-s -S' option ? add-symbol-file $filename $loadaddr Patrick signature.asc Description: OpenPGP digital signature -- coreboot mailing list: coreboot@coreboot.org

[coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-10 Thread Piotr Król
Hi all, I tried to boot coreboot using latest qemu and figured out that it fails with: qemu: fatal: Trying to execute code outside RAM or ROM at 0x0400 R00=0002 R01= R02= R03= R04= R05= R06= R07= R08= R09=

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-10 Thread ron minnich
You can't assume much of anything. That commit seems not that harmful. What would help is if you tell us more about when the problem happens. There's just not enough info in your note, but I'd love to try to help. Thanks! ron On Sun, Aug 10, 2014 at 12:57 PM, Piotr Król pietrush...@gmail.com

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-10 Thread Piotr Król
On Sun, Aug 10, 2014 at 02:35:46PM -0700, ron minnich wrote: You can't assume much of anything. That commit seems not that harmful. What would help is if you tell us more about when the problem happens. There's just not enough info in your note, but I'd love to try to help. I will try to do

Re: [coreboot] qemu-armv7: code execution out of RAM or ROM using latest QEMU

2014-08-10 Thread Peter Stuge
Piotr Król wrote: Problem occurs at very early phase. Hm. There is no coreboot gdb support There is some gdb support in coreboot, but maybe not for ARM? so I used qemu '-s -S'. Whole qemu command: qemu-system-arm -M vexpress-a9 -m 1024M -nographic -kernel build/coreboot.rom Is -kernel