How to roate BPI-M2U on 1080x1920 hdmi screen

As title , how to rotate the BPI-M2U screen to the 1080 x 1920 portrait hdmi monitor and play video. I am using debian-8-jessie-lite-beta2-bpi-m2u-sd-emmc.img 2016-11-29 firmware right now.

Thanks