This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
products:sbc:vim3:configurations:user-config [2022/09/07 02:44] nick created |
products:sbc:vim3:configurations:user-config [2023/11/07 05:53] sravan |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== VIM3/ | + | {{indexmenu_n> |
+ | |||
+ | ====== VIM3/ | ||
<WRAP important > | <WRAP important > | ||
- | The config | + | The configuration |
</ | </ | ||
Line 9: | 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 44: | 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 95: | 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 114: | Line 107: | ||
==== Change Fan Level ==== | ==== Change Fan Level ==== | ||
+ | ^ Fan level ^ Configuration ^ | ||
+ | | off | '' | ||
+ | | low | '' | ||
+ | | mid | '' | ||
+ | | high | '' | ||
+ | | auto | '' | ||
- | * Set cooling | + | Set fan level to '' |
- | * Edit file ''/ | + | ``` |
+ | fan_mode=high | ||
+ | ``` | ||
- | * Set cooling fan to '' | + | Save the file and reboot |
- | * Edit file ''/ | + | ===== Framebuffer Rotate Setting ===== |
- | * Set cooling fan to '' | + | <WRAP important > |
+ | This configuration is suitable for only the 4.9 kernel. | ||
+ | </ | ||
- | * Edit file ''/ | + | ==== Check Framebuffer orientation ==== |
- | * Set cooling fan to '' | + | ```shell |
+ | khadas@Khadas:~$ cat / | ||
+ | fb_rotate=0 | ||
+ | ``` | ||
- | * Edit file ''/ | + | ==== Change Setting ==== |
- | | + | ^ Rotation Degrees ^ Configuration ^ |
+ | | 0 | ||
+ | | 90 | '' | ||
+ | | 180 | '' | ||
+ | | 270 | '' | ||
- | * Edit file ''/ | + | Rotate 90 degrees: |
+ | ``` | ||
+ | fb_rotate=1 | ||
+ | ``` | ||
+ | Save the file and reboot to take effect. | ||
- | After edit the file, you need to save the file and reboot the board. | + | ===== 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 / |
- | khadas@Khadas: | + | |
``` | ``` | ||
- | ===== Framebuffer Rotate ===== | + | ==== Change Linux Kernel Bootargs |
- | ==== Check related configuration ==== | + | You can edit file ''/ |
+ | The default file contents are similar as below: | ||
```shell | ```shell | ||
- | khadas@Khadas: | + | $ cat /boot/uEnv.txt |
- | fb_rotate=0 | + | ############################# |
+ | 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 '' | ||
- | ==== Change Setting ==== | + | e.g. Add bootargs '' |
+ | ```shell | ||
+ | boot_user_args=cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0 | ||
+ | ``` | ||
- | Rotate 90 degrees: | + | === 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 | ```shell | ||
- | khadas@Khadas: | + | consoles=console=ttyS0, |
- | [sudo] password for khadas: | + | |
``` | ``` | ||
- | '' | + | <WRAP important > |
+ | Please make sure the bootargs are split with space and don't add quotation marks. | ||
+ | </ | ||
+ | |||
+ | Save the file and reboot | ||
+ | |||
+ | ===== 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 170: | Line 221: | ||
khadas@Khadas: | khadas@Khadas: | ||
``` | ``` | ||
- | |||
- | After restarting, you will see the framebuffer console rotated 90 degrees. | ||