Re: Using helper functions
Oh, yes. Thanks for the heads up. I'll rebuild it. Regards, Tanu Hari Dixit. On Tue, Feb 7, 2017 at 8:14 PM, punit varawrote: > If you are trying to build my gpio sample then its just for arm > architecture and specifically for beagle bone black. Sparc is > completely different architecture so sample won't build in it. > > On Tue, Feb 7, 2017 at 7:12 PM, Tanu Hari Dixit > wrote: > > Hello Punit, > > > > Thank you for the explanation. I did as you suggested. I copied the gpio > > folder to testsuites/samples/ and edited configure.ac, ran bootstrap, > > configure and make for the new build. It ran fine (without errors). > However, > > I could see all executables except for one in > > /home/thd/development/rtems/src/builds/erc32_gpio/sparc- > rtems4.12/c/erc32/testsuites/samples/gpio > > for the gpio application. I am unable to figure out what might be the > fault. > > The bootstrap and configure are as below. The make output is attached. > > Something strange that I observed in the make output is, that unlike > other > > subdirectories in samples, there never appears a line like: > > make[6]: Entering directory > > `/home/thd/development/rtems/src/builds/erc32_gpio/sparc- > rtems4.12/c/erc32/testsuites/samples/gpio' > > Also the gpio folder in > > home/thd/development/rtems/src/builds/erc32_gpio/sparc- > rtems4.12/c/erc32/testsuites/samples/gpio > > just has Makefile in it. > > I (just experimenting) ran the Makefile and I got the following output: > > > > thd@thd-Inspiron-5537:~/development/rtems/src/builds/ > erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio$ > > make > > sparc-rtems4.12-gcc -B../../../../../erc32/lib/ -specs bsp_specs -qrtems > > -DHAVE_CONFIG_H -I. > > -I../../../../../../../../rtems/c/src/../../testsuites/samples/gpio -I.. > > -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall > > -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes > > -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o > > ../../../../../../../../rtems/c/src/../../testsuites/samples/gpio/init.c > > ../../../../../../../../rtems/c/src/../../testsuites/ > samples/gpio/init.c:6:70: > > fatal error: bsp/beagleboneblack.h: No such file or directory > > #include /* Calls the BBB specific library */ > > ^ > > compilation terminated. > > make: *** [init.o] Error 1 > > > > Maybe that is the error I am facing. I don't know how to rectify it. I > > searched for similar errors but found no luck. Can you please help me > with > > this? > > Also, now I am able to understand more and have a feeling that I'll soon > > have a working application that is made by me. Thank you. > > > > Regards, > > Tanu Hari Dixit. > > > > > > OUTPUT: ./bootstrap > > > > ./cpukit > > ./c > > ./c/src/ada-tests > > ./c/src > > ./c/src/make > > ./c/src/lib/libbsp/bfin/bf537Stamp > > ./c/src/lib/libbsp/bfin/eZKit533 > > ./c/src/lib/libbsp/bfin > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/bfin/TLL6527M > > ./c/src/lib/libbsp/mips/malta > > ./c/src/lib/libbsp/mips/jmr3904 > > ./c/src/lib/libbsp/mips/csb350 > > ./c/src/lib/libbsp/mips/rbtx4925 > > ./c/src/lib/libbsp/mips > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/mips/rbtx4938 > > ./c/src/lib/libbsp/mips/hurricane > > ./c/src/lib/libbsp/epiphany > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/epiphany/epiphany_sim > > ./c/src/lib/libbsp/sparc/leon2 > > ./c/src/lib/libbsp/sparc > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/sparc/erc32 > > ./c/src/lib/libbsp/sparc/leon3 > > ./c/src/lib/libbsp/no_cpu > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/no_cpu/no_bsp > > ./c/src/lib/libbsp/sh/shsim > > ./c/src/lib/libbsp/sh/gensh2 > > ./c/src/lib/libbsp/sh/gensh4 > > ./c/src/lib/libbsp/sh > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/sh/gensh1 > > ./c/src/lib/libbsp/moxie > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/moxie/moxiesim > > ./c/src/lib/libbsp/m32c/m32cbsp > > ./c/src/lib/libbsp/m32c > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/nios2 > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/nios2/nios2_iss > > ./c/src/lib/libbsp/arm/altera-cyclone-v > > ./c/src/lib/libbsp/arm/raspberrypi > > ./c/src/lib/libbsp/arm/beagle > > ./c/src/lib/libbsp/arm/edb7312 > > ./c/src/lib/libbsp/arm/gumstix > > ./c/src/lib/libbsp/arm/stm32f4 > > ./c/src/lib/libbsp/arm/csb337 > > ./c/src/lib/libbsp/arm/lpc176x > > ./c/src/lib/libbsp/arm/tms570 > > ./c/src/lib/libbsp/arm/xilinx-zynq > > ./c/src/lib/libbsp/arm/csb336 > > ./c/src/lib/libbsp/arm > > acinclude.m4 is unchanged > > ./c/src/lib/libbsp/arm/lm3s69xx > > ./c/src/lib/libbsp/arm/smdk2410 > > ./c/src/lib/libbsp/arm/gdbarmsim > > ./c/src/lib/libbsp/arm/lpc32xx > > ./c/src/lib/libbsp/arm/rtl22xx > > ./c/src/lib/libbsp/arm/lpc24xx > > ./c/src/lib/libbsp/arm/realview-pbx-a9 > > ./c/src/lib/libbsp/arm/atsam > > ./c/src/lib/libbsp/v850 > >
Re: Using helper functions
If you are trying to build my gpio sample then its just for arm architecture and specifically for beagle bone black. Sparc is completely different architecture so sample won't build in it. On Tue, Feb 7, 2017 at 7:12 PM, Tanu Hari Dixitwrote: > Hello Punit, > > Thank you for the explanation. I did as you suggested. I copied the gpio > folder to testsuites/samples/ and edited configure.ac, ran bootstrap, > configure and make for the new build. It ran fine (without errors). However, > I could see all executables except for one in > /home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio > for the gpio application. I am unable to figure out what might be the fault. > The bootstrap and configure are as below. The make output is attached. > Something strange that I observed in the make output is, that unlike other > subdirectories in samples, there never appears a line like: > make[6]: Entering directory > `/home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio' > Also the gpio folder in > home/thd/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio > just has Makefile in it. > I (just experimenting) ran the Makefile and I got the following output: > > thd@thd-Inspiron-5537:~/development/rtems/src/builds/erc32_gpio/sparc-rtems4.12/c/erc32/testsuites/samples/gpio$ > make > sparc-rtems4.12-gcc -B../../../../../erc32/lib/ -specs bsp_specs -qrtems > -DHAVE_CONFIG_H -I. > -I../../../../../../../../rtems/c/src/../../testsuites/samples/gpio -I.. > -mcpu=cypress -O2 -g -ffunction-sections -fdata-sections -Wall > -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes > -Wnested-externs -MT init.o -MD -MP -MF .deps/init.Tpo -c -o init.o > ../../../../../../../../rtems/c/src/../../testsuites/samples/gpio/init.c > ../../../../../../../../rtems/c/src/../../testsuites/samples/gpio/init.c:6:70: > fatal error: bsp/beagleboneblack.h: No such file or directory > #include /* Calls the BBB specific library */ > ^ > compilation terminated. > make: *** [init.o] Error 1 > > Maybe that is the error I am facing. I don't know how to rectify it. I > searched for similar errors but found no luck. Can you please help me with > this? > Also, now I am able to understand more and have a feeling that I'll soon > have a working application that is made by me. Thank you. > > Regards, > Tanu Hari Dixit. > > > OUTPUT: ./bootstrap > > ./cpukit > ./c > ./c/src/ada-tests > ./c/src > ./c/src/make > ./c/src/lib/libbsp/bfin/bf537Stamp > ./c/src/lib/libbsp/bfin/eZKit533 > ./c/src/lib/libbsp/bfin > acinclude.m4 is unchanged > ./c/src/lib/libbsp/bfin/TLL6527M > ./c/src/lib/libbsp/mips/malta > ./c/src/lib/libbsp/mips/jmr3904 > ./c/src/lib/libbsp/mips/csb350 > ./c/src/lib/libbsp/mips/rbtx4925 > ./c/src/lib/libbsp/mips > acinclude.m4 is unchanged > ./c/src/lib/libbsp/mips/rbtx4938 > ./c/src/lib/libbsp/mips/hurricane > ./c/src/lib/libbsp/epiphany > acinclude.m4 is unchanged > ./c/src/lib/libbsp/epiphany/epiphany_sim > ./c/src/lib/libbsp/sparc/leon2 > ./c/src/lib/libbsp/sparc > acinclude.m4 is unchanged > ./c/src/lib/libbsp/sparc/erc32 > ./c/src/lib/libbsp/sparc/leon3 > ./c/src/lib/libbsp/no_cpu > acinclude.m4 is unchanged > ./c/src/lib/libbsp/no_cpu/no_bsp > ./c/src/lib/libbsp/sh/shsim > ./c/src/lib/libbsp/sh/gensh2 > ./c/src/lib/libbsp/sh/gensh4 > ./c/src/lib/libbsp/sh > acinclude.m4 is unchanged > ./c/src/lib/libbsp/sh/gensh1 > ./c/src/lib/libbsp/moxie > acinclude.m4 is unchanged > ./c/src/lib/libbsp/moxie/moxiesim > ./c/src/lib/libbsp/m32c/m32cbsp > ./c/src/lib/libbsp/m32c > acinclude.m4 is unchanged > ./c/src/lib/libbsp/nios2 > acinclude.m4 is unchanged > ./c/src/lib/libbsp/nios2/nios2_iss > ./c/src/lib/libbsp/arm/altera-cyclone-v > ./c/src/lib/libbsp/arm/raspberrypi > ./c/src/lib/libbsp/arm/beagle > ./c/src/lib/libbsp/arm/edb7312 > ./c/src/lib/libbsp/arm/gumstix > ./c/src/lib/libbsp/arm/stm32f4 > ./c/src/lib/libbsp/arm/csb337 > ./c/src/lib/libbsp/arm/lpc176x > ./c/src/lib/libbsp/arm/tms570 > ./c/src/lib/libbsp/arm/xilinx-zynq > ./c/src/lib/libbsp/arm/csb336 > ./c/src/lib/libbsp/arm > acinclude.m4 is unchanged > ./c/src/lib/libbsp/arm/lm3s69xx > ./c/src/lib/libbsp/arm/smdk2410 > ./c/src/lib/libbsp/arm/gdbarmsim > ./c/src/lib/libbsp/arm/lpc32xx > ./c/src/lib/libbsp/arm/rtl22xx > ./c/src/lib/libbsp/arm/lpc24xx > ./c/src/lib/libbsp/arm/realview-pbx-a9 > ./c/src/lib/libbsp/arm/atsam > ./c/src/lib/libbsp/v850 > acinclude.m4 is unchanged > ./c/src/lib/libbsp/v850/gdbv850sim > ./c/src/lib/libbsp/sparc64 > acinclude.m4 is unchanged > ./c/src/lib/libbsp/sparc64/niagara > ./c/src/lib/libbsp/sparc64/usiii > ./c/src/lib/libbsp/m68k/av5282 > ./c/src/lib/libbsp/m68k/genmcf548x > ./c/src/lib/libbsp/m68k/uC5282 > ./c/src/lib/libbsp/m68k/mvme147s > ./c/src/lib/libbsp/m68k/mcf5329 > ./c/src/lib/libbsp/m68k/mvme147 >
Re: Using helper functions
Hello Joel, > An alternative is to look at the examples-v2 repo. It shows how to > builds RTEMS applications external to the RTEMS tree using waf. > I had tried example-v2 a few days back. I'll try to make an application with the help of it. Thank you. Regards, Tanu Hari Dixit. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Using helper functions
On Mon, Feb 6, 2017 at 9:20 AM, punit varawrote: > On Mon, Feb 6, 2017 at 8:31 PM, Tanu Hari Dixit > wrote: > > Hello Punit, Gedare, > > > I cloned the repo you linked to in your previous mail. However, I am > unable > > to figure out how to run the application. I have kept it outside the > rtems > > tree. I know how executables for tests are made i.e. by the configure > script > > at the top. But I don't know how I will be able to run an application > > outside of testsuites. For example, my question is rtems_gsoc16/gpio has > no > > configure.ac file. > > You don't have to create separate configure.ac. In case of > rtems_gsoc16/gpio copy gpio directory under samples. To execute that > testcase you need to add one line > > gpio/Makefile > > in configure.ac at testsuits/samples/configure.ac > > Then do bootstrap > > $ ./bootstrap; ./bootstrap -p > > I hope you know where to do it. > > > What example did you take to learn how to make an application (and run > it)? > > I wasn't able to find any app at that time so I have figured out own > my own and created this simple app to test GPIO. Carefully follow my > testcase I think you will understand once you compile. > > An alternative is to look at the examples-v2 repo. It shows how to builds RTEMS applications external to the RTEMS tree using waf. --joel > > On Thu, Feb 2, 2017 at 11:16 PM, Gedare Bloom wrote: > >> > >> see rtems.git/testsuites/fstests for examples of some filesystem usage. > >> > >> On Thu, Feb 2, 2017 at 12:03 PM, punit vara > wrote: > >> > Hi > >> > > >> > Which file system API you are talking about ? Can you please send me > >> > the file location ? > >> > > >> > I have used some of GPIO APIs for BBB board. Have a look at this > example > >> > > >> > https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c > >> > > >> > Similarly you can create application for any APIs. > >> > > >> > P.S. Always add devel mailing list as CC so that other person also can > >> > help you :) > >> > > >> > Thanks > >> > PV > >> > > >> > On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixit < > tokencol...@gmail.com> > >> > wrote: > >> >> Hello Punit, > >> >> I have been reading the docs as you suggested. But I want to execute > >> >> the various directives and helper functions and test for myself in an > >> >> isolated example. For example I want to test the various API > functions > >> >> available for the filesystem (In memory Filesystem) in RTEMS. How do > I > >> >> go about doing that? > >> >> Thanks, > >> >> Tanu Hari Dixit. > >> > ___ > >> > devel mailing list > >> > devel@rtems.org > >> > http://lists.rtems.org/mailman/listinfo/devel > > > > > ___ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel > ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Using helper functions
On Mon, Feb 6, 2017 at 8:31 PM, Tanu Hari Dixitwrote: > Hello Punit, Gedare, > I cloned the repo you linked to in your previous mail. However, I am unable > to figure out how to run the application. I have kept it outside the rtems > tree. I know how executables for tests are made i.e. by the configure script > at the top. But I don't know how I will be able to run an application > outside of testsuites. For example, my question is rtems_gsoc16/gpio has no > configure.ac file. You don't have to create separate configure.ac. In case of rtems_gsoc16/gpio copy gpio directory under samples. To execute that testcase you need to add one line gpio/Makefile in configure.ac at testsuits/samples/configure.ac Then do bootstrap $ ./bootstrap; ./bootstrap -p I hope you know where to do it. > What example did you take to learn how to make an application (and run it)? I wasn't able to find any app at that time so I have figured out own my own and created this simple app to test GPIO. Carefully follow my testcase I think you will understand once you compile. > On Thu, Feb 2, 2017 at 11:16 PM, Gedare Bloom wrote: >> >> see rtems.git/testsuites/fstests for examples of some filesystem usage. >> >> On Thu, Feb 2, 2017 at 12:03 PM, punit vara wrote: >> > Hi >> > >> > Which file system API you are talking about ? Can you please send me >> > the file location ? >> > >> > I have used some of GPIO APIs for BBB board. Have a look at this example >> > >> > https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c >> > >> > Similarly you can create application for any APIs. >> > >> > P.S. Always add devel mailing list as CC so that other person also can >> > help you :) >> > >> > Thanks >> > PV >> > >> > On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixit >> > wrote: >> >> Hello Punit, >> >> I have been reading the docs as you suggested. But I want to execute >> >> the various directives and helper functions and test for myself in an >> >> isolated example. For example I want to test the various API functions >> >> available for the filesystem (In memory Filesystem) in RTEMS. How do I >> >> go about doing that? >> >> Thanks, >> >> Tanu Hari Dixit. >> > ___ >> > devel mailing list >> > devel@rtems.org >> > http://lists.rtems.org/mailman/listinfo/devel > > ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Using helper functions
Hello Gedare, > see rtems.git/testsuites/fstests for examples of some filesystem usage. I'll look into this testsuite in more depth. Thanks. Regards, Tanu Hari Dixit. On Mon, Feb 6, 2017 at 8:31 PM, Tanu Hari Dixitwrote: > Hello Punit, Gedare, > > Thanks for the answer. > > Which file system API you are talking about ? Can you please send me >> the file location ? > > > The file system I am talking about is In-Memory FileSystem (imfs). The > file location is: > /home/thd/development/rtems/src/rtems/cpukit/libfs/src/imfs > > I cloned the repo you linked to in your previous mail. However, I am > unable to figure out how to run the application. I have kept it outside the > rtems tree. I know how executables for tests are made i.e. by the configure > script at the top. But I don't know how I will be able to run an > application outside of testsuites. For example, my question is > rtems_gsoc16/gpio has no configure.ac file. I don't understand how to > generate make file in this case. Please help me with this. > > What example did you take to learn how to make an application (and run > it)? > > Thank you so much. > Tanu Hari Dixit. > > On Thu, Feb 2, 2017 at 11:16 PM, Gedare Bloom wrote: > >> see rtems.git/testsuites/fstests for examples of some filesystem usage. >> >> On Thu, Feb 2, 2017 at 12:03 PM, punit vara wrote: >> > Hi >> > >> > Which file system API you are talking about ? Can you please send me >> > the file location ? >> > >> > I have used some of GPIO APIs for BBB board. Have a look at this example >> > >> > https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c >> > >> > Similarly you can create application for any APIs. >> > >> > P.S. Always add devel mailing list as CC so that other person also can >> > help you :) >> > >> > Thanks >> > PV >> > >> > On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixit >> wrote: >> >> Hello Punit, >> >> I have been reading the docs as you suggested. But I want to execute >> >> the various directives and helper functions and test for myself in an >> >> isolated example. For example I want to test the various API functions >> >> available for the filesystem (In memory Filesystem) in RTEMS. How do I >> >> go about doing that? >> >> Thanks, >> >> Tanu Hari Dixit. >> > ___ >> > devel mailing list >> > devel@rtems.org >> > http://lists.rtems.org/mailman/listinfo/devel >> > > ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Using helper functions
see rtems.git/testsuites/fstests for examples of some filesystem usage. On Thu, Feb 2, 2017 at 12:03 PM, punit varawrote: > Hi > > Which file system API you are talking about ? Can you please send me > the file location ? > > I have used some of GPIO APIs for BBB board. Have a look at this example > > https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c > > Similarly you can create application for any APIs. > > P.S. Always add devel mailing list as CC so that other person also can > help you :) > > Thanks > PV > > On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixit > wrote: >> Hello Punit, >> I have been reading the docs as you suggested. But I want to execute >> the various directives and helper functions and test for myself in an >> isolated example. For example I want to test the various API functions >> available for the filesystem (In memory Filesystem) in RTEMS. How do I >> go about doing that? >> Thanks, >> Tanu Hari Dixit. > ___ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
Re: Using helper functions
Hi Which file system API you are talking about ? Can you please send me the file location ? I have used some of GPIO APIs for BBB board. Have a look at this example https://github.com/punitvara/rtems_gsoc16/blob/master/gpio/init.c Similarly you can create application for any APIs. P.S. Always add devel mailing list as CC so that other person also can help you :) Thanks PV On Wed, Feb 1, 2017 at 11:25 PM, Tanu Hari Dixitwrote: > Hello Punit, > I have been reading the docs as you suggested. But I want to execute > the various directives and helper functions and test for myself in an > isolated example. For example I want to test the various API functions > available for the filesystem (In memory Filesystem) in RTEMS. How do I > go about doing that? > Thanks, > Tanu Hari Dixit. ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel