The permission issue of setting DPDK hugepages

I am new to the DPU&DOCA, I encounter a problem while executing the DOCA example applications.
I have installed the OS image download from Mellanox BlueOS Software: End-User Agreement | NVIDIA (DOCA_v1.1_BlueField_OS_Ubuntu_20.04-5.4.0-1013-bluefield-5.4-1.0.3.0-3.7.0.11805-1.signed-aarch64.bfb) and i can access the device by ssh now with account ‘ubuntu’.

when I test the example ‘/opt/mellanox/doca/examples/ar/bin/doca_app_rec’, the log remind that there is no DPDK hugepage,I try to set the huagepsage by ‘ sudo echo 600 > /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages’, but the ‘Permission denied’ error happened. when i try to su ‘root’ account, the password is not correct.

Would you please help to check how to fix this issue or tell me the default root account’s password?
Thank you.

Using sudo with echo works different than you would expect. Can you try

echo '600' | sudo tee -a /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages