Changes between Version 29 and Version 30 of Developer/Simulators/QEMU/CANEmulation


Ignore:
Timestamp:
Aug 14, 2013, 8:36:05 AM (7 years ago)
Author:
C Rempel
Comment:

/* CAN project example */

Legend:

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

    v29 v30  
    170170The CAN simulation environment is based on QEMU-1.4.2, because 1.5.0 was just released, and we wanted a solid starting point.
    171171
    172 ''NOTE: before you compile QEMU, "libglib2-dev" should be installed, or you will get the error "ERROR: glib-2.12 required to compile QEMU". In Ubuntu, we use command "sudo apt-get install libglib2-dev" to do that.''
     172'''NOTE:''' before you compile QEMU, "libglib2-dev" should be installed, or you will get the error "ERROR: glib-2.12 required to compile QEMU". In Ubuntu, to do that we use command
     173 sudo apt-get install libglib2-dev
     174
    173175You can download the qemu-can project from https://github.com/Jin-Yang/QEMU-1.4.2 or get a copy using the following command(Linux).
    174176
     
    176178  git clone https://github.com/Jin-Yang/QEMU-1.4.2.git .
    177179
    178 QEMU has two modes to simulate a platform, the user mode and the system mode. We only need the i386 system simulation environment here, so only system mode (i386-softmmu) is needed. In order to save time, we just compile the source-code that relates to i386-softmmu.[http://jin-yang.github.io/2013/07/24/build-minimal-linux-environment html [1<nowiki>]</nowiki>]. For simplicity of coding, we select the hard-coded --prefix=/opt/qemu so we can write scripts assuming that's where our installed qemu is.
     180QEMU has two modes to simulate a platform, the user mode and the system mode.
     181
     182We only need the i386 system simulation environment here, so only system mode (i386-softmmu) is needed.
     183
     184In order to save time, we just compile the source-code that relates to i386-softmmu.[http://jin-yang.github.io/2013/07/24/build-minimal-linux-environment html [1<nowiki>]</nowiki>].
     185
     186'''Note:''' For simplicity of coding, we select the hard-coded --prefix=/opt/qemu so we can write scripts assuming that's where our installed qemu is.
    179187
    180188  ./configure --prefix=/opt/qemu --target-list="i386-softmmu" --enable-sdl && make && sudo make install