Device : imx8qxp
Board : imx8qxp-mek
Linux version : 4.14.78-ga(officially released by NXP, stable)
4.9.88-beta
1. Password needed when log in terminal.
2. During the bootup, Var directory in NFS was locked.
Hope you guys give some helpful suggestions.
Best,
已解决! 转到解答。
Hi community,
The issue was confirmed as the settings of server(as mentioned before), ttyLP0 is not supported to log in as root, you can replace /etc/securetty file with my attachment, hope it'll helpful!
Best
Hi Artur,
Thank you for your replay.
My boot setting:
setenv serverip 10.xxx.xxx.74
setenv ipaddr 10.xxx.xxx.100
setenv ethaddr 00:01:02:03:04:05
setenv fdt_file fsl-imx8qxp-mek.dtb
setenv ip_dyn no
setenv netargs setenv bootargs console=${console},${baudrate} ${smp} ip=dhcp root=/dev/nfs nfsroot=${serverip}:${nfsroot},v3,tcp
setenv nfsroot /home/cqc/rootfs_4_imx8qxp_4.14.78
saveenv
User Guide setting:
setenv serverip 10.xxx.xxx.74
setenv ipaddr 10.xxx.xxx.100
setenv ethaddr 00:01:02:03:04:05
setenv image Image
setenv fdt_file fsl-imx8qxp-mek.dtb
setenv rootfsinfo 'setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:/home/cqc/rootfs_4_imx8qxp_4.14.78,v3,tcp'
setenv bootcmd_net 'run rootfsinfo; tftp ${image}; tftp ${fdt_addr} ${fdt_file}; booti ${loadaddr} - ${fdt_addr}'
setenv bootcmd 'run bootcmd_net'
Actually, I did not see the difference between these two setting. With my boot setting, i.MX6 can bootup normally and log in with password 'root', can you give some other suggestion? Thanks in advance!
Best
Actually, the following definition in your boot settings looks strange for me:
nfsroot=${serverip}:${nfsroot},v3,tcp
setenv nfsroot /home/cqc/rootfs_4_imx8qxp_4.14.78
Try to place the 'setenv nfsroot /home/cqc/rootfs_4_imx8qxp_4.14.78' string upper before the 'nfsroot=${serverip}:${nfsroot},v3,tcp' one.
Artur
Hi Artur,
Thank you for your replay.
1. The problem you mentioned caused by the wrong format.
setenv rootfsinfo 'setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp \ nfsroot=${serverip}:/home/cqc/rootfs_4_imx8qxp_4.14.78,v3,tcp'
setenv bootcmd_net 'run rootfsinfo; tftp ${image}; tftp ${fdt_addr} ${fdt_file}; booti ${loadaddr} - ${fdt_addr}'
2. Checked the uboot env difference between i.MX6 and i.MX8, they used different terminals type(see below two pics).
Fig 1. i.MX6 terminal type
Fig 2. i.MX8 terminal type
Checked /etc/securetty file of my server, ttyLP0 is not supported to log in, I think this may the root cause for the log in failure, can you give some suggestions? Much thanks!
Best
Actually,
The log-in failure is caused by the authentication of file system, when I set the permission of file system to 777, the failure occurred, so do not change this when you setup the the NFS.
Best,
Daniel