How to rotate display 180degree in iMX6ULL

Thanks adrian for your answer.

I tried your comment using command ‘echo 1 | sudo tee /sys/class/graphics/fbcon/rotated’ at some different word.
I could see a variable(/sys/class/graphics/fb0/rotate) in my board at Colibri iMX6ULL and I command ‘echo 2 > /sys/class/graphics/fb0/rotate’. I saw rotate is ‘2’ by using ‘cat’. but the display was not rotated immediately. So I rebooted. The display was not changed and I checked the ‘rotate’. It is ‘0’.

I am using image ‘Qt fot demo 5.15.1’
so I think it is different LXDE for iMX6ULL supplied by Toradex site.

Colud you help me? I don’t know why it didn’t rotate a display…

Do you know the why using to edit ‘uEnv.txt’ file in image file before install image.
I have rotated the RasspberryPi 4 display at this way that write ‘lcd_rotate = 2’ in ‘config.txt’ file.
or I think rotate command to put In Device Tree. But I don’t know where and how to put the command in *.dtsi file…