Changeset 364 for soft/giet_vm


Ignore:
Timestamp:
Jul 23, 2014, 11:02:57 AM (10 years ago)
Author:
alain
Message:

Increase the size of the "reserved" section in the disk image
from 256 Kbytes to 1 Mbytes. This section contains the boot record,
and the boot.elf file (starting at lba = 2).

Location:
soft/giet_vm
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/Makefile

    r356 r364  
    88
    99ARCH ?= ../tsar-trunk-svn-2013/platforms/tsar_generic_iob
    10 X    ?= 4
    11 Y    ?= 4
    12 P    ?= 4
     10X    ?= 2
     11Y    ?= 2
     12P    ?= 2
    1313APP  ?= convol
    1414
     
    119119               build/libs/barrier.o
    120120
    121                            CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g
     121CFLAGS = -Wall -ffreestanding -mno-gpopt -mips32 -g -O2
    122122
    123123GIET_INCLUDE = -Igiet_boot    \
     
    136136DISK_IMAGE  := hdd/virt_hdd.dmg
    137137
    138 ### Copy executable and miscellaneous files into disk image
    139 ### Copy bootloader into sector 2 of disk image
    140138all: map.bin                         \
    141139     hard_config.h                   \
     
    154152     $(DISK_IMAGE)                   
    155153         
     154### Copy always all files into disk image
    156155        mcopy -o -i $(DISK_IMAGE) build/kernel/kernel.elf ::/build/kernel
    157156        mcopy -o -i $(DISK_IMAGE) build/display/display.elf ::/build/display
     
    167166        mcopy -o -i $(DISK_IMAGE) convol/philips_image.raw ::/misc
    168167        mcopy -o -i $(DISK_IMAGE) map.bin ::/
     168### Copy bootloader into sector 2 of disk image
    169169        dd if=build/boot/boot.elf of=$(DISK_IMAGE) seek=2 conv=notrunc
    170 
    171 ### Disk image generation
     170### Checking root directory
     171        mdir -i $(DISK_IMAGE) ::/
     172
     173### Disk image generation (no files in this step)
    172174### This requires the generic LINUX/MacOS script "create_dmg" script
    173175### written by C.Fuguet. (should be installed in GIET-VM root directory).
     
    476478
    477479build/convol/main.o: convol/main.c
    478         $(CC) $(USER_INCLUDE) $(CFLAGS) -c -o $@ $<
     480        $(CC) $(USER_INCLUDE) $(CFLAGS) -O0 -c -o $@ $<
    479481
    480482### clean
     
    498500        rm -rf build/transpose/*
    499501        rm -rf build/convol/*
    500 
    501 distclean: clean
    502502        rm -rf hdd/virt_hdd.dmg
  • soft/giet_vm/create_dmg

    r302 r364  
    66sector_size=512
    77sectors_per_cluster=8
    8 reserved_sectors=512
     8reserved_sectors=2048
    99
    1010# FAT32 SPEC: The first two clusters are not present in the data region but
  • soft/giet_vm/giet_config.h

    r314 r364  
    1515/* Debug parameters */
    1616
    17 #define BOOT_DEBUG_MAPPING       0                      /* trace map_info checking */
    18 #define BOOT_DEBUG_PT                0                  /* trace page tables initialisation */
    19 #define BOOT_DEBUG_VOBJS             0                  /* trace vobjs initialisation */
    20 #define BOOT_DEBUG_SCHED             0                  /* trace schedulers initialisation */
    21 #define BOOT_DEBUG_PERI          0                      /* trace peripherals initialisation */
     17#define BOOT_DEBUG_MAPPING       0          /* trace map_info checking */
     18#define BOOT_DEBUG_PT                0          /* trace page tables initialisation */
     19#define BOOT_DEBUG_VOBJS             0          /* trace vobjs initialisation */
     20#define BOOT_DEBUG_SCHED             0          /* trace schedulers initialisation */
     21#define BOOT_DEBUG_PERI          0          /* trace peripherals initialisation */
    2222#define BOOT_DEBUG_ELF           0          /* trace .elf files loading */
    2323
    24 #define GIET_DEBUG_INIT              0                  /* trace kernel initialisation */
    25 #define GIET_DEBUG_FAT           0          /* trace fat accesses */
    26 #define GIET_DEBUG_SWITCH            0          /* trace context switchs  */
    27 #define GIET_DEBUG_IRQS          0              /* trace interrupts */
     24#define GIET_DEBUG_INIT              0          /* trace kernel initialisation */
     25#define GIET_DEBUG_FAT           2          /* trace fat accesses */
     26#define GIET_DEBUG_SWITCH            0          /* trace context switchs  */
     27#define GIET_DEBUG_IRQS          0          /* trace interrupts */
    2828#define GIET_DEBUG_IOC_DRIVER    0          /* trace IOC accesses */
    2929#define GIET_DEBUG_TTY_DRIVER    0          /* trace TTY accesses */
     
    3535/* software parameters */
    3636
     37#define GIET_ELF_BUFFER_SIZE     0x60000    /* Temporary buffer for .elf files */
    3738#define GIET_IDLE_TASK_PERIOD    0xFFFFFFFF /* Idle Task message period */
    3839#define GIET_MAX_ELF_FILES       20         /* max .elf files loaded by boot-loader */
    3940#define GIET_OPEN_FILES_MAX      16         /* max simultaneously open files */
    40 #define GIET_NB_VSPACE_MAX           64                 /* max number of virtual spaces */
     41#define GIET_NB_VSPACE_MAX           64         /* max number of virtual spaces */
    4142#define GIET_TICK_VALUE          0x00008000 /* context switch period (number of cycles) */
    4243#define GIET_USE_IOMMU           0          /* IOMMU activated when non zero */
Note: See TracChangeset for help on using the changeset viewer.