Help regarding Building x86_64 BSP

2023-03-07 Thread Siddharth Khattar
Hello all,
So I was aiming to make a project to improve the amd64 BSP for RTEMS
(modify it according to ACPI standards along with other stuff) but first I
would need to build it. Unfortunately there was no way to build it natively
within RTEMS source. So, I needed to install QEMU and had to build the UEFI
firmware,OVMF by Tianocore in order to build it. Unfortunately, I am stuck
on this step as building edk2 on Ubuntu 22.04 is causing problems as with
the gcc version. To be exact, with the use of variable length arrays (VLAs)
in the code. Starting with GCC version 8.0, VLA's are not supported by
default and generate warnings or errors when used.

 An alternate path would be to use docker and build it using Stuart within
that. And the last possible option would be to build it through a Ubuntu
18.0 VM. I was wondering if anyone in the community has knowledge regarding
the x86_64 BSP for RTEMS would be able to guide me with this? as the docs
regarding this (9.18) are a few years old and are not completely up-to-date.

Thanking you for your time,
Siddharth Khattar
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: Help regarding Building x86_64 BSP

2023-03-07 Thread Karel Gardas

On 3/7/23 15:05, Siddharth Khattar wrote:

Hello all,
So I was aiming to make a project to improve the amd64 BSP for RTEMS 
(modify it according to ACPI standards along with other stuff) but first 
I would need to build it. Unfortunately there was no way to build it 
natively within RTEMS source. So, I needed to install QEMU and had to 
build the UEFI firmware,OVMF by Tianocore in order to build it. 


Indeed, they still list Ubutnu 16.04 LTS as a build OS. Hmm, I would go 
with VM for this. You need to build it just once...


Karel

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Help regarding Building x86_64 BSP

2023-03-07 Thread Karel Gardas

On 3/7/23 19:24, Karel Gardas wrote:

On 3/7/23 15:05, Siddharth Khattar wrote:

Hello all,
So I was aiming to make a project to improve the amd64 BSP for RTEMS 
(modify it according to ACPI standards along with other stuff) but 
first I would need to build it. Unfortunately there was no way to 
build it natively within RTEMS source. So, I needed to install QEMU 
and had to build the UEFI firmware,OVMF by Tianocore in order to build 
it. 


Indeed, they still list Ubutnu 16.04 LTS as a build OS. Hmm, I would go 
with VM for this. You need to build it just once...


Investigating more, it looks like qemu build those too, so there is no 
need to deal with TianoCore alone anymore. My 7.2.0 install contains:


$ find qemu-7.2.0/share/qemu/ -name 'edk2*'
qemu-7.2.0/share/qemu/edk2-arm-code.fd
qemu-7.2.0/share/qemu/edk2-x86_64-code.fd
qemu-7.2.0/share/qemu/edk2-arm-vars.fd
qemu-7.2.0/share/qemu/edk2-i386-secure-code.fd
qemu-7.2.0/share/qemu/edk2-x86_64-secure-code.fd
qemu-7.2.0/share/qemu/edk2-aarch64-code.fd
qemu-7.2.0/share/qemu/edk2-i386-code.fd
qemu-7.2.0/share/qemu/edk2-i386-vars.fd
qemu-7.2.0/share/qemu/edk2-licenses.txt

Ditto for Qemu build by RSB. Will send you tarball of scripts I'm using 
for building and running rtems.exe on those...


Karel
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: Help regarding Building x86_64 BSP

2023-03-07 Thread Joel Sherrill
Did you build the x86_64 tools and qemu using the RTEMS Source Builder?

On Tue, Mar 7, 2023, 11:39 AM Karel Gardas  wrote:

