Re: Question w.r.t. crash inside select call from libbsd.
On 1/31/23 07:30, Sebastian Huber wrote: so with zone being NULL the crash is expected here. However I'm still curious if this is libbsd issue or my issue with naive configuration? Did you use select() before libbsd is initialized? Do you have more than 64 file descriptors? In this case the fd set type is too small and you have a stack overflow. And this is exactly what was happening and why I increase STACK size insanely. Anyway, thanks to your help, this is no longer happening. Which branch of libbsd do you use? Maybe try out the other branch as well. master. I've thought this is were development happens, isn't it? Also noted interesting thing. If I modify buildset to remove all USB, I still get linked error USB related (missing functions) due to functions being used from device-nexus.h. Is this current behavior or have I did anything wrong again? E.g. stm32h7 USB setup in libbsd is wrong for my board (causes RTEMS crash) so I've tried to disable that by build set modification (all dev_usb* = off) and this does not helped hence I've modified device-nexus.h also to not use dwg at all. Hmm, looks like patch like attach may solve the issue? At least it did for my case here. But I don't know if this is the right way to attack this issue. From the 16MiB you already waste 4MiB for unused features if you use the latest 6-freebsd-12 branch of libbsd. No, master here. Also I've not attempted to optimize for size yet as the project is currently still not done yet. Thanks! Karel diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h index d98e6f76..11f74771 100644 --- a/rtemsbsd/include/bsp/nexus-devices.h +++ b/rtemsbsd/include/bsp/nexus-devices.h @@ -187,6 +187,7 @@ RTEMS_BSD_DRIVER_USB_MASS; RTEMS_BSD_DEFINE_NEXUS_DEVICE(stmac, 0, 0, NULL); SYSINIT_DRIVER_REFERENCE(ukphy, miibus); +#if defined(RTEMS_BSD_MODULE_DEV_USB_CONTROLLER) static const rtems_bsd_device_resource dwcotg_res[] = { { .type = RTEMS_BSD_RES_MEMORY, @@ -200,6 +201,8 @@ static const rtems_bsd_device_resource dwcotg_res[] = { }; RTEMS_BSD_DEFINE_NEXUS_DEVICE(dwcotg, 0, RTEMS_ARRAY_SIZE(dwcotg_res), dwcotg_res); +#endif + RTEMS_BSD_DRIVER_ST_SDMMC(0, SDMMC1_BASE, DLYB_SDMMC1_BASE, SDMMC1_IRQn); RTEMS_BSD_DRIVER_MMC; RTEMS_BSD_DRIVER_USB; ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel
[PATCH rtems-source-builder] Revert github tarball hash changes
GitHub has reverted the change that caused all these tarball hashes to change and so we follow suit. --- bare/config/devel/capstone-4.0.1-1.cfg| 2 +- bare/config/devel/gcc-12-newlib-head.cfg | 4 ++-- bare/config/devel/qemu-couverture-git-1.cfg | 2 +- bare/config/devel/spike-1.1.0.cfg | 2 +- bare/config/devel/swig-4.0.1.cfg | 2 +- rtems/config/graphics/microwindows-0.93-dev-1.cfg | 2 +- rtems/config/tools/rtems-binutils-2.36.cfg| 2 +- rtems/config/tools/rtems-binutils-head.cfg| 2 +- rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-10.4-newlib-head.cfg | 2 +- rtems/config/tools/rtems-gcc-12-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 4 ++-- rtems/config/tools/rtems-gdb-head.cfg | 2 +- source-builder/config/capstone-1-1.cfg| 2 +- 14 files changed, 18 insertions(+), 18 deletions(-) diff --git a/bare/config/devel/capstone-4.0.1-1.cfg b/bare/config/devel/capstone-4.0.1-1.cfg index 3a7c6bc..9f3627c 100644 --- a/bare/config/devel/capstone-4.0.1-1.cfg +++ b/bare/config/devel/capstone-4.0.1-1.cfg @@ -19,7 +19,7 @@ # Set source from github. # %source set capstone --rsb-file=capstone-%{capstone_version}.tar.gz https://github.com/aquynh/capstone/archive/%{capstone_version}.tar.gz -%hash sha512 capstone-%{capstone_version}.tar.gz 296c90fcca96117b710472fb55881cb932f4f1d45e847647c2357bfa15bf36fd7f4584db5ffdabf85703d9840e65085ba76f387e6a8e0af941a344dcf95c +%hash sha512 capstone-%{capstone_version}.tar.gz 43c52024065b41b45eff9423341db3f3d5163fa7aa01b360faa30437786740c8f2c34c36faa04dced5308e09d8bd78df3bad0ab9c06f98612169edb176f83c36 # # The build instructions. diff --git a/bare/config/devel/gcc-12-newlib-head.cfg b/bare/config/devel/gcc-12-newlib-head.cfg index d50553d..ce168ea 100644 --- a/bare/config/devel/gcc-12-newlib-head.cfg +++ b/bare/config/devel/gcc-12-newlib-head.cfg @@ -5,7 +5,7 @@ %define gcc_external 1 %define gcc_expand_name gnu-mirror-gcc-%{gcc_version} %source set gcc --rsb-file=%{gcc_expand_name}.tar.gz https://codeload.github.com/RTEMS/gnu-mirror-gcc/tar.gz/%{gcc_version} -%hash sha512 %{gcc_expand_name}.tar.gz 2f78955344634e3d13a34ae8e724a61761dbc71a88e41916192e6c9d01508014ded06e32a9b640d203b6a8e989ec5410bda32d0469f4b3fe5bf20ae63ad9de21 +%hash sha512 %{gcc_expand_name}.tar.gz f9eb91029c31ed2ca3c4ce2066d99352f63f55120aaad295b58621786fe76228d182a4421292fa95007ac6b6529a589795fe3e794ac77b0b86f9cf9286125e36 %patch add gcc -p1 https://devel.rtems.org/raw-attachment/ticket/4196/0001-Back-port-v1-of-gcov-tool-merge-stream-to-GCC-12.patch %hash sha512 0001-Back-port-v1-of-gcov-tool-merge-stream-to-GCC-12.patch 413f14374856f8bfd2bb94a56f1860fff8fe9a936f33c96fdf6a5a0c5a30e2cf7d05026d0338e8b30015a93d80169a602397076b947c8292ac5b5cdc2237ec4e @@ -31,7 +31,7 @@ %define newlib_external 1 %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version} %source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version} -%hash sha512 newlib-%{newlib_version}.tar.gz 051496b686c0acaf1e5fb4f63155aa35357bbe71017f827d6e4113138fec964b083f29c880c3ced9db6e09dc6b3b5bc11ea7d9e9e2987ce015ac2784c2905082 +%hash sha512 newlib-%{newlib_version}.tar.gz 0e142b06b855b78729c3319e31cf5c15b48cea1f90e001ae1e2d61793c496374065c5658e835e6277ae0739af22ea397feb2c1bc2509a6a80ee6c03818efbf55 %define with_threads 1 %define with_plugin 0 diff --git a/bare/config/devel/qemu-couverture-git-1.cfg b/bare/config/devel/qemu-couverture-git-1.cfg index c6fbe1f..bb9b7a6 100644 --- a/bare/config/devel/qemu-couverture-git-1.cfg +++ b/bare/config/devel/qemu-couverture-git-1.cfg @@ -29,7 +29,7 @@ # Set Couverture-Qemu source from github. # %source set qemu --rsb-file=qemu-couverture-%{qemu_version}.tar.gz https://github.com/AdaCore/qemu/archive/%{qemu_version}.tar.gz -%hash sha512 qemu-couverture-%{qemu_version}.tar.gz e26959cb55ae0c565c299ec38fe86b7bf85bdb246bfc99f0fcd22e1baaebaa05e96a46b3781443678fb63de8e4b3b7b0abc30d717eda6eef216a53fcabab47c0 +%hash sha512 qemu-couverture-%{qemu_version}.tar.gz 4b1877f1e8a10508b161a2b65f8e862e2ffa5bfc36cb458cdcad4e8a71a384bbb28e7fb50555008b023691b8187d252870586b1435e31989d059692f53ad6e1c # # The Qemu build instructions. We use 4.x.x Release 1. diff --git a/bare/config/devel/spike-1.1.0.cfg b/bare/config/devel/spike-1.1.0.cfg index 5a8cae0..73cf3c2 100644 --- a/bare/config/devel/spike-1.1.0.cfg +++ b/bare/config/devel/spike-1.1.0.cfg @@ -10,7 +10,7 @@ %define spike_version 530af85d83781a3dae31a4ace84a573ec255fefa -%hash sha512 spike-%{spike_version}.tar.gz On2IePT7owbakS9iM4uQ3tjc6v7bJtXFtenCOw274T8vzLLE6q1rzMdzixlvYBVubu13c8+vINwffeca1IYD4A== +%hash sha512 spike-%{spike_version}.tar.gz D+9XugRwrZJ8undjx3x3CILr4VSdeaNsTTUZYeENFPZy6MG7TiQAY5umaUr/oOr6vWCq7YjFhqwjPI+fcieqYw== # # The spike bui
Re: [PATCH rtems-source-builder] Revert github tarball hash changes
ok. do we have a ticket for this problem? Someone can push this, or I'll try to get to it tomorrow some time. On Tue, Jan 31, 2023 at 8:58 AM Kinsey Moore wrote: > > GitHub has reverted the change that caused all these tarball hashes to > change and so we follow suit. > --- > bare/config/devel/capstone-4.0.1-1.cfg| 2 +- > bare/config/devel/gcc-12-newlib-head.cfg | 4 ++-- > bare/config/devel/qemu-couverture-git-1.cfg | 2 +- > bare/config/devel/spike-1.1.0.cfg | 2 +- > bare/config/devel/swig-4.0.1.cfg | 2 +- > rtems/config/graphics/microwindows-0.93-dev-1.cfg | 2 +- > rtems/config/tools/rtems-binutils-2.36.cfg| 2 +- > rtems/config/tools/rtems-binutils-head.cfg| 2 +- > rtems/config/tools/rtems-gcc-10-newlib-head.cfg | 4 ++-- > rtems/config/tools/rtems-gcc-10.4-newlib-head.cfg | 2 +- > rtems/config/tools/rtems-gcc-12-newlib-head.cfg | 4 ++-- > rtems/config/tools/rtems-gcc-head-newlib-head.cfg | 4 ++-- > rtems/config/tools/rtems-gdb-head.cfg | 2 +- > source-builder/config/capstone-1-1.cfg| 2 +- > 14 files changed, 18 insertions(+), 18 deletions(-) > > diff --git a/bare/config/devel/capstone-4.0.1-1.cfg > b/bare/config/devel/capstone-4.0.1-1.cfg > index 3a7c6bc..9f3627c 100644 > --- a/bare/config/devel/capstone-4.0.1-1.cfg > +++ b/bare/config/devel/capstone-4.0.1-1.cfg > @@ -19,7 +19,7 @@ > # Set source from github. > # > %source set capstone --rsb-file=capstone-%{capstone_version}.tar.gz > https://github.com/aquynh/capstone/archive/%{capstone_version}.tar.gz > -%hash sha512 capstone-%{capstone_version}.tar.gz > 296c90fcca96117b710472fb55881cb932f4f1d45e847647c2357bfa15bf36fd7f4584db5ffdabf85703d9840e65085ba76f387e6a8e0af941a344dcf95c > +%hash sha512 capstone-%{capstone_version}.tar.gz > 43c52024065b41b45eff9423341db3f3d5163fa7aa01b360faa30437786740c8f2c34c36faa04dced5308e09d8bd78df3bad0ab9c06f98612169edb176f83c36 > > # > # The build instructions. > diff --git a/bare/config/devel/gcc-12-newlib-head.cfg > b/bare/config/devel/gcc-12-newlib-head.cfg > index d50553d..ce168ea 100644 > --- a/bare/config/devel/gcc-12-newlib-head.cfg > +++ b/bare/config/devel/gcc-12-newlib-head.cfg > @@ -5,7 +5,7 @@ > %define gcc_external 1 > %define gcc_expand_name gnu-mirror-gcc-%{gcc_version} > %source set gcc --rsb-file=%{gcc_expand_name}.tar.gz > https://codeload.github.com/RTEMS/gnu-mirror-gcc/tar.gz/%{gcc_version} > -%hash sha512 %{gcc_expand_name}.tar.gz > 2f78955344634e3d13a34ae8e724a61761dbc71a88e41916192e6c9d01508014ded06e32a9b640d203b6a8e989ec5410bda32d0469f4b3fe5bf20ae63ad9de21 > +%hash sha512 %{gcc_expand_name}.tar.gz > f9eb91029c31ed2ca3c4ce2066d99352f63f55120aaad295b58621786fe76228d182a4421292fa95007ac6b6529a589795fe3e794ac77b0b86f9cf9286125e36 > > %patch add gcc -p1 > https://devel.rtems.org/raw-attachment/ticket/4196/0001-Back-port-v1-of-gcov-tool-merge-stream-to-GCC-12.patch > %hash sha512 0001-Back-port-v1-of-gcov-tool-merge-stream-to-GCC-12.patch > 413f14374856f8bfd2bb94a56f1860fff8fe9a936f33c96fdf6a5a0c5a30e2cf7d05026d0338e8b30015a93d80169a602397076b947c8292ac5b5cdc2237ec4e > @@ -31,7 +31,7 @@ > %define newlib_external 1 > %define newlib_expand_name sourceware-mirror-newlib-cygwin-%{newlib_version} > %source set newlib --rsb-file=newlib-%{newlib_version}.tar.gz > https://codeload.github.com/RTEMS/sourceware-mirror-newlib-cygwin/tar.gz/%{newlib_version} > -%hash sha512 newlib-%{newlib_version}.tar.gz > 051496b686c0acaf1e5fb4f63155aa35357bbe71017f827d6e4113138fec964b083f29c880c3ced9db6e09dc6b3b5bc11ea7d9e9e2987ce015ac2784c2905082 > +%hash sha512 newlib-%{newlib_version}.tar.gz > 0e142b06b855b78729c3319e31cf5c15b48cea1f90e001ae1e2d61793c496374065c5658e835e6277ae0739af22ea397feb2c1bc2509a6a80ee6c03818efbf55 > > %define with_threads 1 > %define with_plugin 0 > diff --git a/bare/config/devel/qemu-couverture-git-1.cfg > b/bare/config/devel/qemu-couverture-git-1.cfg > index c6fbe1f..bb9b7a6 100644 > --- a/bare/config/devel/qemu-couverture-git-1.cfg > +++ b/bare/config/devel/qemu-couverture-git-1.cfg > @@ -29,7 +29,7 @@ > # Set Couverture-Qemu source from github. > # > %source set qemu --rsb-file=qemu-couverture-%{qemu_version}.tar.gz > https://github.com/AdaCore/qemu/archive/%{qemu_version}.tar.gz > -%hash sha512 qemu-couverture-%{qemu_version}.tar.gz > e26959cb55ae0c565c299ec38fe86b7bf85bdb246bfc99f0fcd22e1baaebaa05e96a46b3781443678fb63de8e4b3b7b0abc30d717eda6eef216a53fcabab47c0 > +%hash sha512 qemu-couverture-%{qemu_version}.tar.gz > 4b1877f1e8a10508b161a2b65f8e862e2ffa5bfc36cb458cdcad4e8a71a384bbb28e7fb50555008b023691b8187d252870586b1435e31989d059692f53ad6e1c > > # > # The Qemu build instructions. We use 4.x.x Release 1. > diff --git a/bare/config/devel/spike-1.1.0.cfg > b/bare/config/devel/spike-1.1.0.cfg > index 5a8cae0..73cf3c2 100644 > --- a/bare/config/devel/spike-1.1.0.cfg > +++ b/bare/config/devel/spike-1.1.0.cfg > @@ -10,7 +10,7 @@ > > %define spike_
[PATCH 1/1] Modified Hello World
From: Viraj Jagadale --- testsuites/samples/hello/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c index 83f6342ab3..575d6e4c46 100644 --- a/testsuites/samples/hello/init.c +++ b/testsuites/samples/hello/init.c @@ -41,7 +41,7 @@ static rtems_task Init( { rtems_print_printer_fprintf_putc(&rtems_test_printer); TEST_BEGIN(); - printf( "Hello World\n" ); + printf( "Hello! This is Viraj from the dark side!\n" ); TEST_END(); rtems_test_exit( 0 ); } -- 2.25.1 ___ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel