Seeking review for GSoC Proposal "Add RTEMS Framework to PlatformIO"

2024-03-28 Thread Pranav Gupta
Please have a look at my project proposal for GSoC and suggest changes.

Google Docs Link:
https://docs.google.com/document/d/1uyC1Eai73RET6lcWMkSe01FvcXWhceSD9_q4v8eYCCI/edit

pdf for proposal attached below.


GSOC2024_GUPTA_Add RTEMS Framework to PlatformIO (1).pdf
Description: Adobe PDF document
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH] bsps/raspberrypi: Add SEV Instruction for RPi SMP firmware changes.

2021-08-17 Thread Pranav Dangi
ping

On Wed, 11 Aug 2021, 21:36 Gedare Bloom,  wrote:

> I think this looks fine. Joel, can you check it in?
>
> On Wed, Aug 11, 2021 at 10:01 AM Pranav Dangi 
> wrote:
> >
> > ping
> >
> > On Mon, 9 Aug 2021, 16:43 pranav,  wrote:
> >>
> >> The Pi firmware added a wfe(wait for event), the cores 1-3 wait
> >> for the start address being written to the mailbox register, followed
> >> by a SEV poke to the mailbox that acts as a wfe wake-up event.
> >> ---
> >>  bsps/arm/raspberrypi/start/bspsmp.c | 1 +
> >>  1 file changed, 1 insertion(+)
> >>
> >> diff --git a/bsps/arm/raspberrypi/start/bspsmp.c
> b/bsps/arm/raspberrypi/start/bspsmp.c
> >> index 44f7a1d376..9dcfb0fb03 100644
> >> --- a/bsps/arm/raspberrypi/start/bspsmp.c
> >> +++ b/bsps/arm/raspberrypi/start/bspsmp.c
> >> @@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
> >>if (cpu_index != cpu_index_self) {
> >>
> >>  BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) =
> (uint32_t)_start;
> >> +_ARM_Send_event();
> >>
> >>  /*
> >>   * Wait for secondary processor to complete its basic
> initialization so
> >> --
> >> 2.30.2
> >>
> > ___
> > 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

[PATCH rtems-docs] bsps/raspberrypi: Change firmware version, add SPI & I2C support

2021-08-16 Thread pranav
---
 user/bsps/arm/raspberrypi.rst | 51 ++-
 1 file changed, 45 insertions(+), 6 deletions(-)

diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst
index c26f4b5..11dcc30 100644
--- a/user/bsps/arm/raspberrypi.rst
+++ b/user/bsps/arm/raspberrypi.rst
@@ -5,8 +5,9 @@
 raspberrypi
 ===
 
-This BSP supports `Raspberry Pi 1` and `Raspberry Pi 2` currently.
-The support for `Raspberry Pi 3` is work under progress.
+The 'raspberrypi' BSP supports the single core models (Zero,  Zero W, A+, B+),
+and the 'raspberrypi2' BSP supports the Raspberry Pi 2, Raspberry Pi 3 A+, and 
Raspberry Pi 3.
+The Raspberry Pi 4 is not supported currently.
 The default bootloader on the Raspberry Pi which is used to boot Raspbian
 or other OS can be also used to boot RTEMS. U-boot can also be used.
 
@@ -19,10 +20,12 @@ The bootloader looks for a kernel image, by default the 
kernel images must
 have a name of the form ``kernel*.img`` but this can be changed by adding
 `kernel=` to ``config.txt``.
 
-You must provide the required files for the GPU to proceed. These files
+You must provide the required firmware files on the SD card for the GPU to 
proceed,
+and thereby to boot RTEMS. 
+The BSP currently boots up with an older version of the official firmware. 
These files
 can be downloaded from
-`the Raspberry Pi Firmware Repository 
`_.
-You can remove the ``kernel*.img`` files if you want too, but don't touch
+`the Raspberry Pi Firmware Repository 
`_.
+You can remove the ``kernel*.img`` files if you want to, but don't touch
 the other files.
 
 Copy these files in to a SD card with FAT filesystem.
@@ -46,10 +49,46 @@ Make sure you have these lines below, in your 
``config.txt``.
 
 .. code-block:: none
 
- enable_uart=1
+ dtoverlay=disable-bt
  kernel_address=0x20
  kernel=kernel.img
 
+SPI Driver
+
+
+SPI drivers are registered by the ``rpi_spi_init(bool bidirectional_mode)`` 
function.
+
+.. code-block:: none
+
+ #include 
+ #include 
+
+ void spi_init(void)
+ {
+   int rv;
+
+   rv = rpi_spi_init(false);
+   assert(rv == 0);
+ }
+
+I2C Driver
+
+
+I2C drivers are registered by the ``rpi_setup_i2c_bus()`` function.
+
+.. code-block:: none
+
+ #include 
+ #include 
+
+ void i2c_init(void)
+ {
+   int rv;
+
+   rv = rpi_setup_i2c_bus();
+   assert(rv == 0);
+ }
+
 Testing using QEMU
 --
 
-- 
2.30.2

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


Re: [PATCH] bsps/raspberrypi: Add SEV Instruction for RPi SMP firmware changes.

2021-08-11 Thread Pranav Dangi
ping

On Mon, 9 Aug 2021, 16:43 pranav,  wrote:

> The Pi firmware added a wfe(wait for event), the cores 1-3 wait
> for the start address being written to the mailbox register, followed
> by a SEV poke to the mailbox that acts as a wfe wake-up event.
> ---
>  bsps/arm/raspberrypi/start/bspsmp.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/bsps/arm/raspberrypi/start/bspsmp.c
> b/bsps/arm/raspberrypi/start/bspsmp.c
> index 44f7a1d376..9dcfb0fb03 100644
> --- a/bsps/arm/raspberrypi/start/bspsmp.c
> +++ b/bsps/arm/raspberrypi/start/bspsmp.c
> @@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
>if (cpu_index != cpu_index_self) {
>
>  BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) =
> (uint32_t)_start;
> +_ARM_Send_event();
>
>  /*
>   * Wait for secondary processor to complete its basic initialization
> so
> --
> 2.30.2
>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: [PATCH v4] bsps: Move optfdt* files to shared parent directory

2021-08-09 Thread Pranav Dangi
Hi joel,
I had sent you a rebased patch as a direct attachment, I will ping that
thread once again. Did that fail too?

Thanks,
pranav

On Mon, 9 Aug 2021, 20:40 Joel Sherrill,  wrote:

> On Mon, Aug 9, 2021 at 10:00 AM Gedare Bloom  wrote:
> >
> > Hi Joel,
> >
> > On Fri, Jul 16, 2021 at 10:40 AM Joel Sherrill  wrote:
> > >
> > > I'm doing a build sweep of all BSPs. When that completes, I plan to
> > > push this unless there are comments.
> > >
> > Did/can you push this?
>
> It doesn't apply for me. Could be a rebase is needed or it didn't survive
> the email client. If it's just an email issue, just send it to me directly
> as an
> attachment possibly compressed to avoid any chance of email clients
> getting smart.
>
> Applying: bsps: Move optfdt* files to shared parent directory
> error: patch failed: spec/build/bsps/arm/beagle/optfdtcpyro.yml:1
> error: spec/build/bsps/arm/beagle/optfdtcpyro.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/beagle/optfdtmxsz.yml:1
> error: spec/build/bsps/arm/beagle/optfdtmxsz.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/beagle/optfdtro.yml:1
> error: spec/build/bsps/arm/beagle/optfdtro.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/beagle/optfdtuboot.yml:1
> error: spec/build/bsps/arm/beagle/optfdtuboot.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/imx/optfdtcpyro.yml:1
> error: spec/build/bsps/arm/imx/optfdtcpyro.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/imx/optfdtmxsz.yml:1
> error: spec/build/bsps/arm/imx/optfdtmxsz.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/imx/optfdtro.yml:1
> error: spec/build/bsps/arm/imx/optfdtro.yml: patch does not apply
> error: patch failed: spec/build/bsps/arm/imx/optfdtuboot.yml:1
> error: spec/build/bsps/arm/imx/optfdtuboot.yml: patch does not apply
> error: patch failed: spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml:1
> error: spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml: patch does not apply
> error: patch failed: spec/build/bsps/powerpc/qoriq/optfdtro.yml:1
> error: spec/build/bsps/powerpc/qoriq/optfdtro.yml: patch does not apply
> error: patch failed: spec/build/bsps/riscv/riscv/optfdtcpyro.yml:1
> error: spec/build/bsps/riscv/riscv/optfdtcpyro.yml: patch does not apply
> error: patch failed: spec/build/bsps/riscv/riscv/optfdtmxsz.yml:1
> error: spec/build/bsps/riscv/riscv/optfdtmxsz.yml: patch does not apply
> error: patch failed: spec/build/bsps/riscv/riscv/optfdtro.yml:1
> error: spec/build/bsps/riscv/riscv/optfdtro.yml: patch does not apply
> error: patch failed: spec/build/bsps/riscv/riscv/optfdtuboot.yml:1
> error: spec/build/bsps/riscv/riscv/optfdtuboot.yml: patch does not apply
> Patch failed at 0001 bsps: Move optfdt* files to shared parent directory
> The copy of the patch that failed is found in:
>/home/joel/rtems-work/rtems/.git/rebase-apply/patch
>
>
> >
> > > On Fri, Jul 16, 2021 at 9:51 AM pranav  wrote:
> > > >
> > > > ---
> > > >  .../arm/altera-cyclone-v/bspalteracyclonev.yml  |  8 
> > > >  spec/build/bsps/arm/beagle/grp.yml  |  8 
> > > >  spec/build/bsps/arm/beagle/optfdtcpyro.yml  | 16
> 
> > > >  spec/build/bsps/arm/beagle/optfdtmxsz.yml   | 17
> -
> > > >  spec/build/bsps/arm/beagle/optfdtro.yml | 16
> 
> > > >  spec/build/bsps/arm/beagle/optfdtuboot.yml  | 16
> 
> > > >  spec/build/bsps/arm/imx/bspimx.yml  |  8 
> > > >  spec/build/bsps/arm/imx/optfdtcpyro.yml | 16
> 
> > > >  spec/build/bsps/arm/imx/optfdtmxsz.yml  | 17
> -
> > > >  spec/build/bsps/arm/imx/optfdtro.yml| 16
> 
> > > >  spec/build/bsps/arm/imx/optfdtuboot.yml | 16
> 
> > > >  spec/build/bsps/arm/raspberrypi/grp.yml |  8 
> > > >  .../{arm/altera-cyclone-v => }/optfdtcpyro.yml  |  0
> > > >  .../{arm/altera-cyclone-v => }/optfdtmxsz.yml   |  0
> > > >  .../{arm/altera-cyclone-v => }/optfdtro.yml |  0
> > > >  .../{arm/altera-cyclone-v => }/optfdtuboot.yml  |  0
> > > >  spec/build/bsps/powerpc/qoriq/grp.yml   |  4 ++--
> > > >  spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml| 17
> -
> > > >  spec/build/bsps/powerpc/qoriq/optfdtro.yml  | 16
> 
> > > >  spec/build/bsps/riscv/riscv/grp.yml |  8 +

[PATCH] bsps/raspberrypi: Add SEV Instruction for RPi SMP firmware changes.

2021-08-09 Thread pranav
The Pi firmware added a wfe(wait for event), the cores 1-3 wait
for the start address being written to the mailbox register, followed
by a SEV poke to the mailbox that acts as a wfe wake-up event.
---
 bsps/arm/raspberrypi/start/bspsmp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bsps/arm/raspberrypi/start/bspsmp.c 
b/bsps/arm/raspberrypi/start/bspsmp.c
index 44f7a1d376..9dcfb0fb03 100644
--- a/bsps/arm/raspberrypi/start/bspsmp.c
+++ b/bsps/arm/raspberrypi/start/bspsmp.c
@@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
   if (cpu_index != cpu_index_self) {
 
 BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) = 
(uint32_t)_start;
+_ARM_Send_event();
 
 /*
  * Wait for secondary processor to complete its basic initialization so
-- 
2.30.2

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


Re: [PATCH] bsps/raspberrypi: Add SEV instruction to Pi SMP

2021-08-06 Thread Pranav Dangi
The Pi firmware added a wfe(wait for event) so now, the cores 1-3 wait
for the start address being written to the mailbox register, followed
by a SEV that acts as a poke to the mailbox, or in other words, a wfe
wake-up event. I've added the SEV correspondingly here. So, would 'Add
SEV instruction' be the right way to say it? Or should I change the
subject.

Thanks,
pranav


On Fri, Aug 6, 2021 at 7:24 PM Joel Sherrill  wrote:
>
> On Fri, Aug 6, 2021 at 5:11 AM pranav  wrote:
> >
> > Add Send Event instruction to get the SMP working on the Pi. Patch
> > doesn't work for SMP on Pi 2 v1.1
> > ---
> >  bsps/arm/raspberrypi/include/bsp/irq.h | 1 +
> >  bsps/arm/raspberrypi/start/bspsmp.c| 1 +
> >  2 files changed, 2 insertions(+)
> >
> > diff --git a/bsps/arm/raspberrypi/include/bsp/irq.h 
> > b/bsps/arm/raspberrypi/include/bsp/irq.h
> > index a363e7ce90..2c0d0d82b2 100644
> > --- a/bsps/arm/raspberrypi/include/bsp/irq.h
> > +++ b/bsps/arm/raspberrypi/include/bsp/irq.h
> > @@ -24,6 +24,7 @@
> >  #include 
> >  #include 
> >  #include 
> > +#include 
> >
> >  /**
> >   * @defgroup raspberrypi_interrupt Interrrupt Support
> > diff --git a/bsps/arm/raspberrypi/start/bspsmp.c 
> > b/bsps/arm/raspberrypi/start/bspsmp.c
> > index 44f7a1d376..9dcfb0fb03 100644
> > --- a/bsps/arm/raspberrypi/start/bspsmp.c
> > +++ b/bsps/arm/raspberrypi/start/bspsmp.c
> > @@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
> >if (cpu_index != cpu_index_self) {
> >
> >  BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) = 
> > (uint32_t)_start;
> > +_ARM_Send_event();
>
> Perhaps a bit pedantic but you didn't add an SEV instruction directly.
> You added a call to send an event which is implemented (I guess) as an
> SEV instruction.
>
> Subject of patch might be better as something like "add sending event to ..."
> and maybe add a comment as to what the send event is intended to convey.
> >
> >  /*
> >   * Wait for secondary processor to complete its basic initialization so
> > --
> > 2.30.2
> >
> > ___
> > 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


[PATCH] bsps/raspberrypi: Add SEV instruction to Pi SMP

2021-08-06 Thread pranav
Add Send Event instruction to get the SMP working on the Pi. Patch
doesn't work for SMP on Pi 2 v1.1
---
 bsps/arm/raspberrypi/include/bsp/irq.h | 1 +
 bsps/arm/raspberrypi/start/bspsmp.c| 1 +
 2 files changed, 2 insertions(+)

diff --git a/bsps/arm/raspberrypi/include/bsp/irq.h 
b/bsps/arm/raspberrypi/include/bsp/irq.h
index a363e7ce90..2c0d0d82b2 100644
--- a/bsps/arm/raspberrypi/include/bsp/irq.h
+++ b/bsps/arm/raspberrypi/include/bsp/irq.h
@@ -24,6 +24,7 @@
 #include 
 #include 
 #include 
+#include 
 
 /**
  * @defgroup raspberrypi_interrupt Interrrupt Support
diff --git a/bsps/arm/raspberrypi/start/bspsmp.c 
b/bsps/arm/raspberrypi/start/bspsmp.c
index 44f7a1d376..9dcfb0fb03 100644
--- a/bsps/arm/raspberrypi/start/bspsmp.c
+++ b/bsps/arm/raspberrypi/start/bspsmp.c
@@ -42,6 +42,7 @@ bool _CPU_SMP_Start_processor( uint32_t cpu_index )
   if (cpu_index != cpu_index_self) {
 
 BCM2835_REG(BCM2836_MAILBOX_3_WRITE_SET_BASE + 0x10 * cpu_index) = 
(uint32_t)_start;
+_ARM_Send_event();
 
 /*
  * Wait for secondary processor to complete its basic initialization so
-- 
2.30.2

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


[PATCH v4] bsps: Move optfdt* files to shared parent directory

2021-07-16 Thread pranav
---
 .../arm/altera-cyclone-v/bspalteracyclonev.yml  |  8 
 spec/build/bsps/arm/beagle/grp.yml  |  8 
 spec/build/bsps/arm/beagle/optfdtcpyro.yml  | 16 
 spec/build/bsps/arm/beagle/optfdtmxsz.yml   | 17 -
 spec/build/bsps/arm/beagle/optfdtro.yml | 16 
 spec/build/bsps/arm/beagle/optfdtuboot.yml  | 16 
 spec/build/bsps/arm/imx/bspimx.yml  |  8 
 spec/build/bsps/arm/imx/optfdtcpyro.yml | 16 
 spec/build/bsps/arm/imx/optfdtmxsz.yml  | 17 -
 spec/build/bsps/arm/imx/optfdtro.yml| 16 
 spec/build/bsps/arm/imx/optfdtuboot.yml | 16 
 spec/build/bsps/arm/raspberrypi/grp.yml |  8 
 .../{arm/altera-cyclone-v => }/optfdtcpyro.yml  |  0
 .../{arm/altera-cyclone-v => }/optfdtmxsz.yml   |  0
 .../{arm/altera-cyclone-v => }/optfdtro.yml |  0
 .../{arm/altera-cyclone-v => }/optfdtuboot.yml  |  0
 spec/build/bsps/powerpc/qoriq/grp.yml   |  4 ++--
 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml| 17 -
 spec/build/bsps/powerpc/qoriq/optfdtro.yml  | 16 
 spec/build/bsps/riscv/riscv/grp.yml |  8 
 spec/build/bsps/riscv/riscv/optfdtcpyro.yml | 16 
 spec/build/bsps/riscv/riscv/optfdtmxsz.yml  | 17 -
 spec/build/bsps/riscv/riscv/optfdtro.yml| 16 
 spec/build/bsps/riscv/riscv/optfdtuboot.yml | 16 
 24 files changed, 26 insertions(+), 246 deletions(-)
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtuboot.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtuboot.yml
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtcpyro.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtmxsz.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtro.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtuboot.yml (100%)
 delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtuboot.yml

diff --git a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml 
b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
index da567ddd79..a9f3f7dabf 100644
--- a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
+++ b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
@@ -73,15 +73,15 @@ links:
 - role: build-dependency
   uid: optconuart1
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../../optfdtcpyro
 - role: build-dependency
   uid: optfdten
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../../optfdtuboot
 - role: build-dependency
   uid: opti2cspeed
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/grp.yml 
b/spec/build/bsps/arm/beagle/grp.yml
index 1375913fd0..3452c3e5c8 100644
--- a/spec/build/bsps/arm/beagle/grp.yml
+++ b/spec/build/bsps/arm/beagle/grp.yml
@@ -22,13 +22,13 @@ links:
 - role: build-dependency
   uid: optdm3730
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../../optfdtcpyro
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../../optfdtuboot
 - role: build-dependency
   uid: ../grp
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/optfdtcpyro.yml 
b/spec/build/bsps/arm/beagle/optfdtcpyro.yml
deleted file mode 100644
index 5ec59adf4d..00
--- a/spec/build/bsps/arm/beagle/optfdtcpyro.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-boolean: null
-- define-condition: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: true
-default-by-family: []
-default-by-variant: []
-description: |
-  copy the FDT blob into the read-only load area via bsp_fdt_copy()
-enabled-by: true
-links: []
-name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
-type: build
diff --git a/spec/build/bsps/arm/beagle/optfdtmxsz.yml 
b/spec/build/bsps/arm/beagle/optfdtmxsz.yml
deleted file 

Re: [PATCH v3] bsps: Move optfdt* files to shared parent directory

2021-07-09 Thread Pranav Dangi
ping. (Apart from moving the files in a shared directory, a part of this
patch also gets the RTEMS master branch to work on all the Pi's except 4.)

On Fri, 2 Jul 2021, 09:35 Pranav Dangi,  wrote:

> yes, I've built all of them
>
> On Thu, Jul 1, 2021 at 10:01 PM Gedare Bloom  wrote:
>
>> Did you build all affected BSPs?
>>
>> On Thu, Jul 1, 2021 at 4:05 AM pranav  wrote:
>> >
>> > ---
>> >  .../arm/altera-cyclone-v/bspalteracyclonev.yml   |  8 
>> >  spec/build/bsps/arm/beagle/grp.yml   |  8 
>> >  spec/build/bsps/arm/beagle/optfdtcpyro.yml   | 15 ---
>> >  spec/build/bsps/arm/beagle/optfdtmxsz.yml| 16 
>> >  spec/build/bsps/arm/beagle/optfdtro.yml  | 15 ---
>> >  spec/build/bsps/arm/beagle/optfdtuboot.yml   | 15 ---
>> >  spec/build/bsps/arm/imx/bspimx.yml   |  8 
>> >  spec/build/bsps/arm/imx/optfdtcpyro.yml  | 15 ---
>> >  spec/build/bsps/arm/imx/optfdtmxsz.yml   | 16 
>> >  spec/build/bsps/arm/imx/optfdtro.yml | 15 ---
>> >  spec/build/bsps/arm/imx/optfdtuboot.yml  | 15 ---
>> >  spec/build/bsps/arm/raspberrypi/grp.yml  |  8 
>> >  .../{arm/altera-cyclone-v => }/optfdtcpyro.yml   |  0
>> >  .../{arm/altera-cyclone-v => }/optfdtmxsz.yml|  0
>> >  .../bsps/{arm/altera-cyclone-v => }/optfdtro.yml |  0
>> >  .../{arm/altera-cyclone-v => }/optfdtuboot.yml   |  0
>> >  spec/build/bsps/powerpc/qoriq/grp.yml|  4 ++--
>> >  spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml | 16 
>> >  spec/build/bsps/powerpc/qoriq/optfdtro.yml   | 15 ---
>> >  spec/build/bsps/riscv/riscv/grp.yml  |  8 
>> >  spec/build/bsps/riscv/riscv/optfdtcpyro.yml  | 15 ---
>> >  spec/build/bsps/riscv/riscv/optfdtmxsz.yml   | 16 
>> >  spec/build/bsps/riscv/riscv/optfdtro.yml | 15 ---
>> >  spec/build/bsps/riscv/riscv/optfdtuboot.yml  | 15 ---
>> >  24 files changed, 26 insertions(+), 232 deletions(-)
>> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtcpyro.yml
>> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtmxsz.yml
>> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtro.yml
>> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtuboot.yml
>> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtcpyro.yml
>> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtmxsz.yml
>> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtro.yml
>> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtuboot.yml
>> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtcpyro.yml
>> (100%)
>> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtmxsz.yml (100%)
>> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtro.yml (100%)
>> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtuboot.yml
>> (100%)
>> >  delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml
>> >  delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtro.yml
>> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtcpyro.yml
>> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtmxsz.yml
>> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtro.yml
>> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtuboot.yml
>> >
>> > diff --git a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
>> b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
>> > index da567ddd79..a9f3f7dabf 100644
>> > --- a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
>> > +++ b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
>> > @@ -73,15 +73,15 @@ links:
>> >  - role: build-dependency
>> >uid: optconuart1
>> >  - role: build-dependency
>> > -  uid: optfdtcpyro
>> > +  uid: ../../optfdtcpyro
>> >  - role: build-dependency
>> >uid: optfdten
>> >  - role: build-dependency
>> > -  uid: optfdtmxsz
>> > +  uid: ../../optfdtmxsz
>> >  - role: build-dependency
>> > -  uid: optfdtro
>> > +  uid: ../../optfdtro
>> >  - role: build-dependency
>> > -  uid: optfdtuboot
>> > +  uid: ../../optfdtuboot
>> >  - role: build-dependency
>> >uid: opti2cspeed
>> >  - rol

[PATCH] bsps/arm: Add start up support for ARMv6 RPi Models

2021-07-06 Thread pranav
---
 bsps/arm/shared/start/start.S | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/bsps/arm/shared/start/start.S b/bsps/arm/shared/start/start.S
index bd623178ed..2ba6541405 100644
--- a/bsps/arm/shared/start/start.S
+++ b/bsps/arm/shared/start/start.S
@@ -482,16 +482,22 @@ bsp_start_hook_0_done:
 
 .Lvector_table_copy_done:
 
-#if (__ARM_ARCH >= 7 && __ARM_ARCH_PROFILE == 'A') || __ARM_ARCH >= 8
/*
 * This code path is only executed by the primary processor.  Set the
 * VBAR to the normal vector table.  For secondary processors, this is
 * done by bsp_start_hook_0().
 */
