Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-16 Thread Matwey V. Kornilov
2014-06-16 20:32 GMT+04:00 Peter Maydell : > On 13 June 2014 09:50, Matwey V. Kornilov wrote: >> I am stuck here. I've put u-boot binary on the 0 of flash.bin (which >> is 67108864 bytes long), and run following >> >> qemu-system-arm -M vexpress-a9 -pflash pflash.bin -S -s >> >> I have no warnin

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-16 Thread Peter Maydell
On 13 June 2014 09:50, Matwey V. Kornilov wrote: > I am stuck here. I've put u-boot binary on the 0 of flash.bin (which > is 67108864 bytes long), and run following > > qemu-system-arm -M vexpress-a9 -pflash pflash.bin -S -s > > I have no warnings, but when I attach with gdb I either don't see m

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-13 Thread Matwey V. Kornilov
2014-06-13 2:43 GMT+04:00 Peter Maydell : > You said that u-boot.bin was a Linux kernel (that's what "-kernel" > means for non-ELF files), so we load your binary in accordance > with the documented requirements for booting a Linux kernel: > * load kernel at offset 0x1 in RAM > * run a little

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-12 Thread Peter Maydell
On 10 June 2014 16:25, Matwey V. Kornilov wrote: > Only this instructions are executed: > > >│0x6000 <_start> movr0, #0 > │ >│0x6004 <_start+4> ldrr1, [pc, #6397080] > ; 0x6010

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-11 Thread Dale R. Worley
> From: Jakob Bohm > > On 6/10/2014 6:57 PM, Matwey V. Kornilov wrote: > > 2014-06-10 20:54 GMT+04:00 Dale R. Worley : > >>> │0x600c <_start+12> ldrpc, [pc, #6397080] > >>> ; 0x6018 <_start+24> │ > >> > >> That last instruction looks t

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-11 Thread Matwey V. Kornilov
10.06.2014 22:33, Dale R. Worley пишет: >> From: "Matwey V. Kornilov" >> >> 2014-06-10 20:54 GMT+04:00 Dale R. Worley : │0x600c <_start+12> ldrpc, [pc, #6397080] ; 0x6018 <_start+24> │ >>> >>> That last instruction looks to me a

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-11 Thread Jakob Bohm
On 6/10/2014 6:57 PM, Matwey V. Kornilov wrote: 2014-06-10 20:54 GMT+04:00 Dale R. Worley : │0x600c <_start+12> ldrpc, [pc, #6397080] ; 0x6018 <_start+24> │ That last instruction looks to me as if it is a Load Register into the PC,

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Dale R. Worley
> From: "Matwey V. Kornilov" > > 2014-06-10 20:54 GMT+04:00 Dale R. Worley : > >>│0x600c <_start+12> ldrpc, [pc, #6397080] > >> ; 0x6018 <_start+24> │ > > > > That last instruction looks to me as if it is a Load Register into the > > PC

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Matwey V. Kornilov
2014-06-10 20:54 GMT+04:00 Dale R. Worley : >>│0x600c <_start+12> ldrpc, [pc, #6397080] >> ; 0x6018 <_start+24> │ > > That last instruction looks to me as if it is a Load Register into the > PC, which will cause the next instruction to be

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Dale R. Worley
> From: "Matwey V. Kornilov" > > Only this instructions are executed: > > >│0x6000 <_start> movr0, #0 > │ >│0x6004 <_start+4> ldrr1, [pc, #6397080] > ; 0x6010 <_start+16>

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Matwey V. Kornilov
Ok, It works as expected on qemu 1.7 when I put ELF u-boot for -kernel option. I suppose info->entry somehow affects the cpu reset. 2014-06-10 17:25 GMT+04:00 Dale R. Worley : >> From: "Matwey V. Kornilov" >> >> Could you please explain me what qemu should do in the following case? >> I have u-b

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Matwey V. Kornilov
Only this instructions are executed: >│0x6000 <_start> movr0, #0 │ │0x6004 <_start+4> ldrr1, [pc, #6397080] ; 0x6010 <_start+16> │ │0x6008 <_start+

Re: [Qemu-discuss] qemu -kernel u-boot.bin

2014-06-10 Thread Dale R. Worley
> From: "Matwey V. Kornilov" > > Could you please explain me what qemu should do in the following case? > I have u-boot.bin and I am running following command (both 1.3.1 and 1.7 > have the same behavior): > > qemu-system-arm -M vexpress-a9 -cpu cortex-a9 -m 1024 -kernel u-boot.bin > -serial st