From: Weng Fan <wengfan-fnst@cn.fujitsu.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: "Qemu-devel@nongnu.org" <Qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Fwd: Re: [PATCH v4 2/2] Add AT24Cxx I2C EEPROM device model
Date: Sat, 18 May 2013 11:01:03 +0800 [thread overview]
Message-ID: <5196EEEF.6@cn.fujitsu.com> (raw)
In-Reply-To: <5193B386.3010700@siemens.com>
Thank you for you help.
I can use the at24 device.
And i can see the device in monitor model:
info qtree
type i2c-bus
dev: at24, id ""
drive = eeprom
logical_block_size = 512
physical_block_size = 512
min_io_size = 0
opt_io_size = 0
bootindex = -1
discard_granularity = 0
device = 0
size = 65536
address = 80
But I have another question.
How can i test the eeprom device at24?
My qemu command:
qemu-system-arm -drive file=test.img,if=none,id=eeprom -device
at24,address=0x4c,drive=eeprom -M versatilepb -nographic -kernel zImage
-initrd initrd.img -append "root=linuxrc console=ttyAMA0,115200"
The kernel has compiled at24.c driver.
In virtual os,i can't see the device at24.
If i want write/read date in at24 device,what should i do?
I'm waiting for you help,thank you.
于 2013-5-16 0:10, Jan Kiszka 写道:
> 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
>
--
--------------
Best Regards
--------------------------------------------------
Weng Fan
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 6 Wenzhu Road, Nanjing, 210012, China
TEL:+86+25-86630566-8222
Mail:wengfan-fnst@cn.fujitsu.com
http://www.fujitsu.com/cn/fnst/
--------------------------------------------------
prev parent reply other threads:[~2013-05-18 3:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-15 6:20 [Qemu-devel] Fwd: Re: [PATCH v4 2/2] Add AT24Cxx I2C EEPROM device model Weng Fan
2013-05-15 16:10 ` Jan Kiszka
2013-05-18 3:01 ` Weng Fan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5196EEEF.6@cn.fujitsu.com \
--to=wengfan-fnst@cn.fujitsu.com \
--cc=Qemu-devel@nongnu.org \
--cc=jan.kiszka@siemens.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).