Changes between Version 11 and Version 12 of almosOnTsarDoc


Ignore:
Timestamp:
Aug 20, 2012, 9:16:11 PM (13 years ago)
Author:
almaless
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • almosOnTsarDoc

    v11 v12  
    2222== Compatibility ==
    2323
    24 The distribution package contains some binary executables (e.g. GCC cross-compiler, TSAR simulator). These programs can run on a Linux based distribution. They were tested on Ubuntu 10.04/12.04 and on Scientific Linux 6.2.    
     24The distribution package contains some binary executables (e.g. GCC cross-compiler, TSAR simulator). These programs can run on a Linux based distribution. They were tested on Ubuntu 10.04/12.04 and on Scientific Linux 6.2. Both 64 and 32 bits host machines are supported.   
    2525
    2626== Setup ==
     
    2929
    3030{{{
    31 tar jxf almos-tsar-mipsel.tbz2
     31$ tar jxf almos-tsar-mipsel.tbz2
    3232}}}
    3333
     
    3939
    4040{{{
    41 cd DISTRIB
    42 source ./SourceMe
     41$ cd DISTRIB
     42$ source ./SourceMe
    4343}}}
    4444
    45 '''Note''': by default you have to source this file from its local directory, that is, ''DISTRIB/.''
    46  
    47 Now got to ''DISTRIB/test/pf1'' and run ''make sim1'':
     45'''Note''': by default you have to source this file from its local directory, that is, you have to be in the ''DISTRIB'' directory.
     46
     47Now, lets go to ''DISTRIB/test/pf1'' and run ''make sim1'':
    4848
    4949{{{
    50 cd DISTRIB/test/pf1
    51 make sim1
     50$ cd DISTRIB/test/pf1
     51$ make sim1
    5252}}}
    5353
    54 This will launch the TSAR full-system simulator with its 4 tty terminals and one frame-buffer window. You will end by having a shell prompt on the tty1.
     54This will launch the TSAR full-system simulator with its 4 tty terminals and one frame-buffer window. You will end by having a shell prompt on the tty1. That is it ... you are done !!
    5555
    5656The tty0 and tty3 are reserved for the kernel trace and information messages. For a user application, the tty1 represent the stdin and stdout while the tty2 represent the stderr.
     
    5858''Sim1'' rule means the simulator of TSAR is configured to one cluster, that is, 4 cores. Using ''sim4'', ''sim16'', ''sim64'' or ''sim128'' lets you start the simulator with (respectively) 4, 16, 64 or 128 clusters of 4 cores each.
    5959
    60 ''' Note ''': although the hardware configuration can be changed at each simulation, there is no need to recompile or regenerate the kernel. The kernel of ALMOS detects the hardware resources at each boot. A user application can get the number of online cores using the standard ''sysconf'' call (man sysconf).   
     60'''Note''': although the hardware configuration can be changed at each simulation, there is no need to recompile or regenerate the kernel. The kernel of ALMOS detects the hardware resources at each boot. A user application can get the number of online cores using the standard ''sysconf'' call (man sysconf).   
    6161
     62Now lets take a look inside the ''DISTRIB/test/pf1'' directory.
     63
     64{{{
     65$ ls DISTRIB/test/pf1
     66arch-info.bin bootloader.bin hdd-img.bin kernel-soclib.bin Makefile
     67}}}
     68
     69After each ''make simN'' command (where N is 1, 4, 16, 64 or 128) you will have at least 4 .bin files. These bins are required by the simulator. In the TSAR simulated platform, there is a ROM component and a H.D.D controller. The ROM will be filled with the contents of ''arch-info.bin'', ''bootloader.bin'' and ''kernel-soclib.bin'' before starting the simulation. The ''hdd-img.bin'' is a FAT32 file system image sought by the H.D.D controller at each sector transfer.
     70
     71The ''kernel-soclib.bin'' file is the ALMOS kernel while the ''bootloader.bin'' file is the ALMOS boot-loader for TSAR. The ''arch-info.bin'' file contains the description of the TSAR hardware resources. This file is regenerated (copied from ''DISTRIB/test/arch-bins'') at each ''make simN'' command.
     72
     73You can take a look to ''DISTRIB/test/pf1/Makefile''. This file lets you customize some parameters like the used ALMOS kernel revision and the number of simulator threads. If you want to run simultaneously several configurations, lets say 4, you can create 3 additional ''DISTRIB/test/pf![2-4]'' directories each of which with its own customized Makefile. Than in each of these ''pf'' directories you can type your ''make simN'' command.
     74
     75'''Note''': by default, the location from where the corresponding kernel revision is looked for is ''DISTRIB/test/kern-bins''. The number of simulator's threads should not exceed the number of the physical CPUs (not the logical one) of your host machine. Finally, the hdd-imge.bin is a symbolic link to ''DISTRIB/test/misc/hdd-img.bin'' so be careful to provide an ''hdd-img.bin'' regular file per ''pf'' directory when you run simultaneously a multiple instances of the simulator.
    6276
    6377== Your first application ==
    6478
     79
     80
    6581== Running without interactive mode ==