ubifs: u-boot vs barebox

Sascha Hauer s.hauer at pengutronix.de
Tue Aug 23 02:29:12 EDT 2011


On Tue, Aug 23, 2011 at 06:06:37AM +0000, Nataraj S Narayan wrote:
> Hi Sascha
> 
> I am able to boot a ubifs filesystem in barebox, after writing the
> file system in u-boot. But the reverse doesn't work.
> 
> After a
> 
> ubiattach /dev/nand0.data;
> ubimkvol /dev/ubi0 data 0
> tftp rootfs.ubifs.nat /dev/ubi0.data
> 
> in barebox,  I replaced barebox with u-boot, keeping the same kernel
> and FS, which of course didn't  boot giving me:-
> 
>  corrupted PEBs are: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
> 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 43
> UBIFS error (pid 1): ubifs_get_sb: cannot open "ubi0:data", error -19

I really suspect your nand driver is broken. Sorry, I have no idea what
is going wrong here, but the ubi code is derived from the kernel, I
don't expect these kinds of bugs here.

You should first make sure that you have a working kernel. You have ubi
errors there aswell, right? I would expect that the kernel driver and
ubi layer is in better shape, also the audience will be bigger if
something is going wrong in the kernel.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list