Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-12 Thread Bin Meng
Hi Anton, On Sat, Nov 11, 2017 at 1:34 AM, Anton Gerasimov wrote: > Hooray, changing SYS_CAR_ADDR to 0x1 in arch/x86/cpu/qemu/Kconfig > does the trick. Bin, what do you think about it? > Great! Would you please create a patch against U-Boot QEMU? > Best regards, > Anton Gerasimov > > On 11/

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
Hooray, changing SYS_CAR_ADDR to 0x1 in arch/x86/cpu/qemu/Kconfig does the trick. Bin, what do you think about it? Best regards, Anton Gerasimov On 11/10/2017 06:25 PM, Anton Gerasimov wrote: > Yes, apparently 0xdfffc is in ROM area for QEMU (0xc -- 0xe, > defined in include/hw/loader

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
Yes, apparently 0xdfffc is in ROM area for QEMU (0xc -- 0xe, defined in include/hw/loader.h). The next thing to figure out is why u-boot uses it as a stack area. Best regards, Anton Gerasimov On 11/10/2017 06:04 PM, Anton Gerasimov wrote: > New guess: > > in the most safe configuration of

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-10 Thread Anton Gerasimov
New guess: in the most safe configuration of u-boot (CONFIG_SMP=n, lacpi disabled) with Igor's patch applied `qemu-system-i386 -bios /path/to/uboot.rom` fails on the first 'ret' instruction. GDB shows that memory at $esp (0xdfffc at the entrance to board_init_f_mem) and everything around it is zer

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-08 Thread Bin Meng
On Wed, Nov 8, 2017 at 9:05 PM, Anton Gerasimov wrote: > Adding Igor Mammedov to the loop. > Really add Igor Mammedov. Igor, can you help look at this? > On 11/08/2017 01:59 PM, Anton Gerasimov wrote: >> To whoever might be interested: I've bisected qemu and the breaking >> commit is 208fa0e436

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-08 Thread Anton Gerasimov
Adding Igor Mammedov to the loop. On 11/08/2017 01:59 PM, Anton Gerasimov wrote: > To whoever might be interested: I've bisected qemu and the breaking > commit is 208fa0e43645edd0b0d8f838857dfc79daff40a8 (pc: make 'pc.rom' > readonly when machine has PCI enabled). It's just three lines added, > I'

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-08 Thread Anton Gerasimov
To whoever might be interested: I've bisected qemu and the breaking commit is 208fa0e43645edd0b0d8f838857dfc79daff40a8 (pc: make 'pc.rom' readonly when machine has PCI enabled). It's just three lines added, I'll paste the whole patch here. Not quite sure what can we do here though.   diff --git a

Re: [Qemu-devel] [U-Boot] Support of latest qemux86-64

2017-11-05 Thread Bin Meng
+QEMU dev list On Fri, Nov 3, 2017 at 10:07 PM, Anton Gerasimov wrote: > Hi all, > > I'm trying to use u-boot (v2017.01) with qemu-system-x86_64 v2.10.0 and > run into a "trying to execute code outside of RAM or ROM at x" > issue. It happens both when I build and use u-boot as a bios and as E