[PATCH v4] Raspberrypi: updated the console interface.
Christian Mauderer
list at c-mauderer.de
Wed Jan 1 08:59:29 UTC 2020
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
bsps/arm/raspberrypi/config/raspberrypi.inc but be careful to not commit
that change.
>
> On Wed, Jan 1, 2020 at 12:02 PM Niteesh <gsnb.gn at gmail.com
> <mailto:gsnb.gn at gmail.com>> 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
> 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 are
> virtual addresses we need to offset them before initializing the
> registers.
>
> (gdb) p pl011_context
> $23 = {base = {lock = {interrupt = {<No data fields>}, mutex =
> {_Queue = {_Lock = {_next_ticket = 0,
> _now_serving = 0}, _heads = 0x0, _owner = 0x0, _name =
> 0x0}}},
> lock_acquire = 0x2095d1 <rtems_termios_device_lock_acquire_default>,
> lock_release = 0x2095e1
> <rtems_termios_device_lock_release_default>},*regs = 0x7e201000*,
> irq = 0,
> initial_baud = 0}
> (gdb)
>
> I will add the offset function, and send in the patch. I am also
> planning to replace a manual search with
> fdt_node_offset_by_compatible.
>
More information about the devel
mailing list