This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
products:sbc:common:configurations:user-config [2022/09/23 22:30] frank |
products:sbc:common:configurations:user-config [2026/05/11 02:20] (current) nick |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Kernel | + | ====== Kernel |
| ===== Introduction ===== | ===== Introduction ===== | ||
| - | This page mainly introduces | + | This document explains |
| - | ===== How-to Customize | + | ===== How to customize |
| - | You can edit file ''/ | + | You can add user-defined boot arguments by editing the file ''/ |
| - | The default | + | The default contents |
| ```shell | ```shell | ||
| 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 | + | ==== Normal bootargs ==== |
| + | You can append your custom boot arguments | ||
| - | e.g. Add bootargs '' | + | Example: To add the bootargs '' |
| ```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. | ||
| + | </ | ||
| + | |||
| + | 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 39: | Line 68: | ||
| Save the file and reboot to take effect. | Save the file and reboot to take effect. | ||
| </ | </ | ||
| + | */ | ||
| + | ===== How to check the current Kernel bootargs ===== | ||
| - | ===== How-to check linux kernel bootargs ===== | + | After rebooting, you can verify the active |
| - | + | ||
| - | After reboot system, we can check current linux kernel | + | |
| ```shell | ```shell | ||