+#if (__ARM_ARCH >= 7 && __ARM_ARCH_PROFILE == 'A') || __ARM_ARCH >= 8
ldr r0, =bsp_vector_table_begin
dsb
mcr p15, 0, r0, c12, c0, 0
isb
+#elif defined __ARM_ARCH_6KZ__
+   mov r1, #0
+   ldr r0, =bsp_vector_table_begin
+   mcr p15, 0, r1, c7, c10, 4  /* DataSync */
+   mcr p15, 0, r0, c12, c0, 0  /* Load VBAR */
+   mcr p15, 0, r1, c7, c5, 4   /* Flush Prefetch */
 #endif
 
SWITCH_FROM_ARM_TO_THUMBr3
-- 
2.30.2

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


Re: [PATCH v3] bsps: Move optfdt* files to shared parent directory

2021-07-01 Thread Pranav Dangi
yes, I've built all of them

On Thu, Jul 1, 2021 at 10:01 PM Gedare Bloom  wrote:

> Did you build all affected BSPs?
>
> On Thu, Jul 1, 2021 at 4:05 AM pranav  wrote:
> >
> > ---
> >  .../arm/altera-cyclone-v/bspalteracyclonev.yml   |  8 
> >  spec/build/bsps/arm/beagle/grp.yml   |  8 
> >  spec/build/bsps/arm/beagle/optfdtcpyro.yml   | 15 ---
> >  spec/build/bsps/arm/beagle/optfdtmxsz.yml| 16 
> >  spec/build/bsps/arm/beagle/optfdtro.yml  | 15 ---
> >  spec/build/bsps/arm/beagle/optfdtuboot.yml   | 15 ---
> >  spec/build/bsps/arm/imx/bspimx.yml   |  8 
> >  spec/build/bsps/arm/imx/optfdtcpyro.yml  | 15 ---
> >  spec/build/bsps/arm/imx/optfdtmxsz.yml   | 16 
> >  spec/build/bsps/arm/imx/optfdtro.yml | 15 ---
> >  spec/build/bsps/arm/imx/optfdtuboot.yml  | 15 ---
> >  spec/build/bsps/arm/raspberrypi/grp.yml  |  8 
> >  .../{arm/altera-cyclone-v => }/optfdtcpyro.yml   |  0
> >  .../{arm/altera-cyclone-v => }/optfdtmxsz.yml|  0
> >  .../bsps/{arm/altera-cyclone-v => }/optfdtro.yml |  0
> >  .../{arm/altera-cyclone-v => }/optfdtuboot.yml   |  0
> >  spec/build/bsps/powerpc/qoriq/grp.yml|  4 ++--
> >  spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml | 16 
> >  spec/build/bsps/powerpc/qoriq/optfdtro.yml   | 15 ---
> >  spec/build/bsps/riscv/riscv/grp.yml  |  8 
> >  spec/build/bsps/riscv/riscv/optfdtcpyro.yml  | 15 ---
> >  spec/build/bsps/riscv/riscv/optfdtmxsz.yml   | 16 
> >  spec/build/bsps/riscv/riscv/optfdtro.yml | 15 ---
> >  spec/build/bsps/riscv/riscv/optfdtuboot.yml  | 15 ---
> >  24 files changed, 26 insertions(+), 232 deletions(-)
> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtcpyro.yml
> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtmxsz.yml
> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtro.yml
> >  delete mode 100644 spec/build/bsps/arm/beagle/optfdtuboot.yml
> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtcpyro.yml
> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtmxsz.yml
> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtro.yml
> >  delete mode 100644 spec/build/bsps/arm/imx/optfdtuboot.yml
> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtcpyro.yml (100%)
> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtmxsz.yml (100%)
> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtro.yml (100%)
> >  rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtuboot.yml (100%)
> >  delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml
> >  delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtro.yml
> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtcpyro.yml
> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtmxsz.yml
> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtro.yml
> >  delete mode 100644 spec/build/bsps/riscv/riscv/optfdtuboot.yml
> >
> > diff --git a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
> b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
> > index da567ddd79..a9f3f7dabf 100644
> > --- a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
> > +++ b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
> > @@ -73,15 +73,15 @@ links:
> >  - role: build-dependency
> >uid: optconuart1
> >  - role: build-dependency
> > -  uid: optfdtcpyro
> > +  uid: ../../optfdtcpyro
> >  - role: build-dependency
> >uid: optfdten
> >  - role: build-dependency
> > -  uid: optfdtmxsz
> > +  uid: ../../optfdtmxsz
> >  - role: build-dependency
> > -  uid: optfdtro
> > +  uid: ../../optfdtro
> >  - role: build-dependency
> > -  uid: optfdtuboot
> > +  uid: ../../optfdtuboot
> >  - role: build-dependency
> >uid: opti2cspeed
> >  - role: build-dependency
> > diff --git a/spec/build/bsps/arm/beagle/grp.yml
> b/spec/build/bsps/arm/beagle/grp.yml
> > index 1375913fd0..3452c3e5c8 100644
> > --- a/spec/build/bsps/arm/beagle/grp.yml
> > +++ b/spec/build/bsps/arm/beagle/grp.yml
> > @@ -22,13 +22,13 @@ links:
> >  - role: build-dependency
> >uid: optdm3730
> >  - role: build-dependency
> > -  uid: optfdtcpyro
> > +  uid: ../../optfdtcpyro
> >  - role: build-dependency
> > -  uid: optfdtm

