Changes between Version 62 and Version 63 of Developer/Simulators/QEMU/CANEmulation
- Timestamp:
- 09/12/13 10:21:46 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Developer/Simulators/QEMU/CANEmulation
v62 v63 354 354 = Step 3: Build a Basic PCI-CAN device in qemu = 355 355 356 We use QEMU Object Model(QOM, formerly Qdev) to simulate the SJA1000 hardware. You can get some useful information from [ QEMU QOM](http://wiki.qemu.org/Features/QOM "QEMU Object Model") which intruduce the QOM.356 We use QEMU Object Model(QOM, formerly Qdev) to simulate the SJA1000 hardware. You can get some useful information from [http://wiki.qemu.org/Features/QOM QEMU Object Model] which intruduce the QOM. 357 357 358 358 The specification of the pci-can device lists in following. … … 362 362 MEM bar, 128 bytes long, you can get the details about the memory map from SJA1000 Data Sheet. 363 363 You can get the device information using command **info pci** in monitor console. Those arguments are initialized in function can_pci_class_initfn() and can_pci_init(). 364 365 364 = Add the Default Compiling Files = 365 366 We want to compile the PCI-CAN device as default. To achieve this goal, we add the following code. 367 # hw/Makefile.objs 368 common-obj-$(CONFIG_CAN_PCI) += can-pci.o 369 # default-configs/pci.mak 370 CONFIG_CAN_PCI=y 366 371 367 372