netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers: net: ethernet: xilinx: xilinx_emaclite: Compatible with 'xlnx,xps-ethernetlite-2.00.b' for QEMU using
@ 2014-11-01  3:08 Chen Gang
  2014-11-01  3:59 ` Chen Gang
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2014-11-01  3:08 UTC (permalink / raw)
  To: michal.simek, soren.brinkmann
  Cc: davem, sthokal, manuel.schoelling, paul.gortmaker, f.fainelli,
	ebiederm, netdev, linux-arm-kernel, linux-kernel@vger.kernel.org

When use current latest upstream qemu (current version: 2.1.2), need let
driver compatible with 'xlnx,xps-ethernetlite-2.00.b', or can not find
net device in microblaze qemu. Related QEMU commands under fedora 20:

  yum install libvirt
  yum install tunctl
  tunctl -b
  ip link set tap0 up
  brctl addif virbr0 tap0
  ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \
    -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \
    -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \
    -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \
    -net tap,vlan=0,ifname=tap0,script=no,downscript=no

  in microblaze qemu bash (guest machine):

    ifconfig eth0 add 192.168.122.1 netmask 255.255.255.0
    ifconfig eth0 up

After add this patch, can find the device, and can be used by 'telnetd'
(need cross-build busybox with glibc for it), then outside can telnet to
it without password.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
---
 drivers/net/ethernet/xilinx/xilinx_emaclite.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
index 28dbbdc..298fad3 100644
--- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
+++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
@@ -1236,6 +1236,7 @@ static struct of_device_id xemaclite_of_match[] = {
 	{ .compatible = "xlnx,opb-ethernetlite-1.01.b", },
 	{ .compatible = "xlnx,xps-ethernetlite-1.00.a", },
 	{ .compatible = "xlnx,xps-ethernetlite-2.00.a", },
+	{ .compatible = "xlnx,xps-ethernetlite-2.00.b", },
 	{ .compatible = "xlnx,xps-ethernetlite-2.01.a", },
 	{ .compatible = "xlnx,xps-ethernetlite-3.00.a", },
 	{ /* end of list */ },
-- 
1.9.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers: net: ethernet: xilinx: xilinx_emaclite: Compatible with 'xlnx,xps-ethernetlite-2.00.b' for QEMU using
  2014-11-01  3:08 [PATCH] drivers: net: ethernet: xilinx: xilinx_emaclite: Compatible with 'xlnx,xps-ethernetlite-2.00.b' for QEMU using Chen Gang
@ 2014-11-01  3:59 ` Chen Gang
  2014-11-01 21:03   ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Gang @ 2014-11-01  3:59 UTC (permalink / raw)
  To: michal.simek, soren.brinkmann
  Cc: davem, sthokal, manuel.schoelling, paul.gortmaker, f.fainelli,
	ebiederm, netdev, linux-arm-kernel, linux-kernel@vger.kernel.org

On 11/1/14 11:08, Chen Gang wrote:
> When use current latest upstream qemu (current version: 2.1.2), need let
> driver compatible with 'xlnx,xps-ethernetlite-2.00.b', or can not find
> net device in microblaze qemu. Related QEMU commands under fedora 20:
> 
>   yum install libvirt
>   yum install tunctl
>   tunctl -b
>   ip link set tap0 up
>   brctl addif virbr0 tap0
>   ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \
>     -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \
>     -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \
>     -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \
>     -net tap,vlan=0,ifname=tap0,script=no,downscript=no
> 
>   in microblaze qemu bash (guest machine):
> 
>     ifconfig eth0 add 192.168.122.1 netmask 255.255.255.0

Oh, sorry, it is 192.168.122.2 (192.168.122.1 is the router address).

Thanks.

>     ifconfig eth0 up
> 
> After add this patch, can find the device, and can be used by 'telnetd'
> (need cross-build busybox with glibc for it), then outside can telnet to
> it without password.
> 
> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
> ---
>  drivers/net/ethernet/xilinx/xilinx_emaclite.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/net/ethernet/xilinx/xilinx_emaclite.c b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> index 28dbbdc..298fad3 100644
> --- a/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> +++ b/drivers/net/ethernet/xilinx/xilinx_emaclite.c
> @@ -1236,6 +1236,7 @@ static struct of_device_id xemaclite_of_match[] = {
>  	{ .compatible = "xlnx,opb-ethernetlite-1.01.b", },
>  	{ .compatible = "xlnx,xps-ethernetlite-1.00.a", },
>  	{ .compatible = "xlnx,xps-ethernetlite-2.00.a", },
> +	{ .compatible = "xlnx,xps-ethernetlite-2.00.b", },
>  	{ .compatible = "xlnx,xps-ethernetlite-2.01.a", },
>  	{ .compatible = "xlnx,xps-ethernetlite-3.00.a", },
>  	{ /* end of list */ },
> 

-- 
Chen Gang

Open, share, and attitude like air, water, and life which God blessed

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] drivers: net: ethernet: xilinx: xilinx_emaclite: Compatible with 'xlnx,xps-ethernetlite-2.00.b' for QEMU using
  2014-11-01  3:59 ` Chen Gang
@ 2014-11-01 21:03   ` David Miller
  0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2014-11-01 21:03 UTC (permalink / raw)
  To: gang.chen.5i5j
  Cc: michal.simek, soren.brinkmann, sthokal, manuel.schoelling,
	paul.gortmaker, f.fainelli, ebiederm, netdev, linux-arm-kernel,
	linux-kernel

From: Chen Gang <gang.chen.5i5j@gmail.com>
Date: Sat, 01 Nov 2014 11:59:53 +0800

> On 11/1/14 11:08, Chen Gang wrote:
>> When use current latest upstream qemu (current version: 2.1.2), need let
>> driver compatible with 'xlnx,xps-ethernetlite-2.00.b', or can not find
>> net device in microblaze qemu. Related QEMU commands under fedora 20:
>> 
>>   yum install libvirt
>>   yum install tunctl
>>   tunctl -b
>>   ip link set tap0 up
>>   brctl addif virbr0 tap0
>>   ./microblaze-softmmu/qemu-system-microblaze -M petalogix-s3adsp1800 \
>>     -kernel ../linux-stable.microblaze/arch/microblaze/boot/linux.bin \
>>     -no-reboot -append "console=ttyUL0,115200 doreboot" -nographic \
>>     -net nic,vlan=0,model=xlnx.xps-ethernetlite,macaddr=00:16:35:AF:94:00 \
>>     -net tap,vlan=0,ifname=tap0,script=no,downscript=no
>> 
>>   in microblaze qemu bash (guest machine):
>> 
>>     ifconfig eth0 add 192.168.122.1 netmask 255.255.255.0
> 
> Oh, sorry, it is 192.168.122.2 (192.168.122.1 is the router address).
> 
> Thanks.
> 
>>     ifconfig eth0 up
>> 
>> After add this patch, can find the device, and can be used by 'telnetd'
>> (need cross-build busybox with glibc for it), then outside can telnet to
>> it without password.
>> 
>> Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>

Applied with correct commit message, thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-11-01 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-01  3:08 [PATCH] drivers: net: ethernet: xilinx: xilinx_emaclite: Compatible with 'xlnx,xps-ethernetlite-2.00.b' for QEMU using Chen Gang
2014-11-01  3:59 ` Chen Gang
2014-11-01 21:03   ` David Miller

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).