---
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
+++
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 +
---
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
+++
> >>
> >>
> >> 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
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
>
>
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
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
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
>
>
> 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
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
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
---
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 --
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 +++--
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,
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
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
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:
>
, 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.
> ---
>
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.
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
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
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
>>
>
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:
> >
> &
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 +-
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
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 --
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 --
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 +++--
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
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 --
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
---
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
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
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
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
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
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
---
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
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
---
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
---
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
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
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
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
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
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
+++
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
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
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
---
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
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
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
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
---
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
@@
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
---
---
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
---
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
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
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
---
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
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.
---
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.
---
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
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.
---
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 +
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
+++
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
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
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
---
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
---
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
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.
---
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 +++
---
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
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
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.
---
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.
---
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.
---
---
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
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,
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 +++
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.
---
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.
---
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
---
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
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
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 +++
---
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
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
---
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 {
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.
---
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.
---
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
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
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
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
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)
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
---
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.
..
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 - 100 of 128 matches
Mail list logo