Jump to content


Photo

mount xp1000(cloud-ibox2) image Ubuntu

cloud-ibox2 mount Ubuntu

  • Please log in to reply
3 replies to this topic

#1 mag_box2

  • Member
  • 3 posts

0
Neutral

Posted 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?
 



Re: mount xp1000(cloud-ibox2) image Ubuntu #2 mag_box2

  • Member
  • 3 posts

0
Neutral

Posted 31 March 2014 - 18:18

i create it

 

mkdir /mnt/ubi
modprobe mtdblock
modprobe ubi

modprobe nandsim first_id_byte=0xec second_id_byte=0xa1 third_id_byte=0x00 fourth_id_byte=0x15


cat /proc/mtd
ls -la /dev/mtd*

dd if=rootfs.bin of=/dev/mtdblock0 bs=2048
ubiattach /dev/ubi_ctrl -m 0 -O 2048

ls -la /dev/ubi*

mount -t ubifs ubi0_0 /mnt/ubi/
 


Re: mount xp1000(cloud-ibox2) image Ubuntu #3 mag_box2

  • Member
  • 3 posts

0
Neutral

Posted 31 March 2014 - 18:18

how i can mount

 

kernel.bin  ???


Edited by mag_box2, 31 March 2014 - 18:18.


Re: mount xp1000(cloud-ibox2) image Ubuntu #4 betacentauri

  • PLi® Core member
  • 6,962 posts

+299
Excellent

Posted 31 March 2014 - 18:27

Mount?? It's the kernel. It's a single binary program and no filesystem!


Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04





Also tagged with one or more of these keywords: cloud-ibox2, mount, Ubuntu

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users