[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 -- bsp

[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 +++--

Re: Requirement Document generator tool

2020-01-21 Thread Chris Johns
On 21/1/20 8:10 pm, Christian Mauderer wrote: > On 20/01/2020 22:37, Chris Johns wrote: >> On 14/1/20 7:18 pm, Christian Mauderer wrote: >>> On 13/01/2020 18:03, Joel Sherrill wrote: On Mon, Jan 13, 2020 at 10:04 AM Christian Mauderer >>> > wr

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

2020-01-21 Thread Niteesh
On Wed, Jan 22, 2020 at 2:30 AM Christian Mauderer wrote: > Hello Niteesh, > > you had two different "v3" patches. Therefore I missed this one. I > thought there was still a review comment from Gedare pending (which he > added at the v2 patch but after the first v3 has been sent). I have added

Re: Raspberry Pi test report

2020-01-21 Thread Niteesh
On Wed, Jan 22, 2020 at 2:18 AM Christian Mauderer wrote: > I think the not yet merged patch from Niteesh is a good reference: > > https://lists.rtems.org/pipermail/devel/2020-January/056860.htm > l The above instructions are not

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

2020-01-21 Thread Christian Mauderer
>From a first look this seems to be OK. But I didn't test it yet on hardware. I'll try to do that in the next days. On 17/01/2020 15:50, 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 model

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

2020-01-21 Thread Christian Mauderer
On 17/01/2020 15:50, G S Niteesh wrote: > 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. > --- >

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

2020-01-21 Thread Christian Mauderer
Hello Niteesh, you had two different "v3" patches. Therefore I missed this one. I thought there was still a review comment from Gedare pending (which he added at the v2 patch but after the first v3 has been sent). On 12/01/2020 19:47, G S Niteesh wrote: > Added instructions to run examples on ras

Re: How does the dynamic loader (libdl) hook in to gdb?

2020-01-21 Thread dufault
> On Jan 20, 2020, at 17:37 , Chris Johns wrote: > > Hi Peter, > > Happy new year. > > On 17/1/20 9:01 am, Peter Dufault wrote: >> I'm trying to hook the SLAC / Til Straumann PowerPC remote debugger stub in >> to what's loaded by "libdl" via "dlopen()". *I know* this should be >> integrat

Re: Raspberry Pi test report

2020-01-21 Thread Christian Mauderer
I think the not yet merged patch from Niteesh is a good reference: https://lists.rtems.org/pipermail/devel/2020-January/056860.html On 21/01/2020 21:31, Alan Cudmore wrote: > I can try QEMU. Is there a quick pointer to the QEMU parameters needed > to run a Pi2 image? > Alan > > On Tue, Jan 21, 2

Re: Raspberry Pi test report

2020-01-21 Thread Alan Cudmore
I can try QEMU. Is there a quick pointer to the QEMU parameters needed to run a Pi2 image? Alan On Tue, Jan 21, 2020 at 3:22 PM Christian Mauderer wrote: > > Does the same error occur on the Pi2 Qemu? In that case you could use it > for proper debugging. > > On 21/01/2020 03:35, Alan Cudmore wrot

Re: [PATCH v2] Raspberrypi: updated the console interface.

2020-01-21 Thread Christian Mauderer
Hello Niteesh, yes, sorry. At work I only put a limited time to the mailing list as long as the patches are not work related and privately I'm currently quite busy with another project (will be better after 01.02.). Therefore I didn't have a look yet. I'll take a look at the patches. I think there

Re: Raspberry Pi test report

2020-01-21 Thread Christian Mauderer
Does the same error occur on the Pi2 Qemu? In that case you could use it for proper debugging. On 21/01/2020 03:35, Alan Cudmore wrote: > I don't really have a debug setup.. I'm just using printk for now. But > I have a pretty efficient setup where I can add a few printk > statements, rebuild and

Queries related to PRU drivers

2020-01-21 Thread Utkarsh Rai
I have been waiting for my JTAG to arrive so that I can debug mmap related issues, meanwhile I have been going through the implementation of the PRU drivers on freebsd and linux and have few questions. 1. This

Re: RTEMS Project projects?

2020-01-21 Thread Gedare Bloom
On Mon, Jan 20, 2020 at 2:11 PM Joel Sherrill wrote: > > > > On Mon, Jan 20, 2020 at 2:56 PM Chris Johns wrote: >> >> On 21/1/20 4:15 am, Gedare Bloom wrote: >> > Maybe just a hierarchical picture could be provided. > > > I'd be thrilled to hear we have enough organizational structure to need a

Re: Requirement Document generator tool

2020-01-21 Thread Gedare Bloom
On Tue, Jan 21, 2020 at 2:10 AM Christian Mauderer wrote: > > On 20/01/2020 22:37, Chris Johns wrote: > > On 14/1/20 7:18 pm, Christian Mauderer wrote: > >> On 13/01/2020 18:03, Joel Sherrill wrote: > >>> > >>> > >>> On Mon, Jan 13, 2020 at 10:04 AM Christian Mauderer > >>> >>>

Re: Cheap Small PC for RTEMS testing

2020-01-21 Thread Joel Sherrill
On Mon, Jan 20, 2020 at 5:33 PM Chris Johns wrote: > On 14/1/20 9:40 am, Joel Sherrill wrote: > > I was looking for a recommendation as a cheap test PC option. > > > > I was considering the Minnowboard but it looks like minnowboard.org > > is dead which makes me a bit ver

Re: [PATCH v2] Raspberrypi: updated the console interface.

2020-01-21 Thread Niteesh
I have sent a new patch for the AUX UART driver, can you please take a look at it? https://www.mail-archive.com/devel@rtems.org/msg21615.html https://www.mail-archive.com/devel@rtems.org/msg21614.html On Tue, Jan 21, 2020 at 2:42 PM Christian Mauderer < christian.maude...@embedded-brains.de> wrot

Re: [PATCH v2] Raspberrypi: updated the console interface.

2020-01-21 Thread Christian Mauderer
On 21/01/2020 00:33, Chris Johns wrote: > On 29/12/19 8:03 pm, Christian Mauderer wrote: >> - You can use a real hardware debugger for it. That's what I currently >> do - also qemu + gdb could be more powerfull. For that you basically >> connect the Alt4 pins (see https://pinout.xyz/pinout/jtag) to

Re: Requirement Document generator tool

2020-01-21 Thread Christian Mauderer
On 20/01/2020 22:37, Chris Johns wrote: > On 14/1/20 7:18 pm, Christian Mauderer wrote: >> On 13/01/2020 18:03, Joel Sherrill wrote: >>> >>> >>> On Mon, Jan 13, 2020 at 10:04 AM Christian Mauderer >>> >> > wrote: >>> >>> Hello Jose, >>> >>> On 1

Re: GSOC: Adding FDT infrastructure to RTEMS

2020-01-21 Thread Christian Mauderer
Hello Niteesh, great that you pick up that project. On 20/01/2020 18:38, Niteesh wrote: > This is what I have understood till now, please correct me if I am wrong > All this explanation is in context with FreeBSD. Note that this stuff in FreeBSD is quite universal and tend to be a bit more compl

Re: Raspberry Pi test report

2020-01-21 Thread Christian Mauderer
On 21/01/2020 00:30, Chris Johns wrote: > On 21/1/20 10:20 am, Alan Cudmore wrote: >> As it turns out the latest RTEMS master may need some of the dtb >> and/or overlay files in the raspberry pi SD card. But the updated >> instructions that Niteesh submitted for the raspberrypi BSP should >> still