How can I customize image config with Fenix?

Hello everyone!

I am new to Fenix build system and I need to know how do I configure auto-login and startup scripts with systemd with Fenix?

Thank you in advance!

You will have to do that after the fact by modifying files post boot or edit while on the SD drive.

Solved autologin using getty by adding next folders and .conf file to fenix’s archives/filesystem/special/your board/etc/:

  1. Create systemd/system/getty@tty1.service.d/autologin.conf (for serial console systemd/system/serial-getty@ttyS0.service.d)
  2. fill autologin.conf with:
ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin your_login %I $TERM

for serial console you have to add baudrate (for rockchip 1500000):

ExecStart=-/sbin/agetty -o '-p -f -- \\u' --keep-baud --autologin your_login 1500000 - $TERM
  1. build image and everything you added to filesystem directory will be included in your image
1 Like