From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:52455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UceID-0002NQ-PB for Qemu-devel@nongnu.org; Wed, 15 May 2013 12:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UceI8-0007it-Su for Qemu-devel@nongnu.org; Wed, 15 May 2013 12:11:05 -0400 Received: from goliath.siemens.de ([192.35.17.28]:29373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UceI8-0007iF-EJ for Qemu-devel@nongnu.org; Wed, 15 May 2013 12:11:00 -0400 Message-ID: <5193B386.3010700@siemens.com> Date: Wed, 15 May 2013 18:10:46 +0200 From: Jan Kiszka MIME-Version: 1.0 References: <51932943.7020408@cn.fujitsu.com> In-Reply-To: <51932943.7020408@cn.fujitsu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Fwd: Re: [PATCH v4 2/2] Add AT24Cxx I2C EEPROM device model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Weng Fan Cc: "Qemu-devel@nongnu.org" On 2013-05-15 08:20, Weng Fan wrote: > Hi. > I want to use this patch for qemu-system-arm. > But an error occurred during initialization of the i2c device. > > The error message is : > > qemu-system-arm: drive property not set > qemu-system-arm: Initialization of device at24 failed > > The command is: > qemu-system-arm -M versatilepb -nographic -kernel zImage -initrd > initrd.img -append "root=linuxrc console=ttyAMA0,115200" You command line is incomplete, no mentioning of the -drive at24. The intended usage is: -drive file=/path/to/image,if=none,id=eeprom -device at24,drive=eeprom You can also specify the desired at24xxx type explicitly, e.g. at24c256 for the 256K model. Otherwise the type is derived from the image size. Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux