[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option
From: |
John Williams |
Subject: |
Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option |
Date: |
Mon, 30 Jan 2012 12:19:10 +1000 |
On Mon, Jan 30, 2012 at 12:11 PM, Anthony Liguori <address@hidden> wrote:
> On 01/29/2012 06:28 PM, John Williams wrote:
>>
>> On Sun, Jan 29, 2012 at 4:51 PM, Peter Crosthwaite
>> <address@hidden> wrote:
>>>
>>> Hi All,
>>>
>>> So on the topic of these command line arguments for initrd, dtb and
>>> friends,
>>> another related issue we have encountered (and have hacked around in our
>>> tree) is not being able to relocate the initrd or kernel. Currently these
>>> memory locations are hardcoded in arm_boot.c:
>>>
>>> #define KERNEL_ARGS_ADDR 0x100
>>> #define KERNEL_LOAD_ADDR 0x00010000
>>> #define INITRD_LOAD_ADDR 0x00d00000
>>>
>>> If you see patch 6/7 in this same series I put in place a hack to
>>> override
>>> the initrd location in memory, but I wonder if instead this should go up
>>> to
>>> the command line interface as a parameter. Currently the machine model
>>> (or
>>> arm_boot.c) defines exactly where kernels/initrds/command-line-args line
>>> in
>>> memory, but since these are software properties should perhaps they go up
>>> to
>>> the command line as -kernel,foo=bar options? E.G:
>>>
>>> qemu-system-arm
>>>
>>> -kernel,kernel-image=/foo/zImage,kernel-addr=0x00010000,initrd=/foo/initrd,initrd_addr=0x00d00000
>>
>>
>> There's an opportunity here - QEMU needs the cmdline ability to load
>> random binaries/elfs anyway, such as
>>
>> --load address@hidden
>
>
> Make an elf loader device if you desire this ability but I'm skeptical that
> it really is all that useful.
It is useful for non-Linux use-cases, of which there are many!
Can you explain how you'd see such a 'loader device' in practice? How
does it get bound into the machine model? How do we pass arguments to
it?
Thanks,
John
--
John Williams, PhD, B. Eng, B. IT
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663 f: +61-7-30090663
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, (continued)
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Stefan Weil, 2012/01/24
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Scott Wood, 2012/01/26
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Eric Blake, 2012/01/26
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Markus Armbruster, 2012/01/27
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Peter Crosthwaite, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, John Williams, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, John Williams, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Anthony Liguori, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option,
John Williams <=
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Anthony Liguori, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, John Williams, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Anthony Liguori, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, John Williams, 2012/01/31
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Anthony Liguori, 2012/01/29
- Re: [Qemu-devel] [RFC PATCH 5/7] vl.c: added -kerndtb option, Peter Maydell, 2012/01/26
Message not available
Message not available