<div dir="ltr">Hi,<div>You might need to edit the Makefile for the Raspberry Pi 2. I don't know if passing in the command line variables are enough. </div><div><br></div><div>The RKI waf build has recently been updated, and I just tested it to make sure it builds.</div><div><br></div><div>I also have a rki-drivers branch where I am starting to integrate i2c drivers for the Pi. This branch only uses the waf build.</div><div><br></div><div>Alan</div><div><br></div><div>-----</div><div>Waf config and build output:</div><div><br></div><div><div>waf configure --rtems=$HOME/rtems/bsps/4.12 --rtems-tools=$HOME/rtems/tools/4.12 --rtems-version=4.12 --rtems-bsps=arm/raspberrypi,arm/raspberrypi2</div><div>Setting top to : /home/alan/rtems/apps/rki </div><div>Setting out to : /home/alan/rtems/apps/rki/build </div><div>RTEMS Version : 4.12 </div><div>Architectures : arm-rtems4.12, sparc-rtems4.12 </div><div>Board Support Package : arm-rtems4.12-raspberrypi </div><div>Checking for program 'arm-rtems4.12-gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program 'arm-rtems4.12-g++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ </div><div>Checking for program 'arm-rtems4.12-gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program 'arm-rtems4.12-ld' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ld </div><div>Checking for program 'arm-rtems4.12-ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar </div><div>Checking for program 'arm-rtems4.12-nm' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-nm </div><div>Checking for program 'arm-rtems4.12-objdump' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-objdump </div><div>Checking for program 'arm-rtems4.12-objcopy' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-objcopy </div><div>Checking for program 'arm-rtems4.12-readelf' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-readelf </div><div>Checking for program 'arm-rtems4.12-strip' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-strip </div><div>Checking for program 'rtems-ld' : /home/alan/rtems/tools/4.12/bin/rtems-ld </div><div>Checking for program 'rtems-tld' : /home/alan/rtems/tools/4.12/bin/rtems-tld </div><div>Checking for program 'rtems-bin2c' : /home/alan/rtems/bsps/4.12/bin/rtems-bin2c </div><div>Checking for program 'tar' : /bin/tar </div><div>Checking for program 'gcc, cc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program 'ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar </div><div>Checking for program 'g++, c++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ </div><div>Checking for program 'gas, gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Compiler version (arm-rtems4.12-gcc) : 6.0.1 20160415 (RTEMS 4.12, RSB 8bcc58b249fbf1f6e7bbd4151d9cf9b04c94b87e, Newlib 2.4.0) </div><div>Checking for RTEMS CPU options header : ok </div><div>Checking for RTEMS_DEBUG : no </div><div>Checking for RTEMS_MULTIPROCESSING : no </div><div>Checking for RTEMS_NEWLIB : yes </div><div>Checking for RTEMS_POSIX_API : yes </div><div>Checking for RTEMS_SMP : no </div><div>Checking for RTEMS_NETWORKING : yes </div><div>Checking for RTEMS header : ok </div><div>Board Support Package : arm-rtems4.12-raspberrypi2 </div><div>Checking for program 'gcc, cc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Checking for program 'ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar </div><div>Checking for program 'g++, c++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ </div><div>Checking for program 'gas, gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc </div><div>Compiler version (arm-rtems4.12-gcc) : 6.0.1 20160415 (RTEMS 4.12, RSB 8bcc58b249fbf1f6e7bbd4151d9cf9b04c94b87e, Newlib 2.4.0) </div><div>Checking for RTEMS CPU options header : ok </div><div>Checking for RTEMS_DEBUG : no </div><div>Checking for RTEMS_MULTIPROCESSING : no </div><div>Checking for RTEMS_NEWLIB : yes </div><div>Checking for RTEMS_POSIX_API : yes </div><div>Checking for RTEMS_SMP : no </div><div>Checking for RTEMS_NETWORKING : yes </div><div>Checking for RTEMS header : ok </div><div>'configure' finished successfully (8.683s)</div><div>No handlers could be found for logger "cfg"</div><div><br></div><div><br></div><div>alan@ubuntu:~/rtems/apps/rki$ waf</div><div>Waf: Entering directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi2'</div><div>[ 1/16] Creating build/arm-rtems4.12-raspberrypi2/tarfile.o</div><div>[ 2/16] Compiling init.c</div><div>[ 3/16] Compiling rtems_net.c</div><div>[ 4/16] Compiling rtems_net_svc.c</div><div>[ 5/16] Compiling local_shell_cmds.c</div><div>[ 6/16] Compiling filesys.c</div><div>[ 7/16] Compiling ramdisk.c</div><div>[ 8/16] Compiling nvramdisk.c</div><div>[ 9/16] Compiling task_cmd.c</div><div>[10/16] Compiling hello_cmd.c</div><div>[11/16] Compiling dhrystone_cmd.c</div><div>[12/16] Compiling whetstone_cmd.c</div><div>[13/16] Compiling benchmarks.c</div><div>[15/16] Linking build/arm-rtems4.12-raspberrypi2/rki.elf</div><div>[16/16] Compiling build/arm-rtems4.12-raspberrypi2/rki.elf</div><div>Waf: Leaving directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi2'</div><div>'build-arm-rtems4.12-raspberrypi2' finished successfully (4.707s)</div><div>Waf: Entering directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi'</div><div>[ 1/16] Creating build/arm-rtems4.12-raspberrypi/tarfile.o</div><div>[ 2/16] Compiling init.c</div><div>[ 3/16] Compiling rtems_net.c</div><div>[ 4/16] Compiling rtems_net_svc.c</div><div>[ 5/16] Compiling local_shell_cmds.c</div><div>[ 6/16] Compiling filesys.c</div><div>[ 7/16] Compiling ramdisk.c</div><div>[ 8/16] Compiling nvramdisk.c</div><div>[ 9/16] Compiling task_cmd.c</div><div>[10/16] Compiling hello_cmd.c</div><div>[11/16] Compiling dhrystone_cmd.c</div><div>[12/16] Compiling whetstone_cmd.c</div><div>[13/16] Compiling benchmarks.c</div><div>[15/16] Linking build/arm-rtems4.12-raspberrypi/rki.elf</div><div>[16/16] Compiling build/arm-rtems4.12-raspberrypi/rki.elf</div><div>Waf: Leaving directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi'</div><div>'build-arm-rtems4.12-raspberrypi' finished successfully (4.491s)</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 5:17 AM, Mudit Jain <span dir="ltr"><<a href="mailto:muditjain18011995@gmail.com" target="_blank">muditjain18011995@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi All,<br><br></div><div>For raspberry pi bsp, the RKI image using <a href="https://github.com/alanc98/rki" target="_blank">https://github.com/alanc98/rki</a> is successfully build by modifying the Makefile as per the instructions given in the same . <br><br></div><div>However when I try the same for raspberry pi 2 bsp, the build fails with the following error : <br><br></div>------------------------------------------------------------------------------------------------------------------------------------------<br>mudit@mudit-HP-Pavilion-g6-Notebook-PC:~/Desktop/sandbox/rki$ make ARCH=arm-rtems4.12 BSP=raspberrypi2 RTEMS_TOOL_BASE=/home/mudit/Desktop/sandbox/rtems-4.12 RTEMS_BSP_BASE=/home/mudit/Desktop/sandbox/rtems-4.12<br>arm-rtems4.12-gcc -Wa,-a=legacy-build/arm-rtems4.12-raspberrypi2/init.lis -march=armv7-a -mthumb -mfpu=neon -mfloat-abi=hard -mtune=cortex-a7 -D__ARM__ --pipe -B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/raspberrypi2/lib -specs bsp_specs -qrtems -Wall -I. -Iinclude/ -I. -g -O2 -c -o legacy-build/arm-rtems4.12-raspberrypi2/init.o init.c<br>init.c:23:24: fatal error: netinet/in.h: No such file or directory<br> #include <netinet/in.h><br> ^<br>compilation terminated.<br>make: *** [init.o] Error 1<br>-----------------------------------------------------------------------------------------------------------------------------------------------<br><br></div>I have build RTEMS for Raspberry PI 2 with the following parameters : <br>$sandbox/rtems/configure --target=arm-rtems4.12 --prefix="$sandbox/<br>rtems-4.12" --enable-networking --enable-rtemsbsp=raspberrypi2<br><div><br></div><div>The build is successful, however when I try building the rki it gives out the above error. <br><br>Can anyone help me with this issue. <br></div><div><br></div><div>Thanks<br><br></div></div>
</blockquote></div><br></div>