OK3588 5.10.66 Buildroot Adding New User

Document classification: □ Top secret □ Secret □ Internal information ■ Open

Revision History

Date

Version

Revision History

09/22/2025

V1.0

Initial Version

Adding New User

1. Create a new user_table.txt file in the buildroot/system directory of the source code.

forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs$ vi buildroot/system/user_table.txt 

Add the following content to the file:

username (aka login name) is: foo
uid is computed by Buildroot
main group is: bar
main group gid is computed by Buildroot
clear-text password is: blabla, will be crypt(3)-encoded, and login is disabled.
home is: /home/foo
shell is: /bin/sh
foo is also a member of groups: alpha and bravo
comment is: Foo user

2. Modify the Buildroot configuration:

forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs$ cd buildroot/
forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs/buildroot$ make menuconfig

Locate “Path to the users tables” under “System configuration,” and enter system/user_table.txt.

Image

Save the changes and exit.

3. Execute ./build.sh to perform a full compilation, then flash the generated update.img to the development board.

forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs/buildroot$ cd -
/home/forlinx/3568.5.10/OK3568_Linux_fs
forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs$ ./build.sh
forlinx@ubuntu:~/3568.5.10/OK3568_Linux_fs$ ls rockdev/update.img 
rockdev/update.img