Hi, 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.
The RKI waf build has recently been updated, and I just tested it to make sure it builds. 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. Alan ----- Waf config and build output: 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 Setting top to : /home/alan/rtems/apps/rki Setting out to : /home/alan/rtems/apps/rki/build RTEMS Version : 4.12 Architectures : arm-rtems4.12, sparc-rtems4.12 Board Support Package : arm-rtems4.12-raspberrypi Checking for program 'arm-rtems4.12-gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Checking for program 'arm-rtems4.12-g++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ Checking for program 'arm-rtems4.12-gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Checking for program 'arm-rtems4.12-ld' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ld Checking for program 'arm-rtems4.12-ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar Checking for program 'arm-rtems4.12-nm' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-nm Checking for program 'arm-rtems4.12-objdump' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-objdump Checking for program 'arm-rtems4.12-objcopy' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-objcopy Checking for program 'arm-rtems4.12-readelf' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-readelf Checking for program 'arm-rtems4.12-strip' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-strip Checking for program 'rtems-ld' : /home/alan/rtems/tools/4.12/bin/rtems-ld Checking for program 'rtems-tld' : /home/alan/rtems/tools/4.12/bin/rtems-tld Checking for program 'rtems-bin2c' : /home/alan/rtems/bsps/4.12/bin/rtems-bin2c Checking for program 'tar' : /bin/tar Checking for program 'gcc, cc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Checking for program 'ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar Checking for program 'g++, c++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ Checking for program 'gas, gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Compiler version (arm-rtems4.12-gcc) : 6.0.1 20160415 (RTEMS 4.12, RSB 8bcc58b249fbf1f6e7bbd4151d9cf9b04c94b87e, Newlib 2.4.0) Checking for RTEMS CPU options header : ok Checking for RTEMS_DEBUG : no Checking for RTEMS_MULTIPROCESSING : no Checking for RTEMS_NEWLIB : yes Checking for RTEMS_POSIX_API : yes Checking for RTEMS_SMP : no Checking for RTEMS_NETWORKING : yes Checking for RTEMS header : ok Board Support Package : arm-rtems4.12-raspberrypi2 Checking for program 'gcc, cc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Checking for program 'ar' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-ar Checking for program 'g++, c++' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-g++ Checking for program 'gas, gcc' : /home/alan/rtems/tools/4.12/bin/arm-rtems4.12-gcc Compiler version (arm-rtems4.12-gcc) : 6.0.1 20160415 (RTEMS 4.12, RSB 8bcc58b249fbf1f6e7bbd4151d9cf9b04c94b87e, Newlib 2.4.0) Checking for RTEMS CPU options header : ok Checking for RTEMS_DEBUG : no Checking for RTEMS_MULTIPROCESSING : no Checking for RTEMS_NEWLIB : yes Checking for RTEMS_POSIX_API : yes Checking for RTEMS_SMP : no Checking for RTEMS_NETWORKING : yes Checking for RTEMS header : ok 'configure' finished successfully (8.683s) No handlers could be found for logger "cfg" alan@ubuntu:~/rtems/apps/rki$ waf Waf: Entering directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi2' [ 1/16] Creating build/arm-rtems4.12-raspberrypi2/tarfile.o [ 2/16] Compiling init.c [ 3/16] Compiling rtems_net.c [ 4/16] Compiling rtems_net_svc.c [ 5/16] Compiling local_shell_cmds.c [ 6/16] Compiling filesys.c [ 7/16] Compiling ramdisk.c [ 8/16] Compiling nvramdisk.c [ 9/16] Compiling task_cmd.c [10/16] Compiling hello_cmd.c [11/16] Compiling dhrystone_cmd.c [12/16] Compiling whetstone_cmd.c [13/16] Compiling benchmarks.c [15/16] Linking build/arm-rtems4.12-raspberrypi2/rki.elf [16/16] Compiling build/arm-rtems4.12-raspberrypi2/rki.elf Waf: Leaving directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi2' 'build-arm-rtems4.12-raspberrypi2' finished successfully (4.707s) Waf: Entering directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi' [ 1/16] Creating build/arm-rtems4.12-raspberrypi/tarfile.o [ 2/16] Compiling init.c [ 3/16] Compiling rtems_net.c [ 4/16] Compiling rtems_net_svc.c [ 5/16] Compiling local_shell_cmds.c [ 6/16] Compiling filesys.c [ 7/16] Compiling ramdisk.c [ 8/16] Compiling nvramdisk.c [ 9/16] Compiling task_cmd.c [10/16] Compiling hello_cmd.c [11/16] Compiling dhrystone_cmd.c [12/16] Compiling whetstone_cmd.c [13/16] Compiling benchmarks.c [15/16] Linking build/arm-rtems4.12-raspberrypi/rki.elf [16/16] Compiling build/arm-rtems4.12-raspberrypi/rki.elf Waf: Leaving directory `/home/alan/rtems/apps/rki/build/arm-rtems4.12-raspberrypi' 'build-arm-rtems4.12-raspberrypi' finished successfully (4.491s) On Tue, May 24, 2016 at 5:17 AM, Mudit Jain <muditjain18011...@gmail.com> wrote: > Hi All, > > For raspberry pi bsp, the RKI image using https://github.com/alanc98/rki > is successfully build by modifying the Makefile as per the instructions > given in the same . > > However when I try the same for raspberry pi 2 bsp, the build fails with > the following error : > > > ------------------------------------------------------------------------------------------------------------------------------------------ > 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 > 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 > init.c:23:24: fatal error: netinet/in.h: No such file or directory > #include <netinet/in.h> > ^ > compilation terminated. > make: *** [init.o] Error 1 > > ----------------------------------------------------------------------------------------------------------------------------------------------- > > I have build RTEMS for Raspberry PI 2 with the following parameters : > $sandbox/rtems/configure --target=arm-rtems4.12 --prefix="$sandbox/ > rtems-4.12" --enable-networking --enable-rtemsbsp=raspberrypi2 > > The build is successful, however when I try building the rki it gives out > the above error. > > Can anyone help me with this issue. > > Thanks > >
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel