The default BSP provided by NXP requires login in UART after booting up, which seems “unfriendly” to some users.
In i.MX Yocto BSP, Login is provided by a systemd service called systemd-serialgetty:
sources/poky/meta/recipes-core/systemd/systemd-serialgetty/[email protected]
This service will execute agetty when system booting up and require login.
So there are two ways to disable login:
Replace agetty with /bin/login
1 |
ExecStart=/bin/login -f root |
Provide username to agetty
Add option -a to provide username to agetty.
1 |
[Service] |
近期评论