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

Re: [Qemu-devel] u-boot on qemu-x86

2015-05-25 Thread Saket Sinha
Hi Bin, I am putting down the steps below as to how to debug u-boot bare-metal on qemu. *git clone git://git.denx.de/u-boot-x86.git cd u-boot-x86export BUILD_ROM=ymake qemu-x86_defconfigmake allqemu-system-i386 -nographic -bios u-boot.rom -net nic -net us

Re: [Qemu-devel] u-boot on qemu-x86

2015-05-24 Thread Bin Meng
Hi Saket, On Tue, May 5, 2015 at 10:11 PM, Saket Sinha wrote: > Hi, > > I am trying to run u-boot as a coreboot payload on qemu-x86.Currently > facing some difficulty in the process. > > Has anyone tried running u-boot bare-metal or as a coreboot payload on > qemu-x86 before? > Reply this threa

[Qemu-devel] u-boot on qemu-x86

2015-05-05 Thread Saket Sinha
Hi, I am trying to run u-boot as a coreboot payload on qemu-x86.Currently facing some difficulty in the process. Has anyone tried running u-boot bare-metal or as a coreboot payload on qemu-x86 before? Regards, Saket Sinha

RE: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-23 Thread KAWAKATSU, Noritaka
erdesigntech.co...@nongnu.org] On Behalf Of KAWAKATSU Noritaka Sent: Tuesday, June 22, 2010 6:49 PM To: qemu-devel@nongnu.org Subject: Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips' Thank you for your reply. > so EPC is set to bfc0ee94 which is : > movn s1,v1,v

Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-22 Thread KAWAKATSU Noritaka
Thank you for your reply. > so EPC is set to bfc0ee94 which is : > movn s1,v1,v0 > >> From what I understand when reading the mips IV manual, the movn ins is > only for mips IV / 32bit and not 64bit. Looks like the qemu code has > been written following this. (This also explains why

Re: [Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-22 Thread Rtp
KAWAKATSU Noritaka writes: > Hi, Hi, > > I have built u-boot binary for 'qemu-system-mips -M mips'. > It is fine to run ths u-boot binary. > But the same u-boot binary does not run on 'qemu-system-mips64 -M mips'. > > I do not understand what happends on the qemu-mips64 execution. > Is this a b

[Qemu-devel] u-boot on 'qemu-system-mips64 -M mips'

2010-06-21 Thread KAWAKATSU Noritaka
Hi, I have built u-boot binary for 'qemu-system-mips -M mips'. It is fine to run ths u-boot binary. But the same u-boot binary does not run on 'qemu-system-mips64 -M mips'. I do not understand what happends on the qemu-mips64 execution. Is this a bug for qemu-system-mips64 ? Or should I build u-b

Re: [Qemu-devel] U-Boot patch for qemu -M mips TAKE 2

2007-10-04 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > Now with board config file included, so it can be built :-) > Thiemo, I'll think about the memory size issue and get back to you on that. > How about a git repo for U-Boot, if this thing takes off? We actually have already a lot of them - the master

Re: [Qemu-devel] U-Boot patch for qemu -M mips TAKE 2

2007-10-04 Thread Vlad Lungu
Wolfgang Denk wrote: In message <[EMAIL PROTECTED]> you wrote: Now with board config file included, so it can be built :-) Thiemo, I'll think about the memory size issue and get back to you on that. How about a git repo for U-Boot, if this thing takes off? We actually have already a

Re: [Qemu-devel] U-Boot patch for qemu -M mips TAKE 2

2007-10-04 Thread Vlad Lungu
Now with board config file included, so it can be built :-) Thiemo, I'll think about the memory size issue and get back to you on that. How about a git repo for U-Boot, if this thing takes off? Vlad --- diff --git a/Makefile b/M

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-04 Thread vlad
> Vlad Lungu wrote: > [snip] put some info somewhere (RAM, register, emulated DIP-dwitch), like RAM size, endianness of the CPU. >>> >>> Endianness is rather pointless. If your U-Boot binary doesn't explode >>> immediately you got the right endianness. :-) >>> >>> >> It doesn't actua

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-04 Thread Thiemo Seufer
Vlad Lungu wrote: [snip] >>> put some info somewhere (RAM, register, >>> emulated DIP-dwitch), like RAM size, endianness of the CPU. >>> >> >> Endianness is rather pointless. If your U-Boot binary doesn't explode >> immediately you got the right endianness. :-) >> >> > It doesn't actually e

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-04 Thread Vlad Lungu
Thiemo Seufer wrote: Vlad Lungu wrote: Thiemo Seufer wrote: Vlad Lungu wrote: [snip] +long int initdram(int board_type) +{ + /* Sdram is setup by assembler code */ + /* If memory could be changed, we should return the true value here */ + return MEM_S

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-03 Thread Thiemo Seufer
Vlad Lungu wrote: > Thiemo Seufer wrote: >> Vlad Lungu wrote: >> [snip] >> > +long int initdram(int board_type) > +{ > + /* Sdram is setup by assembler code */ > + /* If memory could be changed, we should return the true value > here */ > + return

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-03 Thread Vlad Lungu
Thiemo Seufer wrote: Vlad Lungu wrote: [snip] +long int initdram(int board_type) +{ + /* Sdram is setup by assembler code */ + /* If memory could be changed, we should return the true value here */ + return MEM_SIZE*1024*1024; Qemu gets the amount of RA

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-03 Thread Thiemo Seufer
Vlad Lungu wrote: [snip] >>> +long int initdram(int board_type) >>> +{ >>> + /* Sdram is setup by assembler code */ >>> + /* If memory could be changed, we should return the true value >>> here */ >>> + return MEM_SIZE*1024*1024; >>> >> >> Qemu gets the amount of RAM pa

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-03 Thread Vlad Lungu
Thiemo Seufer wrote: Vlad Lungu wrote: Fix for mips GOT relocation bug, NE2000 bugs, add support for qemu -M mips target. [snip] diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk [snip] +# +# AMD development board AMD Alchemy DbAu1x00, MIPS32 core

Re: [Qemu-devel] U-Boot patch for qemu -M mips

2007-10-02 Thread Thiemo Seufer
Vlad Lungu wrote: > Fix for mips GOT relocation bug, NE2000 bugs, add support for qemu -M mips > target. [snip] > diff --git a/board/qemu-mips/config.mk b/board/qemu-mips/config.mk > new file mode 100644 > index 000..39eb60a > --- /dev/null > +++ b/board/qemu-mips/config.mk > @@ -0,0 +1

[Qemu-devel] U-Boot patch for qemu -M mips

2007-10-02 Thread Vlad Lungu
Fix for mips GOT relocation bug, NE2000 bugs, add support for qemu -M mips target. Patch is against U-Boot master branch. -- diff --git a/Makefile b/Makefile index 85885b1..8f650d2 100644 --- a/Makefile +++ b/Makef

[Qemu-devel] U-Boot

2007-09-29 Thread Vlad Lungu
Vlad Lungu wrote: lol, replying to myself Blue Swirl wrote: Someone could port OpenBIOS or LinuxBIOS to MIPS. Well, just FYI: I sort-of-ported U-Boot to Qemu (-M mips). Network performance sucks for some reason (hard enough that tftp-booting a kernel is impossible) and I didn't have ti