Deployment instructions
In your computer
- Get and compile qemu with SystemC extension:
- svn co https://svn.greensocs.com/public/packages/qemu_systemc/qemu-0.10.1
- cd qemu-0.10.1
- ./configure --target-list=arm-softmmu,i386-softmmu
- make (You may need some extra packages like zlib-dev or sdl-dev)
- Follow instructions from http://www.aurel32.net/info/debian_arm_qemu.php to get linux (debian) installed inside qemu (arm platform)
Inside QEMU
- Install kernel-headers:
- You will need the following packages:
- apt-get update;
- apt-get install linux-kbuild cpp-4.1 build-essential cpp binutils libssp make
- download the kernel headers
- http://people.debian.org/~aurel32/arm-versatile/linux-headers-2.6.18-6-all-arm_2.6.18.dfsg.1-23+versatile_arm.deb
- http://people.debian.org/~aurel32/arm-versatile/linux-headers-2.6.18-6-all_2.6.18.dfsg.1-23+versatile_arm.deb
- http://people.debian.org/~aurel32/arm-versatile/linux-headers-2.6.18-6-versatile_2.6.18.dfsg.1-23+versatile_arm.deb
- http://people.debian.org/~aurel32/arm-versatile/linux-headers-2.6.18-6_2.6.18.dfsg.1-23+versatile_arm.deb
- install it (dpkg -i ...)
- install subversion package (apt-get install subversion)
- You will need the following packages:
- Get and compile custom HW driver:
- svn co https://svn.greensocs.com/public/packages/qemu_systemc/arm_driver/
- cd arm_driver
- make
- sh load.sh
- gcc testapp.c -o test.x
- ./test.x You can
- if you write any value to address 0, you will trigger an interrupt (interrupt 24) from device every 10 seconds. You can stop this behaviour writting any value to address 4.
The same example is available for Intel platforms, driver at svn (https://svn.greensocs.com/public/packages/qemu_systemc/intel_driver/)
- Printer-friendly version
- Login or register to post comments
Posted April 8th, 2008 by MariusMonton