Skip to contentSkip to conversation

serial console problem

DISCUSSION Yi Qingliang 2 participants 4 messages Mar 26, 2014

lore
Share & tools
lore
#0 lore raw

Hi,
after update to the latest git version of poky, my image can't start
the serial console, i.e. I can't login, I'm using systemd as the init manager. any idea?

log:

Freeing init memory: 132K
systemd[1]: systemd 211 running in system mode. (-PAM +LIBWRAP - AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ - SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Linux!

systemd[1]: Failed to insert module 'autofs4'
systemd[1]: Failed to insert module 'ipv6'
systemd[1]: Set hostname to <kl360>.
systemd[1]: Initializing machine ID from random generator. systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Expecting device dev-ttySAC0.device...
Expecting device dev-ttySAC0.device...
systemd[1]: Starting Remote File Systems.
[ OK ] Reached target Remote File Systems.
systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Starting Paths.
[ OK ] Reached target Paths.
systemd[1]: Reached target Paths.
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
systemd[1]: Starting Swap.
[ OK ] Reached target Swap.
systemd[1]: Reached target Swap.
systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
systemd[1]: Created slice Root Slice.
systemd[1]: Starting Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket.
systemd[1]: Listening on udev Control Socket.
systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shutdown Socket.
systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
systemd[1]: Listening on udev Kernel Socket.
systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice.
systemd[1]: Created slice User and Session Slice. systemd[1]: Starting System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Journal Service...
Starting Journal Service...
[ OK ] Started Journal Service.
systemd[1]: Started Journal Service.
Starting Apply Kernel Variables...
Mounting POSIX Message Queue File System... Starting Create list of required static device nodes...rrent
kernel...
Starting udev Coldplug all Devices...
Mounting Temporary Directory...
Starting Remount Root and Kernel File Systems...

#1 lore raw

Hi Yi,

Quoted 69 lines · Yi Qingliang

Hi,
after update to the latest git version of poky, my image can't
start
the serial console, i.e. I can't login, I'm using systemd as the init manager. any idea?

log:

Freeing init memory: 132K
systemd[1]: systemd 211 running in system mode. (-PAM +LIBWRAP - AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ - SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Linux!

systemd[1]: Failed to insert module 'autofs4'
systemd[1]: Failed to insert module 'ipv6'
systemd[1]: Set hostname to <kl360>.
systemd[1]: Initializing machine ID from random generator. systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Expecting device dev-ttySAC0.device...
Expecting device dev-ttySAC0.device...
systemd[1]: Starting Remote File Systems.
[ OK ] Reached target Remote File Systems.
systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Starting Paths.
[ OK ] Reached target Paths.
systemd[1]: Reached target Paths.
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
systemd[1]: Starting Swap.
[ OK ] Reached target Swap.
systemd[1]: Reached target Swap.
systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
systemd[1]: Created slice Root Slice.
systemd[1]: Starting Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket.
systemd[1]: Listening on udev Control Socket.
systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shutdown Socket. systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
systemd[1]: Listening on udev Kernel Socket.
systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice. systemd[1]: Created slice User and Session Slice. systemd[1]: Starting System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Journal Service...
Starting Journal Service...
[ OK ] Started Journal Service.

Quoted 10 lines

systemd[1]: Started Journal Service.
Starting Apply Kernel Variables...
Mounting POSIX Message Queue File System... Starting Create list of required static device nodes...rrent
kernel...
Starting udev Coldplug all Devices...
Mounting Temporary Directory...
Starting Remount Root and Kernel File Systems...

I had a very similar problem on my Wandboard, using latest systemd 211. The solution for me was to enable CONFIG_FHANDLE in the kernel configuration.
Maybe that could work for you aswell.
Which makes me wonder if there is any sort infrastructre for handling kernel config. deps.
/Jacob

#2 lore raw
Quoted 3 lines · Jacob Kroon

Hi Yi,

On Wed, Mar 26, 2014 at 11:06 AM, Yi Qingliang

Quoted 4 lines · <[email protected]>wrote:
Quoted 4 lines

Hi,

after update to the latest git version of poky, my image can't

Quoted 8 lines
Quoted 8 lines

start
the serial console, i.e. I can't login, I'm using systemd as the init manager. any idea?

log:

Freeing init memory: 132K
systemd[1]: systemd 211 running in system mode. (-PAM +LIBWRAP

-

Quoted 1 line
Quoted 1 line

AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ

-

Quoted 15 lines
Quoted 15 lines

SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Linux!

systemd[1]: Failed to insert module 'autofs4' systemd[1]: Failed to insert module 'ipv6'
systemd[1]: Set hostname to <kl360>.
systemd[1]: Initializing machine ID from random generator. systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Expecting device dev-ttySAC0.device...

Quoted 6 lines
Quoted 6 lines

Expecting device dev-ttySAC0.device...

systemd[1]: Starting Remote File Systems.
[ OK ] Reached target Remote File Systems. systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Dispatch Password Requests to Console

Directory

Quoted 2 lines
Quoted 2 lines

Watch.
systemd[1]: Started Dispatch Password Requests to Console

Directory

Quoted 5 lines
Quoted 5 lines

Watch.
systemd[1]: Starting Paths.
[ OK ] Reached target Paths.
systemd[1]: Reached target Paths.
systemd[1]: Set up automount Arbitrary Executable File Formats

File

Quoted 40 lines
Quoted 40 lines

System Automount Point.
systemd[1]: Starting Swap.
[ OK ] Reached target Swap.
systemd[1]: Reached target Swap.
systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
systemd[1]: Created slice Root Slice.
systemd[1]: Starting Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket. systemd[1]: Listening on udev Control Socket. systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shutdown Socket. systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
systemd[1]: Listening on udev Kernel Socket. systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice. systemd[1]: Created slice User and Session Slice. systemd[1]: Starting System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Journal Service...

Starting Journal Service...

[ OK ] Started Journal Service.
systemd[1]: Started Journal Service.

Starting Apply Kernel Variables...
Mounting POSIX Message Queue File System... Starting Create list of required static device nodes...rrent

Quoted 7 lines
Quoted 5 lines

kernel...

Starting udev Coldplug all Devices... Mounting Temporary Directory... Starting Remount Root and Kernel File Systems...

I had a very similar problem on my Wandboard, using latest systemd

211.

Quoted 6 lines

The solution for me was to enable CONFIG_FHANDLE in the kernel configuration.
Maybe that could work for you aswell.
Which makes me wonder if there is any sort infrastructre for handling kernel config. deps.
/Jacob

thanks! it work now.

the kernel config is a problem. my own kernel can't follow the change closely.

#3 lore raw
In reply to Yi Qingliang
Quoted 15 lines · Yi Qingliang

Hi,
after update to the latest git version of poky, my image can't start
the serial console, i.e. I can't login, I'm using systemd as the init manager. any idea?

log:

Freeing init memory: 132K
systemd[1]: systemd 211 running in system mode. (-PAM +LIBWRAP - AUDIT -SELINUX +IMA +SYSVINIT -LIBCRYPTSETUP -GCRYPT +ACL +XZ - SECCOMP -APPARMOR)
systemd[1]: Detected architecture 'arm'.

Welcome to Linux!

Quoted 14 lines

systemd[1]: Failed to insert module 'autofs4' systemd[1]: Failed to insert module 'ipv6'
systemd[1]: Set hostname to <kl360>.
systemd[1]: Initializing machine ID from random generator. systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Expecting device dev-ttySAC0.device...
Expecting device dev-ttySAC0.device...
systemd[1]: Starting Remote File Systems.
[ OK ] Reached target Remote File Systems. systemd[1]: Reached target Remote File Systems. systemd[1]: Starting Dispatch Password Requests to Console

Directory

Quoted 2 lines

Watch.
systemd[1]: Started Dispatch Password Requests to Console

Directory

Quoted 37 lines

Watch.
systemd[1]: Starting Paths.
[ OK ] Reached target Paths.
systemd[1]: Reached target Paths.
systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
systemd[1]: Starting Swap.
[ OK ] Reached target Swap.
systemd[1]: Reached target Swap.
systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
systemd[1]: Created slice Root Slice.
systemd[1]: Starting Journal Socket.
[ OK ] Listening on Journal Socket.
systemd[1]: Listening on Journal Socket.
systemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket.
systemd[1]: Listening on udev Control Socket. systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shutdown Socket. systemd[1]: Listening on Delayed Shutdown Socket. systemd[1]: Starting /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
systemd[1]: Listening on udev Kernel Socket.
systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice. systemd[1]: Created slice User and Session Slice. systemd[1]: Starting System Slice.
[ OK ] Created slice System Slice.
systemd[1]: Created slice System Slice.
systemd[1]: Started Set Up Additional Binary Formats. systemd[1]: Starting Journal Service...
Starting Journal Service...
[ OK ] Started Journal Service.

Quoted 9 lines

systemd[1]: Started Journal Service.
Starting Apply Kernel Variables...
Mounting POSIX Message Queue File System... Starting Create list of required static device nodes...rrent
kernel...
Starting udev Coldplug all Devices...
Mounting Temporary Directory...
Starting Remount Root and Kernel File Systems..

after CONFIG_FHANDLE=y in kernel, everything OK!
please refer:
http://lists.freedesktop.org/archives/systemd-devel/2014-February/016927.html