[PATCH v3] bsps: Move optfdt* files to shared parent directory

2021-07-01 Thread pranav
---
 .../arm/altera-cyclone-v/bspalteracyclonev.yml   |  8 
 spec/build/bsps/arm/beagle/grp.yml   |  8 
 spec/build/bsps/arm/beagle/optfdtcpyro.yml   | 15 ---
 spec/build/bsps/arm/beagle/optfdtmxsz.yml| 16 
 spec/build/bsps/arm/beagle/optfdtro.yml  | 15 ---
 spec/build/bsps/arm/beagle/optfdtuboot.yml   | 15 ---
 spec/build/bsps/arm/imx/bspimx.yml   |  8 
 spec/build/bsps/arm/imx/optfdtcpyro.yml  | 15 ---
 spec/build/bsps/arm/imx/optfdtmxsz.yml   | 16 
 spec/build/bsps/arm/imx/optfdtro.yml | 15 ---
 spec/build/bsps/arm/imx/optfdtuboot.yml  | 15 ---
 spec/build/bsps/arm/raspberrypi/grp.yml  |  8 
 .../{arm/altera-cyclone-v => }/optfdtcpyro.yml   |  0
 .../{arm/altera-cyclone-v => }/optfdtmxsz.yml|  0
 .../bsps/{arm/altera-cyclone-v => }/optfdtro.yml |  0
 .../{arm/altera-cyclone-v => }/optfdtuboot.yml   |  0
 spec/build/bsps/powerpc/qoriq/grp.yml|  4 ++--
 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml | 16 
 spec/build/bsps/powerpc/qoriq/optfdtro.yml   | 15 ---
 spec/build/bsps/riscv/riscv/grp.yml  |  8 
 spec/build/bsps/riscv/riscv/optfdtcpyro.yml  | 15 ---
 spec/build/bsps/riscv/riscv/optfdtmxsz.yml   | 16 
 spec/build/bsps/riscv/riscv/optfdtro.yml | 15 ---
 spec/build/bsps/riscv/riscv/optfdtuboot.yml  | 15 ---
 24 files changed, 26 insertions(+), 232 deletions(-)
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtuboot.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtuboot.yml
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtcpyro.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtmxsz.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtro.yml (100%)
 rename spec/build/bsps/{arm/altera-cyclone-v => }/optfdtuboot.yml (100%)
 delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/powerpc/qoriq/optfdtro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtro.yml
 delete mode 100644 spec/build/bsps/riscv/riscv/optfdtuboot.yml

