Cannot login with non-root username on imx28

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot login with non-root username on imx28

Jump to solution
1,565 Views
luhengwang
Contributor I

May I login imx28 built with yocto with non-root username?

hw-platform: imx28

build system: "https://github.com/Freescale/fsl-community-bsp-platform -b fido"

fs-image: core-image-full-cmdline

kernel: 3.12.6

Description: After I created a non-root user with command "useradd", I tried to login with newly created username and failed. I failed both on console and with ssh. The command 'last' shows that the newly id has login successfully but logout immediately. So it's not that the creation of new username has not rightly performed. I manually typed in 'login', and then feed with newly created username and passwd, and a string "Killed" prompted. After tracing the code of 'shadow', I found that the authentication of the non-root has passed and 'shadow' is calling 'execle' to switch to log-in bash. It looks like the log-in bash is killed.

I tried with 'core-image-full-cmdline', 'core-image-minimal', I even tried with officially built "http://downloads.yoctoproject.org/releases/yocto/yocto-1.8/machines/imx28evk/core-image-minimal-imx2...", but I got the same error.

I searched on web but no relevant page was found. It seems that only few people uses non-root user to login embedded system.

Is there something I missed? Or, we just cannot login with non-root user with yocto built system?

Labels (3)
0 Kudos
1 Solution
1,174 Views
luhengwang
Contributor I

This might be caused by fido branch. After testing with 2.1 version "http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/machines/imx28evk/core-image-minimal-imx2...", the issue is gone.

View solution in original post

0 Kudos
4 Replies
1,174 Views
wumy
Contributor I

Hi all:
I solved this problem by modify the kernel config parameter CONFIG_DEFAULT_MMAP_MIN_ADDR from 65536 to default val 4096, which is a bug of kernel before v3.19.

see:https://bugs.launchpad.net/ubuntu/+s...x/+bug/1418140

0 Kudos
1,174 Views
wumy
Contributor I

Hello, do you solve this problem? I meet the same problem for some days.

0 Kudos
1,174 Views
b36401
NXP Employee
NXP Employee

Please try to change the password of that non-root user and make sure that /etc/shadow file got updated.

Have a great day,

Victor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,175 Views
luhengwang
Contributor I

This might be caused by fido branch. After testing with 2.1 version "http://downloads.yoctoproject.org/releases/yocto/yocto-2.1/machines/imx28evk/core-image-minimal-imx2...", the issue is gone.

0 Kudos