From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ant7Z-0004GY-N8 for qemu-devel@nongnu.org; Wed, 06 Apr 2016 15:28:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ant7Y-0004CF-N3 for qemu-devel@nongnu.org; Wed, 06 Apr 2016 15:28:09 -0400 Received: from mail-vk0-x22a.google.com ([2607:f8b0:400c:c05::22a]:33673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ant7Y-0004C2-HS for qemu-devel@nongnu.org; Wed, 06 Apr 2016 15:28:08 -0400 Received: by mail-vk0-x22a.google.com with SMTP id k1so71703584vkb.0 for ; Wed, 06 Apr 2016 12:28:08 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20160406175027.GA23359@flamenco> References: <1458221140-15232-1-git-send-email-zhaoshenglong@huawei.com> <20160406175027.GA23359@flamenco> From: Peter Maydell Date: Wed, 6 Apr 2016 20:27:48 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 0/2] Add gpio_key and use it for ARM virt power button List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Emilio G. Cota" Cc: Wei Huang , QEMU Developers , "Huangpeng (Peter)" , qemu-arm , Shannon Zhao , Shannon Zhao On 6 April 2016 at 18:50, Emilio G. Cota wrote: > I might be doing something wrong, but aarch64-softmmu @ master only works for me > after reverting 94f02c5ea94 "ARM: Virt: Use gpio_key for power button". Bisect log > appended. > > This is what I get when booting aarch64 as per [1]: > $ aarch64-softmmu/qemu-system-aarch64 -machine virt -cpu cortex-a57 -machine type=virt \ > -nographic -smp 1 -m 2048 -kernel img/aarch64/aarch64-linux-3.15rc2-buildroot.img \ > --append "console=ttyAMA0" > > qemu-system-aarch64: Unknown device 'gpio-key' for default sysbus > Aborted (core dumped) Your tree isn't building right (this is a dependency bug in our makefiles somewhere) -- it hasn't built the new object file with the gpio-key device in it, which means a runtime failure when the device can't be found. You should be able to fix this by deleting the aarch64-softmmu/config-devices.mak file from your build tree and then doing a rebuild. (One day I may get round to figuring out what happens here. The oddity is that it doesn't cause problems for an incremental rebuild, only for a build after a 'make clean'.) thanks -- PMM