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


Ignore:
Timestamp:
Sep 12, 2013, 10:11:57 AM (6 years ago)
Author:
Jinyang
Comment:

/* Step 3: Build a Basic PCI-CAN device in qemu */

Legend:

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

    v61 v62  
    354354=  Step 3: Build a Basic PCI-CAN device in qemu  =
    355355
     356We 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.
     357
     358The specification of the pci-can device lists in following.
     359  Name : pci-can
     360  PCI ID : 1b36:beef
     361  PCI Region 0:
     362    MEM bar, 128 bytes long, you can get the details about the memory map from SJA1000 Data Sheet.
     363You 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
     366
     367
     368
     369
     370
     371
     372
     373
     374
     375
     376
     377
     378
     379
     380
     381
    356382
    357383
     
    670696
    671697This means we send a SFF message and EFF message to the host through SocketCAN.
    672 
    673 
    674 
    675 
    676 
    677 
    678698=  Step 4: Test  =
    679699