problem w/ kernel init (rootfs vs initial console / init process)

From: mtx
Date: Sun Sep 10 2017 - 05:09:34 EST


Hi folks,


I've got a very strange problem w/ v4.13 (on imx6):

it tries to open the initial console, before even attempt to mount the
root fs, which obviously is doomed to fail. (directly passing root=
via cmdline - no initrd etc)

What puzzles me most: prepare_namespace() is only called from
kernel_init_freeable() - after it tried to open console (only when no
ramdisk_execute_command found).


Anyone have an idea what could be wrong here ?


--mtx