Build error

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Locked
reis220

Build error

Post 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?
Attachments
Captura de ecrã de 2019-03-19 01-20-57.png
Captura de ecrã de 2019-03-19 01-20-57.png (106.53 KiB) Viewed 5717 times
paolo.gai
Administrator
Posts: 877
Joined: Thu Dec 07, 2006 12:11 pm

Re: Build error

Post 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
reis220

Re: Build error

Post 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;
  };

};
e.guidieri

Re: Build error

Post 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;
  };
reis220

Re: Build error

Post by reis220 »

Now when i try to build it warns that there is no ee_oscfg.mk file, therefore it cannot build.
Attachments
Captura de ecrã de 2019-03-19 23-21-41.png
Captura de ecrã de 2019-03-19 23-21-41.png (47.29 KiB) Viewed 5704 times
reis220

Re: Build error

Post 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.
Locked