Re: Emulate custom machine on qemu-4.2.0

2021-09-15 Thread abhijeet inamdar
You mean hw/arm/msp2.c ? On Wed, Sep 15, 2021, 13:55 Peter Maydell wrote: > On Wed, 15 Sept 2021 at 12:13, abhijeet inamdar > wrote: > > > > Now there are some many UART implemented in the hw/char. What should we > look for or how do you choose which one to use? or implement similar kind. > >

Re: Emulate custom machine on qemu-4.2.0

2021-09-15 Thread Peter Maydell
On Wed, 15 Sept 2021 at 12:13, abhijeet inamdar wrote: > > Now there are some many UART implemented in the hw/char. What should we look > for or how do you choose which one to use? or implement similar kind. You implement what the hardware you are modelling has, obviously. This is why we have

Re: Emulate custom machine on qemu-4.2.0

2021-09-15 Thread abhijeet inamdar
Now there are some many UART implemented in the hw/char. What should we look for or how do you choose which one to use? or implement similar kind. Same case for I2C also. I'm new to these so can you suggest me the basic one so that I can try and implement it? Thank you, Abhijeet. On Wed, Sep

Re: Emulate custom machine on qemu-4.2.0

2021-09-15 Thread Peter Maydell
On Wed, 15 Sept 2021 at 08:23, abhijeet inamdar wrote: > > Hi, > > As my custom machine is based on cortex-m3 I checked the stellaris.c > https://github.com/qemu/qemu/blob/stable-4.2/hw/arm/stellaris.c#1384,1390. > Does only this part define the UART peripheral for this machine? Can you >

Re: Emulate custom machine on qemu-4.2.0

2021-09-15 Thread abhijeet inamdar
Hi, As my custom machine is based on cortex-m3 I checked the stellaris.c https://github.com/qemu/qemu/blob/stable-4.2/hw/arm/stellaris.c#1384,1390. Does only this part define the UART peripheral for this machine? Can you point out any basic examples so that I can refer to ARM M3. Any help would

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread Peter Maydell
On Tue, 14 Sept 2021 at 13:51, abhijeet inamdar wrote: > > Is there any example for UART being added to the machine in 4.2.0? Lots of machines have UARTs. Look at almost any Arm board. -- PMM

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread abhijeet inamdar
Is there any example for UART being added to the machine in 4.2.0? Thank you, Abhijeet. On Tue, Sep 14, 2021, 12:26 Peter Maydell wrote: > On Tue, 14 Sept 2021 at 11:21, abhijeet inamdar > wrote: > > > > My question is that can we see the list of devices for say any > particular machine. > >

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread Peter Maydell
On Tue, 14 Sept 2021 at 11:21, abhijeet inamdar wrote: > > My question is that can we see the list of devices for say any particular > machine. > EX: if we do -m help. > we do get the list of machines right so is their anything similar for the > devices to check for a particular machine. "-M

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread abhijeet inamdar
My question is that can we see the list of devices for say any particular machine. EX: if we do -m help. we do get the list of machines right so is their anything similar for the devices to check for a particular machine. Thank you, Abhijeet. On Tue, Sep 14, 2021, 12:14 Peter Maydell wrote: >

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread Peter Maydell
On Tue, 14 Sept 2021 at 10:58, abhijeet inamdar wrote: > Is there anything in qemu to check for a machine which all > devices are added or working? Can we do that!? I dunno what you're asking for; could you elaborate ? In general each machine has a different set of devices that it has, because

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread abhijeet inamdar
Hi, Is there anything in qemu to check for a machine which all devices are added or working? Can we do that!? Thank you, Abhijeet. On Tue, Sep 14, 2021, 11:23 Peter Maydell wrote: > On Tue, 14 Sept 2021 at 09:52, abhijeet inamdar > wrote: > > I was trying to emulate a machine in qemu-4.2.0

Re: Emulate custom machine on qemu-4.2.0

2021-09-14 Thread Peter Maydell
On Tue, 14 Sept 2021 at 09:52, abhijeet inamdar wrote: > I was trying to emulate a machine in qemu-4.2.0 but was getting an error > message: > > Unexpected error in qemu_chr_fe_init() at > /home/qemu-4.2.0/chardev/char-fe.c:220: > qemu-system-arm: Device 'serial0' is in use > > I tried to apply

Emulate custom machine on qemu-4.2.0

2021-09-14 Thread abhijeet inamdar
Hi, I was trying to emulate a machine in qemu-4.2.0 but was getting an error message: Unexpected error in qemu_chr_fe_init() at /home/qemu-4.2.0/chardev/char-fe.c:220: qemu-system-arm: Device 'serial0' is in use I tried to apply this patch