* [Qemu-devel] New arm9 Emulation
@ 2010-09-20 9:39 Andreas Koerner
2010-09-20 9:59 ` Stefan Weil
0 siblings, 1 reply; 2+ messages in thread
From: Andreas Koerner @ 2010-09-20 9:39 UTC (permalink / raw)
To: Qemu-devel
[-- Attachment #1: Type: text/plain, Size: 1811 bytes --]
Hello!
Im new to qemu and this list, so its nice to meet you.
My current job is to implement a developing platform for a STR910FAW32. This
is an SoC with an ARM9-type CPU.
I would like to use qemu as simulation platform, as it is really active and
does support arm9 type cpus.
A look at the mailing list archives shows that qemu machines are heavily
modified and worked on in the younger past, but this does not seem to be in
the master branch of the savannah repo?!?
As there is rarely documentation present, I simply started with the master
revision (Friday) from the savannah repository, wrote a str910faw32.c put it
in the hw directory and registered it with obj-arm-y += str910faw32.o in
Makefile.target.
Str910faw32.c:
#include "module.h"
#include "sysbus.h"
#include "primecell.h"
#include "devices.h"
#include "sysemu.h"
#include "boards.h"
#include "arm-misc.h"
static void str910faw32_init(ram_addr_t ram_size,
const char *boot_device,
const char *kernel_filename, const char
*kernel_cmdline,
const char *initrd_filename, const char *cpu_model)
{
fprintf(stderr, "Works!\n");
exit(1);
}
static QEMUMachine str910faw32_machine = {
.name = "str910faw32",
.desc = "STR910FAW32 System on a Chip (ARM966E-S Core)",
.init = str910faw32_init,
};
static void str910faw32_machine_init(void)
{
qemu_register_machine(&str910faw32_machine);
}
machine_init(str910faw32_machine_init);
But after a sudo make install this machine dies not show up under the -M
? option, so whats my mistake?
Thank you for your help
A. Körner
[-- Attachment #2: Type: text/html, Size: 8165 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] New arm9 Emulation
2010-09-20 9:39 [Qemu-devel] New arm9 Emulation Andreas Koerner
@ 2010-09-20 9:59 ` Stefan Weil
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Weil @ 2010-09-20 9:59 UTC (permalink / raw)
To: Andreas Koerner; +Cc: Qemu-devel
Hello Andreas,
your code is ok and works as expected:
$ arm-softmmu/qemu-system-arm -M ?
Supported machines are:
syborg Syborg (Symbian Virtual Platform)
smdk2410 Samsung SMDK2410 (S3C2410A, ARM920T)
str910faw32 STR910FAW32 System on a Chip (ARM966E-S Core)
bast Simtec Electronics BAST (S3C2410A, ARM920T)
musicpal Marvell 88w8618 / MusicPal (ARM926EJ-S)
mainstone Mainstone II (PXA27x)
n800 Nokia N800 tablet aka. RX-34 (OMAP2420)
n810 Nokia N810 tablet aka. RX-44 (OMAP2420)
cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310)
sx1 Siemens SX1 (OMAP310) V2
sx1-v1 Siemens SX1 (OMAP310) V1
tosa Tosa PDA (PXA255)
akita Akita PDA (PXA270)
spitz Spitz PDA (PXA270)
borzoi Borzoi PDA (PXA270)
terrier Terrier PDA (PXA270)
connex Gumstix Connex (PXA255)
verdex Gumstix Verdex (PXA270)
tt OpenTom (ARM920-T)
tt666 OpenTom (ARM920-T)
smdk2443 smdk2443 (ARM920-T)
lm3s811evb Stellaris LM3S811EVB
lm3s6965evb Stellaris LM3S6965EVB
realview-eb ARM RealView Emulation Baseboard (ARM926EJ-S)
realview-eb-mpcore ARM RealView Emulation Baseboard (ARM11MPCore)
realview-pb-a8 ARM RealView Platform Baseboard for Cortex-A8
realview-pbx-a9 ARM RealView Platform Baseboard Explore for Cortex-A9
versatilepb ARM Versatile/PB (ARM926EJ-S)
versatileab ARM Versatile/AB (ARM926EJ-S)
integratorcp ARM Integrator/CP (ARM926EJ-S) (default)
$ arm-softmmu/qemu-system-arm -M str910faw32
Works!
Did you call the correct qemu executable?
Regards,
Stefan
PS. Please send future mails to qemu-devel in pure text format (no html
encoding).
Am 20.09.2010 11:39, schrieb Andreas Koerner:
> Hello!
>
> I’m new to qemu and this list, so it’s nice to meet you.
>
> My current job is to implement a developing platform for a
> STR910FAW32. This is an SoC with an ARM9-type CPU.
> I would like to use qemu as simulation platform, as it is really
> active and does support arm9 type cpu’s.
> A look at the mailing list archives shows that qemu machines are
> heavily modified and worked on in the younger past, but this does not
> seem to be in the master branch of the savannah repo?!?
> As there is rarely documentation present, I simply started with the
> master revision (Friday) from the savannah repository, wrote a
> str910faw32.c put it in the hw directory and registered it with
> “obj-arm-y += str910faw32.o” in Makefile.target.
>
> Str910faw32.c:
>
> #include "module.h"
> #include "sysbus.h"
> #include "primecell.h"
> #include "devices.h"
> #include "sysemu.h"
> #include "boards.h"
> #include "arm-misc.h"
>
> static void str910faw32_init(ram_addr_t ram_size,
> const char *boot_device,
> const char *kernel_filename, const char *kernel_cmdline,
> const char *initrd_filename, const char *cpu_model)
> {
> fprintf(stderr, "Works!\n");
> exit(1);
> }
>
> static QEMUMachine str910faw32_machine = {
> .name = "str910faw32",
> .desc = "STR910FAW32 System on a Chip (ARM966E-S Core)",
> .init = str910faw32_init,
> };
>
> static void str910faw32_machine_init(void)
> {
> qemu_register_machine(&str910faw32_machine);
> }
>
> machine_init(str910faw32_machine_init);
>
> But after a “sudo make install” this machine dies not show up under
> the “-M ?” option, so what’s my mistake?
>
> Thank you for your help
> A. Körner
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-09-20 9:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20 9:39 [Qemu-devel] New arm9 Emulation Andreas Koerner
2010-09-20 9:59 ` Stefan Weil
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).