On 29.10.18 18:05, minskey guo wrote:

    To enable Linux to running in non-root cell on NUC7i5D, I pass 
console=ttyS0 to non-root cell linux. Everything is ok except that there is no 
login prompt on serial port. at last, the console shows:

Do you also specify the uart parameter, e.g. the baudrate? I would not be able to explain why the kernel should be fine without them and the login service not, but it would be a worth a try. Otherwise, this looks systemd-specific, and I'm not a guru in that. You can cross-check by booting the initrd we generate with jailhouse-images.

Jan


  [    2.828861] systemd[1]: Proceeding WITHOUT firewalling in effect! (This 
warning is only shown for the first loaded unit using IP firewalling.)
[    2.935235] systemd[1]: Created slice User and Session Slice.
[    2.941135] systemd[1]: Started Forward Password Requests to Wall Directory 
Watch.
[    2.948785] systemd[1]: Reached target Remote File Systems.
[    2.954494] systemd[1]: Created slice System Slice.


    After disabling jailhouse, I can check the journald log in the disk which I 
pass  to non-root cell as root device. The logs at the end of the mail. In the 
non-root cell document, it says that there is a patch to disable interrupt for 
UART, and use polling to get data out of it.
Anybody can point me to the patch ? Or educate me how to get login prompt from the serial port ?


BRs,
-minskey

1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Update UTMP about System 
Boot/Shutdown...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Emergency Mode.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Raise network interfaces...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Swap.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Set console font and keymap.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Set console scheme.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Created slice system-getty.slice.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: 
dev-disk-by\x2duuid-AC6E\x2d3B90.device: Job 
dev-disk-by\x2duuid-AC6E\x2d3B90.device/start timed out.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Timed out waiting for device 
dev-disk-by\x2duuid-AC6E\x2d3B90.device.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Dependency failed for /boot/efi.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Dependency failed for Local File 
Systems.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Dependency failed for Clean up any mess 
left by 0dns-up.
1月 28 23:59:47 test-nuc7i5d systemd[1]: dns-clean.service: Job 
dns-clean.service/start failed with result 'dependency'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: local-fs.target: Job 
local-fs.target/start failed with result 'dependency'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: local-fs.target: Triggering OnFailure= 
dependencies.
1月 28 23:59:47 test-nuc7i5d systemd[1]: boot-efi.mount: Job 
boot-efi.mount/start failed with result 'dependency'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Dependency failed for File System Check 
on /dev/disk/by-uuid/AC6E-3B90.
1月 28 23:59:47 test-nuc7i5d systemd[1]: 
systemd-fsck@dev-disk-by\x2duuid-AC6E\x2d3B90.service: Job 
systemd-fsck@dev-disk-by\x2duuid-AC6E\x2d3B90.service/start failed with result 
'dependency'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: 
dev-disk-by\x2duuid-AC6E\x2d3B90.device: Job 
dev-disk-by\x2duuid-AC6E\x2d3B90.device/start failed with result 'timeout'.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Tell Plymouth To Write Out 
Runtime Data.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Set console font and keymap...
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Create Volatile Files and 
Directories.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Closed Syslog Socket.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Set console scheme...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Login Prompts.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Sockets.

1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Paths.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Tell Plymouth To Write Out 
Runtime Data...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Emergency Shell.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Emergency Mode.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Create Volatile Files and 
Directories...
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Network Time Synchronization...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Update UTMP about System 
Boot/Shutdown...
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Timers.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Raise network interfaces...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Set console font and keymap.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Set console scheme.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Created slice system-getty.slice.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Update UTMP about System 
Boot/Shutdown.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Update UTMP about System 
Runlevel Changes...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Update UTMP about System 
Runlevel Changes.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Tell Plymouth To Write Out 
Runtime Data.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Create Volatile Files and 
Directories.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Network Time Synchronization...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Update UTMP about System 
Boot/Shutdown...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Network Name Resolution...
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Update UTMP about System 
Boot/Shutdown.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Starting Update UTMP about System 
Runlevel Changes...

1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Update UTMP about System 
Runlevel Changes.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Raise network interfaces.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1864]: Positive Trust Anchors:
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1864]: . IN DS 19036 8 2 
49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1864]: . IN DS 20326 8 2 
e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1864]: Negative trust anchors: 
10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 
19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 
23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 
27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 
31.172.in-addr.arpa 168.192.in-addr.arpa d.f.ip6.arpa corp home internal 
intranet lan local private test
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1864]: Using system hostname 
'test-nuc7i5d'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Network Name Resolution.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Network.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Network is Online.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Host and Network Name 
Lookups.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Network Time Synchronization.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target System Time Synchronized.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Startup finished in 2.092s (kernel) + 
1min 30.672s (userspace) = 1min 32.765s.
-- Reboot --
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Network Time Synchronization.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target System Time Synchronized.
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1856]: Positive Trust Anchors:
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1856]: . IN DS 19036 8 2 
49aac11d7b6f6446702e54a1607371607a1a41855200fd2ce1cdde32f24e8fb5
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1856]: . IN DS 20326 8 2 
e06d44b80b8f1d39a95c0b0d7c65d08458e880409bbc683457104237c7f8ec8d
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1856]: Negative trust anchors: 
10.in-addr.arpa 16.172.in-addr.arpa 17.172.in-addr.arpa 18.172.in-addr.arpa 
19.172.in-addr.arpa 20.172.in-addr.arpa 21.172.in-addr.arpa 22.172.in-addr.arpa 
23.172.in-addr.arpa 24.172.in-addr.arpa 25.172.in-addr.arpa 26.172.in-addr.arpa 
27.172.in-addr.arpa 28.172.in-addr.arpa 29.172.in-addr.arpa 30.172.in-addr.arpa 
31.172.in-addr.arpa 168.192.in-addr.arpa d.f.ip6.arpa corp home internal 
intranet lan local private test
1月 28 23:59:47 test-nuc7i5d systemd-resolved[1856]: Using system hostname 
'test-nuc7i5d'.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Started Network Name Resolution.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Network.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Network is Online.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Reached target Host and Network Name 
Lookups.
1月 28 23:59:47 test-nuc7i5d systemd[1]: Startup finished in 2.099s (kernel) + 
1min 30.707s (userspace) = 1min 32.807s.



--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

--
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to