[PATCH] Updated docs to use the standalone SIS simulator, instead of GDB inbuilt SIS for the erc32 BSP.

2019-11-25 Thread G S Niteesh
--- user/start/bsp-test.rst | 4 +- user/tools/tester.rst | 144 2 files changed, 132 insertions(+), 16 deletions(-) diff --git a/user/start/bsp-test.rst b/user/start/bsp-test.rst index 5278375..aefeeb9 100644 --- a/user/start/bsp-test.rst +++

[PATCH] Raspberrypi: updated the console interface.

2019-12-27 Thread G S Niteesh
The patch updates the older console interface used by the BSP, to newer one. It also replaces the custom usart(PL011) driver with arm-pl011. The fb functions signatures where also changed to accommodate with interface update. --- bsps/arm/raspberrypi/console/console-config.c | 67 +

[PATCH] Updated docs to use the standalone SIS simulator, instead of GDB inbuilt SIS for the erc32 BSP.

2019-12-27 Thread G S Niteesh
--- user/start/bsp-test.rst | 4 +- user/tools/tester.rst | 144 2 files changed, 132 insertions(+), 16 deletions(-) diff --git a/user/start/bsp-test.rst b/user/start/bsp-test.rst index 5278375..aefeeb9 100644 --- a/user/start/bsp-test.rst +++

