Hi there,
\So I have seen this come up a number of times, in different versions and updates, Looking into it’s root cause I see this ,
That kernel panic on boot when enabling rotation is a known bug in the vendor BSP/kernel tree for the reTerminal / D1001 (Raspberry Pi Compute Module 4 base) display pipeline.
The issue stems from how the Raspberry Pi DSI display driver (panel-raspberrypi-touchscreen or Seeed’s custom panel-seeed-reterminal) interacts with the DRM/KMS graphics stack and hardware orientation flags in the Device Tree versus the kernel framebuffer.
When you uncomment the orientation property in the Device Tree Overlay or driver source, the DRM subsystem attempts to set a hardware rotation transform during early boot before the DSI video timing registers or display memory buffers are properly allocated, causing a kernel panic or null pointer dereference in drm_atomic_helper.
How to Achieve Landscape Mode Safely (Without Kernel Panics)
Instead of forcing the rotation at the low-level kernel driver/Device Tree source level (which triggers the driver crash), leave the driver default intact and apply the rotation in User Space or via DRM/KMS Kernel Command Line Parameters.
Method 1: Kernel Command Line (DRM/KMS Level) — Recommended
This rotates the screen during early boot (console + graphics) at the DRM display framework level without modifying driver source code.
-
Open /boot/firmware/cmdline.txt (or /boot/cmdline.txt on older Pi OS builds).
-
Append the video rotation parameter to the end of the existing single line (do NOT create a new line):
video=DSI-1:720x1280M@60,rotate=90
If rotate=90 doesn’t flip it to your preferred landscape orientation, try rotate=270).*
Method 2: Device Tree Overlay Config (config.txt)
If you are using the standard VC4 DRM driver (vc4-kms-v3d or vc4-fkms-v3d), set the display orientation using the video overlay parameters in /boot/firmware/config.txt:
# Force display orientation via KMS
dtoverlay=vc4-kms-v3d
display_lcd_rotate=1
Note: display_lcd_rotate=1 rotates 90° (landscape), 3 rotates 270°.
Fixing Touchscreen Alignment in Landscape
When you rotate the D1001 display to landscape via user-space or KMS, the capacitive touch matrix (Goodix or I2C touch controller) will still be mapped to portrait coordinates.
To rotate touch input to match your landscape screen:
-
Create or edit /etc/X11/xorg.conf.d/40-libinput.conf (or /etc/udev/rules.d/98-touchscreen.rules).
-
Set the Coordinate Transformation Matrix for the touch device:
HTH
GL
PJ 
there is another thread on here about it also. long way back though 