From: Vikram Narayanan <vikram186@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] UBIFS fails on SheevaPlug
Date: Tue, 30 Oct 2012 00:23:09 +0530 [thread overview]
Message-ID: <508ED095.4080502@gmail.com> (raw)
In-Reply-To: <CAF9kqNHxrFq+KUV42+TiG_UFXGGJupGfUdyv8eynLYGqhCyxWw@mail.gmail.com>
On 10/29/2012 10:55 PM, Dimax wrote:
> I remember I have unbricked sheevaplug with USB key.
> But I'm still not sure if effort is not useless as I see no conclusion
> about u-boot ability to recover UBIFS partition (at least to try).
> Can anybody tell it for sure?
This is what I've got from the code [1].
Code flow
---------
common/cmd_ubifs.c:
do_ubifs_mount calls ubifs_mount
fs/ubifs/super.c,
In ubifs_mount() (line 1167)
flags = MS_RDONLY; (line 1188)
calls ubifs_get_sb (with flags as a param)
ubifs_get_sb (line 1018)
The flags get updated here.
sb->s_flags = flags; (line 1057)
Calls ubifs_fill_super
sb gets assigned, so are the flags.
c->vfs_sb = sb; (line 962)
Calls mount_ubifs
mount_ubifs(c); (line 983)
In mount_ubifs() (line 582)
struct super_block *sb = c->vfs_sb;
int err, mounted_read_only = (sb->s_flags & MS_RDONLY);
sb taken from the assigned ptr @ line 962.
Flags extracted from the assigned flags @ 1188.
Just see where the variable 'mounter_read_only' gets referred and you'll get the answer.
U-boot will _not_ recover your UBIFS partition like the Linux kernel. CMIIW.
[1] http://git.denx.de/?p=u-boot.git;a=tree;h=5bb3505fa867ded03cbee83f7722ab5182930637;hb=5bb3505fa867ded03cbee83f7722ab5182930637
Hope this helps,
Vikram
next prev parent reply other threads:[~2012-10-29 18:53 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 14:48 [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-10-28 22:54 ` Marek Vasut
2012-10-29 5:25 ` Dimax
2012-10-29 6:38 ` Dimax
2012-10-29 6:48 ` Andreas Bießmann
2012-10-29 6:55 ` Dimax
2012-10-29 8:38 ` Andreas Bießmann
2012-10-29 8:50 ` Dimax
2012-10-29 9:11 ` Andreas Bießmann
2012-10-29 9:27 ` Dimax
2012-10-29 9:43 ` Andreas Bießmann
2012-10-29 10:19 ` Marek Vasut
2012-10-29 10:34 ` Andreas Bießmann
2012-10-29 16:02 ` Vikram Narayanan
2012-10-29 12:15 ` Prafulla Wadaskar
2012-10-29 17:25 ` Dimax
2012-10-29 18:53 ` Vikram Narayanan [this message]
2012-10-29 19:05 ` Dimax
2012-10-29 23:55 ` Andreas Bießmann
2012-10-29 23:02 ` Andreas Bießmann
2012-10-31 16:27 ` Vikram Narayanan
2012-10-31 16:50 ` Andreas Bießmann
2012-10-31 16:55 ` Vikram Narayanan
2012-10-31 17:23 ` Dimax
2012-10-31 17:56 ` Andreas Bießmann
2012-10-31 20:45 ` [U-Boot] How to enable debug information in u-boot Paulo Louro
2012-11-06 7:51 ` [U-Boot] UBIFS fails on SheevaPlug Dimax
2012-11-06 9:12 ` Andreas Bießmann
2012-11-12 5:33 ` Dimax
2012-11-12 8:33 ` Andreas Bießmann
2012-11-12 16:55 ` Dimax
2012-11-12 17:15 ` Vikram Narayanan
2012-10-29 6:01 ` Prafulla Wadaskar
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=508ED095.4080502@gmail.com \
--to=vikram186@gmail.com \
--cc=u-boot@lists.denx.de \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.