barebox: write a file to /dev/ubi0

Nataraj S Narayan natarajsn at gmail.com
Wed Sep 1 02:42:35 EDT 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20100901/9f3c5596/attachment.html>


More information about the barebox mailing list