From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:34398) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnxcP-0003tO-0p for qemu-devel@nongnu.org; Thu, 19 Jan 2012 14:25:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RnxcN-0006Nl-Hn for qemu-devel@nongnu.org; Thu, 19 Jan 2012 14:25:52 -0500 Received: from smtp201.dfw.emailsrvr.com ([67.192.241.201]:57454) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RnxcN-0006Nh-C1 for qemu-devel@nongnu.org; Thu, 19 Jan 2012 14:25:51 -0500 Message-ID: <4F186E43.80700@calxeda.com> Date: Thu, 19 Jan 2012 13:25:55 -0600 From: Mark Langsdorf MIME-Version: 1.0 References: <1326213943-878-1-git-send-email-mark.langsdorf@calxeda.com> <1326987824-27980-1-git-send-email-mark.langsdorf@calxeda.com> <1326987824-27980-6-git-send-email-mark.langsdorf@calxeda.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v11 5/6] arm: SoC model for Calxeda Highbank List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "i.mitsyanko@gmail.com" , "edgar.iglesias@gmail.com" , "qemu-devel@nongnu.org" , Rob Herring , "afaerber@suse.de" On 01/19/2012 01:15 PM, Peter Maydell wrote: > On 19 January 2012 15:43, Mark Langsdorf wrote: >> + highbank_binfo.board_id = -1; /* provided by deviceTree */ > > This doesn't work, because arm_boot.c does: > bootloader[1] |= info->board_id & 0xff; > bootloader[2] |= (info->board_id >> 8) & 0xff; > > and so when you try to boot the kernel it does this: > > ===begin=== > cam-vm-266:maverick:qemu-jeos$ > ~/linaro/qemu-from-laptop/qemu/arm-softmmu/qemu-system-arm -kernel > build-arm/linux/arch/arm/boot/zImage -initrd build-arm/initramfs.img > -M highbank -serial stdio > > Error: unrecognized/unsupported machine ID (r1 = 0x0000ffff). > > Available machine support: > > ID (hex) NAME > ffffffff Highbank > > Please check your kernel config and/or bootloader. > ===endit=== Works for me, but it requires a kernel build with the device tree dtb appended to it. ===begin=== mlangsdorf@mjl-dell:~/work/qemu$ ./mainline_qemu/arm-softmmu/qemu-system-arm -nographic -M highbank -kernel linux-2.6/kernel_with_dtb.img -drive id=disk,if=ide,file=sataDisk -device ide-drive,drive=disk,bus=ide.0 -append "root=/dev/sda2 console=ttyAMA0,38400 debug earlyprintk" -m 4089 -smp 3 [ 0.000000] Booting Linux on physical CPU 0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Linux version 3.2.0+ (mlangsdorf@mjl-dell) (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) ) #72 SMP Wed Jan 18 15:10:31 CST 2012 [ 0.000000] CPU: ARMv7 Processor [410fc090] revision 0 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine: Highbank, model: Calxeda Highbank [ 0.000000] Memory policy: ECC disabled, Data cache writealloc [ 0.000000] On node 0 totalpages: 1046784 ===endit=== --Mark Langsdorf Calxeda, Inc.