Received: from eggs.gnu.org ([2001:4830:134:3::10]:48797) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo4gp-0002il-BX for qemu-devel@nongnu.org; Tue, 11 Nov 2014 01:12:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xo4gj-0005q1-7M for qemu-devel@nongnu.org; Tue, 11 Nov 2014 01:12:31 -0500 Message-ID: <5461A8C7.5070104@msgid.tls.msk.ru> Date: Tue, 11 Nov 2014 09:12:23 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <54574A46.3060709@gmail.com> In-Reply-To: <54574A46.3060709@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] pc-bios: petalogix-s3adsp1800.dtb: Use 'xlnx, xps-ethernetlite-2.00.a' instead of 'xlnx, xps-ethernetlite-2.00.b' List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Chen Gang , Guenter Roeck , Peter Maydell Cc: QEMU Trivial , qemu-devel 03.11.2014 12:26, Chen Gang wrote: > For Linux upstream kernel (e.g. 3.17-rc7), the related compatible string > 'xlnx,xps-ethernetlite-2.00.a' is supported, but 'b' is not supported, > so change qemu dtb file to match kernel driver. > > The related operation for qemu (after this patch): > > yum install libvirt > yum install tunctl > tunctl -b > ip link set tap0 up > brctl addif virbr0 tap0 > > ./configure > make > ./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.2 netmask 255.255.255.0 > ifconfig eth0 up > > Then can telnet 192.168.122.2 directly without password from the host > machine. > > The related operation for generating new dtb: > > building Linux kernel firstly, then get dts tool "./scripts/dts/dts". > "./scripts/dtc/dtc -I dtb -O dts -o ../work.dts ../qemu/petalogix-s3adsp1800.dtb" > edit work.dts (replace 'xlnx,xps-ethernetlite-2.00.b') > "./scripts/dtc/dtc -I dts -O dtb -o ..qemu/petalogix-s3adsp1800.dtb ../work.dts" Oh well. I don't like this patch to be lost, but I must admit I don't understand what's happening here. Applied to -trivial. Thanks, /mjt