OpenEmbedded: 루트 계정이 존재하지 않습니다!

OpenEmbedded: 루트 계정이 존재하지 않습니다!

현재 OpenEmbedded 시스템을 사용하고 있습니다.http://git.openembedded.org/openembedded-core/tree/

(그만한 가치가 있기 때문에 나는 또한http://git.openembedded.org/meta-openembedded/tree/그리고http://git.yoctoproject.org/cgit/cgit.cgi/meta-xilinx/tree/.)

나는 다음과 같이 시작되는 일련의 레시피와 배포판(몇 년 전에 OpenEmbedded에서 사용했던 이전 레시피 세트에서 수정됨)을 설정했습니다.

...
[    2.441070] EXT3-fs (ram0): error: couldn't mount because of unsupported optional features (240)
[    2.450891] EXT2-fs (ram0): error: couldn't mount because of unsupported optional features (240)
[    2.466262] EXT4-fs (ram0): mounted filesystem with ordered data mode. Opts: (null)
[    2.474002] VFS: Mounted root (ext4 filesystem) on device 1:0.
[    2.480845] devtmpfs: mounted
[    2.484107] Freeing unused kernel memory: 200K (c066f000 - c06a1000)
INIT: version 2.88 booting
[    3.200537] EXT4-fs (ram0): re-mounted. Opts: data=ordered
bootlogd: cannot allocate pseudo tty: No such file or directory
[    3.341168] random: dd urandom read with 9 bits of entropy available
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
chown: unknown user/group root:root
INIT: Entering runlevel: 5
Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
Starting Dropbear SSH server: dropbear.
Starting HOSTAP Daemon: nl80211 not found.
Starting syslogd/klogd: done
Starting tcf-agent: OK

MYDISTRO 0.1 zc706-zynq7 /dev/ttyPS0

zc706-zynq7 login: [    8.338466] macb e000b000.ps7-ethernet eth0: link up (1000/Full)
zc706-zynq7 login: root
Password:
Login incorrect
zc706-zynq7 login:

("해당 장치 없음" 오류는 신경쓰지 마세요. 나중에 수정할 수 있습니다.)

여기서 문제는 일반적인 로그인 방법인 username="root"(비밀번호도 필요하지 않음)가 작동하지 않는다는 것입니다.루트 사용자가 전혀 존재하지 않는 것 같습니다!예상되는 루트 비밀번호(예: 비어 있음, "root", "admin" 등)는 작동하지 않습니다. 이 시스템에 들어갈 수 없어요

몇 번의 시행착오 디버깅 후에 conf/distro/mydistro.conf를 변경하여 다음 줄을 주석 처리했습니다.

...
# The following features are required by eglibc for a clean build of the sdk.
#DISTRO_FEATURES_LIBC = "libc-libm libc-backtrace libc-spawn libc-locale-code libc-getlogin libc-posix-regexp libc-ftraverse libc-posix-clang-wchar libc-posix-wchar-io libc-inet libc-crypt libc-nsswitch libc-utmp"
#DISTRO_FEATURES = "ext4 usbhost wifi pci ipv4 ipv6 largefile ${DISTRO_FEATURES_LIBC}"

이로 인해 기본 DISTRO_FEATURES가 사용됩니다.http://git.openembedded.org/openembedded-core/tree/meta/conf/distro/include/default-distrovars.inc(포함http://git.openembedded.org/openembedded-core/tree/meta/conf/distro/defaultsetup.conf에 포함되어 있습니다.http://git.openembedded.org/openembedded-core/tree/meta/conf/bitbake.conf682행).

이제 다음과 같이 시작됩니다.

[    2.446482] EXT3-fs (ram0): error: couldn't mount because of unsupported optional features (240)
[    2.456386] EXT2-fs (ram0): error: couldn't mount because of unsupported optional features (240)
[    2.471774] EXT4-fs (ram0): mounted filesystem with ordered data mode. Opts: (null)
[    2.479516] VFS: Mounted root (ext4 filesystem) on device 1:0.
[    2.486308] devtmpfs: mounted
[    2.489626] Freeing unused kernel memory: 200K (c066f000 - c06a1000)
INIT: version 2.88 booting
[    3.203046] EXT4-fs (ram0): re-mounted. Opts: data=ordered
bootlogd: cannot allocate pseudo tty: No such file or directory
[    3.345494] random: dd urandom read with 8 bits of entropy available
INIT: Entering runlevel: 5
Configuring network interfaces... ifconfig: SIOCGIFFLAGS: No such device
ifconfig: SIOCSIFADDR: No such device
Starting Dropbear SSH server: dropbear.
Starting HOSTAP Daemon: nl80211 not found.
Starting syslogd/klogd: done
Starting tcf-agent: OK

MYDISTRO 0.1 zc706-zynq7 /dev/ttyPS0

zc706-zynq7 login: [    8.348120] macb e000b000.ps7-ethernet eth0: link up (1000/Full)
zc706-zynq7 login: root
root@zc706-zynq7:~#

예, 루트 계정이 작동합니다!

이제 질문은 다음과 같습니다.DISTRO_FEATURE 루트 계정을 작동시키는 데 누락된 키는 무엇입니까?

관련 정보