Ignore:
Timestamp:
Jul 14, 2015, 5:02:32 PM (9 years ago)
Author:
alain
Message:

Rename the path to .elf file in the "appli.py" files,
because the "build" directory has been renamed to "bin" on virtual disk.

Location:
soft/giet_vm/applications/shell
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/applications/shell/main.c

    r589 r610  
    1919//////////////////////////////////////////
    2020{
    21     giet_shr_printf("\n[SHELL] Enter at cycle %d\n", giet_proctime() );
     21    giet_tty_alloc();
    2222
    23     /////////////// diplay disk content
    24     giet_shr_printf("\n#############################################################");
     23    giet_tty_printf("\n[SHELL] Enter at cycle %d\n", giet_proctime() );
     24
     25    /////////////// display disk content
    2526    giet_fat_list( "/" );
    2627    giet_fat_list( "/misc" );
    2728    giet_fat_list( "/home" );
    28     giet_shr_printf("#############################################################\n");
    2929
    3030    /////////////// open lena_256.raw
     
    3636    else
    3737    {
    38         giet_shr_printf("\n[SHELL] open lena_256.raw\n");
     38        giet_tty_printf("\n[SHELL] open lena_256.raw\n");
    3939    }
    4040
     
    4747    else
    4848    {
    49         giet_shr_printf("\n[SHELL] open copy.raw\n");
     49        giet_tty_printf("\n[SHELL] open copy.raw\n");
    5050    }
    5151
     
    6262    else
    6363    {
    64         giet_shr_printf("\n[SHELL] lena_256.raw loaded from device\n");
     64        giet_tty_printf("\n[SHELL] lena_256.raw loaded from device\n");
    6565    }
    6666
     
    7777    else
    7878    {
    79         giet_shr_printf("\n[SHELL] copy.raw stored to device\n");
     79        giet_tty_printf("\n[SHELL] copy.raw stored to device\n");
    8080    }
    8181
     
    8787    else
    8888    {
    89         giet_shr_printf("\n[SHELL] lena_256.raw closed\n");
     89        giet_tty_printf("\n[SHELL] lena_256.raw closed\n");
    9090    }
    9191
     
    9797    else
    9898    {
    99         giet_shr_printf("\n[SHELL] copy.raw closed\n");
     99        giet_tty_printf("\n[SHELL] copy.raw closed\n");
    100100    }
    101101
    102102    ////////////// display disk content
    103     giet_shr_printf("\n#############################################################");
    104103    giet_fat_list( "/" );
    105104    giet_fat_list( "/misc" );
    106105    giet_fat_list( "/home" );
    107     giet_shr_printf("#############################################################\n");
    108106
    109107    ///////////// rename copy.raw
     
    114112    else
    115113    {
    116         giet_shr_printf("\n[SHELL] /home/copy.raw renamed to /misc/copy_lena.raw\n");
     114        giet_tty_printf("\n[SHELL] /home/copy.raw renamed to /misc/copy_lena.raw\n");
    117115    }
    118116   
    119117    ////////////// display disk content
    120     giet_shr_printf("\n#############################################################");
    121118    giet_fat_list( "/" );
    122119    giet_fat_list( "/misc" );
    123120    giet_fat_list( "/home" );
    124     giet_shr_printf("#############################################################\n");
    125121
    126122    ///////////// remove home
     
    131127    else
    132128    {
    133         giet_shr_printf("\n[SHELL] /home removed from file system\n");
     129        giet_tty_printf("\n[SHELL] /home removed from file system\n");
    134130    }
    135131   
    136132    ////////////// display disk content
    137     giet_shr_printf("\n#############################################################");
    138133    giet_fat_list( "/" );
    139134    giet_fat_list( "/misc" );
    140     giet_shr_printf("#############################################################\n");
    141135
    142136    //////////// create new_home
     
    147141    else
    148142    {
    149         giet_shr_printf("\n[SHELL] /new_home created in file system\n");
     143        giet_tty_printf("\n[SHELL] /new_home created in file system\n");
    150144    }
    151145   
    152146    ////////////// display disk content
    153     giet_shr_printf("\n#############################################################");
    154147    giet_fat_list( "/" );
    155148    giet_fat_list( "/misc" );
    156149    giet_fat_list( "/new_home" );
    157     giet_shr_printf("#############################################################\n");
    158150
    159151    giet_exit("Completed");
  • soft/giet_vm/applications/shell/shell.py

    r589 r610  
    3838    mapping.addVseg( vspace, 'shell_data', data_base , data_size,
    3939                     'C_WU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM',
    40                      binpath = 'build/shell/appli.elf',
     40                     binpath = 'bin/shell/appli.elf',
    4141                     local = False )
    4242
     
    4444    mapping.addVseg( vspace, 'shell_code', code_base , code_size,
    4545                     'CXWU', vtype = 'ELF', x = 0, y = 0, pseg = 'RAM',
    46                      binpath = 'build/shell/appli.elf',
     46                     binpath = 'bin/shell/appli.elf',
    4747                     local = False )
    4848
Note: See TracChangeset for help on using the changeset viewer.