diff --git a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml 
b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
index da567ddd79..a9f3f7dabf 100644
--- a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
+++ b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
@@ -73,15 +73,15 @@ links:
 - role: build-dependency
   uid: optconuart1
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../../optfdtcpyro
 - role: build-dependency
   uid: optfdten
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../../optfdtuboot
 - role: build-dependency
   uid: opti2cspeed
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/grp.yml 
b/spec/build/bsps/arm/beagle/grp.yml
index 1375913fd0..3452c3e5c8 100644
--- a/spec/build/bsps/arm/beagle/grp.yml
+++ b/spec/build/bsps/arm/beagle/grp.yml
@@ -22,13 +22,13 @@ links:
 - role: build-dependency
   uid: optdm3730
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../../optfdtcpyro
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../../optfdtuboot
 - role: build-dependency
   uid: ../grp
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/optfdtcpyro.yml 
b/spec/build/bsps/arm/beagle/optfdtcpyro.yml
deleted file mode 100644
index c26b1ae051..00
--- a/spec/build/bsps/arm/beagle/optfdtcpyro.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-boolean: null
-- define-condition: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: true
-default-by-variant: []
-description: |
-  copy the FDT blob into the read-only load area via bsp_fdt_copy()
-enabled-by: true
-links: []
-name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
-type: build
diff --git a/spec/build/bsps/arm/beagle/optfdtmxsz.yml 
b/spec/build/bsps/arm/beagle/optfdtmxsz.yml
deleted file mode 100644

