RKI Image for Raspberry PI 2
Pavel Pisa
ppisa4lists at pikron.com
Tue May 24 12:23:31 UTC 2016
Hello Mudit,
I do not have public RTEMS repo for RPi at this moment.
I run against mainline and all patches are in the series
[PATCH v2 0/7] Raspberry Pi VideoCore support for console on HDMI output
But I can prepare my personal fork on GitHub
if it helps with testing. For my TMS570 I use my previous
GSoC student GitHub repo to not pollute space with yet
another copy. But synchronization through public repo would
probably help RPi as well.
Best wishes,
Pavel
On Tuesday 24 of May 2016 14:09:48 Mudit Jain wrote:
> Hi Pavel,
>
> I do have a RPI2 and can help in testing your series.
>
> 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.
>
> Thanks
>
>
> On Tue, May 24, 2016 at 5:29 PM, Mudit Jain <muditjain18011995 at gmail.com>
>
> wrote:
> > In my scenario the build fails because the networking is disabled. I
> > again have done a clean build again as follows:
> >
> > make clean
> > ../rtems/configure --target=arm-rtems4.12 --enable-rtemsbsp=raspberrypi2
> > --enable-tests=samples --enable-networking --enable-posix
> > --prefix=/home/mudit/Desktop/sandbox/rtems-4.12
> > mudit at 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
> > Setting top to :
> > /home/mudit/Desktop/sandbox/rki Setting out to
> > :
> > /home/mudit/Desktop/sandbox/rki/build
> > RTEMS Version : 4.12
> > Architectures : arm-rtems4.12
> > Board Support Package : arm-rtems4.12-raspberrypi2
> > Checking for program 'arm-rtems4.12-gcc' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc
> > Checking for program 'arm-rtems4.12-g++' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-g++
> > Checking for program 'arm-rtems4.12-gcc' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc
> > Checking for program 'arm-rtems4.12-ld' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ld
> > Checking for program 'arm-rtems4.12-ar' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ar
> > Checking for program 'arm-rtems4.12-nm' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-nm
> > Checking for program 'arm-rtems4.12-objdump' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-objdump
> > Checking for program 'arm-rtems4.12-objcopy' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-objcopy
> > Checking for program 'arm-rtems4.12-readelf' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-readelf
> > Checking for program 'arm-rtems4.12-strip' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-strip
> > Checking for program 'rtems-ld' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-ld
> > Checking for program 'rtems-tld' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-tld
> > Checking for program 'rtems-bin2c' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/rtems-bin2c
> > Checking for program 'tar' : /bin/tar
> > Checking for program 'gcc, cc' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-gcc
> > Checking for program 'ar' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-ar
> > Checking for program 'g++, c++' :
> > /home/mudit/Desktop/sandbox/rtems-4.12/bin/arm-rtems4.12-g++
> > Checking for program 'gas, gcc' :
> > /home/mudit/Desktop/sandbox/rtems-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 : no
> > Checking for RTEMS header : ok
> > 'configure' finished successfully (0.847s)
> >
> > mudit at mudit-HP-Pavilion-g6-Notebook-PC:~/Desktop/sandbox/rki$ waf
> > Waf: Entering directory
> > `/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2'
> > [ 2/16] Compiling init.c
> > [ 6/16] Compiling filesys.c
> > [ 7/16] Compiling ramdisk.c
> > [ 8/16] Compiling nvramdisk.c
> > ../../init.c:23:24: fatal error: netinet/in.h: No such file or directory
> > #include <netinet/in.h>
> > ^
> > compilation terminated.
> >
> > ../../filesys.c:32:25: fatal error: librtemsNfs.h: No such file or
> > directory
> > #include <librtemsNfs.h>
> > ^
> > compilation terminated.
> >
> > Waf: Leaving directory
> > `/home/mudit/Desktop/sandbox/rki/build/arm-rtems4.12-raspberrypi2'
> > Build failed
> > -> task in 'rki.elf' failed (exit status 1):
> > {task 140172592820112: c init.c -> init.c.2.o}
> > ['/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/inclu
> >de', '-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'] -> task in 'rki.elf' failed (exit status 1):
> > {task 140172592964048: c filesys.c -> filesys.c.2.o}
> > ['/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/inclu
> >de', '-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']
> >
> > Even after enabling networking, the resultant build has networking
> > disabled.
> >
> >
> > On Tue, May 24, 2016 at 4:47 PM, Alan Cudmore <alan.cudmore at gmail.com>
> >
> > wrote:
> >> 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 at 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
> >> <muditjain18011995 at 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 at 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
More information about the devel
mailing list