> On 3/7/23 19:24, Karel Gardas wrote:
> > On 3/7/23 15:05, Siddharth Khattar wrote:
> >> Hello all,
> >> So I was aiming to make a project to improve the amd64 BSP for RTEMS
> >> (modify it according to ACPI standards along with other stuff) but
> >> first I would need to build it. Unfortunately there was no way to
> >> build it natively within RTEMS source. So, I needed to install QEMU
> >> and had to build the UEFI firmware,OVMF by Tianocore in order to build
> >> it.
> >
> > Indeed, they still list Ubutnu 16.04 LTS as a build OS. Hmm, I would go
> > with VM for this. You need to build it just once...
>
> Investigating more, it looks like qemu build those too, so there is no
> need to deal with TianoCore alone anymore. My 7.2.0 install contains:
>
> $ find qemu-7.2.0/share/qemu/ -name 'edk2*'
> qemu-7.2.0/share/qemu/edk2-arm-code.fd
> qemu-7.2.0/share/qemu/edk2-x86_64-code.fd
> qemu-7.2.0/share/qemu/edk2-arm-vars.fd
> qemu-7.2.0/share/qemu/edk2-i386-secure-code.fd
> qemu-7.2.0/share/qemu/edk2-x86_64-secure-code.fd
> qemu-7.2.0/share/qemu/edk2-aarch64-code.fd
> qemu-7.2.0/share/qemu/edk2-i386-code.fd
> qemu-7.2.0/share/qemu/edk2-i386-vars.fd
> qemu-7.2.0/share/qemu/edk2-licenses.txt
>
> Ditto for Qemu build by RSB. Will send you tarball of scripts I'm using
> for building and running rtems.exe on those...
>
>
>
> Karel
> ___
> 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

Call for Mentors gsoc'23

2023-03-07 Thread Gedare Bloom
Hello all,

RTEMS Project is again to participate in GSoC (2023). If you would
like to be a primary or secondary mentor, please register at
https://summerofcode.withgoogle.com/ for the current program year, and
then let me know so that I can add you to RTEMS Project. The workflow
is a bit different this year, as I cannot add/invite individuals until
they have set up their profile and agreed to the terms and conditions
for the current year's program.

If you have ideas for small/large projects, feel free to add them as
tickets, as explained on our ideas page:
https://devel.rtems.org/wiki/Developer/OpenProjects

There have already been a few potential new contributors on the
Discord and mailing list.

Thanks,
Gedare
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [PATCH 1/1] testsuites/samples/hello/init.c: Modify the message in printf call

2023-03-07 Thread Gedare Bloom
Thanks. Please email me and j...@rtems.org directly with a screenshot
that shows you can run this modified hello world.