Re: [PATCH] bsps/raspberrypi: Add FDT defines to build options

2021-06-27 Thread Pranav Dangi
On Sun, Jun 27, 2021 at 8:33 PM Gedare Bloom  wrote:
>
> On Sun, Jun 27, 2021 at 8:33 AM Joel Sherrill  wrote:
> >
> >
> >
> > On Sun, Jun 27, 2021, 9:04 AM Alan Cudmore  wrote:
> >>
> >> Hi,
> >> This patch works for me. I can build and run the latest rtems master
> >> branch samples on the RPI 2 and 3.
> >> The samples do not run on the single core models, but it is not
> >> related to this patch. I have a patch for the single core models, and
> >> when combined with this patch I can get the samples to run on RPI
> >> Zero, Zero W, Pi A+, Original Pi Model B+, Pi 2, and Pi 3.
> >
> >
> > This is all great news!
> >
> > Thanks to everyone who helped out on this
> >
> > --joel
> >>
> >>
> >> Thanks,
> >> Alan
> >>
> >> On Fri, Jun 25, 2021 at 12:18 PM pranav  wrote:
> >> >
> >> > ---
> >> >  spec/build/bsps/arm/raspberrypi/grp.yml |  8 
> >> >  spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml | 15 +++
> >> >  spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml  | 16 
> >> >  spec/build/bsps/arm/raspberrypi/optfdtro.yml| 15 +++
> >> >  spec/build/bsps/arm/raspberrypi/optfdtuboot.yml | 15 +++
> >> >  5 files changed, 69 insertions(+)
> >> >  create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
> >> >  create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
> >> >  create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtro.yml
> >> >  create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtuboot.yml
> >> >
> Please move the existing files from spec/build/bsps/arm/beagle/ into
> spec/build/bsps/arm, and update the grp.yml for beagle and raspberrypi
> accordingly.
>
> It is best to avoid copy-paste where possible.
>
> Resend as -v2, and check compile on beagle and rpi.
>

