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: barebox: write a file to /dev/ubi0
Date: Wed, 1 Sep 2010 12:12:35 +0530	[thread overview]
Message-ID: <AANLkTimCj2t-uUJ0vce9rgvwXZnFYtVxkHH2CNwdOkta@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2192 bytes --]

Hi

Able to attach nand to ubi  to them ubimkvol to ubi0.root.


9263-EK:/ ubiattach dev/nand0.rootfs
UBI: attaching mtd0 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: empty MTD device detected
UBI: create volume table (copy #1)
UBI: create volume table (copy #2)
registering /dev/ubi0
UBI: attached mtd0 to ubi0
UBI: MTD device name:            "nand0.rootfs"
UBI: MTD device size:            253 MiB
UBI: number of good PEBs:        2028
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     0
UBI: available PEBs:             2004
UBI: total number of reserved PEBs: 24
UBI: number of PEBs reserved for bad PEB handling: 20
UBI: max/mean erase counter: 1/0

# ubimkvol dev/ubi0 root 0

crw-------  209764352 ubi0.root


I need to write the rootfs.ubifs onto ubi0.root. The file resides on a tftp
server. SInce the file size is 30M,

tftp gives

9263-EK:/ tftp rootfs.ubifs
TFTP from server 192.168.0.200 ('rootfs.ubifs' -> 'rootfs.ubifs')
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        #################################################################
        ###########################################################write:
Out of memory

tftp failed: error -12


Any other way to get the file and do a nand write?

warm regards

Nataraj

[-- Attachment #1.2: Type: text/html, Size: 2426 bytes --]

[-- Attachment #2: Type: text/plain, Size: 149 bytes --]

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

             reply	other threads:[~2010-09-01  6:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-01  6:42 Nataraj S Narayan [this message]
2010-09-01  7:54 ` Baruch Siach

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=AANLkTimCj2t-uUJ0vce9rgvwXZnFYtVxkHH2CNwdOkta@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