Hello ,
I am facing some issue while generating the file which would be needed to build.
I am using cygwin in windows to build.
when I am giving command make generate then i am getting following massages:
php OpenGEN/gen/generator.php --cmdline -l -v -c examples/Blinking/etc/FreeOSEK.oil examples/Blinking/etc/lpc-e2468/OpenDRV.oil -f OpenGEN/gen/mak/Make_OpenGEN.mak.php OpenGEN/gen/inc/MemMap_Arch_Cfg.h.php OpenDRV/gen/mak/Make_OpenDRV.mak.php FreeOSEK/gen/inc/Osek_Internal_Cfg.h.php FreeOSEK/gen/inc/Osek_Cfg.h.php FreeOSEK/gen/src/Osek_Cfg.c.php FreeOSEK/gen/src/Osek_Internal_Cfg.c.php FreeOSEK/gen/src/win/Osek_Internal_Arch_Cfg.c.php FreeOSEK/gen/inc/win/Osek_Internal_Arch_Cfg.h.php -o out/gen
FreeOSEK Generator - Copyright 2008, 2009, Mariano Cerdeiro - http://opensek.sf.net
INFO: the generator was called as follow:
INFO: OpenGEN/gen/generator.php --cmdline -l -v -c examples/Blinking/etc/FreeOSEK.oil examples/Blinking/etc/lpc-e2468/OpenDRV.oil -f OpenGEN/gen/mak/Make_OpenGEN.mak.php OpenGEN/gen/inc/MemMap_Arch_Cfg.h.php OpenDRV/gen/mak/Make_OpenDRV.mak.php FreeOSEK/gen/inc/Osek_Internal_Cfg.h.php FreeOSEK/gen/inc/Osek_Cfg.h.php FreeOSEK/gen/src/Osek_Cfg.c.php FreeOSEK/gen/src/Osek_Internal_Cfg.c.php FreeOSEK/gen/src/win/Osek_Internal_Arch_Cfg.c.php FreeOSEK/gen/inc/win/Osek_Internal_Arch_Cfg.h.php -o out/gen
INFO: ------ LICENSE START ------
INFO: FreeOSEK Generator is part of OpenOSEK.
INFO:
INFO: FreeOSEK is free software: you can redistribute it and/or modify
INFO: it under the terms of the GNU General Public License as published by
INFO: the Free Software Foundation, either version 3 of the License, or
INFO: (at your option) any later version.
INFO:
INFO: Linking FreeOSEK statically or dynamically with other modules is making a
INFO: combined work based on FreeOSEK. Thus, the terms and conditions of the GNU
INFO: General Public License cover the whole combination.
INFO:
INFO: In addition, as a special exception, the copyright holders of FreeOSEK give
INFO: you permission to combine FreeOSEK program with free software programs or
INFO: libraries that are released under the GNU LGPL and with independent modules
INFO: that communicate with FreeOSEK solely through the FreeOSEK defined interface.
INFO: You may copy and distribute such a system following the terms of the GNU GPL
INFO: for FreeOSEK and the licenses of the other code concerned, provided that you
INFO: include the source code of that other code when and as the GNU GPL requires
INFO: distribution of source code.
INFO:
INFO: Note that people who make modified versions of FreeOSEK are not obligated to
INFO: grant this special exception for their modified versions; it is their choice
INFO: whether to do so. The GNU General Public License gives permission to release
INFO: a modified version without this exception; this exception also makes it
INFO: possible to release a modified version which carries forward this exception.
INFO:
INFO: FreeOSEK is distributed in the hope that it will be useful,
INFO: but WITHOUT ANY WARRANTY; without even the implied warranty of
INFO: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
INFO: GNU General Public License for more details.
INFO: You should have received a copy of the GNU General Public License
INFO: along with FreeOSEK. If not, see http://www.gnu.org/licenses/.
INFO: ------- LICENSE END -------
INFO: list of configuration files:
INFO: configuration file 1: examples/Blinking/etc/FreeOSEK.oil
INFO: configuration file 2: examples/Blinking/etc/lpc-e2468/OpenDRV.oil
INFO: list of files to be generated:
INFO: generated file 1: OpenGEN/gen/mak/Make_OpenGEN.mak.php
INFO: generated file 2: OpenGEN/gen/inc/MemMap_Arch_Cfg.h.php
INFO: generated file 3: OpenDRV/gen/mak/Make_OpenDRV.mak.php
INFO: generated file 4: FreeOSEK/gen/inc/Osek_Internal_Cfg.h.php
INFO: generated file 5: FreeOSEK/gen/inc/Osek_Cfg.h.php
INFO: generated file 6: FreeOSEK/gen/src/Osek_Cfg.c.php
INFO: generated file 7: FreeOSEK/gen/src/Osek_Internal_Cfg.c.php
INFO: generated file 8: FreeOSEK/gen/src/win/Osek_Internal_Arch_Cfg.c.php
INFO: generated file 9: FreeOSEK/gen/inc/win/Osek_Internal_Arch_Cfg.h.php
INFO: output directory: out/gen
INFO: reading examples/Blinking/etc/FreeOSEK.oil
Notice: Undefined variable: config in C:\Rahul_Sharma\D_Drive\Rtos\FreeOSEK_rel_0_3_0_20090511_beta\OpenGEN\gen\generator.php on line 328
Fatal error: Call to a member function parseOilFile() on null in C:\Rahul_Sharma\D_Drive\Rtos\FreeOSEK_rel_0_3_0_20090511_beta\OpenGEN\gen\generator.php on line 328
OpenGEN/mak/Makefile:57: recipe for target `OpenGENgen' failed
I am not understanding what is issue.
Please help me on this .
Regards,
Rahul Sharma
Dear Rahul,
FreeOSEK is not more supported and also the last release an the SVN last commit are many years old. You shall try our new project which extends FreeOSEK: https://github.com/ciaa/Firmware.
This is more than only osek, but the rtos used is FreeOSEK. In which arch do you want to run / us it? We have improve a lot the FreeOSEK implementation since the last change in svn...
Regards,
Mariano.-
Hello Mariano,
Thanks for the reply.
I have downloaded project which you have mentioned and again tried to generate the files
I am still getting some similar issue.
php modules/rtos/generator/generator.php --cmdline -l -v \ -DARCH=x86 -DCPUTYPE=ia32 -DCPU=none \ -c examples/blinking/etc/blinking.oil -f ./modules/rtos/gen/inc/Os_Internal_Cfg.h.php ./modules/rtos/gen/inc/Os_Cfg.h.php ./modules/rtos/gen/src/Os_Cfg.c.php ./modules/rtos/gen/src/Os_Internal_Cfg.c.php ./modules/rtos/gen/src/x86/Os_Internal_Arch_Cfg.c.php ./modules/rtos/gen/inc/x86/Os_Internal_Arch_Cfg.h.php -o ./out/gen
ciaaFirmware RTOS Generator - Copyright 2008, 2009, 2015 Mariano Cerdeiro
Copyright 2014, ACSE & CADIEEL
ACSE : http://www.sase.com.ar/asociacion-civil-sistemas-embebidos/ciaa/
CADIEEL: http://www.cadieel.org.ar
All rights reserved.
INFO: the generator was called as follow:
INFO: modules/rtos/generator/generator.php --cmdline -l -v -DARCH=x86 -DCPUTYPE=ia32 -DCPU=none -c examples/blinking/etc/blinking.oil -f ./modules/rtos/gen/inc/Os_Internal_Cfg.h.php ./modules/rtos/gen/inc/Os_Cfg.h.php ./modules/rtos/gen/src/Os_Cfg.c.php ./modules/rtos/gen/src/Os_Internal_Cfg.c.php ./modules/rtos/gen/src/x86/Os_Internal_Arch_Cfg.c.php ./modules/rtos/gen/inc/x86/Os_Internal_Arch_Cfg.h.php -o ./out/gen
INFO: ------ LICENSE START ------
INFO: This file is part of CIAA Firmware.
INFO: Redistribution and use in source and binary forms, with or without
INFO: modification, are permitted provided that the following conditions are met:
INFO: 1. Redistributions of source code must retain the above copyright notice,
INFO: this list of conditions and the following disclaimer.
INFO: 2. Redistributions in binary form must reproduce the above copyright notice,
INFO: this list of conditions and the following disclaimer in the documentation
INFO: and/or other materials provided with the distribution.
INFO: 3. Neither the name of the copyright holder nor the names of its
INFO: contributors may be used to endorse or promote products derived from this
INFO: software without specific prior written permission.
INFO: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
INFO: AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
INFO: IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
INFO: ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
INFO: LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
INFO: CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
INFO: SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INFO: INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
INFO: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
INFO: ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
INFO: POSSIBILITY OF SUCH DAMAGE.
INFO: ------- LICENSE END -------
INFO: list of configuration files:
INFO: configuration file 1: examples/blinking/etc/blinking.oil
INFO: list of files to be generated:
INFO: generated file 1: ./modules/rtos/gen/inc/Os_Internal_Cfg.h.php
INFO: generated file 2: ./modules/rtos/gen/inc/Os_Cfg.h.php
INFO: generated file 3: ./modules/rtos/gen/src/Os_Cfg.c.php
INFO: generated file 4: ./modules/rtos/gen/src/Os_Internal_Cfg.c.php
INFO: generated file 5: ./modules/rtos/gen/src/x86/Os_Internal_Arch_Cfg.c.php
INFO: generated file 6: ./modules/rtos/gen/inc/x86/Os_Internal_Arch_Cfg.h.php
INFO: output directory: ./out/gen
INFO: reading examples/blinking/etc/blinking.oil
Notice: Undefined variable: config in C:\Rahul_Sharma\D_Drive\Rtos\Firmware-master\modules\rtos\generator\generator.php on line 334
Fatal error: Call to a member function parseOilFile() on null in C:\Rahul_Sharma\D_Drive\Rtos\Firmware-master\modules\rtos\generator\generator.php on line 334
Makefile:485: recipe for target `generate' failed
I am not building it for any specific Arch.
I want to understanding the Basic of RTOS working taking Osek as my base.
And I am using this project with default setting.
Please Help me on this.
Regards,
Rahul Sharma