Package: initramfs-tools
Version: 0.136
Severity: minor
Dear kernel team,
I'm using Debian on an arm64 chromebook, and not setting "console=tty1"
in the kernel command line results in a number of weird behaviours
related to the initramfs.
During an ordinary boot, plymouth doesn't show the futureprototype boot
splash. Instead, it shows the init log; but pressing ESC does switch to
plymouth (but with what I'm assuming is the text theme instead).
If I use "break" (even "break=init") in the kernel command line, I don't
see an initramfs shell prompt and the keyboard does nothing. If plymouth
is installed, I see the "Spawning shell within the initramfs" message
but rest is the same (plymouth quits in it's panic hook).
When I'm trying to boot from an encrypted root (different installation),
I don't see the "Please unlock disk" cryptsetup prompt and can't type a
passphrase; unless plymouth is installed.
I'm able to boot the encrypted system as a QEMU virtual machine and I
get similar behaviour there, no messages or prompts are printed to the
graphical console and instead all go to the serial console. However
having plymouth doesn't make the cryptsetup prompt ask in the graphical
console in the virtual machine.
All these are fixed by simply adding "console=tty1" to the command line,
is that something a user is supposed to do manually (e.g. GRUB configs)?
Should the initramfs (or maybe the kernel itself) be detecting when
graphics are working and automatically switch outputs/prompts to that? I
want to work on this, what would be the best way to proceed?
-- Might be relevant:
-- /proc/consoles:
ttyS2-W- (EC p a)4:66
tty0 -WU (E p )4:7
-- Some dmesg lines that might be useful:
[0.00] Booting Linux on physical CPU 0x00 [0x410fd034]
[0.00] Linux version 5.4.0-4-arm64 (...)
[0.00] Machine model: Google Kevin
[0.001029] Console: colour dummy device 80x25
[0.001038] printk: console [tty0] enabled
[0.044788] Serial: AMBA PL011 UART driver
[1.853700] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[1.855861] ff1a.serial: ttyS2 at MMIO 0xff1a (irq = 39,
base_baud = 150) is a 16550A
[1.856046] printk: console [ttyS2] enabled
[1.857318] Serial: AMBA driver
[1.857898] msm_serial: driver initialized
[2.103745] ttyS2 - failed to request DMA
[2.159994] Run /init as init process
[2.785121] rockchip-drm display-subsystem: bound ff8f.vop (ops
rockchip_drm_fini [rockchipdrm])
[2.787381] rockchip-drm display-subsystem: bound ff90.vop (ops
rockchip_drm_fini [rockchipdrm])
[2.794270] rockchip-drm display-subsystem: bound ff97.edp (ops
rockchip_drm_fini [rockchipdrm])
[2.794439] rockchip-drm display-subsystem: bound fec0.dp (ops
rockchip_drm_fini [rockchipdrm])
[2.794446] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[2.794449] [drm] No driver support for vblank timestamp query.
[2.824898] cdn-dp fec0.dp: [drm:cdn_dp_pd_event_work
[rockchipdrm]] Not connected. Disabling cdn
[3.076232] Console: switching to colour frame buffer device 300x100
[3.132091] rockchip-drm display-subsystem: fb0: rockchipdrmfb frame
buffer device
[3.144856] [drm] Initialized rockchip 1.0.0 20140818 for
display-subsystem on minor 0
[4.972935] systemd[1]: systemd 244.3-1 running in system mode. (...)
-- Package-specific info:
-- initramfs sizes
-rw-r--r-- 1 root root 12M Jan 19 11:20 /boot/initrd.img-5.4.0-2-arm64
-rw-r--r-- 1 root root 16M Feb 8 12:52 /boot/initrd.img-5.4.0-3-arm64
-rw-r--r-- 1 root root 16M Feb 19 14:25 /boot/initrd.img-5.4.0-4-arm64
-- /proc/cmdline
cros_secure kern_guid=7849fbba-1fb3-4f0b-9989-952567ef5a3c
root=PARTUUID=3518689e-a82c-4448-9ec2-c79b13f88d8e rootwait quiet splash
-- resume
RESUME=UUID=490bfb86-ee41-4944-8bcf-4f4b2211026d
-- /proc/filesystems
ext3
ext2
ext4
fuseblk
-- lsmod
Module Size Used by
vhost_net 32768 0
vhost 49152 1 vhost_net
tap32768 1 vhost_net
uhid 24576 1
algif_hash 20480 1
algif_skcipher 16384 1
af_alg 28672 6 algif_hash,algif_skcipher
rfcomm 81920 16
fuse 139264 5
xt_CHECKSUM16384 1
xt_MASQUERADE 20480 3
xt_conntrack 16384 1
ipt_REJECT 16384 2
nf_reject_ipv4 16384 1 ipt_REJECT
xt_tcpudp 20480 6
nft_compat 20480 13
nft_counter16384 30
nft_chain_nat 16384 8
nf_nat 45056 2 nft_chain_nat,xt_MASQUERADE
nf_conntrack 159744 3 xt_conntrack,nf_nat,xt_MASQUERADE
nf_defrag_ipv6 24576 1 nf_conntrack
nf_defrag_ipv4 16384 1 nf_conntrack
libcrc32c 16384 2 nf_conntrack,nf_nat
nf_tables 151552 102 nft_compat