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

2020-01-01 Thread Christian Mauderer
On 01/01/2020 07:38, Niteesh wrote: > How to turn off optimizations, while debugging some of the variables get > optimized out. First: Great that it works now. Regarding optimization: Do a export CFLAGS_OPTIMIZE_V="-O0 -g" before configure and make. Alternatively change it in

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

2019-12-31 Thread Niteesh
How to turn off optimizations, while debugging some of the variables get optimized out. On Wed, Jan 1, 2020 at 12:02 PM Niteesh wrote: > Good news, The FDT works. For testing purposes, I used a different DTB > file provided by > raspberrpi foundation. It has a different structure than the DTB

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

2019-12-31 Thread Niteesh
Good news, The FDT works. For testing purposes, I used a different DTB file provided by raspberrpi foundation. It has a different structure than the DTB from FreeBSD, so I modified the initialization code a little bit, but anyhow it works, the registers are initialized from the DTB file. But they

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

2019-12-31 Thread Christian Mauderer
On 31/12/2019 19:41, Niteesh wrote: > On Tue, Dec 31, 2019 at 10:56 PM Vijay Kumar Banerjee > mailto:vijaykumar9...@gmail.com>> wrote: > > > On Tue, Dec 31, 2019 at 9:27 PM Niteesh > wrote: > > I tried the above thing it doesn't work :( > Maybe

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

2019-12-31 Thread Christian Mauderer
On 31/12/2019 14:56, Niteesh wrote: > If moving uart_probe to output char, then should I move  > rtems_device_handler_install to console_initialize because, my guess > is that the IO initialization system would not be initialized properly > at that stage. The uart_probe in the output char

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

2019-12-31 Thread Christian Mauderer
On 31/12/2019 13:22, Niteesh wrote: > It works now, the functions are getting called when used with fileio.exe. > The function bsp_start wants to print information about the board, That print maybe should be moved to a later point. It just fetches some information and prints it. It doesn't even

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

2019-12-31 Thread Niteesh
It works now, the functions are getting called when used with fileio.exe. The function bsp_start wants to print information about the board, but the console initialization function is called after bsp_start, assuming that the FDT works it still crash since the console still isn't initialized, one

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

2019-12-31 Thread Christian Mauderer
On 31/12/2019 11:37, Christian Mauderer wrote: > On 31/12/2019 06:11, Niteesh wrote: >> On Tue, Dec 31, 2019 at 1:13 AM Christian Mauderer > > wrote: >> >> On 30/12/2019 19:32, Niteesh wrote: >> > Just to make sure that console_initialize and uart_probe are

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

2019-12-31 Thread Christian Mauderer
On 31/12/2019 06:11, Niteesh wrote: > On Tue, Dec 31, 2019 at 1:13 AM Christian Mauderer > wrote: > > On 30/12/2019 19:32, Niteesh wrote: > > Just to make sure that console_initialize and uart_probe are being > > called, I manually initialized the pl011

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

2019-12-30 Thread Niteesh
On Tue, Dec 31, 2019 at 1:13 AM Christian Mauderer wrote: > On 30/12/2019 19:32, Niteesh wrote: > > Just to make sure that console_initialize and uart_probe are being > > called, I manually initialized the pl011 context to print something on > > serial. But they never got called. Can you just

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

2019-12-30 Thread Christian Mauderer
On 30/12/2019 20:43, Christian Mauderer wrote: > On 30/12/2019 19:32, Niteesh wrote: >> Just to make sure that console_initialize and uart_probe are being >> called, I manually initialized the pl011 context to print something on >> serial. But they never got called. Can you just make sure that

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

2019-12-30 Thread Niteesh
Any other suggestions with the code or are happy with it? On Tue, Dec 31, 2019 at 1:13 AM Christian Mauderer wrote: > On 30/12/2019 19:32, Niteesh wrote: > > Just to make sure that console_initialize and uart_probe are being > > called, I manually initialized the pl011 context to print

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

2019-12-30 Thread Niteesh
Just to make sure that console_initialize and uart_probe are being called, I manually initialized the pl011 context to print something on serial. But they never got called. Can you just make sure that if I am missing something? While going through the messages from devel-request, Joel mentioned