Notice: We have migrated to GitLab launching 2024-05-01 see here: https://gitlab.rtems.org/

Changes between Version 26 and Version 27 of Developer/Simulators/QEMU/CANEmulation


Ignore:
Timestamp:
08/14/13 02:25:15 (11 years ago)
Author:
C Rempel
Comment:

Written in an email by Jin Yang

Legend:

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

    v26 v27  
    242242The above is an OLD one. You can get some newer update at [http://jin-yang.github.io/2013/07/24/build-minimal-linux-environment.html JinYang's Blog].
    243243
     244=  Running the Example  =
     245
     246The following commands should be executed in host.
     247 $ sudo insmod /lib/modules/`uname -r`/kernel/drivers/net/can/vcan.ko
     248 $ sudo ip link add type vcan
     249 $ sudo link set vcan0 up
     250change your directory to can-utils,
     251 $ ./candump vcan0
     252
     253then start qemu, and input the following commands.
     254 # cd /home/qemu_test_pci
     255 # ./load
     256 # ./a.out
     257
     258you will get the output from "./candump vcan0" command, like following
     259  vcan0  123   [3]  12 34 56
     260  vcan0  12345678   [6]  12 34 56 78 90 AB
     261
     262This means we send a SFF message and EFF message to the host through SocketCAN.
    244263= QEMU PCI-CAN device =
    245264
    246265I have maitained a blog at [http://jin-yang.github.io/2013/07/25/add-pcidevice-to-qemu.html Add pci-can]. There are a lots of temperay information, so I will update this at the end of the project. Then only useful message will be updated here.
    247 
    248 
    249266= Adding Qemu to the RTEMS Source Builder =
    250267