From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul B. Henson Date: Tue, 30 Apr 2013 13:54:41 -0700 Subject: [U-Boot] u-boot UBI support In-Reply-To: References: <20130429044125.GG4847@bender.unx.csupomona.edu> Message-ID: <51802F91.2020207@acm.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 4/29/2013 1:57 AM, Sascha Silbe wrote: >> MX28EVK U-Boot > ubifsmount recovery >> >> UBIFS error (pid 0): ubifs_get_sb: cannot open "recovery", error -22 >> UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume >> 'recovery' errno=-22! > > Try increasing CONFIG_SYS_MALLOC_LEN, e.g. to 4MiB. That fixed it for me > on a different board. It actually turned out to be something a lot simpler. Unlike Linux, u-boot only allows one active ubi partition. However, because it uses the code from Linux, when trying to access a file system you still need to specify which ubi partition it's on, which was neither intuitive nor obvious until I dug through the code. When I specified "ubifsmount ubi0:recovery", it worked perfectly. Thanks?