mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* barebox: write a file to /dev/ubi0
@ 2010-09-01  6:42 Nataraj S Narayan
  2010-09-01  7:54 ` Baruch Siach
  0 siblings, 1 reply; 2+ messages in thread
From: Nataraj S Narayan @ 2010-09-01  6:42 UTC (permalink / raw)
  To: barebox


[-- 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

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

end of thread, other threads:[~2010-09-01  7:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-01  6:42 barebox: write a file to /dev/ubi0 Nataraj S Narayan
2010-09-01  7:54 ` Baruch Siach

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