<div dir="ltr"><div><div><div>Hi Pavel,<br><br></div>I do have a RPI2 and can help in testing your series.<br><br>Could you provide me with the details of your repo and also the tests that are to be performed so that your series can be ACKed for mainline integration.<br></div></div><div><br></div>Thanks <br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 5:29 PM, 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>In my scenario the build fails because the networking is disabled. I again have done a clean build again as follows: <br><br></div>make clean<br>../rtems/configure --target=arm-rtems4.12 --enable-rtemsbsp=raspberrypi2 --enable-tests=samples --enable-networking --enable-posix --prefix=/home/mudit/Desktop/sandbox/rtems-4.12<br>mudit@mudit-HP-Pavilion-g6-Notebook-PC:~/Desktop/sandbox/rki$ waf configure --rtems=$sandbox/rtems-4.12 --rtems-tools=/home/mudit/Desktop/sandbox/rtems-4.12 --rtems-version=4.12 --rtems-bsps=arm/raspberrypi2<br>Setting top to                           : /home/mudit/Desktop/sandbox/rki <br>Setting out to                           : /home/mudit/Desktop/sandbox/rki/build <br>RTEMS Version                            : 4.12 <br>Architectures                            : arm-rtems4.12 <br>Board Support Package                    : arm-rtems4.12-raspberrypi2 <br>Checking for program 'arm-rtems4.12-gcc' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc <br>Checking for program 'arm-rtems4.12-g++' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-g++ <br>Checking for program 'arm-rtems4.12-gcc' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc <br>Checking for program 'arm-rtems4.12-ld'  : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ld <br>Checking for program 'arm-rtems4.12-ar'  : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ar <br>Checking for program 'arm-rtems4.12-nm'  : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-nm <br>Checking for program 'arm-rtems4.12-objdump' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-objdump <br>Checking for program 'arm-rtems4.12-objcopy' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-objcopy <br>Checking for program 'arm-rtems4.12-readelf' : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-readelf <br>Checking for program 'arm-rtems4.12-strip'   : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-strip <br>Checking for program 'rtems-ld'              : /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-ld <br>Checking for program 'rtems-tld'             : /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-tld <br>Checking for program 'rtems-bin2c'           : /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-bin2c <br><span class="">Checking for program 'tar'                   : /bin/tar <br></span>Checking for program 'gcc, cc'               : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc <br>Checking for program 'ar'                    : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ar <br>Checking for program 'g++, c++'              : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-g++ <br>Checking for program 'gas, gcc'              : /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc <br><span class="">Compiler version (arm-rtems4.12-gcc)         : 6.0.1 20160415 (RTEMS 4.12, RSB 8bcc58b249fbf1f6e7bbd4151d9cf9b04c94b87e, Newlib 2.4.0) <br>Checking for RTEMS CPU options header        : ok <br>Checking for RTEMS_DEBUG                     : no <br>Checking for RTEMS_MULTIPROCESSING           : no <br>Checking for RTEMS_NEWLIB                    : yes <br>Checking for RTEMS_POSIX_API                 : yes <br>Checking for RTEMS_SMP                       : no <br></span>Checking for RTEMS_NETWORKING                : no <br><span class="">Checking for RTEMS header                    : ok <br></span>'configure' finished successfully (0.847s)<br><br>mudit@mudit-HP-Pavilion-g6-Notebook-PC:~/Desktop/sandbox/rki$ waf<br>Waf: Entering directory `/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2'<br>[ 2/16] Compiling init.c<span class=""><br>[ 6/16] Compiling filesys.c<br>[ 7/16] Compiling ramdisk.c<br>[ 8/16] Compiling nvramdisk.c<br></span>../../init.c:23:24: fatal error: netinet/in.h: No such file or directory<span class=""><br> #include <netinet/in.h><br>                        ^<br>compilation terminated.<br><br></span>../../filesys.c:32:25: fatal error: librtemsNfs.h: No such file or directory<br> #include <librtemsNfs.h><br>                         ^<br>compilation terminated.<br><br>Waf: Leaving directory `/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2'<br>Build failed<br> -> task in 'rki.elf' failed (exit status 1): <br>    {task 140172592820112: c init.c -> init.c.2.o}<br>['/home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc', '-qrtems', '-B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/lib/', '-B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/raspberrypi2/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a7', '-mtune=cortex-a7', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '-O0', '-g', '-I/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2/include', '-I/home/mudit/Desktop/sandbox/rki/include', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1', '../../init.c', '-c', '-o', '/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2/init.c.2.o']<br> -> task in 'rki.elf' failed (exit status 1): <br>    {task 140172592964048: c filesys.c -> filesys.c.2.o}<br>['/home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc', '-qrtems', '-B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/lib/', '-B/home/mudit/Desktop/sandbox/rtems-4.12/arm-rtems4.12/raspberrypi2/lib/', '--specs', 'bsp_specs', '-march=armv7-a', '-march=armv7-a', '-mthumb', '-mthumb', '-mfpu=neon', '-mfpu=neon', '-mfloat-abi=hard', '-mfloat-abi=hard', '-mtune=cortex-a7', '-mtune=cortex-a7', '-ffunction-sections', '-ffunction-sections', '-fdata-sections', '-fdata-sections', '-O0', '-g', '-I/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2/include', '-I/home/mudit/Desktop/sandbox/rki/include', '-DHAVE_RTEMS_SCORE_CPUOPTS_H=1', '-DHAVE_RTEMS_H=1', '../../filesys.c', '-c', '-o', '/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2/filesys.c.2.o']<br><br></div>Even after enabling networking, the resultant build has networking disabled.<br><div><div><br></div></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 4:47 PM, Alan Cudmore <span dir="ltr"><<a href="mailto:alan.cudmore@gmail.com" target="_blank">alan.cudmore@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">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><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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>