[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Fwd: Re: [PATCH v4 2/2] Add AT24Cxx I2C EEPROM device m

From: Weng Fan
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
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv: Gecko/20120306 Thunderbird/3.1.20

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:
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.


Best Regards
Weng Fan
Development Dept.I
Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST)
No. 6 Wenzhu Road, Nanjing, 210012, China

reply via email to

[Prev in Thread] Current Thread [Next in Thread]