Page 1 of 1

Build error

Posted: Tue Mar 19, 2019 2:21 am
by reis220
Hello everyone,

When i try to set up my only task to autostart after StartOS(), i can't build the code.

This is the excerpt of the code that triggers the build error:

Code: Select all

  TASK Task1 {
    PRIORITY = 1;
    AUTOSTART = TRUE { APPMODE = OSDEFAULTAPPMODE; };
    STACK = PRIVATE {
      SIZE = 1024;
    };
    SCHEDULE = FULL;
  };
When i switch AUTOSTART to FALSE, it stops giving me errors and builds correctly. Have you got any hints of what might be the problem?

Re: Build error

Posted: Tue Mar 19, 2019 8:00 am
by paolo.gai
Could you please report which build are you using?

Please also attach a minimal complete OIL file that trigger the error.

PJ

Re: Build error

Posted: Tue Mar 19, 2019 4:11 pm
by reis220
I am compiling using aarch64-linux-gnu-gcc and the petalinux working evironment. I've been following the instructions from here (http://www.erika-enterprise.com/wiki/in ... inx_ZCU102), because i want to use ERIKA in a jailhouse context with Ultrascale+ SoC.


This is my OIL configuration file:

Code: Select all

CPU mySystem {

  OS myOs {

    /* EE_OPT = "OS_EE_VERBOSE"; */
    EE_OPT = "OSEE_DEBUG";
    EE_OPT = "OS_EE_APPL_BUILD_DEBUG";
    EE_OPT = "OS_EE_BUILD_DEBUG";
    EE_OPT = "OSEE_ASSERT";
    
    CFLAGS = "-g -Wall";
    CFLAGS = "-I/home/joao/armageddon/libflush/libflush";
    CFLAGS = "-I/home/joao/Desktop/jailhouse_v0.10/inmates/lib/arm-common/include";
    CFLAGS = "-I/usr/aarch64-linux-gnu/include";
    

    CPU_DATA = AARCH64 {
      MULTI_STACK = TRUE;
      COMPILER = GCC;
      IDLEHOOK = TRUE {
        HOOKNAME = "idle_hook";
      };
    };

    /* SOC_DATA = NVIDIA_TEGRA_X1; */
    SOC_DATA = XILINX_ZYNQ_ULTRASCALE_PLUS; 

    KERNEL_TYPE = OSEK {
      CLASS = ECC1;
    };
  };
 
  APPDATA aarch64_jailhouse_hello_world {
    APP_SRC = "main.c";
  };

  
  TASK Task1 {
    PRIORITY = 1;
    AUTOSTART = TRUE { APPMODE = OSDEFAULTAPPMODE; };
    STACK = PRIVATE {
      SIZE = 1024;
    };
    SCHEDULE = FULL;
    //RESOURCE = SharedUartResource;
  };

};

Re: Build error

Posted: Tue Mar 19, 2019 6:46 pm
by e.guidieri
I'm not sure if the following is the problem it's just a suggestion, since I cannot build for AARCH64, I don't have the environment set.

Since you have no APPMODE configured, you don't need to explicity states the appmode in TASK AUTOSTART field.

Try:

Code: Select all

  TASK Task1 {
    PRIORITY = 1;
    AUTOSTART = TRUE;
    STACK = PRIVATE {
      SIZE = 1024;
    };
    SCHEDULE = FULL;
    //RESOURCE = SharedUartResource;
  };

Re: Build error

Posted: Wed Mar 20, 2019 12:27 am
by reis220
Now when i try to build it warns that there is no ee_oscfg.mk file, therefore it cannot build.

Re: Build error

Posted: Wed Mar 20, 2019 2:11 am
by reis220
I've uninstalled and installed Erika and everything is working fine now (don't know which was the problem). You can close the thread if you want to.