On 10/28/2018 08:21 AM, Richard Weinberger wrote:
Ben,
Am Sonntag, 28. Oktober 2018, 16:08:13 CET schrieb Ben Greear:
That is not an easy thing to do on random embedded systems. Possibly I could add a kernel
Debugging random non-development systems is never easy.
command line option...is that supported?
The UBIFS module takes no parameters. But patches are welcome.
I'm fully occupied with the wifi stack issues...hoping other people
can work on different issues.
For now you can just use your initramfs (AFAIK OpenWRT has one), boot with rdinit=/bin/sh ...
Or apply a hacky patch like this one to enable chk_fs always...
Problem is, when I re-install then the problem goes away. Would it
be bad to enable this code all the time on production systems?
Could UBIFS just enable debugging and print out any pertinent
info when it detects the failure instead of (just) going into RO
mode?
Thanks,
Ben
diff --git a/fs/ubifs/debug.h b/fs/ubifs/debug.h
index 64c6977c189b..ea0ffc0a9660 100644
--- a/fs/ubifs/debug.h
+++ b/fs/ubifs/debug.h
@@ -231,7 +231,7 @@ static inline int dbg_is_chk_lprops(const struct ubifs_info *c)
}
static inline int dbg_is_chk_fs(const struct ubifs_info *c)
{
- return !!(ubifs_dbg.chk_fs || c->dbg->chk_fs);
+ return 1;
}
static inline int dbg_is_tst_rcvry(const struct ubifs_info *c)
{
Thanks,
//richard
--
Ben Greear <greearb@xxxxxxxxxxxxxxx>
Candela Technologies Inc http://www.candelatech.com
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/