I've sent the v2, the files were being used in the cyclone-v and imx
too, so I've moved those out too.


> >> > diff --git a/spec/build/bsps/arm/raspberrypi/grp.yml 
> >> > b/spec/build/bsps/arm/raspberrypi/grp.yml
> >> > index 7291e8b178..a810fdd529 100644
> >> > --- a/spec/build/bsps/arm/raspberrypi/grp.yml
> >> > +++ b/spec/build/bsps/arm/raspberrypi/grp.yml
> >> > @@ -31,6 +31,14 @@ links:
> >> >uid: optrpi2
> >> >  - role: build-dependency
> >> >uid: optspiiomode
> >> > +- role: build-dependency
> >> > +  uid: optfdtuboot
> >> > +- role: build-dependency
> >> > +  uid: optfdtcpyro
> >> > +- role: build-dependency
> >> > +  uid: optfdtmxsz
> >> > +- role: build-dependency
> >> > +  uid: optfdtro
> >> >  - role: build-dependency
> >> >uid: ../start
> >> >  - role: build-dependency
> >> > diff --git a/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml 
> >> > b/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
> >> > new file mode 100644
> >> > index 00..c26b1ae051
> >> > --- /dev/null
> >> > +++ b/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
> >> > @@ -0,0 +1,15 @@
> >> > +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> >> > +actions:
> >> > +- get-boolean: null
> >> > +- define-condition: null
> >> > +build-type: option
> >> > +copyrights:
> >> > +- Copyright (C) 2020 embedded brains GmbH 
> >> > (http://www.embedded-brains.de)
> >> > +default: true
> >> > +default-by-variant: []
> >> > +description: |
> >> > +  copy the FDT blob into the read-only load area via bsp_fdt_copy()
> >> > +enabled-by: true
> >> > +links: []
> >> > +name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
> >> > +type: build
> >> > diff --git a/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml 
> >> > b/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
> >> > new file mode 100644
> >> > index 00..14af766230
> >> > --- /dev/null
> >> > +++ b/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
> >> > @@ -0,0 +1,16 @@
> >> > +SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
> >> > +actions:
> >> > +- get-integer: null
> >> > +- define: null
> >> > +build-type: option
> >> > +copyrights:
> >> > +- Copyright (C) 202

[PATCH v2] bsps/arm: Move optfdt* files to shared parent directory

2021-06-27 Thread pranav
---
 .../arm/altera-cyclone-v/bspalteracyclonev.yml   |  8 
 spec/build/bsps/arm/beagle/grp.yml   |  8 
 spec/build/bsps/arm/beagle/optfdtcpyro.yml   | 15 ---
 spec/build/bsps/arm/beagle/optfdtmxsz.yml| 16 
 spec/build/bsps/arm/beagle/optfdtro.yml  | 15 ---
 spec/build/bsps/arm/beagle/optfdtuboot.yml   | 15 ---
 spec/build/bsps/arm/imx/bspimx.yml   |  8 
 spec/build/bsps/arm/imx/optfdtcpyro.yml  | 15 ---
 spec/build/bsps/arm/imx/optfdtmxsz.yml   | 16 
 spec/build/bsps/arm/imx/optfdtro.yml | 15 ---
 spec/build/bsps/arm/imx/optfdtuboot.yml  | 15 ---
 .../arm/{altera-cyclone-v => }/optfdtcpyro.yml   |  0
 .../arm/{altera-cyclone-v => }/optfdtmxsz.yml|  0
 .../bsps/arm/{altera-cyclone-v => }/optfdtro.yml |  0
 .../arm/{altera-cyclone-v => }/optfdtuboot.yml   |  0
 spec/build/bsps/arm/raspberrypi/grp.yml  |  8 
 16 files changed, 20 insertions(+), 134 deletions(-)
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/beagle/optfdtuboot.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtcpyro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtmxsz.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtro.yml
 delete mode 100644 spec/build/bsps/arm/imx/optfdtuboot.yml
 rename spec/build/bsps/arm/{altera-cyclone-v => }/optfdtcpyro.yml (100%)
 rename spec/build/bsps/arm/{altera-cyclone-v => }/optfdtmxsz.yml (100%)
 rename spec/build/bsps/arm/{altera-cyclone-v => }/optfdtro.yml (100%)
 rename spec/build/bsps/arm/{altera-cyclone-v => }/optfdtuboot.yml (100%)

diff --git a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml 
b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
index da567ddd79..faf7203cd4 100644
--- a/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
+++ b/spec/build/bsps/arm/altera-cyclone-v/bspalteracyclonev.yml
@@ -73,15 +73,15 @@ links:
 - role: build-dependency
   uid: optconuart1
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../optfdtcpyro
 - role: build-dependency
   uid: optfdten
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../optfdtuboot
 - role: build-dependency
   uid: opti2cspeed
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/grp.yml 
b/spec/build/bsps/arm/beagle/grp.yml
index 1375913fd0..20fafa79a0 100644
--- a/spec/build/bsps/arm/beagle/grp.yml
+++ b/spec/build/bsps/arm/beagle/grp.yml
@@ -22,13 +22,13 @@ links:
 - role: build-dependency
   uid: optdm3730
 - role: build-dependency
-  uid: optfdtcpyro
+  uid: ../optfdtcpyro
 - role: build-dependency
-  uid: optfdtmxsz
+  uid: ../optfdtmxsz
 - role: build-dependency
-  uid: optfdtro
+  uid: ../optfdtro
 - role: build-dependency
-  uid: optfdtuboot
+  uid: ../optfdtuboot
 - role: build-dependency
   uid: ../grp
 - role: build-dependency
diff --git a/spec/build/bsps/arm/beagle/optfdtcpyro.yml 
b/spec/build/bsps/arm/beagle/optfdtcpyro.yml
deleted file mode 100644
index c26b1ae051..00
--- a/spec/build/bsps/arm/beagle/optfdtcpyro.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-boolean: null
-- define-condition: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: true
-default-by-variant: []
-description: |
-  copy the FDT blob into the read-only load area via bsp_fdt_copy()
-enabled-by: true
-links: []
-name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
-type: build
diff --git a/spec/build/bsps/arm/beagle/optfdtmxsz.yml 
b/spec/build/bsps/arm/beagle/optfdtmxsz.yml
deleted file mode 100644
index 14af766230..00
--- a/spec/build/bsps/arm/beagle/optfdtmxsz.yml
+++ /dev/null
@@ -1,16 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-integer: null
-- define: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
-default: 262144
-default-by-variant: []
-description: |
-  maximum size of the FDT blob in bytes
-enabled-by: true
-format: '{}'
-links: []
-name: BSP_FDT_BLOB_SIZE_MAX
-type: build
diff --git a/spec/build/bsps/arm/beagle/optfdtro.yml 
b/spec/build/bsps/arm/beagle/optfdtro.yml
deleted file mode 100644
index a61bb2924b..00
--- a/spec/build/bsps/arm/beagle/optfdtro.yml
+++ /dev/null
@@ -1,15 +0,0 @@
-SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
-actions:
-- get-boolean: null
-- define-condition: null
-build-type: option
-copyrights:
-- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)

