Jump to content


mag_box2

Member Since 29 Mar 2014
Offline Last Active 07 Apr 2014 18:54
-----

Topics I've Started

mount xp1000(cloud-ibox2) image Ubuntu

29 March 2014 - 08:10

Hi Alll! :)

Help me !

image OpenPLI xp1000(cloud-ibox2)

in xp1000 information:

 

cat /proc/mtd
dev:    size   erasesize  name
mtd0: 08000000 00020000 "complete"
mtd1: 00600000 00020000 "kernel"
mtd2: 07a00000 00020000 "rootfs"
 

 

mtdinfo -a
Count of MTD devices:           3
Present MTD devices:            mtd0, mtd1, mtd2
Sysfs interface supported:      yes

mtd0
Name:                           complete
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          1024 (134217728 bytes, 128.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  2048 bytes
OOB size:                       64 bytes
Character device major/minor:   90:0
Bad blocks are allowed:         true
Device is writable:             true

mtd1
Name:                           kernel
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          48 (6291456 bytes, 6.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  2048 bytes
OOB size:                       64 bytes
Character device major/minor:   90:2
Bad blocks are allowed:         true
Device is writable:             true

mtd2
Name:                           rootfs
Type:                           nand
Eraseblock size:                131072 bytes, 128.0 KiB
Amount of eraseblocks:          976 (127926272 bytes, 122.0 MiB)
Minimum input/output unit size: 2048 bytes
Sub-page size:                  2048 bytes
OOB size:                       64 bytes
Character device major/minor:   90:4
Bad blocks are allowed:         true
Device is writable:             true
 

 


 

 

 

ubinfo  --all
UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:59
Present UBI devices:            ubi0

ubi0
Volumes count:                           1
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     972 (123420672 bytes, 117.7 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       4
Count of reserved physical eraseblocks:  16
Current maximum erase counter value:     4
Minimum input/output unit size:          2048 bytes
Character device major/minor:            253:0
Present volumes:                         0

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        952 LEBs (120881152 bytes, 115.3 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 253:1
 

 



 

 

files:

kernel.bin

rootfs.bin

splash.bin

 

copy in my ubuntu

 

 

sudo modprobe -v mtd
sudo modprobe -v ubifs
sudo modprobe -v mtdram total_size=90000 erase_size=128
sudo modprobe -v mtdchar
sudo modprobe -v mtdblock
 

 

 

 

sudo dd if=rootfs.bin of=/dev/mtd0
 

 

  coped 53477376 байт (53 MB), 0,597485 c, 89,5 MB/s

 

 

sudo ubiattach /dev/ubi_ctrl -m 0
 

 

          ubiattach: error!: cannot attach mtd0

           error 22 (Invalid argument)

 

 

ubiattach -p /dev/mtd0
 

 


          ubiattach: error!: cannot attach "/dev/mtd0"
           error 22 (Invalid argument)
 

 

how to do it?