From: Per Smitt <per.smitt@sbie.se>
To: "linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>
Subject: bad node type after using ubiupdatevol
Date: Mon, 20 Oct 2014 11:51:22 +0000 [thread overview]
Message-ID: <1413805882326.37838@sbie.se> (raw)
Hi
I am having some issues with ubifs. I have a system with two rootfs and
when I upgrade I planned to simply update the rootfs volume currently not
in use with the new filesystem.
When loading the system for the first time using U-Boot it always works to
write both rootfs volumes but once I try to upgrade I run into problems.
My upgrade process:
ubiupdatevol /dev/ubi0_$INDEX "$FS_IMG"
sync
mount -t ubifs ubi0:rootfs$INDEX "$MOUNT_POINT"
# Migrate config files like passwords, hostname, application specific config
sync
umount "$MOUNT_POINT"
sync
fw_setenv boot_index "$INDEX" (Telling U-Boot environment which rootfs to use)
reboot
Yes I was littering with syncs in a desperate attempt to get it to work. I am also
checking for error codes after every command and I get return code 0 all the time.
When rebooting I get the following in the log:
UBIFS error (pid 418): ubifs_read_node: bad node type (255 but expected 1)
UBIFS error (pid 418): ubifs_read_node: bad node at LEB 68:27440
UBIFS error (pid 418): do_readpage: cannot read page 1000 of inode 617, error -22
UBIFS error (pid 418): ubifs_read_node: bad node type (255 but expected 1)
UBIFS error (pid 418): ubifs_read_node: bad node at LEB 68:27440
UBIFS error (pid 418): do_readpage: cannot read page 1000 of inode 617, error -22
It seems random which files are affected as I can sometimes upgrade without
any error message. It might even be possible that the upgrade completed without
any error at all, I cannot say.
Do anyone see anything outright wrong here that I simply am not aware of?
Best regards,
Per Smitt
next reply other threads:[~2014-10-20 11:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 11:51 Per Smitt [this message]
2014-10-20 13:30 ` bad node type after using ubiupdatevol Artem Bityutskiy
[not found] ` <1413813476716.79473@sbie.se>
2014-10-20 14:17 ` SV: " Artem Bityutskiy
[not found] ` <1413882313759.52960@sbie.se>
2014-10-21 9:45 ` Artem Bityutskiy
2014-10-21 9:59 ` Per Smitt
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=1413805882326.37838@sbie.se \
--to=per.smitt@sbie.se \
--cc=linux-mtd@lists.infradead.org \
/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.