Not able to login as root user with the RFS generated. #kirkstone

[email protected] Tue, 10 Jan 2023 01:37:33 -0800
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <20230110093733._5EJ3c0BTg2QHZ5K8jdwIqRK_FmUN9yGQqQ0PoiaZPg@z>
--Z84Xh5V1TSwWpa0oa8wA
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I am using a imx6 based custom board
Made the build system ready using the following guide: https://www.nxp.com/=
docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf

After cloning the yocto source, initialized the build with: DISTRO=3Dfsl-im=
x-fb MACHINE=3Dimx6dlsabresd source imx-setup-release.sh -b build_imx

Then started the build using: bitbake -k core-image-minimal.

The core-image-minimal-xxxx-xxx.tar is generated.=C2=A0 But when the board =
is booted with this RFS image, it did not accept any password for the root =
user.

I checked the local.conf. It has:
EXTRA_IMAGE_FEATURES ?=3D "debug-tweaks"
Yet it did not accept a blank password or any other password.

I had a look at /etc/shadow file.=C2=A0 The root user's password field is e=
mpty.
I tried to change the password manually in /etc/shadow file, but it did not=
 work out.

Added the following line in local.conf
INHERIT +=3D "extrausers"
EXTRA_USERS_PARAMS =3D "usermod -p '\$6\$rYOC7GCfUdPrKZdt\$GbxrFaYxl0Wdk9Zy=
uR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/' roo=
t;"
I can see that when i add this line the /etc/shadow file is updated with th=
e password hash.=C2=A0 But that too did not work.

Can any one point out what should i do to fix the login issue.

--Z84Xh5V1TSwWpa0oa8wA
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

I am using a imx6 based custom board&nbsp;<br />Made the build system ready=
 using the following guide:&nbsp;<a href=3D"https://www.nxp.com/docs/en/use=
r-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf" target=3D"_blank" rel=3D"nofollo=
w noopener">https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_=
GUIDE.pdf</a><br /><br />After cloning the yocto source, initialized the bu=
ild with: DISTRO=3Dfsl-imx-fb MACHINE=3Dimx6dlsabresd source imx-setup-rele=
ase.sh -b build_imx<br /><br />Then started the build using: bitbake -k cor=
e-image-minimal.<br /><br />The core-image-minimal-xxxx-xxx.tar is generate=
d.&nbsp; But when the board is booted with this RFS image, it did not accep=
t any password for the root user.<br /><br />I checked the local.conf. It h=
as:<br />EXTRA_IMAGE_FEATURES ?=3D "debug-tweaks"<br />Yet it did not accep=
t a blank password or any other password.<br /><br />I had a look at /etc/s=
hadow file.&nbsp; The root user's password field is empty.&nbsp;<br />I tri=
ed to change the password manually in /etc/shadow file, but it did not work=
 out.<br /><br />
<div>Added the following line in local.conf</div>
<div>INHERIT +=3D "extrausers"</div>
<div>EXTRA_USERS_PARAMS =3D "usermod -p '\$6\$rYOC7GCfUdPrKZdt\$GbxrFaYxl0W=
dk9ZyuR/HarDrChctvbHQqdmdtGS.dxCq0FUxLVdxgvdBCoofs4NLcc/0GZ3pbMcrNeT3KwCFk/=
' root;"</div>
<div>I can see that when i add this line the /etc/shadow file is updated wi=
th the password hash.&nbsp; But that too did not work.</div>
<br />Can any one point out what should i do to fix the login issue.

--Z84Xh5V1TSwWpa0oa8wA--