This shows you the differences between two versions of the page.
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 | + | ===== How-to |
You can edit file ''/ | You can edit file ''/ | ||
Line 17: | Line 17: | ||
partitiontype=partition_type=generic | partitiontype=partition_type=generic | ||
############################# | ############################# | ||
+ | ## Setup console | ||
+ | consoles=console=ttyS0, | ||
+ | |||
+ | ## Setup FAN mode | ||
+ | fan_mode=auto | ||
+ | |||
## Add user args here, spilt with space. | ## Add user args here, spilt with space. | ||
## e.g. Add bootargs ' | ## e.g. Add bootargs ' | ||
Line 23: | Line 29: | ||
``` | ``` | ||
- | You can append your bootargs to node '' | + | ==== Normal Bootargs ==== |
+ | You can append your bootargs to the configuration | ||
e.g. Add bootargs '' | e.g. Add bootargs '' | ||
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. | ||
+ | </ | ||
+ | |||
+ | 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 with 921600 baud rate should be as below: | ||
+ | |||
+ | ```shell | ||
+ | consoles=console=ttyS0, | ||
+ | ``` | ||
+ | |||
+ | ^ Model ^ Baudrate | ||
+ | | VIM3/ | ||
+ | | VIM4/ | ||
<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. |
</ | </ | ||
Line 40: | Line 68: | ||
</ | </ | ||
- | ===== How-to | + | ===== How-to |
After reboot system, we can check current linux kernel bootargs | After reboot system, we can check current linux kernel bootargs |