Re: [PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-02-13 Thread G. S. Niteesh
> >> > >> > >> But this is a vast improvement over "TODO", so I recommend accepting > >> this change. > >> > >> Thanks for creating this, > >> Alan > >> > >> On Thu, Feb 13, 2020 at 1:49 A

Re: [PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-02-13 Thread G. S. Niteesh
QEMU following your instructions but have > not been able to get time to complete my tests. What problem are you exactly facing? > > But this is a vast improvement over "TODO", so I recommend accepting > this change. > > Thanks for creating this, > Alan > >

Re: rtems-boot-image tool: Raspberry Pi

2020-02-25 Thread G. S. Niteesh
On Wed, Feb 26, 2020 at 8:39 AM Chris Johns wrote: > On 22/2/20 1:45 am, G. S. Niteesh wrote: > > Hi, > > > > This is regarding adding RPi support to the boot image generation tool. > > > > The boot process for Raspberry Pi is very unconventional. The GPU starts

Re: rtems-boot-image tool: Raspberry Pi

2020-03-05 Thread G. S. Niteesh
On Wed, Feb 26, 2020 at 8:39 AM Chris Johns wrote: > On 22/2/20 1:45 am, G. S. Niteesh wrote: > > Hi, > > > > This is regarding adding RPi support to the boot image generation tool. > > > > The boot process for Raspberry Pi is very unconventional. The GPU starts

Re: rtems-boot-image tool: Raspberry Pi

2020-02-23 Thread G. S. Niteesh
Hii, This is a follow-up message since this thread has been unnoticed for a while. Thank you, Niteesh On Fri, Feb 21, 2020 at 8:15 PM G. S. Niteesh wrote: > Hi, > > This is regarding adding RPi support to the boot image generation tool. > > The boot process for Raspb

Re: RTEMS test

2020-02-25 Thread G. S. Niteesh
> > > Hello, > I'm trying to run the rtems-test after closing my computer and switching > operating systems(dual booted computer), but weirdly enough, I received the > message > rtems-test: command not found > So I attempted running the command for rtems-tools, but then the message I > received

Re: rtems-boot-image tool: Raspberry Pi

2020-02-24 Thread G. S. Niteesh
I am sorry. I'll make sure it doesn't happen again. On Mon, Feb 24, 2020 at 9:18 PM Gedare Bloom wrote: > Hi Niteesh, > > On Sun, Feb 23, 2020 at 11:34 PM G. S. Niteesh wrote: > > > > Hii, > > > > This is a follow-up message since this thread has been unnoticed

[PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-01-25 Thread G S Niteesh
Added instructions to run examples on raspberrypi. --- user/bsps/arm/raspberrypi.rst | 111 +- 1 file changed, 110 insertions(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 4ef75bd..72889a5 100644 ---

[PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-09 Thread G S Niteesh
This patch adds driver for Mini UART present in Raspberry Pi 3 and above, this UART is currently used as the primary UART in these models. The Mini UART is similar to ns16550, this driver is built upon libchip/ns16550. --- bsps/arm/raspberrypi/console/console-config.c | 118 --

[PATCH v3 1/2] libchip/ns16550: Allow user calculate baud divisor

2020-02-09 Thread G S Niteesh
This patch will allow the user to pass a function to calculate the baud divisor. This will allow for more flexibility, since for some BSPs like raspberrypi, the calculation of baud divisor is different from what is in the current driver. --- bsps/include/libchip/ns16550.h | 9 +++--

Re: [PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-16 Thread G. S. Niteesh
ess simpler I have uploaded my u-boot.bin to my github, please use it :) https://github.com/gs-niteesh/rpi3_RTEMS And sorry for the delay, I tested all these instructions again before sending them. Thanks Niteesh. On Sun, Feb 16, 2020 at 2:35 AM G. S. Niteesh wrote: > > > > Hii,

Re: [PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-16 Thread G. S. Niteesh
bly wont get a chance to try u-boot until later today or tomorrow. > > But these patches are great for enabling the Pi Zero W and Pi 3 models! > Thanks, > Alan > > On Sun, Feb 16, 2020 at 10:58 AM G. S. Niteesh wrote: > > > > On Sun, Feb 16, 2020 at 8:37 PM Alan Cudmo

Re: [PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-16 Thread G. S. Niteesh
at 11:44 AM Christian Mauderer > wrote: > > > > On 16/02/2020 17:31, G. S. Niteesh wrote: > > > Can you please share your config.txt for Pi3. > > > > +1 > > > > It's interesting that it seems to work without an adapted config.txt. It > > sh

Re: [PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-16 Thread G. S. Niteesh
Can someone please push these patches? Thanks, Niteesh On Sun, Feb 16, 2020 at 11:05 PM Alan Cudmore wrote: > Awesome! The Pi Zero W is a bonus too! I think we can run RTEMS on all > models except the Pi 4 now. > > On Sun, Feb 16, 2020 at 12:30 PM G. S. Niteesh wrote: >

Re: [PATCH v3 2/2] bsp/raspberrypi: Mini UART driver

2020-02-15 Thread G. S. Niteesh
, 2020 at 12:52 AM G S Niteesh wrote: > This patch adds driver for Mini UART present in Raspberry Pi 3 > and above, this UART is currently used as the primary UART in > these models. > The Mini UART is similar to ns16550, this driver is built > upon libchip/ns16550. > --- >

GSoC 2020 Proposal | Beagle BSP: Add a flattened device tree based initialization

2020-02-17 Thread G. S. Niteesh
Hi everyone, I have completed my proposal for GSoC 2020 for the project https://devel.rtems.org/ticket/3784. I would like to get suggestions from the community regarding the proposal. Below is the link to my proposal please have a look.

rtems-boot-image tool: Raspberry Pi

2020-02-21 Thread G. S. Niteesh
Hi, This is regarding adding RPi support to the boot image generation tool. The boot process for Raspberry Pi is very unconventional. The GPU starts first, initializes RAM, other hardware, loads the bootloaders and then starts the ARM CPU. The minimum files that are required to boot an RPi are

[PATCH] RTEMS Docs: Fix search field

2020-02-22 Thread G S Niteesh Babu
This patch fixes the search field which previously was not working due to this commit 71dd8bfbf94417ad55b2444e1dbd219db266f335 in sphinx. --- common/sphinx_rtd_theme_rtems/layout.html | 3 ++- common/sphinx_rtd_theme_rtems/layout_old.html | 3 ++- 2 files changed, 4 insertions(+), 2

Re: [PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-02-15 Thread G. S. Niteesh
Another remainder. Can someone please push this? Thanks, Niteesh On Thu, Feb 13, 2020 at 11:19 PM G. S. Niteesh wrote: > On Thu, Feb 13, 2020 at 11:16 PM Alan Cudmore > wrote: > >> "set scheduler-locking on" in GDB works! I was able to run RPI2 hello.exe >> >

Re: [PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-02-13 Thread G. S. Niteesh
t; Great. But just a caution, QEMU support raspberry pi is very much incomplete so any exception or problem may be from QEMU side and not RTEMS. So if any test goes wrong, try running it on a real board. Thanks, Niteesh > On Thu, Feb 13, 2020 at 12:30 PM G. S. Niteesh wrote: > > > &

Re: [PATCH v4] doc/raspberrypi: Added instructions for raspberrypi

2020-02-12 Thread G. S. Niteesh
Can someone take a look at this, It has been unnoticed for quite a while. Thank you, Niteesh On Sat, Jan 25, 2020 at 10:49 PM G S Niteesh wrote: > Added instructions to run examples on raspberrypi. > --- > user/bsps/arm/raspberrypi.rst | 111 +-

[PATCH] libchip/ns16550: Allow user calculate baud divisor

2020-01-15 Thread G S Niteesh
This patch will allow the user to pass a function to calculate the baud divisor. This is will allow for more flexibility, since for some BSP's like raspberrypi, the calculate of baud divisor is different from what is in the current driver. --- bsps/include/libchip/ns16550.h | 11

[PATCH] bsp/raspberrypi: AUX uart driver

2020-01-15 Thread G S Niteesh
This patch adds the driver for aux driver present in Raspberry Pi 3 and above, this uart is currently used as the primary uart. The AUX uart is similar to ns16550, it uses the libchip/ns16550 driver. --- bsps/arm/raspberrypi/console/console-config.c | 113 --

[PATCH v2 2/2] bsp/raspberrypi: Mini UART driver

2020-01-21 Thread G S Niteesh
This patch adds driver for Mini UART present in Raspberry Pi 3 and above, this UART is currently used as the primary UART in these models. The Mini UART is similar to ns16550, this driver is built upon libchip/ns16550. --- bsps/arm/raspberrypi/console/console-config.c | 117 --

[PATCH v2 1/2] libchip/ns16550: Allow user calculate baud divisor

2020-01-21 Thread G S Niteesh
This patch will allow the user to pass a function to calculate the baud divisor. This will allow for more flexibility, since for some BSPs like raspberrypi, the calculation of baud divisor is different from what is in the current driver. --- bsps/include/libchip/ns16550.h | 9 +++--

[PATCH 1/2] libchip/ns16550: Allow user calculate baud divisor

2020-01-17 Thread G S Niteesh
This patch will allow the user to pass a function to calculate the baud divisor. This is will allow for more flexibility, since for some BSP's like raspberrypi, the calculate of baud divisor is different from what is in the current driver. --- bsps/include/libchip/ns16550.h | 9

[PATCH 2/2] bsp/raspberrypi: Mini UART driver

2020-01-17 Thread G S Niteesh
This patch adds driver for Mini UART present in Raspberry Pi 3 and above, this UART is currently used as the primary UART in these models. The Mini UART is similar to ns16550, this driver is built upon libchip/ns16550. --- bsps/arm/raspberrypi/console/console-config.c | 117 --

[PATCH v3] doc/raspberrypi: Added instructions for raspberrypi

2020-01-12 Thread G S Niteesh
Added instructions to run examples on raspberrypi. --- user/bsps/arm/raspberrypi.rst | 85 ++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 4ef75bd..8e4b38c 100644 ---

[PATCH] bsp/raspberry: Enabled FDT support for console.

2020-01-02 Thread G S Niteesh
Replaced the older console api with newer FDT based console driver. Replaces the custom pl011 driver with RTEMS arm-pl011 driver. --- bsps/arm/raspberrypi/console/console-config.c | 156 bsps/arm/raspberrypi/console/console_select.c | 114

[PATCH] bsp/raspberrypi: Enable FDT support.

2020-01-02 Thread G S Niteesh
This commit adds FDT support to the BSP. --- bsps/arm/raspberrypi/include/bsp.h| 4 c/src/lib/libbsp/arm/raspberrypi/Makefile.am | 1 + c/src/lib/libbsp/arm/raspberrypi/configure.ac | 13 + 3 files changed, 18 insertions(+) diff --git

[PATCH] bsp/raspberrypi: Updated the console API.

2020-01-03 Thread G S Niteesh
Replaces the legacy termios API with new termios API (#3034) Replaces the custom PL011 serial driver with RTEMS arm-pl011. Update #3034 --- bsps/arm/raspberrypi/console/console-config.c | 148 bsps/arm/raspberrypi/console/console_select.c | 114

[PATCH v5] Raspberrypi: updated the console interface.

2020-01-01 Thread G S Niteesh
Replaced the older console api with newer FDT based console driver. Replaces the custom pl011 driver with RTEMS arm-pl011 driver. --- bsps/arm/raspberrypi/console/console-config.c | 161 + bsps/arm/raspberrypi/console/console_select.c | 114

[PATCH v3] Raspberrypi: updated the console interface.

2019-12-29 Thread G S Niteesh
The patch updates the older console interface used by the BSP, to newer one. It also replaces the custom usart(PL011) driver with arm-pl011. The fb function's signatures where also changed to accommodate with interface update. Update #3034 --- bsps/arm/raspberrypi/console/console-config.c | 182

[PATCH] doc/raspberrypi: Added instructions for raspberrypi

2020-01-05 Thread G S Niteesh
Added instructions to run examples on raspberrypi. --- user/bsps/arm/raspberrypi.rst | 75 ++- 1 file changed, 74 insertions(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 4ef75bd..653f8a7 100644 ---

[PATCH v2] bsp/raspberrypi: Updated the console API.

2020-01-04 Thread G S Niteesh
Replaces the legacy termios API with new termios API (#3034) Replaces the custom PL011 serial driver with RTEMS arm-pl011. Update #3034 --- bsps/arm/raspberrypi/console/console-config.c | 143 +++ bsps/arm/raspberrypi/console/console_select.c | 114

[PATCH v2] doc/raspberrypi: Added instructions for raspberrypi

2020-01-05 Thread G S Niteesh
Added instructions to run examples on raspberrypi. --- user/bsps/arm/raspberrypi.rst | 74 ++- 1 file changed, 73 insertions(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 4ef75bd..7eccca5 100644 ---

[PATCH v3] doc/raspberrypi: Added instructions for raspberrypi

2020-01-06 Thread G S Niteesh
Added instructions to run examples on raspberrypi. --- user/bsps/arm/raspberrypi.rst | 73 ++- 1 file changed, 72 insertions(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 4ef75bd..b986411 100644 ---

[PATCH v2] Raspberrypi: updated the console interface.

2019-12-28 Thread G S Niteesh
The patch updates the older console interface used by the BSP, to newer one. It also replaces the custom usart(PL011) driver with arm-pl011. The fb function's signatures where also changed to accommodate with interface update. Update #3034 --- bsps/arm/raspberrypi/console/console-config.c | 62

Any short projects available?

2020-03-10 Thread G. S. Niteesh
Hii, I interested in taking up small tasks/projects as a primer for GSoC. I am mostly interested in drivers, build system, core (Schedulers, MPU, etc) part of RTEMS. I am also okay with large projects if small ones aren't available. I'll start learning about them and will start working after

Re: GSoC 2020 Proposal | Beagle BSP: Add a flattened device tree based initialization

2020-03-15 Thread G. S. Niteesh
Hii, I have modified the proposal as per your suggestions. Please have a look again. Thank you, Niteesh. On Mon, Feb 17, 2020 at 11:46 PM Vijay Kumar Banerjee < vijaykumar9...@gmail.com> wrote: > > > On Mon, Feb 17, 2020 at 1:32 PM G. S. Niteesh wrote: > >> Hi everyone

[PATCH] bsp/beagle: Update console to new Termios device API.

2020-03-15 Thread G S Niteesh Babu
This patch updates the console to use new Termios device API. Update #3034 --- bsps/arm/beagle/console/console-config.c | 66 +++- 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/bsps/arm/beagle/console/console-config.c

[PATCH v2] bsp/beagle: Update console to new Termios device API.

2020-03-15 Thread G S Niteesh Babu
This patch updates the console to use new Termios device API. Update #3034 --- bsps/arm/beagle/console/console-config.c | 66 +++- 1 file changed, 41 insertions(+), 25 deletions(-) diff --git a/bsps/arm/beagle/console/console-config.c

[PATCH rtems-docs] user/raspberrypi: Fix typo

2020-03-16 Thread G S Niteesh Babu
enable-uart should be enable_uart in config.txt --- user/bsps/arm/raspberrypi.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/user/bsps/arm/raspberrypi.rst b/user/bsps/arm/raspberrypi.rst index 72889a5..c26f4b5 100644 --- a/user/bsps/arm/raspberrypi.rst +++

[PATCH docs] start/gsoc: GSoC Getting started instructions.

2020-04-02 Thread G S Niteesh Babu
Added instructions to setup development environment for students interested in GSoC. --- user/index.rst | 1 + user/start/gsoc.rst | 132 +++ user/start/index.rst | 1 + 3 files changed, 134 insertions(+) create mode 100644 user/start/gsoc.rst

Re: rtems-boot-image tool: Raspberry Pi

2020-04-05 Thread G. S. Niteesh
t; some time ago. A lot of us are quite busy right now but that shouldn't > happen. If you don't get a response for some question: Please give it > about a week of time and then just ping the thread. > > On 05/03/2020 11:06, G. S. Niteesh wrote: > > On Wed, Feb 26, 2020 at 8:39

[PATCH 2/2] gpio/gpio-support: Fix build warnings.

2020-03-28 Thread G S Niteesh Babu
Fixes "array subscript is outside array bounds" in gpio-support.c --- bsps/shared/dev/gpio/gpio-support.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bsps/shared/dev/gpio/gpio-support.c b/bsps/shared/dev/gpio/gpio-support.c index 9c053dc151..04f1c8ca90 100644 ---

[PATCH 1/2] bsp/raspberrypi: Fix build warnings.

2020-03-28 Thread G S Niteesh Babu
1) _Memory_Initialize makes pointer from integer w ithout a cast. 2) printf format error, expects %u but %lu provided. --- bsps/arm/raspberrypi/irq/irq.c | 2 +- bsps/arm/raspberrypi/start/bspstarthooks.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git

[PATCH v2] bsp/raspberrypi: Fix build warnings.

2020-03-28 Thread G S Niteesh Babu
1) _Memory_Initialize makes pointer from integer without a cast. 2) printf format error, expects %u but %lu provided. --- bsps/arm/raspberrypi/irq/irq.c | 4 +++- bsps/arm/raspberrypi/start/bspstarthooks.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git

[PATCH docs] user/bsp-build: Fix broken cross references.

2020-04-02 Thread G S Niteesh Babu
The QuickStartBSPBuild_Manual and QuickStartBSPBuild_RSB are missing the underscore in front. This breaks any reference to them from other sections. --- user/start/bsp-build.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/start/bsp-build.rst

[PATCH 0/2 rtems-release] Add script to branch repositories.

2020-05-01 Thread G S Niteesh Babu
The following patches add a script to rtems-release to automate branching of repositories for rtems release. G S Niteesh Babu (2): rtems-release-defaults: Added rtems_repos to rtems-release-defaults. rtems-release-branch: Added a script file to branch repositories. rtems-release-branch

[PATCH 2/2] rtems-release-branch: Added a script file to branch repositories.

2020-05-01 Thread G S Niteesh Babu
--- rtems-release-branch | 146 +++ 1 file changed, 146 insertions(+) create mode 100755 rtems-release-branch diff --git a/rtems-release-branch b/rtems-release-branch new file mode 100755 index 000..ae8e06c --- /dev/null +++ b/rtems-release-branch @@

[PATCH 1/2] rtems-release-defaults: Added rtems_repos to rtems-release-defaults.

2020-05-01 Thread G S Niteesh Babu
rtems_repos is variable which contains all rtems_repositories. For eg: rtems_repos="rtems.git rtems-examples.git etc." --- rtems-release-defaults | 11 +++ 1 file changed, 11 insertions(+) diff --git a/rtems-release-defaults b/rtems-release-defaults index 60d9721..fc30157 100755 ---

[PATCH] user/gsoc: GSoC Getting Started Instructions

2020-03-17 Thread G S Niteesh Babu
--- user/index.rst | 1 + user/start/gsoc.rst | 453 +++ user/start/index.rst | 1 + 3 files changed, 455 insertions(+) create mode 100644 user/start/gsoc.rst diff --git a/user/index.rst b/user/index.rst index 0e644c9..f253ea6 100644 ---

[PATCH docs] user/bsps: Remove gdbarmsim

2020-03-20 Thread G S Niteesh Babu
Remove gdbarmsim from list of BSPs in docs. Since, the BSPs has been removed from RTEMS by Joel. --- user/bsps/arm/gdbarmsim.rst | 8 1 file changed, 8 deletions(-) delete mode 100644 user/bsps/arm/gdbarmsim.rst diff --git a/user/bsps/arm/gdbarmsim.rst b/user/bsps/arm/gdbarmsim.rst

[PATCH v3] bsp/beagle: Update console to new Termios API.

2020-03-23 Thread G S Niteesh Babu
This patch updates the console driver to new Termios API. Update #3034 --- bsps/arm/beagle/console/console-config.c | 117 +-- c/src/lib/libbsp/arm/beagle/Makefile.am | 4 +- 2 files changed, 69 insertions(+), 52 deletions(-) diff --git

[PATCH v2] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-20 Thread G S Niteesh Babu
RTEMS OFW is a FDT only implementation of the OpenFirmWare interface. This API is created to be compatible with FreeBSD OpenFirmWare interface. The main intention is to make porting of FreeBSD drivers to RTEMS easier. Most functions implemented have an direct one-one mapping with the original OFW

[PATCH] bsps/shared/ofw: Implement RTEMS OFW interface

2020-08-15 Thread G S Niteesh Babu
--- bsps/include/ofw/ofw.h | 534 bsps/shared/ofw/ofw.c | 654 spec/build/bsps/obj.yml | 4 + 3 files changed, 1192 insertions(+) create mode 100644 bsps/include/ofw/ofw.h create mode 100644 bsps/shared/ofw/ofw.c

[PATCH rtems] libfreebsd: RTEMS to FreeBSD porting helper header

2020-05-27 Thread G S Niteesh Babu
This file serve the purpose as rtems-bsd-kernel-space.h in the rtems-libbsd. This file is intended to be included in every source file that is to imported from FreeBSD. This is to reduce the number of redefinitions for commonly used functions like malloc, free and KASSERT. ---

[PATCH 2/5] bsps/shared/freebsd: Added ofw_if.h

2020-05-28 Thread G S Niteesh Babu
This file is the RTEMS implementation of ofw_if.h in FreeBSD. The ofw_if.h in FreeBSD is an autogenerated header file that maps the OF_function calls to their respective implementation. But in RTEMS this file maps the OF_functions directly to their FDT implementation. ---

[PATCH 4/5] bsps/shared/freebsd: Port OFW to RTEMS

2020-05-28 Thread G S Niteesh Babu
The following files have been ported to RTEMS 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- bsps/shared/freebsd/dev/ofw/ofw_fdt.c | 116 - bsps/shared/freebsd/dev/ofw/openfirm.c | 59 - bsps/shared/freebsd/dev/ofw/openfirm.h | 18 3 files changed, 190

[PATCH 3/5] bsps/shared/freebsd: RTEMS to FreeBSD porting helper header

2020-05-28 Thread G S Niteesh Babu
This file serve the purpose as rtems-bsd-kernel-space.h in the rtems-libbsd. This file is intended to be included in every source file that is to imported from FreeBSD. This is to reduce the number of redefinitions for commonly used functions like malloc, free and KASSERT. ---

[PATCH 1/5] bsps/shared/freebsd: Import OFW files from FreeBSD.

2020-05-28 Thread G S Niteesh Babu
freebsd head: b8c57b4 The following files have been imported from FreeBSD to implement OF_* functions into RTEMS. 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- bsps/shared/freebsd/dev/ofw/ofw_fdt.c | 479 ++ bsps/shared/freebsd/dev/ofw/openfirm.c | 848 +

[PATCH 5/5] bsps/shared/freebsd: Added OFW sources files to Makefile

2020-05-28 Thread G S Niteesh Babu
Added OFW source files to shared-sources.am under bsps/shared. --- bsps/shared/shared-sources.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bsps/shared/shared-sources.am b/bsps/shared/shared-sources.am index 3c07770bb2..445f7115b6 100644 --- a/bsps/shared/shared-sources.am +++

[RTEMS-libBSD OFW v1] dev/ofw: Use RTEMS OFW FDT implementation

2020-09-16 Thread G S Niteesh Babu
This commit modifies the OFW interface to the RTEMS FDT implementation instead of the default FreeBSD. --- freebsd/sys/dev/ofw/openfirm.c| 2 ++ freebsd/sys/dev/ofw/openfirm.h| 9 .../machine/rtems-bsd-kernel-namespace.h | 22 --- 3

[PATCH v1 1/2] bsps/shared/ofw: Implement RTEMS OFW interface

2020-09-16 Thread G S Niteesh Babu
RTEMS OFW is a FDT only implementation of the OpenFirmWare interface. This API is created to be compatible with FreeBSD OpenFirmWare interface. The main intention is to make porting of FreeBSD drivers to RTEMS easier. Most functions implemented have an direct one-one mapping with the original OFW

[PATCH v1 2/2] libtests/ofw01: Added a test for RTEMS OFW

2020-09-16 Thread G S Niteesh Babu
This commit adds a basic test that tests all the implemented RTEMS OFW functions. --- spec/build/testsuites/libtests/grp.yml | 2 + spec/build/testsuites/libtests/ofw01.yml | 21 +++ testsuites/libtests/ofw01/init.c | 187 +++ testsuites/libtests/ofw01/ofw01.doc

[PATCH] bsps/shared/ofw: Added and Documented RTEMS OFW interface

2020-08-12 Thread G S Niteesh Babu
--- bsps/shared/dev/ofw/ofw.c | 0 bsps/shared/dev/ofw/ofw.h | 437 ++ 2 files changed, 437 insertions(+) create mode 100644 bsps/shared/dev/ofw/ofw.c create mode 100644 bsps/shared/dev/ofw/ofw.h diff --git a/bsps/shared/dev/ofw/ofw.c

[PATCH] eng: fix typo in coding-file-hdr.rst

2020-07-02 Thread G S Niteesh Babu
--- eng/coding-file-hdr.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/coding-file-hdr.rst b/eng/coding-file-hdr.rst index 6355173..cda631a 100644 --- a/eng/coding-file-hdr.rst +++ b/eng/coding-file-hdr.rst @@ -96,7 +96,7 @@ Use the following guidelines and template

[PATCH] bsp/fdt.h: Move bsp/fdt.h to cpukit

2020-07-02 Thread G S Niteesh Babu
This commit move the bsp/fdt.h header to cpukit/include/rtems. The reason for this is, with inclusion of libfreebsd there are cases where their is need for bsp_fdt_get(). And with this header under bsps directory it is not possible to include it under a cpukit directory. ---

[PATCH RTEMS 2/7] libfreebsd: Import OFW files from FreeBSD.

2020-07-15 Thread G S Niteesh Babu
freebsd head: b8c57b4 The following files have been imported from FreeBSD to implement OF_* functions into RTEMS. 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/include/dev/ofw/openfirm.h| 187 cpukit/libfreebsd/freebsd/dev/ofw/ofw_fdt.c | 479 +++

[PATCH RTEMS 6/7] spec/build/cpukit: Added spec file for OpenFirmWare

2020-07-15 Thread G S Niteesh Babu
--- spec/build/cpukit/librtemscpu.yml | 5 + spec/build/cpukit/objfreebsd.yml | 17 + 2 files changed, 22 insertions(+) create mode 100644 spec/build/cpukit/objfreebsd.yml diff --git a/spec/build/cpukit/librtemscpu.yml b/spec/build/cpukit/librtemscpu.yml index

GSoC 2020 PATCH: Import OpenFirmWare API to RTEMS

2020-07-15 Thread G S Niteesh Babu
Hello, This series of patches import OpenFirmWare to RTEMS from FreeBSD. These patches are based on the new build system, so it will require the person building this patch to pull Sebastian's 'build' branch from his git repo. Sebastian's git repo: https://git.rtems.org/sebh/rtems.git/log/?h=build

[PATCH RTEMS 1/7] bsp/fdt.h: Move bsp/fdt.h to cpukit

2020-07-15 Thread G S Niteesh Babu
This commit move the bsp/fdt.h header to cpukit/include/rtems. The reason for this is, with inclusion of libfreebsd there are cases where their is need for bsp_fdt_get(). And with this header under bsps directory it is not possible to include it under a cpukit directory. ---

[PATCH RTEMS 4/7] libfreebsd: FreeBSD porting helper header

2020-07-15 Thread G S Niteesh Babu
This file serve the purpose as rtems-bsd-kernel-space.h in the rtems-libbsd. This file is intended to be included in every source file that is to imported from FreeBSD. This is to reduce the number of redefinitions for commonly used functions like malloc, free and KASSERT. ---

[PATCH RTEMS 3/7] libfreebsd: Added ofw_if.h

2020-07-15 Thread G S Niteesh Babu
This file is the RTEMS implementation of ofw_if.h in FreeBSD. The ofw_if.h in FreeBSD is an autogenerated header file that maps the OF_function calls to their respective implementation. But in RTEMS this file maps the OF_functions directly to their FDT implementation. ---

[PATCH RTEMS 7/7] libtests/openfirmware: Added a testsuite for openfirmware

2020-07-15 Thread G S Niteesh Babu
--- spec/build/testsuites/libtests/grp.yml| 3 + .../testsuites/libtests/openfirmware01.yml| 20 +++ testsuites/libtests/openfirmware01/init.c | 147 ++ .../openfirmware01/openfirmware01.doc | 29 .../openfirmware01/openfirmware01.scn | 2

[PATCH RTEMS 5/7] libfreebsd: Port OFW to RTEMS

2020-07-15 Thread G S Niteesh Babu
The following files have been ported to RTEMS 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/include/dev/ofw/openfirm.h| 16 ++ cpukit/libfreebsd/freebsd/dev/ofw/ofw_fdt.c | 149 ++- cpukit/libfreebsd/freebsd/dev/ofw/openfirm.c | 58 +++- 3 files changed,

[PATCH 1/5] libfreebsd: Import OFW files from FreeBSD.

2020-06-04 Thread G S Niteesh Babu
freebsd head: b8c57b4 The following files have been imported from FreeBSD to implement OF_* functions into RTEMS. 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/libfreebsd/dev/ofw/ofw_fdt.c | 479 +++ cpukit/libfreebsd/dev/ofw/openfirm.c | 848 +++

[PATCH 3/5] libfreebsd: FreeBSD porting helper header

2020-06-04 Thread G S Niteesh Babu
This file serve the purpose as rtems-bsd-kernel-space.h in the rtems-libbsd. This file is intended to be included in every source file that is to imported from FreeBSD. This is to reduce the number of redefinitions for commonly used functions like malloc, free and KASSERT. ---

[PATCH 2/5] libfreebsd: Added ofw_if.h

2020-06-04 Thread G S Niteesh Babu
This file is the RTEMS implementation of ofw_if.h in FreeBSD. The ofw_if.h in FreeBSD is an autogenerated header file that maps the OF_function calls to their respective implementation. But in RTEMS this file maps the OF_functions directly to their FDT implementation. ---

[PATCH 4/5] libfreebsd: Port OFW to RTEMS

2020-06-04 Thread G S Niteesh Babu
The following files have been ported to RTEMS 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/libfreebsd/dev/ofw/ofw_fdt.c | 117 ++- cpukit/libfreebsd/dev/ofw/openfirm.c | 59 +- cpukit/libfreebsd/dev/ofw/openfirm.h | 18 + 3 files changed, 191

[PATCH 5/5] cpukit/Makefile: Add libfreebsd source files.

2020-06-04 Thread G S Niteesh Babu
--- cpukit/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 51f38c84c7..1335d41038 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefile.am @@ -342,6 +342,8 @@ librtemscpu_a_SOURCES += libmisc/uuid/uuid_time.c librtemscpu_a_SOURCES

[PATCH 0/5] OFW port to RTEMS

2020-06-04 Thread G S Niteesh Babu
Hello, The following series of patches port OFW from FreeBSD to RTEMS. This patch has been tested on a Raspberry Pi 3 with a small test application which retrives basic node properties. G S Niteesh Babu (5): libfreebsd: Import OFW files from FreeBSD. libfreebsd: Added ofw_if.h libfreebsd

[PATCH RTEMS v2 1/6] libfreebsd: Import OFW files from FreeBSD.

2020-06-11 Thread G S Niteesh Babu
freebsd head: b8c57b4 The following files have been imported from FreeBSD to implement OF_* functions into RTEMS. 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/libfreebsd/dev/ofw/ofw_fdt.c | 479 +++ cpukit/libfreebsd/dev/ofw/openfirm.c | 848 +++

[PATCH RTEMS v2 6/6] cpukit/Makefile: Add libfreebsd source files.

2020-06-11 Thread G S Niteesh Babu
--- cpukit/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpukit/Makefile.am b/cpukit/Makefile.am index 51f38c84c7..1335d41038 100644 --- a/cpukit/Makefile.am +++ b/cpukit/Makefile.am @@ -342,6 +342,8 @@ librtemscpu_a_SOURCES += libmisc/uuid/uuid_time.c librtemscpu_a_SOURCES

[PATCH RTEMS v2 5/6] libfreebsd: Port OFW to RTEMS

2020-06-11 Thread G S Niteesh Babu
The following files have been ported to RTEMS 1) openfirm.h 2) openfirm.c 3) ofw_fdt.c --- cpukit/libfreebsd/dev/ofw/ofw_fdt.c | 146 ++- cpukit/libfreebsd/dev/ofw/openfirm.c | 58 ++- cpukit/libfreebsd/dev/ofw/openfirm.h | 17 3 files changed, 219

[PATCH RTEMS v2 4/6] bsp/fatal.h: Add FATAL codes for libfreebsd

2020-06-11 Thread G S Niteesh Babu
--- bsps/include/bsp/fatal.h | 4 1 file changed, 4 insertions(+) diff --git a/bsps/include/bsp/fatal.h b/bsps/include/bsp/fatal.h index 3f8e1eb591..c22f8a2f52 100644 --- a/bsps/include/bsp/fatal.h +++ b/bsps/include/bsp/fatal.h @@ -156,6 +156,10 @@ typedef enum {

[PATCH RTEMS v2 2/6] libfreebsd: Added ofw_if.h

2020-06-11 Thread G S Niteesh Babu
This file is the RTEMS implementation of ofw_if.h in FreeBSD. The ofw_if.h in FreeBSD is an autogenerated header file that maps the OF_function calls to their respective implementation. But in RTEMS this file maps the OF_functions directly to their FDT implementation. ---

[PATCH RTEMS v2 3/6] libfreebsd: FreeBSD porting helper header

2020-06-11 Thread G S Niteesh Babu
This file serve the purpose as rtems-bsd-kernel-space.h in the rtems-libbsd. This file is intended to be included in every source file that is to imported from FreeBSD. This is to reduce the number of redefinitions for commonly used functions like malloc, free and KASSERT. ---

[PATCH v3 1/2] bsps/shared/ofw: Implement RTEMS OFW interface

2020-12-04 Thread G S Niteesh Babu
RTEMS OFW is a FDT only implementation of the OpenFirmWare interface. This API is created to be compatible with FreeBSD OpenFirmWare interface. The main intention is to make porting of FreeBSD drivers to RTEMS easier. Most functions implemented have an direct one-one mapping with the original OFW

[PATCH v3 2/2] libtests/ofw01: Added a test for RTEMS OFW

2020-12-04 Thread G S Niteesh Babu
This commit adds a basic test that tests all the implemented RTEMS OFW functions. --- spec/build/testsuites/libtests/grp.yml | 2 + spec/build/testsuites/libtests/ofw01.yml | 21 +++ testsuites/libtests/ofw01/init.c | 197 +++ testsuites/libtests/ofw01/ofw01.doc

[PATCH v2 1/2] bsps/shared/ofw: Implement RTEMS OFW interface

2020-11-03 Thread G S Niteesh Babu
RTEMS OFW is a FDT only implementation of the OpenFirmWare interface. This API is created to be compatible with FreeBSD OpenFirmWare interface. The main intention is to make porting of FreeBSD drivers to RTEMS easier. Most functions implemented have an direct one-one mapping with the original OFW

[PATCH v2 2/2] libtests/ofw01: Added a test for RTEMS OFW

2020-11-03 Thread G S Niteesh Babu
Added a basic test for the implemented RTEMS OFW API. --- spec/build/testsuites/libtests/grp.yml | 2 + spec/build/testsuites/libtests/ofw01.yml | 21 +++ testsuites/libtests/ofw01/init.c | 187 +++ testsuites/libtests/ofw01/ofw01.doc | 29

[PATCH] Implement FreeBSD helper structures

2021-01-19 Thread G S Niteesh Babu
The following structures and functions have been implemented to make porting of driver from FreeBSD easier. 1) struct resource_spec 2) struct device 3) struct resource 4) device_get_softc 5) bus_alloc_resources 6) bus_alloc_resource 7) bus_alloc_resource_any 8) bus_space_read_1 9)

