Modify Kernel cmdline from userspace

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Issue Description
<Please provide details about your query/application pipeline/usecase/pictures here >

Hello,

I want to know how to be able to change the os_args or kernel cmdline from the userspace.

This one is the default:

pl:[I]: Kernel Cmdline: aurixfw=AFW root=/dev/vblkdev0p1 loglevel=3 ip=off usr_fs=/dev/vblkdev1:/mnt/persistent/metadata usr_fs2=/dev/vblkdev2:/mnt/persistent/data rw_overlay=/dev/vblkdev3:/rw_overlay gpt rootwait rw gpt tegra_k

is there a tool in the userspace to change it?

Regards

Does Passing Additional Kernel Parameters | NVIDIA Docs? help?

Hi,

Thanks for the response.

I tried it, but it seems it is not supported for hypervisor:

Check finished successfully
There is no supported for specifying kernel-dtb with Hypervisor

command line used was:
['/drive/drive-foundation/tools/flashtools/bootburn/./bootburn.py', '-b', 'p3710-10-s05', '-B', 'qspi', '-x', '/dev/ttyACM5', '-d', 'kernel-dtb', '/drive/drive-foundation/virtualization/hypervisor/t23x/configs/t234ref-release/pct/p3710-10-s05/linux/tegra234-p3710-0010-a01-linux-driveav-gos.dtb', '-D']


s_ERROR_OPTION_VALUE_INVALID -- Cannot specify dtb with Hypervisor

2
command line used was:
['/drive/drive-foundation/tools/flashtools/bootburn/./bootburn.py', '-b', 'p3710-10-s05', '-B', 'qspi', '-x', '/dev/ttyACM5', '-d', 'kernel-dtb', '/drive/drive-foundation/virtualization/hypervisor/t23x/configs/t234ref-release/pct/p3710-10-s05/linux/tegra234-p3710-0010-a01-linux-driveav-gos.dtb', '-D']


Failed to initialize target config


Exception caught in bootburn 
Traceback (most recent call last):
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_parser.py", line 199, in initializeTargetConfig
    self.ValidateParameters(targetConfig)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_parser.py", line 887, in ValidateParameters
    AbnormalTermination ("s_ERROR_OPTION_VALUE_INVALID -- Cannot specify dtb with Hypervisor", nverror.NvError_NotSupported)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/flashtools_nverror.py", line 251, in AbnormalTermination
    raise OSError(errorCode)
OSError: 2

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn.py", line 255, in bootburn
    cmdParser.initializeTargetConfig(targetConfig, GenericOptions, False)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/bootburn_parser.py", line 206, in initializeTargetConfig
    AbnormalTermination("Failed to initialize target config", nverror.NvError_ConfigVarNotFound)
  File "/drive/drive-foundation/tools/flashtools/bootburn/../bootburn_t23x_py/flashtools_nverror.py", line 251, in AbnormalTermination
    raise OSError(errorCode)
OSError: 67

Is there another way?

Regards