System:
SOM: Toradex Apalis Imx6 dual
boot: Uboot
OS: QNX
Hi,
we need to get the Reset cause ( reg MX6X_SRC_SRSR 0x020D80008) register to perform some validations in QNX OS , this data is only available on uboot monitor:
-Boot 2016.11-2.8.3+gaca804c9dd (Mar 21 2019 - 20:38:57 +0000)
CPU: Freescale i.MX6D rev1.5 at 792 MHz
Reset cause: POR
I2C: ready
DRAM: 1 GiB
at startup and we are not able to save it in env or mem.
Can you provide us a way to do this.?
thanks.
The only way I can see to do it is by modifying U-boot to add the required functionality. U-Boot source code is available here.
hi alex.tx, thanks for the response, we don´t want to modify uboot, if possible, stdout can be redirected to RAM and then copy from there to a file for example?
You can display value of MX6X_SRC_SRSR by using U_boot command
md 0x020d8008
You can also read that register by QNX itself. U_boot should not clear its value.
we try reading MX6X_SRC_SRSR but uboot clear this register
CPU type is 0x63000
SRC_SRSR:0x020d8008 =0x00000000
So, my only suggestion would be to modify U_Boot in order to meet your requirements."