This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
products:sbc:vim3:configurations:user-config [2022/09/28 08:46] nick |
products:sbc:vim3:configurations:user-config [2023/11/07 05:53] (current) sravan |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{indexmenu_n> | {{indexmenu_n> | ||
| - | |||
| ====== VIM3/3L User Config ====== | ====== VIM3/3L User Config ====== | ||
| <WRAP important > | <WRAP important > | ||
| - | The config | + | The configuration |
| </ | </ | ||
| Line 12: | Line 11: | ||
| This documentation will introduce how to use the configuration file of the Ubuntu system. | This documentation will introduce how to use the configuration file of the Ubuntu system. | ||
| - | '' | + | With kernel **4.9**, |
| + | The system will read this file when it starts to set HDMI, fan, CPU frequency, etc. | ||
| + | With kernel **5.15**, '' | ||
| + | If not mentioned, the configuration applies for both **4.9** and **5.15** Kernel. | ||
| ===== HDMI Setting ===== | ===== HDMI Setting ===== | ||
| <WRAP important > | <WRAP important > | ||
| - | Only applicable to the firmware of the 4.9 kernel, a more general method can be used for the firmware of the mainline kernel! | + | This configuration is suitable for only the 4.9 kernel. |
| </ | </ | ||
| - | |||
| ==== Auto Detect ==== | ==== Auto Detect ==== | ||
| - | + | The default setting is '' | |
| - | The default setting is '' | + | |
| ```shell | ```shell | ||
| Line 47: | Line 47: | ||
| Only when '' | Only when '' | ||
| - | ```shell | + | ^ Resolution |
| - | # HDMI mode | + | | 480x272 Progressive 60Hz | '' |
| - | # Resolution Configuration | + | | 480x320 Progressive 60Hz | '' |
| - | # Symbol | + | | 720x480 Progressive 60Hz | '' |
| - | # ----------------------+------------- | + | | 720x576 Progressive 50Hz | '' |
| - | # " | + | | 1280x720 Progressive 60Hz | '' |
| - | # " | + | | 1280x720 Progressive 50Hz | '' |
| - | # " | + | | 1920x1080 Progressive 60Hz | '' |
| - | # " | + | | 1920x1080 Progressive 50Hz | '' |
| - | # " | + | | 1920x1080 Progressive 30Hz | '' |
| - | # " | + | | 1920x1080 Progressive 24Hz | '' |
| - | # " | + | | 1920x1080 Interlaced 60Hz | '' |
| - | # " | + | | 1920x1080 Interlaced 50Hz | '' |
| - | # " | + | | 3840x2160 Progressive 60Hz | '' |
| - | # " | + | | 3840x2160 Progressive 50Hz | '' |
| - | # " | + | | 3840x2160 Progressive 30Hz | '' |
| - | # " | + | | 3840x2160 Progressive 25Hz | '' |
| - | # " | + | | 3840x2160 Progressive 24Hz | '' |
| - | # " | + | | 3840x2160 Progressive 24Hz SMPTE | '' |
| - | # " | + | | 3840x2160 Progressive 60Hz YCbCr 4:2:0 | '' |
| - | # " | + | | 3840x2160 Progressive 50Hz YCbCr 4:2:0 | '' |
| - | # " | + | | 640x480 Progressive 60Hz | '' |
| - | # " | + | | 800x480 Progressive 60Hz | '' |
| - | # " | + | | 800x600 Progressive 60Hz | '' |
| - | # " | + | | 1024x600 Progressive 60Hz | '' |
| - | # " | + | | 1024x768 Progressive 60Hz | '' |
| - | # " | + | | 1280x800 Progressive 60Hz | '' |
| - | # " | + | | 1280x1024 Progressive 60Hz | '' |
| - | # " | + | | 1360x768 Progressive 60Hz | '' |
| - | # " | + | | 1440x900 Progressive 60Hz | '' |
| - | # " | + | | 1600x900 Progressive 60Hz | '' |
| - | # " | + | | 1600x1200 Progressive 60Hz | '' |
| - | # " | + | | 1680x1050 Progressive 60Hz | '' |
| - | # " | + | | 1920x1200 Progressive 60Hz | '' |
| - | # " | + | | 2560x1080 Progressive 60Hz | '' |
| - | # " | + | | 2560x1440 Progressive 60Hz | '' |
| - | # " | + | | 2560x1600 Progressive 60Hz | '' |
| - | # " | + | | 3440x1440 Progressive 60Hz | '' |
| - | # " | + | |
| - | # " | + | |
| - | # " | + | |
| - | # " | + | |
| - | hdmi=720p60hz | + | |
| - | ``` | + | |
| Set to '' | Set to '' | ||
| Line 98: | Line 93: | ||
| ``` | ``` | ||
| - | Restart | + | Save the file and reboot |
| ===== Fan Setting ===== | ===== Fan Setting ===== | ||
| - | |||
| - | <WRAP important > | ||
| - | Only applicable to the firmware of the 4.9 kerne | ||
| - | </ | ||
| ==== Fan Level ==== | ==== Fan Level ==== | ||
| - | |||
| * '' | * '' | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * '' | * '' | ||
| * '' | * '' | ||
| Line 117: | Line 107: | ||
| ==== Change Fan Level ==== | ==== Change Fan Level ==== | ||
| + | ^ Fan level ^ Configuration ^ | ||
| + | | off | '' | ||
| + | | low | '' | ||
| + | | mid | '' | ||
| + | | high | '' | ||
| + | | auto | '' | ||
| - | * Set cooling | + | Set fan level to '' |
| - | * Edit file ''/ | + | |
| - | * Set cooling fan to '' | + | ``` |
| - | * Edit file ''/ | + | fan_mode=high |
| + | ``` | ||
| - | * Set cooling fan to '' | + | Save the file and reboot to take effect. |
| - | * Edit file ''/ | + | |
| - | * Set cooling fan to '' | + | ===== Framebuffer Rotate Setting ===== |
| - | * Edit file ''/ | + | |
| - | * Disable cooling fan: | + | <WRAP important > |
| - | * Edit file ''/ | + | This configuration is suitable for only the 4.9 kernel. |
| + | </ | ||
| - | After edit the file, you need to save the file and reboot the board. | + | ==== Check Framebuffer orientation ==== |
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | khadas@Khadas: |
| - | khadas@Khadas: | + | fb_rotate=0 |
| ``` | ``` | ||
| - | ===== Framebuffer Rotate ===== | + | ==== Change Setting |
| - | ==== Check related configuration ==== | + | ^ Rotation Degrees ^ Configuration ^ |
| + | | 0 | '' | ||
| + | | 90 | '' | ||
| + | | 180 | '' | ||
| + | | 270 | '' | ||
| + | Rotate 90 degrees: | ||
| + | ``` | ||
| + | fb_rotate=1 | ||
| + | ``` | ||
| + | Save the file and reboot to take effect. | ||
| + | |||
| + | ===== Linux Kernel bootargs Setting ===== | ||
| + | |||
| + | <WRAP important > | ||
| + | This configuration is suitable for only the 5.15 kernel. | ||
| + | </ | ||
| + | |||
| + | ==== Check Linux Kernel Bootargs ==== | ||
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | $ cat /proc/cmdline |
| - | fb_rotate=0 | + | |
| ``` | ``` | ||
| - | ==== Change | + | ==== Change |
| + | You can edit file ''/ | ||
| - | Rotate 90 degrees: | + | The default file contents are similar as below: |
| ```shell | ```shell | ||
| - | khadas@Khadas: | + | $ cat /boot/uEnv.txt |
| - | [sudo] password for khadas: | + | ############################# |
| + | rootdev=root=UUID=a92f7f2f-0d4a-4607-a45a-4549cfe71036 | ||
| + | partitiontype=partition_type=generic | ||
| + | ############################# | ||
| + | ## Setup console | ||
| + | consoles=console=ttyS0, | ||
| + | |||
| + | ## Setup FAN mode | ||
| + | fan_mode=auto | ||
| + | |||
| + | ## Add user args here, spilt with space. | ||
| + | ## e.g. Add bootargs ' | ||
| + | ## boot_user_args=test1=111 test2=222 | ||
| + | boot_user_args= | ||
| ``` | ``` | ||
| + | === Normal Bootargs === | ||
| + | You can append your bootargs to the configuration '' | ||
| - | '' | + | e.g. Add bootargs |
| + | |||
| + | ```shell | ||
| + | boot_user_args=cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0 | ||
| + | ``` | ||
| + | |||
| + | === Console Bootargs === | ||
| + | You can change the linux UART pins for normal usage by modifying the configuration | ||
| + | |||
| + | ^ UART mode ^ Configuration ^ | ||
| + | | Configure the UART for linux debug | '' | ||
| + | | Configure the UART for general usage | '' | ||
| + | |||
| + | eg. Enable linux UART console should be as below: | ||
| + | |||
| + | ```shell | ||
| + | consoles=console=ttyS0, | ||
| + | ``` | ||
| + | |||
| + | <WRAP important > | ||
| + | Please make sure the bootargs are split with space and don't add quotation marks. | ||
| + | </ | ||
| + | |||
| + | Save the file and reboot to take effect. | ||
| + | |||
| + | ===== Saving the configurations ===== | ||
| After edit the file, you need to save the file and reboot the board. | After edit the file, you need to save the file and reboot the board. | ||
| Line 168: | Line 221: | ||
| khadas@Khadas: | khadas@Khadas: | ||
| ``` | ``` | ||
| - | |||
| - | After restarting, you will see the framebuffer console rotated 90 degrees. | ||