From: Leo Yan <leo.yan@linaro.org>
To: Leo Yan <leoyan.opensource@gmail.com>
Cc: Yury Norov <ynorov@caviumnetworks.com>,
Rob Landley <rob@landley.net>,
Andrew Morton <akpm@linux-foundation.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
Prarit Bhargava <prarit@redhat.com>,
Yang Shi <yang.shi@linaro.org>,
Rasmus Villemoes <linux@rasmusvillemoes.dk>,
Kees Cook <keescook@chromium.org>,
Emese Revfy <re.emese@gmail.com>, Petr Mladek <pmladek@suse.com>,
Fabian Frederick <fabf@skynet.be>,
john.stultz@linaro.org,
Daniel Thompson <daniel.thompson@linaro.org>
Subject: Re: Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot
Date: Thu, 25 May 2017 21:44:30 +0800 [thread overview]
Message-ID: <20170525134430.GA23912@leoy-ThinkPad-T440> (raw)
In-Reply-To: <CAP2kuOwkM7hr5nOtrRSRdXcPi2y3KHVf4yFdDN1JW1o_mWo0yw@mail.gmail.com>
The previous email was rejected by LKML. So resend again.
On Thu, May 25, 2017 at 09:39:32PM +0800, Leo Yan wrote:
> Hi Rob, Yury,
>
> On Mon, May 22, 2017 at 8:05 PM, Yury Norov <ynorov@caviumnetworks.com>
> wrote:
>
> > Hi Rob,
> >
> > I found that next-20170522 fails to boot on arm64 machine with the
> > following log:
> > [...]
> > [4.179509] Freeing unused kernel memory: 1088K
> > Loading, please wait...
> > mount: mounting udev on /dev failed: Device or resource busy
> > W: devtmpfs not available, falling back to tmpfs for /dev
> > Couldn't get a file descriptor referring to the console
> > Begin: Loading essential drivers ... done.
> > Begin: Running /scripts/init-premount ... done.
> > Begin: Mounting root file system ... Begin: Running
> > /scripts/local-top ... done.
> > chvt: can't open console
> > Gave up waiting for root device. Common problems:
> > - Boot args (cat /proc/cmdline)
> > - Check rootdelay= (did the system wait long enough?)
> > - Check root= (did the system wait for the right device?)
> > - Missing modules (cat /proc/modules; ls /dev)
> > chvt: can't open console
> > ALERT! /dev/sda does not exist. Dropping to a shell!
> > Couldn't get a file descriptor referring to the console
> >
> >
> > BusyBox v1.21.1 (Ubuntu 1:1.21.0-1ubuntu1) built-in shell (ash)
> > Enter 'help' for a list of built-in commands.
> >
> > (initramfs)
> >
> > Bisect points to your patch (attached below). If I revert it, everything
> > becomes fine. If you need to know something more about my environment,
> > feel free to ask me.
> >
>
> At my side, I also can reproduce this failure on Hikey board with Debian
> rootfs,
> finally the debian rootfs cannot be mounted successfully, the booting log
> is:
> http://termbin.com/akar
>
> From the log, the failures are exactly same with Yury's reporting:
> mount: mounting udev on /dev failed: Device or resource busy
> ...
> ALERT! /dev/disk/by-partlabel/system does not exist. Dropping to a
> shell!
>
> After applied this patch, the kernel mounts mount devtmpfs on '/dev', then
> later
> udev cannot mount again for devfs. Finally cannot find rootfs path from
> '/dev/disk/by-partlabel/system'. So after I comment out below sentence, the
> rootfs can boot up again.
>
> diff --git a/init/main.c b/init/main.c
> index 9ec09ff..2ea93d1 100644
> --- a/init/main.c
> +++ b/init/main.c
> @@ -1050,8 +1050,8 @@ static noinline void __init kernel_init_freeable(void)
> ramdisk_execute_command = NULL;
> prepare_namespace();
> } else if (IS_ENABLED(CONFIG_DEVTMPFS_MOUNT)) {
> - sys_mkdir("/dev", 0755);
> - devtmpfs_mount("/dev");
> + //sys_mkdir("/dev", 0755);
> + //devtmpfs_mount("/dev");
> }
>
> /* Open the /dev/console on the rootfs, this should never fail */
>
> Thanks,
> Leo Yan
prev parent reply other threads:[~2017-05-25 13:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-22 12:05 Patch 0727d35de ("Make initramfs honor CONFIG_DEVTMPFS_MOUNT") breaks boot Yury Norov
2017-05-23 2:07 ` Rob Landley
2017-05-23 8:01 ` Yury Norov
2017-05-23 17:40 ` Rob Landley
2017-05-23 21:32 ` Yury Norov
2017-05-23 23:08 ` Yury Norov
2017-05-25 5:55 ` Rob Landley
2017-05-25 6:13 ` Michael Ellerman
2017-09-10 23:43 ` Rob Landley
2017-09-11 11:45 ` Petr Mladek
2017-09-12 0:42 ` Sergey Senozhatsky
2017-09-13 2:45 ` Rob Landley
[not found] ` <CAP2kuOwkM7hr5nOtrRSRdXcPi2y3KHVf4yFdDN1JW1o_mWo0yw@mail.gmail.com>
2017-05-25 13:44 ` Leo Yan [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170525134430.GA23912@leoy-ThinkPad-T440 \
--to=leo.yan@linaro.org \
--cc=akpm@linux-foundation.org \
--cc=daniel.thompson@linaro.org \
--cc=fabf@skynet.be \
--cc=john.stultz@linaro.org \
--cc=keescook@chromium.org \
--cc=leoyan.opensource@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@rasmusvillemoes.dk \
--cc=pmladek@suse.com \
--cc=prarit@redhat.com \
--cc=re.emese@gmail.com \
--cc=rob@landley.net \
--cc=yang.shi@linaro.org \
--cc=ynorov@caviumnetworks.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox