From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42308) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfqaT-0004hB-2b for qemu-devel@nongnu.org; Sun, 19 Oct 2014 09:32:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfqaO-00084R-4e for qemu-devel@nongnu.org; Sun, 19 Oct 2014 09:31:57 -0400 Received: from mail-pd0-x229.google.com ([2607:f8b0:400e:c02::229]:46204) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfqaN-000842-SW for qemu-devel@nongnu.org; Sun, 19 Oct 2014 09:31:52 -0400 Received: by mail-pd0-f169.google.com with SMTP id w10so3388681pde.28 for ; Sun, 19 Oct 2014 06:31:50 -0700 (PDT) Message-ID: <5443BEAC.2070107@gmail.com> Date: Sun, 19 Oct 2014 21:37:48 +0800 From: Chen Gang MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [Consult] microblaze: About running upstream main branch qemu List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , linux@roeck-us.net, rth@twiddle.net, qemu-devel Hello microblaze maintainers: I tried to run upstream qemu for microblaze, but failed. It seems only special qemu branch can run it. And after try Xilinx qemu branch, I got "segment fault" which is related with "-dtb". So I want to consult: - Can our main upstream qemu (not other branches) run microblaze? - Is what I have done for Xilinx related qemu correct? The related operation for Xilinx related qemu is below: * For kernel: - building: git clone https://github.com/Xilinx/linux-xlnx.git cd linux-xlnx make ARCH=microblaze CROSS_COMPILE=/upstream/release/bin/microblaze-gchen-linux- mmu_config make ARCH=microblaze CROSS_COMPILE=/upstream/release/bin/microblaze-gchen-linux- - output: arch/microblaze/boot/linux.bin scripts/dtc/dtc - get 'system.dtb': ./scripts/dtc/dtc -I dts -O dtb -o system.dtb arch/microblaze/boot/dts/system.dts * For ramdisk: wget http://www.wiki.xilinx.com/file/view/microblaze_complete.cpio.gz/419243588/microblaze_complete.cpio.gz * For qemu: - building: git clone git://github.com/Xilinx/qemu.git ./configure --target-list="arm-softmmu,microblazeel-softmmu" --enable-fdt --disable-kvm make - running: ./arm-softmmu/qemu-system-arm -M arm-generic-fdt -nographic -smp 2 -machine linux=on -serial mon:stdio -dtb ../linux-xlnx/system.dtb \ -kernel ../linux-xlnx/arch/microblaze/boot/linux.bin -initrd ../microblaze_complete.cpio.gz - result: Segmentation fault (core dumped) (after a simple try, I am sure, it is caused by "dtb"). And excuse me, at present, I have to only focus on fixing upstream qemu issues (I have no enough time resource for other qemu branches), please understand. Thanks. -- Chen Gang Open, share, and attitude like air, water, and life which God blessed