linux-mtd.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Ralph Sennhauser <ralph.sennhauser@gmail.com>
To: Richard Weinberger <richard@nod.at>
Cc: linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
Subject: [REGRESSION 4.9-rc2] "c83ed4c - ubifs: Abort readdir upon error" breaks mount
Date: Fri, 28 Oct 2016 11:37:08 +0200	[thread overview]
Message-ID: <20161028113708.4d5535ba@gmail.com> (raw)

Dear Richard, dear list

When testing 4.9-rc2 the device wouldn't boot, as it turns out commit
c83ed4c9dbb358b9e7707486e167e940d48bfeed prevent's me mounting root.


The relevant portion of init in the initramfs:

  modprobe ubi mtd=$(get_mtd_from_root_arg) block=0,0 || rescue_shell "ubi"
  modprobe ubifs || rescue_shell "ubifs"
  sleep 1

  mount -o ro -t squashfs /dev/ubiblock0_0 /rom || rescue_shell "mount rootfs"
  mount -o rw,noatime -t ubifs /dev/ubi0_1 /overlay || rescue_shell "mount rootfs_data"

  mkdir -p /overlay/upper || rescue_shell "mkdir upper"
  mkdir -p /overlay/work || rescue_shell "mkdir work"

  mount -o rw,noatime,lowerdir=/rom,upperdir=/overlay/upper,workdir=/overlay/work \
        -t overlay overlay /newroot || rescue_shell "mount overlay"


The corresponding output:

  [    1.396152] ubi0: attaching mtd5
  [    1.407127] random: fast init done
  [    1.471770] ubi0: scanning is finished
  [    1.491499] ubi0: volume 1 ("rootfs_data") re-sized from 9 to 111 LEBs
  [    1.498325] ubi0: attached mtd5 (name "rootfs1", size 34 MiB)
  [    1.504106] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
  [    1.511007] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
  [    1.517826] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
  [    1.524819] ubi0: good PEBs: 272, bad PEBs: 0, corrupted PEBs: 0
  [    1.530848] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 128
  [    1.538102] ubi0: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 1823239451
  [    1.547275] ubi0: available PEBs: 0, total reserved PEBs: 272, PEBs reserved for bad PEB handling: 20
  [    1.556613] ubi0: background thread "ubi_bgt0d" started, PID 575
  [    1.562933] block ubiblock0_0: created from ubi0:0(rootfs)
  [    2.588027] UBIFS (ubi0:1): default file-system created
  [    2.593689] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 586
  [    2.626943] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
  [    2.634816] UBIFS (ubi0:1): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
  [    2.644781] UBIFS (ubi0:1): FS size: 12824576 bytes (12 MiB, 101 LEBs), journal size 1015809 bytes (0 MiB, 6 LEBs)
  [    2.655175] UBIFS (ubi0:1): reserved for root: 605735 bytes (591 KiB)
  [    2.661646] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID FC75053C-E958-4BBC-BD2B-CFCD72BD47F6, small LPT model
  mount: mounting overlay on /newroot failed: No such file or directory
  Error in /init: mount overlay
  -install: applet not found


  BusyBox v1.25.1 () built-in shell (ash)

  sh: can't access tty; job control turned off
  #


The device is a Linksys WRT1900ACS (Shelby), for a basically identical device
see ./arch/arm/boot/dts/armada-385-linksys-cobra.dts


Regards
Ralph

             reply	other threads:[~2016-10-28  9:37 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-28  9:37 Ralph Sennhauser [this message]
2016-10-28  9:38 ` [REGRESSION 4.9-rc2] "c83ed4c - ubifs: Abort readdir upon error" breaks mount Richard Weinberger
2016-10-28 11:15   ` Ralph Sennhauser

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=20161028113708.4d5535ba@gmail.com \
    --to=ralph.sennhauser@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    /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;
as well as URLs for NNTP newsgroup(s).