- 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
-
v26
|
v27
|
|
242 | 242 | The 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]. |
243 | 243 | |
| 244 | = Running the Example = |
| 245 | |
| 246 | The 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 |
| 250 | change your directory to can-utils, |
| 251 | $ ./candump vcan0 |
| 252 | |
| 253 | then start qemu, and input the following commands. |
| 254 | # cd /home/qemu_test_pci |
| 255 | # ./load |
| 256 | # ./a.out |
| 257 | |
| 258 | you 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 | |
| 262 | This means we send a SFF message and EFF message to the host through SocketCAN. |
244 | 263 | = QEMU PCI-CAN device = |
245 | 264 | |
246 | 265 | I 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 | | |
249 | 266 | = Adding Qemu to the RTEMS Source Builder = |
250 | 267 | |