qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Thiemo Seufer
Subject: Re: [Qemu-devel] U-Boot patch for qemu -M mips
Date: Wed, 3 Oct 2007 20:47:44 +0100
User-agent: Mutt/1.5.16 (2007-06-11)

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_SIZE*1024*1024;
>>>>>             
>>>> Qemu gets the amount of RAM passed via a command line switch, the
>>>> qemu-mips emulation sets up a Linux kernel like "command line" in
>>>> memory where u-boot could parse it from.
>>>>
>>>>         
>>> Does it, or just when you pass -kernel to it? I'll check.
>>>     
>>
>> Hm, you are right, it does that only for -kernel. Would it make sense
>> to change that in Qemu?
>>   
> IDK.  Maybe I can probe the  RAM size in U-Boot , or if this does not work, 

mips_r4k implements no probable memory controller, so this won't work.

> 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. :-)


Thiemo




reply via email to

[Prev in Thread] Current Thread [Next in Thread]