Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Peter Maydell
On 25 January 2014 19:47, rajan pathak wrote: > There is no specific reason going for this particular model of Ethernet > controller. > > Its just that I wanted to learn it and off late I worked with Key Stone SoC If this is a learning exercise in how to write QEMU device models rather than a spe

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Andreas Färber
Rajan, You'll need to follow a few basic rules here working with our busy community: Please don't send HTML-formatted replies and please don't top-post, to make it easier for other people to understand the context. Am 25.01.2014 20:47, schrieb rajan pathak: > There is no specific reason going for

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
Thanks Peter for addressing this query. There is no specific reason going for this particular model of Ethernet controller. Its just that I wanted to learn it and off late I worked with Key Stone SoC . Also,can I use reuse some code from TI OMAP2 emulation to emulate basic part of KeyStone SoC.

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread Peter Maydell
On 25 January 2014 19:17, rajan pathak wrote: > Also, I am just wondering why anyone hasn't suggested me to look into TI > OMAP emulation code present in QEMU. Because it's pretty elderly and only supports up to OMAP2 (there's some OMAP3 support out of tree). Why do you need a model of this spec

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
Also, I am just wondering why anyone hasn't suggested me to look into TI OMAP emulation code present in QEMU. Thanks Rajan On Sat, Jan 25, 2014 at 5:52 AM, rajan pathak wrote: > OK,Peter Thanks. > > I got your point,In my case SoC is from TI which uses cortexa-15 as CPU > core and example(Bor

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-25 Thread rajan pathak
OK,Peter Thanks. I got your point,In my case SoC is from TI which uses cortexa-15 as CPU core and example(Borad) would be keystone 2 EVM . I guess I need to divide my emulation in three steps 1)Emulation of SoC 2)Emulation of board. 3)Emulation of Devices(Ethernet controller). Please correct m

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-24 Thread Peter Crosthwaite
On Sat, Jan 25, 2014 at 5:18 PM, rajan pathak wrote: > Thanks Andreas and Peter Crosthwate for your response .Your comments are > really helpful. > > What I understood of your answers that firstly, I need to have keystone > soc's initialized/emulated inside hw/arm, Yes. right(it would be equival

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-24 Thread rajan pathak
Thanks Andreas and Peter Crosthwate for your response .Your comments are really helpful. What I understood of your answers that firstly, I need to have keystone soc's initialized/emulated inside hw/arm,right(it would be equivalent of adding machine model) ? To what extent ,we should emulate the S

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-24 Thread Peter Crosthwaite
On Fri, Jan 24, 2014 at 7:52 AM, Andreas Färber wrote: > Am 23.01.2014 21:02, schrieb rajan pathak: >>> I'm not clear what you're trying to do here; could >>> you try rephrasing your question? Are you just trying >>> to use the existing working QEMU emulation of a >>> Cortex-A15 board and ethernet

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread Peter Maydell
On 23 January 2014 21:42, Andreas Färber wrote: > Am 23.01.2014 20:42, schrieb Peter Maydell: >> In QEMU at the moment the >> board models which support the Cortex-A15 are >> 'vexpress-a15' and the virtual-machine-only 'virt'. > > Surely midway, too? Yes, sorry, I forgot about that one. The point

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread Andreas Färber
Am 23.01.2014 21:02, schrieb rajan pathak: >> I'm not clear what you're trying to do here; could >> you try rephrasing your question? Are you just trying >> to use the existing working QEMU emulation of a >> Cortex-A15 board and ethernet controller, or to do >> something else? > > To be very speci

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread Andreas Färber
Am 23.01.2014 20:42, schrieb Peter Maydell: > In QEMU at the moment the > board models which support the Cortex-A15 are > 'vexpress-a15' and the virtual-machine-only 'virt'. Surely midway, too? Andreas -- SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer G

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread Peter Maydell
On 23 January 2014 20:02, rajan pathak wrote: > To be very specific I am trying to emulate Ethernet controller of KeyStone 2 > device from TI > > http://processors.wiki.ti.com/index.php/MCSDK_User_Guide_for_KeyStone_II > > It is based on CortexA-15 Processor series. So I thought I can use > vexpre

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread rajan pathak
Thanks Peter for your kind response. I'm not clear what you're trying to do here; could you try rephrasing your question? Are you just trying to use the existing working QEMU emulation of a Cortex-A15 board and ethernet controller, or to do something else? To be very specific I am trying to emula

Re: [Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread Peter Maydell
On 23 January 2014 19:28, rajan pathak wrote: > I have compiled the kernel using versatile_defconfig where I can see > CONFIG_SMC91X,So I guess it uses SMSC 91C111 as its Ethernet controller. > I can see call to this smc91c111_init(nd, 0x1001, sic[25]); function is > made inside hw/arm/versa

[Qemu-devel] Emulating Ethernet controller based on Cortex-A15 platforms

2014-01-23 Thread rajan pathak
Hello Experts I am new to QEMU development and trying to emulate Ethernet controller based on Corext-A15 platform. Current I am able to up the QEMU console and see it uses SMSC 91C111 Ethernet interface emulation code. I have compiled the kernel using versatile_defconfig where I can see CONFIG_S