Khadas Docs

Amazing Khadas, always amazes you!

User Tools

Site Tools


Sidebar

products:sbc:vim4:configurations:user-config

This is an old revision of the document!


VIM4 Kernel Bootargs User Config

Introduction

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

You can add user-defined boot arguments by editing the file /boot/uEnv.txt.

The default contents of this file are similar to the following:

$ cat /boot/uEnv.txt 
#############################DO NOT TOUCH THIS OPTION#############################
rootdev=root=UUID=a92f7f2f-0d4a-4607-a45a-4549cfe71036
partitiontype=partition_type=generic
#############################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.
## e.g. Add bootargs 'test1=111 test2=222'
## boot_user_args=test1=111 test2=222
boot_user_args=

Normal bootargs

You can append your custom boot arguments to the boot_user_args= configuration variable.

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:

boot_user_args=cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory systemd.unified_cgroup_hierarchy=0

How to check the current Kernel bootargs

After rebooting, you can verify the active kernel command line by running:

$ cat /proc/cmdline
2022/09/05 03:56 · nick
Last modified: 2022/09/05 03:57 by nick