Jump to content

Recommended Posts

Posted (edited)

Hello everyone, I am creating a custom Armbian build for OPI5 && OPI5b. The task is as follows: install several packages in the system and fully configure it. While there are no issues with installing packages and configuring the network, there is a peculiarity with the login and password. Specifically, sometimes after writing the image to the emmc opi5b or SD card, the system allows me to log in with my pre-configured credentials, but other times, when flashing the same image, the system simply rejects my pre-set data and displays the message “Login Incorrect.” 

How I set the initial settings for the system:

In /root there is a file called .not_logged_in_yet, from which data is pulled when you first log in to the system, thanks to which it is automatically configured (this method was tested on nanopi m6 and RPI 3b+) and everything worked fine, but for some reason, it is with orangepi 5 && orangepi 5b that I get such artifacts.

My .not_logged_in_yet looks like this:

 

# Network settings

PRESET_NET_CHANGE_DEFAULTS="1"

PRESET_NET_WIFI_ENABLED="1"

PRESET_NET_WIFI_SSID="MyWiFi"

PRESET_NET_WIFI_KEY="MyWiFiPassword"

PRESET_NET_WIFI_COUNTRYCODE=“RU”

PRESET_CONNECT_WIRELESS="n"

PRESET_NET_USE_STATIC="1"

PRESET_NET_STATIC_IP="192.168.1.100"

PRESET_NET_STATIC_MASK=“255.255.255.0”

PRESET_NET_STATIC_GATEWAY="192.168.1.1"

PRESET_NET_STATIC_DNS="8.8.8.8 8.8.4.4"

 

# System settings

SET_LANG_BASED_ON_LOCATION="n"

PRESET_LOCALE="ru_RU.UTF-8"

PRESET_TIMEZONE="Europe/Moscow"

 

# Root settings

PRESET_ROOT_PASSWORD="mysecretrootpass"

 

# User creation

PRESET_USER_NAME="user1"

PRESET_USER_PASSWORD="mypassword"

PRESET_DEFAULT_REALNAME="User One"

PRESET_USER_SHELL="bash"

 

For my Armbian image, I use the VENDOR 6.1 kernel - ubunu 22.04 jammy.


What could be the problem?

Edited by Картман

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines