Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


products:sbc:common:configurations:user-config

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
products:sbc:common:configurations:user-config [2022/09/05 03:56]
nick created
products:sbc:common:configurations:user-config [2023/11/07 05:54] (current)
sravan
Line 5: Line 5:
 This page mainly introduces how-to user can customize linux kernel bootargs under Ubuntu. This page mainly introduces how-to user can customize linux kernel bootargs under Ubuntu.
  
-===== How-to customize linux kernel bootargs =====+===== How-to Customize Linux Kernel Bootargs =====
  
 You can edit file ''/boot/uEnv.txt'' to add the user bootargs. You can edit file ''/boot/uEnv.txt'' to add the user bootargs.
Line 17: Line 17:
 partitiontype=partition_type=generic partitiontype=partition_type=generic
 #############################DO NOT TOUCH THIS OPTION############################# #############################DO NOT TOUCH THIS OPTION#############################
 +## Setup console
 +consoles=console=ttyS0,921600 console=tty0
 +
 +## Setup FAN mode
 +fan_mode=auto
 +
 ## Add user args here, spilt with space. ## Add user args here, spilt with space.
 ## e.g. Add bootargs 'test1=111 test2=222' ## e.g. Add bootargs 'test1=111 test2=222'
Line 23: Line 29:
 ``` ```
  
-You can append your bootargs to node ''boot_user_args=''.+==== Normal Bootargs ==== 
 +You can append your bootargs to the configuration ''boot_user_args=''.
  
 e.g. Add bootargs ''cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0'', the variable ''boot_user_args='' should be as below: e.g. Add bootargs ''cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0'', the variable ''boot_user_args='' should be as below:
Line 30: Line 37:
 boot_user_args=cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0 boot_user_args=cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0
 ``` ```
 +
 +==== Console Bootargs ====
 +<WRAP important>
 +This configuration is suitable for only the 5.15 kernel.
 +</WRAP>
 +
 +You can change the linux UART pins for normal usage by modifying the configuration ''console=''
 +
 +^ UART mode ^ Configuration ^
 +| Configure the UART for linux debug | ''consoles=console=ttyS0,<baud rate> console=tty0'' |
 +| Configure the UART for general usage | ''consoles=console=tty0'' |
 +
 +eg. Enable linux UART console with 921600 baud rate should be as below:
 +
 +```shell
 +consoles=console=ttyS0,921600 console=tty0
 +```
 +
 +^ Model          ^ Baudrate   ^
 +| VIM3/VIM3L     | 115200     |
 +| VIM4/VIM1S     | 921600     |
  
 <WRAP important > <WRAP important >
-Please make sure the bootargs are spilt with space and don't add quotation marks.+Please make sure the bootargs are split with space and don't add quotation marks.
 </WRAP> </WRAP>
  
Line 40: Line 68:
 </WRAP> </WRAP>
  
-===== How-to check linux kernel bootargs =====+===== How-to Check Linux Kernel Bootargs =====
  
 After reboot system, we can check current linux kernel bootargs After reboot system, we can check current linux kernel bootargs
Last modified: 2022/09/05 03:56 by nick