Changes between Version 28 and Version 29 of QuickStartSoclib
- Timestamp:
- Jun 16, 2010, 1:00:35 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
QuickStartSoclib
v28 v29 3 3 SoCLib simulator allow easy experimentation with advanced multi-processor programming. 4 4 5 This guide explains how to run MutekH on a [wiki:Arch/Soclib SoCLib] hardware simulator with native processor heterogeneity support.5 This guide explains how to run MutekH on a [wiki:Arch/Soclib SoCLib] hardware simulator. 6 6 7 7 The SoCLib simulator used here is easy to use but has a complex internal design due to dynamic processors model instanciation. … … 16 16 === Getting SoCLib === 17 17 18 We now need to have a working SoCLib install. SoCLib installation is explained here: soclib:InstallationNotes 18 A precompiled {{{caba-vgmn-mutekh_kernel_tutorial}}} SoCLib platform is available [https://www.mutekh.org/www/tools/ here] for test purpose. 19 You can use this simulator and skip to the MutekH part if you are in a hurry. 19 20 20 Moreover, you'll need the MutekH source tree and its prerequisites. SeeInstallationNotes21 We need to have a working SoCLib install. SoCLib installation is explained here: soclib:InstallationNotes 21 22 22 23 === SoCLib platform description === … … 25 26 {{{soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial/}}}. 26 27 28 The simulator can be built using: 29 30 {{{ 31 #!sh 32 $ cd path/to/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial 33 $ make system.x 34 }}} 35 27 36 == The MutekH part == 28 37 29 38 === Getting the sources === 30 39 40 You'll need the MutekH source tree and its prerequisites. See InstallationNotes 41 31 42 {{{ 32 43 #!sh 33 svn co https://www -asim.lip6.fr/svn/mutekh/trunk/mutekh44 svn co https://www.mutekh.org/svn/trunk/mutekh/ 34 45 }}} 35 46 … … 42 53 What you need to do: 43 54 44 - Write the source code in `hello.c`45 - Write the `Makefile`46 - Write the ` platform-mips+arm.dts` to describe hardware, see FlattenedDeviceTree for details.55 - Create a directory for the application. 56 - Write the source code in `hello.c`. 57 - Write the `Makefile`. 47 58 - Write the source configuration file, see BuildSystem for details. 48 59 49 Note: This example is available directly from {{{examples/hello _het}}} directory in source tree: [source:trunk/mutekh/examples/hello_het]60 Note: This example is available directly from {{{examples/hello}}} directory in source tree: [source:trunk/mutekh/examples/hello] 50 61 51 62 === Getting the cross-compilers === 52 63 53 You can rely on the {{{tools/crossgen.mk}}} script which comes along with MutekH to build some GNU cross-toolchains: 54 {{{ 55 #!sh 56 $ tools/crossgen.mk 57 $ tools/crossgen.mk all TARGET=mipsel-unknown-elf 58 $ tools/crossgen.mk all TARGET=arm-unknown-elf 59 }}} 64 You can rely on the {{{tools/crossgen.mk}}} script which comes along with MutekH to build some GNU toolchains or download a precompiled toolchain. See BuildingExamples page. 60 65 61 66 === Compiling the application along with MutekH === … … 64 69 #!sh 65 70 $ cd path/to/mutekh 66 $ make kernel-het CONF=examples/hello_het/config BUILD=ph-het EACH=soclib-arm:soclib-mips32el71 $ make CONF=examples/hello/config BUILD=ph-tutorial:soclib-arm 67 72 }}} 68 73 69 74 This will build the MutekH kernel along with the application. 70 The simulator can then be built using:71 72 {{{73 #!sh74 $ cd path/to/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial75 $ make system.x76 }}}77 75 78 76 == Execution == … … 82 80 #!sh 83 81 $ cd path/to/soclib/soclib/platform/topcells/caba-vgmn-mutekh_kernel_tutorial 84 $ ./system.x mips32el:2 path/to/mutekh/kernel-mipsel.het.out arm:2path/to/mutekh/kernel-arm.het.out82 $ ./system.x arm:4 path/to/mutekh/kernel-arm.het.out 85 83 }}} 86 84