[PATCH] bsps/raspberrypi: Add FDT defines to build options

2021-06-25 Thread pranav
---
 spec/build/bsps/arm/raspberrypi/grp.yml |  8 
 spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml | 15 +++
 spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml  | 16 
 spec/build/bsps/arm/raspberrypi/optfdtro.yml| 15 +++
 spec/build/bsps/arm/raspberrypi/optfdtuboot.yml | 15 +++
 5 files changed, 69 insertions(+)
 create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
 create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
 create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtro.yml
 create mode 100644 spec/build/bsps/arm/raspberrypi/optfdtuboot.yml

diff --git a/spec/build/bsps/arm/raspberrypi/grp.yml 
b/spec/build/bsps/arm/raspberrypi/grp.yml
index 7291e8b178..a810fdd529 100644
--- a/spec/build/bsps/arm/raspberrypi/grp.yml
+++ b/spec/build/bsps/arm/raspberrypi/grp.yml
@@ -31,6 +31,14 @@ links:
   uid: optrpi2
 - role: build-dependency
   uid: optspiiomode
+- role: build-dependency
+  uid: optfdtuboot
+- role: build-dependency
+  uid: optfdtcpyro
+- role: build-dependency
+  uid: optfdtmxsz
+- role: build-dependency
+  uid: optfdtro
 - role: build-dependency
   uid: ../start
 - role: build-dependency
