From: Li Guang <lig.fnst@cn.fujitsu.com>
To: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"qemu-devel@nongnu.org Developers" <qemu-devel@nongnu.org>,
"Andreas Färber" <afaerber@suse.de>
Subject: Re: [Qemu-devel] [PATCH 5/5] hw/arm: add cubieboard support
Date: Wed, 04 Dec 2013 08:00:24 +0800 [thread overview]
Message-ID: <529E7098.7090409@cn.fujitsu.com> (raw)
In-Reply-To: <CAEgOgz5oh2vPPWV99ubBq_pbRvGZ70+DvH0p3mZ2_v2zX4u6Tw@mail.gmail.com>
Peter Crosthwaite wrote:
> On Tue, Dec 3, 2013 at 7:11 PM, liguang<lig.fnst@cn.fujitsu.com> wrote:
>
>> Signed-off-by: liguang<lig.fnst@cn.fujitsu.com>
>> ---
>> hw/arm/Makefile.objs | 2 +-
>> hw/arm/cubieboard.c | 33 +++++++++++++++++++++++++++++++++
>> 2 files changed, 34 insertions(+), 1 deletions(-)
>> create mode 100644 hw/arm/cubieboard.c
>>
>> diff --git a/hw/arm/Makefile.objs b/hw/arm/Makefile.objs
>> index b9e5983..8be8d8e 100644
>> --- a/hw/arm/Makefile.objs
>> +++ b/hw/arm/Makefile.objs
>> @@ -4,4 +4,4 @@ obj-y += omap_sx1.o palm.o realview.o spitz.o stellaris.o
>> obj-y += tosa.o versatilepb.o vexpress.o xilinx_zynq.o z2.o
>>
>> obj-y += armv7m.o exynos4210.o pxa2xx.o pxa2xx_gpio.o pxa2xx_pic.o
>> -obj-y += omap1.o omap2.o strongarm.o allwinner-a10.o
>> +obj-y += omap1.o omap2.o strongarm.o allwinner-a10.o cubieboard.o
>> diff --git a/hw/arm/cubieboard.c b/hw/arm/cubieboard.c
>> new file mode 100644
>> index 0000000..a5be21c
>> --- /dev/null
>> +++ b/hw/arm/cubieboard.c
>> @@ -0,0 +1,33 @@
>> +#include "hw/sysbus.h"
>> +#include "hw/devices.h"
>> +#include "hw/boards.h"
>> +#include "hw/arm/allwinner-a10.h"
>> +
>> +
>> +static struct arm_boot_info cubieboard_binfo = {
>> + .loader_start = A10_SDRAM_BASE,
>> + .board_id = 0x1008,
>> +};
>> +
>> +static void cubieboard_init(QEMUMachineInitArgs *args)
>> +{
>> + A10State *s = a10_init(get_system_memory(), args->ram_size);
>> +
>> + cubieboard_binfo.ram_size = args->ram_size;
>> + cubieboard_binfo.kernel_filename = args->kernel_filename;
>> + cubieboard_binfo.kernel_cmdline = args->kernel_cmdline;
>>
> I cant help but think that serial attachment needs to happen on the
> board level. but im not sure how this can be made to work with the
> un-qomified serial_mm_init, so no block from me unless Andreas has a
> better idea.
>
>
>> + arm_load_kernel(s->cpu,&cubieboard_binfo);
>> +}
>> +
>> +static QEMUMachine cubieboard_machine = {
>> + .name = "cubieboard",
>> + .init = cubieboard_init,
>>
> I think you should add at least the long descriptor so -M help plays nice.
>
>
OK, thanks!
prev parent reply other threads:[~2013-12-04 0:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-03 9:11 [Qemu-devel] [PATCH 0/5] add allwinner A10 SoC support liguang
2013-12-03 9:11 ` [Qemu-devel] [PATCH 1/5] vmstate: add VMSTATE_PTIMER_ARRAY liguang
2013-12-03 9:11 ` [Qemu-devel] [PATCH 2/5] hw/timer: add allwinner a10 timer liguang
2013-12-03 11:36 ` Peter Crosthwaite
2013-12-04 2:12 ` Li Guang
2013-12-03 9:11 ` [Qemu-devel] [PATCH 3/5] hw/intc: add allwinner A10 interrupt controller liguang
2013-12-03 9:11 ` [Qemu-devel] [PATCH 4/5] hw/arm: add allwinner a10 SoC support liguang
2013-12-03 11:41 ` Peter Crosthwaite
2013-12-03 11:48 ` Peter Crosthwaite
2013-12-03 9:11 ` [Qemu-devel] [PATCH 5/5] hw/arm: add cubieboard support liguang
2013-12-03 12:01 ` Peter Crosthwaite
2013-12-03 14:44 ` Andreas Färber
2013-12-04 0:00 ` Li Guang
2013-12-04 0:00 ` Li Guang [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=529E7098.7090409@cn.fujitsu.com \
--to=lig.fnst@cn.fujitsu.com \
--cc=afaerber@suse.de \
--cc=peter.crosthwaite@xilinx.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.