I’m following up on two topics I opened some time ago, both still open:
- [Why rpmsg_tty messages are logged into the journal log]( Why rpmsg_tty messages are logged into the journal log? ) (July 2024)
- [‘g2d_blitEx: Invalid src rect…’ messages in weston logs on TorizonOS 7 + weston-imx8]( 'g2d_blitEx: Invalid src rect....' messages in weston logs on TorizonOS 7 + weston-imx8 ) (March 2025)
**Setup**
- Verdin iMX8M Plus, Torizon OS `7.5.0+build.30` (scarthgap)
- M7 core running our firmware, talking to Linux over `/dev/ttyRPMSG30`
- `torizon/weston-imx8:4.4.0` and `torizon/chromium-imx8:4.4.0` (kiosk)
**What we measured**
We are investigating rare unexpected reboots on a machine in the field, so we made the journal persistent to keep the evidence across a reboot. A minute of journal on an idle machine contains:
| Source | Lines per minute |
|----|----|
| kernel (`imx_rpmsg_tty` hex dumps, one per 16 bytes of every M7 message) | ~43,900 |
| weston container (`g2d_blitEx: Invalid src rect…` + `SRC:` + `DST:` lines, once per frame) | ~4,800 |
| everything else | ~100 |
That is about 850 lines per second, all the time. As a result:
- The default volatile journal holds only a few minutes of history, which is useless for post-mortem analysis.
- A persistent journal writes about 1 GB/day to the eMMC, mostly the weston lines, even after we stopped storing debug-level messages with `MaxLevelStore=info`.
- journald and dockerd spend CPU on it continuously.
**Questions**
1. **rpmsg_tty:** has the `print_hex_dump(KERN_DEBUG, …)` → `print_hex_dump_debug(…)` change in `imx_rpmsg_tty.c` (proposed to NXP in nxp-imx/linux-imx PR #20) been picked up in the Toradex kernel, or is it planned for a 7.x release? If not, is there a supported way to turn this dump off without rebuilding the kernel?
2. **weston g2d:** is there any news from NXP on the `g2d_blitEx: Invalid src rect` message, or a newer `weston-imx8` tag where it no longer appears? If it is really harmless, is there a way to silence it (a g2d or weston option or environment variable) so it doesn’t reach the container log?
3. **Persistent journal:** on Torizon `/var/log` is a RAM disk. We bind-mounted an eMMC folder on `/var/volatile/log/journal` with a systemd mount unit. Is there a recommended or supported way to make the journal persistent on Torizon OS?
4. **Reset reason:** on this board `WDOG1_WRSR` and `WDOG3_WRSR` read `0x10` (power-on reset) after every kind of reset, including a plain `sudo reboot`, and `SRC_SRSR` reads `0x0`. We assume the reset goes through `WDOG_B` to the PMIC, which power-cycles the SoC. Is that right? Is there a way on the Verdin iMX8M Plus to know why the board last restarted? For example, does the PMIC keep a power-on/reset reason register that can be read from Linux?