mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Nataraj S Narayan <natarajsn@gmail.com>
To: barebox@lists.infradead.org
Subject: ubifs: u-boot vs barebox
Date: Tue, 23 Aug 2011 06:06:37 +0000	[thread overview]
Message-ID: <CAK8HZO+gSazgxyNQ1eDCWXEg820mXTZwdAZ7CricBN4SjDkj_A@mail.gmail.com> (raw)

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

             reply	other threads:[~2011-08-23  6:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23  6:06 Nataraj S Narayan [this message]
2011-08-23  6:29 ` Sascha Hauer

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=CAK8HZO+gSazgxyNQ1eDCWXEg820mXTZwdAZ7CricBN4SjDkj_A@mail.gmail.com \
    --to=natarajsn@gmail.com \
    --cc=barebox@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox