Changes between Version 62 and Version 63 of Developer/Simulators/QEMU/CANEmulation


Ignore:
Timestamp:
09/12/13 10:21:46 (11 years ago)
Author:
Jinyang
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Developer/Simulators/QEMU/CANEmulation

    v62 v63  
    354354=  Step 3: Build a Basic PCI-CAN device in qemu  =
    355355
    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.
     356We 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.
    357357
    358358The specification of the pci-can device lists in following.
     
    362362    MEM bar, 128 bytes long, you can get the details about the memory map from SJA1000 Data Sheet.
    363363You 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
     366We 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
    366371
    367372