On Mon, Mar 6, 2023 at 9:51 PM Ruturaj Nanoti  wrote:
>
> Changed the message printed out in the hello testsuite from
> `Hello World` to `Hello RTEMS, from Ruturaj Nanoti!!` to
> demonstrate the ability to work with the RTEMS project.
> ---
>  testsuites/samples/hello/init.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
> index 83f6342ab3..2faff4a1ec 100644
> --- a/testsuites/samples/hello/init.c
> +++ b/testsuites/samples/hello/init.c
> @@ -41,7 +41,8 @@ static rtems_task Init(
>  {
>rtems_print_printer_fprintf_putc(&rtems_test_printer);
>TEST_BEGIN();
> -  printf( "Hello World\n" );
> +  /* printf( "Hello World\n" ); */
> +  printf( "Hello RTEMS, from Ruturaj Nanoti!!\n" );
>TEST_END();
>rtems_test_exit( 0 );
>  }
> --
> 2.34.1
>
> ___
> 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: [PATCH 0/1] GSOC Contributor Opportunity

2023-03-07 Thread Gedare Bloom
Hi Ruturaj,

It helps if you can describe briefly the topics that interest you,
especially one email per topic idea can be most fruitful. That will
give you more likely feedback, because most of us have no clue what
the ticket numbers mean without clicking through. It would also be a
good idea to hop on the Discord and discuss the topic ideas of
interest in the #gsoc channel.

Two of those tickets relate to the build system and tooling. Chris may
know if they're still of interest.

Gedare

On Mon, Mar 6, 2023 at 9:51 PM Ruturaj Nanoti  wrote:
>
> Hi All,
>
> My name is Ruturaj Nanoti, I am currently pursuing my Master's degree in
> Electrical Engineering at the University of Pennsylvania. I am interested
> in Firmware development for embedded system applications. I have worked
> with microcontrollers and development boards like STM32F4, RP2040 Pi Pico,
> Teensy 4.1, ItsyBitsy (nRF52840), etc. and also have experience with
> programming languages like C (both embedded and system level), C++,
> and Python.
>
> I came across RTEMS, while browsing through the organizations participating
> in GSOC this year, and found the work quite interesting and exciting. I would
> love to be a part of RTEMS and contribute to the project. Following are the
> links to some of the tasks, that I thought were quite exciting and I would
> really like to work on:
> - https://devel.rtems.org/ticket/4622
> - https://devel.rtems.org/ticket/3302
> - https://devel.rtems.org/ticket/4597
>
> I have built RTEMS and modified the `init.c` file under the `hello` testuite,
> to say something else instead of "Hello World" as mentioned in the 
> documentation
> for students interested in GSOC. I also tested building the project after 
> making
> the change and the build suceeds, so I am sending over the changes as a patch.
>
> Please let me know about the next steps, and I look forward to work with you 
> all.
>
> Thank You
>
> Ruturaj Nanoti (1):
>   testsuites/samples/hello/init.c: Modify the message in printf call
>
>  testsuites/samples/hello/init.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> --
> 2.34.1
>
> ___
> 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: [PATCH 1/1] testsuites/samples/hello/init.c: Modify the message in printf call

2023-03-07 Thread Ruturaj nanoti
Hi Gedare,

Thank you for your response. I have sent an email with the screenshot
attached that shows the hello world example running in the SIS simulator.

Regards,
Ruturaj Nanoti

On Tue, Mar 7, 2023 at 9:44 PM Gedare Bloom  wrote:

> Thanks. Please email me and j...@rtems.org directly with a screenshot
> that shows you can run this modified hello world.
>
> On Mon, Mar 6, 2023 at 9:51 PM Ruturaj Nanoti 
> wrote:
> >
> > Changed the message printed out in the hello testsuite from
> > `Hello World` to `Hello RTEMS, from Ruturaj Nanoti!!` to
> > demonstrate the ability to work with the RTEMS project.
> > ---
> >  testsuites/samples/hello/init.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > diff --git a/testsuites/samples/hello/init.c
> b/testsuites/samples/hello/init.c
> > index 83f6342ab3..2faff4a1ec 100644
> > --- a/testsuites/samples/hello/init.c
> > +++ b/testsuites/samples/hello/init.c
> > @@ -41,7 +41,8 @@ static rtems_task Init(
> >  {
> >rtems_print_printer_fprintf_putc(&rtems_test_printer);
> >TEST_BEGIN();
> > -  printf( "Hello World\n" );
> > +  /* printf( "Hello World\n" ); */
> > +  printf( "Hello RTEMS, from Ruturaj Nanoti!!\n" );
> >TEST_END();
> >rtems_test_exit( 0 );
> >  }
> > --
> > 2.34.1
> >
> > ___
> > 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: [PATCH 0/1] GSOC Contributor Opportunity

2023-03-07 Thread Ruturaj nanoti
Hi Gedare,

Thanks for your reply. I'll hop onto discord and discuss this there.

Regards,
Ruturaj Nanoti

On Tue, Mar 7, 2023 at 9:46 PM Gedare Bloom  wrote:

> Hi Ruturaj,
>
> It helps if you can describe briefly the topics that interest you,
> especially one email per topic idea can be most fruitful. That will
> give you more likely feedback, because most of us have no clue what
> the ticket numbers mean without clicking through. It would also be a
> good idea to hop on the Discord and discuss the topic ideas of
> interest in the #gsoc channel.
>
> Two of those tickets relate to the build system and tooling. Chris may
> know if they're still of interest.
>
> Gedare
>
> On Mon, Mar 6, 2023 at 9:51 PM Ruturaj Nanoti 
> wrote:
> >
> > Hi All,
> >
> > My name is Ruturaj Nanoti, I am currently pursuing my Master's degree in
> > Electrical Engineering at the University of Pennsylvania. I am interested
> > in Firmware development for embedded system applications. I have worked
> > with microcontrollers and development boards like STM32F4, RP2040 Pi
> Pico,
> > Teensy 4.1, ItsyBitsy (nRF52840), etc. and also have experience with
> > programming languages like C (both embedded and system level), C++,
> > and Python.
> >
> > I came across RTEMS, while browsing through the organizations
> participating
> > in GSOC this year, and found the work quite interesting and exciting. I
> would
> > love to be a part of RTEMS and contribute to the project. Following are
> the
> > links to some of the tasks, that I thought were quite exciting and I
> would
> > really like to work on:
> > - https://devel.rtems.org/ticket/4622
> > - https://devel.rtems.org/ticket/3302
> > - https://devel.rtems.org/ticket/4597
> >
> > I have built RTEMS and modified the `init.c` file under the `hello`
> testuite,
> > to say something else instead of "Hello World" as mentioned in the
> documentation
> > for students interested in GSOC. I also tested building the project
> after making
> > the change and the build suceeds, so I am sending over the changes as a
> patch.
> >
> > Please let me know about the next steps, and I look forward to work with
> you all.
> >
> > Thank You
> >
> > Ruturaj Nanoti (1):
> >   testsuites/samples/hello/init.c: Modify the message in printf call
> >
> >  testsuites/samples/hello/init.c | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> >
> > --
> > 2.34.1
> >
> > ___
> > 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: Help regarding Building x86_64 BSP

2023-03-07 Thread Karel Gardas

On 3/8/23 01:42, Joel Sherrill wrote:

Did you build the x86_64 tools and qemu using the RTEMS Source Builder?


Honestly, I do not remember, this is more than year old, but since this 
is in 6-tools directory, in fact in two incarnation, I would bet this 
was done by RSB:


$ find . -name 'edk2*'
./6-tools-2021-12-09-x86_64/share/qemu/edk2-i386-secure-code.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-licenses.txt
./6-tools-2021-12-09-x86_64/share/qemu/edk2-x86_64-code.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-x86_64-secure-code.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-i386-code.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-i386-vars.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-aarch64-code.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-arm-vars.fd
./6-tools-2021-12-09-x86_64/share/qemu/edk2-arm-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-arm-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-i386-vars.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-aarch64-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-i386-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-arm-vars.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-i386-secure-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-licenses.txt
./6-tools-pc686-2021-11-20/share/qemu/edk2-x86_64-code.fd
./6-tools-pc686-2021-11-20/share/qemu/edk2-x86_64-secure-code.fd

Karel



On Tue, Mar 7, 2023, 11:39 AM Karel Gardas  wrote:

On 3/7/23 19:24, Karel Gardas wrote:
 > On 3/7/23 15:05, Siddharth Khattar wrote:
 >> Hello all,
 >> So I was aiming to make a project to improve the amd64 BSP for
RTEMS
 >> (modify it according to ACPI standards along with other stuff) but
 >> first I would need to build it. Unfortunately there was no way to
 >> build it natively within RTEMS source. So, I needed to install QEMU
 >> and had to build the UEFI firmware,OVMF by Tianocore in order to
build
 >> it.
 >
 > Indeed, they still list Ubutnu 16.04 LTS as a build OS. Hmm, I
would go
 > with VM for this. You need to build it just once...

Investigating more, it looks like qemu build those too, so there is no
need to deal with TianoCore alone anymore. My 7.2.0 install contains:

$ find qemu-7.2.0/share/qemu/ -name 'edk2*'
qemu-7.2.0/share/qemu/edk2-arm-code.fd
qemu-7.2.0/share/qemu/edk2-x86_64-code.fd
qemu-7.2.0/share/qemu/edk2-arm-vars.fd
qemu-7.2.0/share/qemu/edk2-i386-secure-code.fd
qemu-7.2.0/share/qemu/edk2-x86_64-secure-code.fd
qemu-7.2.0/share/qemu/edk2-aarch64-code.fd
qemu-7.2.0/share/qemu/edk2-i386-code.fd
qemu-7.2.0/share/qemu/edk2-i386-vars.fd
qemu-7.2.0/share/qemu/edk2-licenses.txt

Ditto for Qemu build by RSB. Will send you tarball of scripts I'm using
for building and running rtems.exe on those...



Karel
___
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