mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* ubifs: u-boot vs barebox
@ 2011-08-23  6:06 Nataraj S Narayan
  2011-08-23  6:29 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Nataraj S Narayan @ 2011-08-23  6:06 UTC (permalink / raw)
  To: barebox

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



U-Boot> ubi part data

BI: fixable bit-flip detected at PEB 1514
UBI: fixable bit-flip detected at PEB 1515
UBI: fixable bit-flip detected at PEB 1516
UBI: fixable bit-flip detected at PEB 1517
UBI: fixable bit-flip detected at PEB 1518
UBI: fixable bit-flip detected at PEB 1519
UBI: fixable bit-flip detected at PEB 1520
UBI: fixable bit-flip detected at PEB 1521
UBI: fixable bit-flip detected at PEB 1522
UBI: fixable bit-flip detected at PEB 1523
UBI: fixable bit-flip detected at PEB 1524
UBI: fixable bit-flip detected at PEB 1525
UBI: fixable bit-flip detected at PEB 1526
UBI: fixable bit-flip detected at PEB 1527
UBI: fixable bit-flip detected at PEB 1528
UBI: fixable bit-flip detected at PEB 1529
UBI: fixable bit-flip detected at PEB 1530
UBI: fixable bit-flip detected at PEB 1531
UBI: fixable bit-flip detected at PEB 1532
UBI: fixable bit-flip detected at PEB 1533
UBI: fixable bit-flip detected at PEB 1534
UBI: fixable bit-flip detected at PEB 1535
UBI: fixable bit-flip detected at PEB 1536
UBI: fixable bit-flip detected at PEB 1537
UBI: fixable bit-flip detected at PEB 1538
UBI: fixable bit-flip detected at PEB 1539
UBI: fixable bit-flip detected at PEB 1540
UBI: fixable bit-flip detected at PEB 1541
UBI: fixable bit-flip detected at PEB 1542
UBI: fixable bit-flip detected at PEB 1543
UBI error: ubi_read_volume_table: the layout volume was not found
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error -22
exit not allowed from main input shell.
Clancor> <INTERRUPT>


Am I missing any steps? I wrote the FS using  the following in u-boot.

tftp 0x21400000 rootfs.ubifs ;ubi write 0x21400000 data 0x1b90000


regards

Nataraj

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: ubifs: u-boot vs barebox
  2011-08-23  6:06 ubifs: u-boot vs barebox Nataraj S Narayan
@ 2011-08-23  6:29 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2011-08-23  6:29 UTC (permalink / raw)
  To: Nataraj S Narayan; +Cc: barebox

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 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-23  6:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-23  6:06 ubifs: u-boot vs barebox Nataraj S Narayan
2011-08-23  6:29 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox