From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:40306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgta3-00041Q-As for qemu-devel@nongnu.org; Wed, 13 Jul 2011 03:10:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QgtZw-00045H-LZ for qemu-devel@nongnu.org; Wed, 13 Jul 2011 03:09:59 -0400 Received: from mail-yx0-f173.google.com ([209.85.213.173]:40049) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgtZw-00044o-4r for qemu-devel@nongnu.org; Wed, 13 Jul 2011 03:09:52 -0400 Received: by yxt3 with SMTP id 3so2711139yxt.4 for ; Wed, 13 Jul 2011 00:09:50 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1310527162.53357.YahooMailRC@web77907.mail.sg1.yahoo.com> References: <1310355077.90376.YahooMailRC@web77914.mail.sg1.yahoo.com> <1310435223.57220.YahooMailRC@web77901.mail.sg1.yahoo.com> <1310527162.53357.YahooMailRC@web77907.mail.sg1.yahoo.com> Date: Wed, 13 Jul 2011 09:09:50 +0200 Message-ID: From: "Edgar E. Iglesias" Content-Type: multipart/alternative; boundary=000e0cd5b9a035c03e04a7ee1aff Subject: Re: [Qemu-devel] PCI with Xilinx virtex-ml507 board List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?B?TMOqIMSQ4bupYyBUw6Bp?= Cc: Alexander Graf , "qemu-devel@nongnu.orgDevelopers" --000e0cd5b9a035c03e04a7ee1aff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, Hi the ethlite driver is this one: http://lxr.linux.no/linux+v2.6.39/drivers/net/xilinx_emaclite.c The easy way is probably to look at the petalogix s3adsp board dtb distributed with qemu. Iirc, the command to make readable is dtc -I dtb -O dts -o tree.dts tree.dtb. It should be possible to replace the hard lltemac in your tree.dtb with the an entry describing a soft emaclite. Then youll have to edit qemu and instantiate the mac at the appropriate address and connect to the appropriate interrupt line. Cheers --- Sent from my android device On Jul 13, 2011 5:19 AM, "L=C3=AA =C4=90=E1=BB=A9c T=C3=A0i" wrote: > On Jul 11, 2011 15:31, "Edgar E. Iglesias" wrote: > > >> Hi, >> The emulated board and fpga config doesnt have pci. It does have a xilin= x >>ll-temac ethernet mac though. I have patches for that, its on my todo lis= t to >>post them. Right now im on the road with little access to my stuff. It'll have >>to wait, sorry. >> If you dont need a particular mac, you could try to change the dtb and qemu >>to instantiate a xilinx ethlite mac which qemu upstream does emulate. I suggest >>looking at the microblaze boards as reference. >> Good luck, >> Edgar > Hi Edgar, > I'm trying to create Xilinx Ethernet Lite MAC. > So, I have two question :d. > What is the kernel driver that use for xilinx-ethlite nic? > And what should I change the dts file? (Does remove Hard Ethernet Mac?) > > Please help me. Thank you. > Tai --000e0cd5b9a035c03e04a7ee1aff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi,

Hi the ethlite driver is this one:
http://lxr.linux.no/linux+v2.6.39/drivers/net/xilinx_emaclite.c

The easy way is probably to look at the petalogix s3adsp board dtb distr= ibuted with qemu. Iirc, the command to make readable is dtc -I dtb -O dts -= o tree.dts tree.dtb.

It should be possible to replace the hard lltemac in your tree.dtb with = the an entry describing a soft emaclite. Then youll have to edit qemu and i= nstantiate the mac at the appropriate address and=C2=A0 connect to the appr= opriate interrupt line.

Cheers
---
Sent from my android device

On Jul 13, 2011 5:19 AM, "L=C3=AA =C4=90=E1= =BB=A9c T=C3=A0i" <letai= _dhqg@yahoo.com.vn> wrote:
> On Jul 11, 2= 011 15:31, "Edgar E. Iglesias" <edgar.iglesias@gmail.com> wrote:
>
>
>> Hi,
>> The emulated board and fpga c= onfig doesnt have pci. It does have a xilinx
>>ll-temac ethernet= mac though. I have patches for that, its on my todo list to
>>p= ost them. Right now im on the road with little access to my stuff. It'= ll have
>>to wait, sorry.
>> If you dont need a particular mac, you= could try to change the dtb and qemu
>>to instantiate a xilinx = ethlite mac which qemu upstream does emulate. I suggest
>>lookin= g at the microblaze boards as reference.
>> Good luck,
>> Edgar
> Hi Edgar,
> I'm t= rying to create Xilinx Ethernet Lite MAC.
> So, I have two question = :d.
> What is the kernel driver that use for xilinx-ethlite nic?
> And what should I change the dts file? (Does remove Hard Ethernet Mac?= )
>
> Please help me. Thank you.
> Tai
--000e0cd5b9a035c03e04a7ee1aff--