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

Both sides previous revision Previous revision
Next revision
Previous revision
products:sbc:common:configurations:user-config [2022/09/23 22:31]
frank
products:sbc:common:configurations:user-config [2026/05/11 02:20] (current)
nick
Line 1: Line 1:
-====== Kernel Bootargs User Config ======+====== Kernel bootargs user config ======
  
 ===== Introduction ===== ===== Introduction =====
  
-This page mainly introduces how-to user can customize linux kernel bootargs under Ubuntu.+This document explains how users can customize the Linux kernel boot parameters (bootargs) on Ubuntu for the Edge-2L.
  
-===== 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 add user-defined boot arguments by editing the file ''/boot/uEnv.txt''.
  
-The default file contents are similar as below:+The default contents of this file are similar to the following:
  
 ```shell ```shell
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 custom boot arguments to the ''boot_user_args='' configuration variable.
  
-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:+Example: To add the bootargs ''cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0'', the line should look like this:
  
 ```shell ```shell
 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
 ``` ```
 +
 +/* Edge-2L support kernel6.1 only.
 +==== 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 39: Line 68:
 Save the file and reboot to take effect. Save the file and reboot to take effect.
 </WRAP> </WRAP>
 +*/
 +===== How to check the current Kernel bootargs =====
  
-===== How-to Check Linux Kernel Bootargs ===== +After rebootingyou can verify the active kernel command line by running:
- +
-After reboot systemwe can check current linux kernel bootargs+
  
 ```shell ```shell
Last modified: 2022/09/23 22:31 by frank