[patch libBSD] dev/ofw: Use RTEMS OFW FDT implementation

2021-01-20 Thread G S Niteesh Babu
This commit modifies the OFW interface to the RTEMS FDT implementation instead of the default FreeBSD. --- freebsd/sys/dev/ofw/openfirm.c| 2 ++ freebsd/sys/dev/ofw/openfirm.h| 9 .../machine/rtems-bsd-kernel-namespace.h | 22 --- 3

[PATCH docs] user: remove old build system cmd

2021-02-03 Thread G S Niteesh Babu
--- user/start/gsoc.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/user/start/gsoc.rst b/user/start/gsoc.rst index f8167b9..2c7df7c 100644 --- a/user/start/gsoc.rst +++ b/user/start/gsoc.rst @@ -114,8 +114,8 @@ running `make` in the BSP build directory. ..

[PATCH] bsps/shared/ofw: Fix coverity reported defects

2021-01-28 Thread G S Niteesh Babu
Fixed use after free and null pointer dereference defects FIXES: 1) CID 1472601 (NULL_RETURNS) 2) CID 1472600 (USE_AFTER_FREE) 3) CID 1472599 (USE_AFTER_FREE) 4) CID 1472598 (USE_AFTER_FREE) 5) CID 1472596 (USE_AFTER_FREE) --- bsps/shared/ofw/ofw.c | 10 +- 1 file changed, 5

  1   2   >