- Timestamp:
-
08/14/13 08:36:05 (11 years ago)
- Author:
-
C Rempel
- Comment:
-
/* CAN project example */
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v29
|
v30
|
|
170 | 170 | The CAN simulation environment is based on QEMU-1.4.2, because 1.5.0 was just released, and we wanted a solid starting point. |
171 | 171 | |
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 | |
173 | 175 | You 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). |
174 | 176 | |
… |
… |
|
176 | 178 | git clone https://github.com/Jin-Yang/QEMU-1.4.2.git . |
177 | 179 | |
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. |
| 180 | QEMU has two modes to simulate a platform, the user mode and the system mode. |
| 181 | |
| 182 | We only need the i386 system simulation environment here, so only system mode (i386-softmmu) is needed. |
| 183 | |
| 184 | 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>]. |
| 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. |
179 | 187 | |
180 | 188 | ./configure --prefix=/opt/qemu --target-list="i386-softmmu" --enable-sdl && make && sudo make install |