diff --git a/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml 
b/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
new file mode 100644
index 00..c26b1ae051
--- /dev/null
+++ b/spec/build/bsps/arm/raspberrypi/optfdtcpyro.yml
@@ -0,0 +1,15 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-boolean: null
+- define-condition: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  copy the FDT blob into the read-only load area via bsp_fdt_copy()
+enabled-by: true
+links: []
+name: BSP_FDT_BLOB_COPY_TO_READ_ONLY_LOAD_AREA
+type: build
diff --git a/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml 
b/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
new file mode 100644
index 00..14af766230
--- /dev/null
+++ b/spec/build/bsps/arm/raspberrypi/optfdtmxsz.yml
@@ -0,0 +1,16 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-integer: null
+- define: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: 262144
+default-by-variant: []
+description: |
+  maximum size of the FDT blob in bytes
+enabled-by: true
+format: '{}'
+links: []
+name: BSP_FDT_BLOB_SIZE_MAX
+type: build
diff --git a/spec/build/bsps/arm/raspberrypi/optfdtro.yml 
b/spec/build/bsps/arm/raspberrypi/optfdtro.yml
new file mode 100644
index 00..a61bb2924b
--- /dev/null
+++ b/spec/build/bsps/arm/raspberrypi/optfdtro.yml
@@ -0,0 +1,15 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-boolean: null
+- define-condition: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  place the FDT blob into the read-only data area
+enabled-by: true
+links: []
+name: BSP_FDT_BLOB_READ_ONLY
+type: build
diff --git a/spec/build/bsps/arm/raspberrypi/optfdtuboot.yml 
b/spec/build/bsps/arm/raspberrypi/optfdtuboot.yml
new file mode 100644
index 00..5805e912ff
--- /dev/null
+++ b/spec/build/bsps/arm/raspberrypi/optfdtuboot.yml
@@ -0,0 +1,15 @@
+SPDX-License-Identifier: CC-BY-SA-4.0 OR BSD-2-Clause
+actions:
+- get-boolean: null
+- define-condition: null
+build-type: option
+copyrights:
+- Copyright (C) 2020 embedded brains GmbH (http://www.embedded-brains.de)
+default: true
+default-by-variant: []
+description: |
+  copy the U-Boot provided FDT to an internal storage
+enabled-by: true
+links: []
+name: BSP_START_COPY_FDT_FROM_U_BOOT
+type: build
-- 
2.27.0

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


Re: [PATCH rtems-docs 1/1] user/bsps/arm/raspberrypi: Changed the link to the Raspberry Pi Firmware to point to Firmware Version 1.20200601

2021-06-15 Thread Pranav Dangi
I tried debugging by adding printk() statements to the start-up code but
couldn't find anything conclusive. I am stuck there and am still trying to
figure out what broke the BSP after that particular version of the
firmware. If not, I will try to see if using u-boot we can fix this.
Meanwhile, this update to the docs temporarily ensures using of the older
firmware to boot the BSP.

On Mon, 14 Jun 2021, 20:23 Gedare Bloom,  wrote:

> On Mon, Jun 14, 2021 at 3:02 AM pranav  wrote:
> >
> > Updated the link to the Raspberry Pi Firmware in RTEMS 5 docs, since the
> BSP works with an older version of the firmware currently.
> > ---
> >  user/bsps/arm/raspberrypi.rst | 7 ---
> >  1 file changed, 4 insertions(+), 3 deletions(-)
> >
> > diff --git a/user/bsps/arm/raspberrypi.rst
> b/user/bsps/arm/raspberrypi.rst
> > index c26f4b5..84e45b9 100644
> > --- a/user/bsps/arm/raspberrypi.rst
> > +++ b/user/bsps/arm/raspberrypi.rst
> > @@ -19,9 +19,10 @@ The bootloader looks for a kernel image, by default
> the kernel images must
> >  have a name of the form ``kernel*.img`` but this can be changed by
> adding
> >  `kernel=` to ``config.txt``.
> >
> > -You must provide the required files for the GPU to proceed. These files
> > -can be downloaded from
> > -`the Raspberry Pi Firmware Repository <
> https://github.com/raspberrypi/firmware/tree/master/boot>`_.
> > +You must provide the required files for the GPU to proceed. The BSP
> > +currently boots with an older version of the official Raspberry Pi
> Firmware.
>
> Can you please expand on this sentence to explain why / that newer
> versions don't work?
>
> > +These files can be downloaded from
> > +`the Raspberry Pi Firmware Repository <
> https://github.com/raspberrypi/firmware/tree/1.20200601/boot>`_.
> >  You can remove the ``kernel*.img`` files if you want too, but don't
> touch
> >  the other files.
> >
> > --
> > 2.27.0
> >
> > ___
> > 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

[PATCH rtems-docs 1/1] user/bsps/arm/raspberrypi: Changed the link to the Raspberry Pi Firmware to point to Firmware Version 1.20200601

2021-06-14 Thread pranav
Updated the link to the Raspberry Pi Firmware in RTEMS 5 docs, since the BSP 
works with an older version of the firmware currently.
---
 user/bsps/arm/raspberrypi.rst | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst
index c26f4b5..84e45b9 100644
--- a/user/bsps/arm/raspberrypi.rst
+++ b/user/bsps/arm/raspberrypi.rst
@@ -19,9 +19,10 @@ The bootloader looks for a kernel image, by default the 
kernel images must
 have a name of the form ``kernel*.img`` but this can be changed by adding
 `kernel=` to ``config.txt``.
 
-You must provide the required files for the GPU to proceed. These files
-can be downloaded from
-`the Raspberry Pi Firmware Repository 
`_.
+You must provide the required files for the GPU to proceed. The BSP 
+currently boots with an older version of the official Raspberry Pi Firmware.
+These files can be downloaded from
+`the Raspberry Pi Firmware Repository 
`_.
 You can remove the ``kernel*.img`` files if you want too, but don't touch
 the other files.
 
-- 
2.27.0

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


Error in building The RTEMS 5 Docs

2021-06-13 Thread Pranav Dangi
Building the RTEMS 5 docs using the waf build system fails and throws up an
error in sphinx:

err:
Extension error:
You must configure the bibtex_bibfiles setting.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

GSoC'21 Raspberry Pi BSP project

2021-04-05 Thread Pranav Dangi
I've been going through the RTEMS raspberry pi repository, And i'm having
trouble understanding a couple of things there. the Pi1 (and Pi Zero) had
the BCM2835 SoC while the pi2 had the BCM2836 SoC, now, in the bsp
directory where the raspberry pi header is defined, the header file has
register definitions for both BCM2835 (for GPIO, I2C, etc.) and BCM2836
(for the 4 cores).
However, the corresponding i2c.c or gpio.c files for the bsp only have code
for the BCM2835_REG registers and not their BCM2836 i.e. the raspberry pi2
counterparts.
So, is the support for pi2 same as that of pi1 (selecting the particular
bsp doesn't make sense then) or am I missing something?
Since the Pi3 has the BCM2837 (the architecture of which is identical to
BC2836 since both are based on the BCM2709), any information about the
above would be helpful for me if I'm adding support for the Pi3 or 4 as my
GSoC project.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Re: GSoC 2021 - Raspberry Pi projects

2021-04-04 Thread Pranav Dangi
In addition to the previous mail, i've completed the basic Hello task. If a
mentor who has previously worked on the raspberry pi bsp could let me know
if the ticket is obsolete or not, I can immediately get started with the
required work on it.

On Fri, 2 Apr 2021, 14:35 Pranav Dangi,  wrote:

> Hi everyone,
> I am keen on working on the Raspberry Pi project #2899
> <https://devel.rtems.org/ticket/2899>. However, the ticket and also the
> TODOs in the github README
> <https://github.com/RTEMS/rtems/tree/master/bsps/arm/raspberrypi> for the
> same haven't been updated since 4 years, so I am not sure what work needs
> to be done specifically. For example, the README lists support for SPI and
> GPIO in TODO but apparently support for them has already been added.
> Moreover given the smaller GSoC, I'd like a mentor to elaborate on the
> potential scope of the project.
> From what I could understand so far, I think I can continue/complete the
> previous GSoC projects(the situation seems fine on drivers for the initial
> Pis), or work on the support for Pi 3 or 4.
> PS: I only have spare Pi Zeroes at home, so I'll be getting the hardware
> for the specific project this week depending on what aspect I have to work
> on.
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

GSoC 2021 - Raspberry Pi projects

2021-04-02 Thread Pranav Dangi
Hi everyone,
I am keen on working on the Raspberry Pi project #2899
. However, the ticket and also the
TODOs in the github README
 for the
same haven't been updated since 4 years, so I am not sure what work needs
to be done specifically. For example, the README lists support for SPI and
GPIO in TODO but apparently support for them has already been added.
Moreover given the smaller GSoC, I'd like a mentor to elaborate on the
potential scope of the project.
>From what I could understand so far, I think I can continue/complete the
previous GSoC projects(the situation seems fine on drivers for the initial
Pis), or work on the support for Pi 3 or 4.
PS: I only have spare Pi Zeroes at home, so I'll be getting the hardware
for the specific project this week depending on what aspect I have to work
on.
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel