Build error

Forum related to ERIKA Enterprise and RT-Druid version 3

Moderator: paolo.gai

Post Reply
reis220
Newbie
Posts: 9
Joined: Sun Feb 17, 2019 8:48 pm

Build error

Post by reis220 » Tue Mar 19, 2019 2:21 am

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 3849 times

paolo.gai
Administrator
Posts: 875
Joined: Thu Dec 07, 2006 12:11 pm

Re: Build error

Post by paolo.gai » Tue Mar 19, 2019 8:00 am

Could you please report which build are you using?

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

PJ

reis220
Newbie
Posts: 9
Joined: Sun Feb 17, 2019 8:48 pm

Re: Build error

Post by reis220 » Tue Mar 19, 2019 4:11 pm

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
Full Member
Posts: 166
Joined: Tue May 10, 2011 2:05 pm

Re: Build error

Post by e.guidieri » Tue Mar 19, 2019 6:46 pm

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
Newbie
Posts: 9
Joined: Sun Feb 17, 2019 8:48 pm

Re: Build error

Post by reis220 » Wed Mar 20, 2019 12:27 am

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 3836 times

reis220
Newbie
Posts: 9
Joined: Sun Feb 17, 2019 8:48 pm

Re: Build error

Post by reis220 » Wed Mar 20, 2019 2:11 am

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.

Post Reply