AnsweredAssumed Answered

ubifsmount p2020ds-rootfs           error

Question asked by xiaonan peng on Aug 6, 2020
Latest reply on Aug 28, 2020 by xiaonan peng

my demo board is  P2020DS ,  i  use the sdk1.6,  mount  one  mtd  , ubifsmount p2020ds-rootfs                                                   
UBIFS error (pid 0): ubifs_get_sb: cannot open "p2020ds-rootfs", error -22     
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'p2020ds-ro
otfs' errno=-22!  

 

     how  to deal with   this  error?   thank  U.

 the  detail  as  bellow : 

 

=> mtd

device nand0 <s8313.nand>, # parts = 13
 #: name  size  offset  mask_flags
 0: stage0              0x00020000 0x00000000 0
 1: boot                0x000e0000 0x00020000 0
 2: factory             0x00100000 0x00100000 0
 3: control             0x00100000 0x00200000 0
 4: os.1                0x01000000 0x00300000 0
 5: uImage.1            0x00800000 0x01300000 0
 6: os.2                0x01000000 0x01b00000 0
 7: uImage.2            0x00800000 0x02b00000 0
 8: p2020ds-rootfs      0x06400000 0x03300000 0
 9: appl.2              0x06400000 0x09700000 0
10: config.1            0x00800000 0x0fb00000 0
11: config.2            0x00800000 0x10300000 0
12: pst                 0x2f500000 0x10b00000 0

active partition: nand0,0 - (stage0) 0x00020000 @ 0x00000000

defaults:
mtdids  : nand0=s8313.nand
mtdparts: mtdparts=s8313.nand:128k(stage0),896k(boot),1m(factory),1m(control),16m(os.1),8m(uImage.1),16m(os.2),8m(uImage.2),100m(p2020ds-rootfs),100m(appl.2),8m(config.1),8m(config.2),-(pst)
=> nand erase.part p2020ds-rootfs

NAND erase.part: device 0 offset 0x3300000, size 0x6400000

Erasing at 0x3300000 --   0% complete.
Erasing at 0x33e0000 --   1% complete.
Erasing at 0x34e0000 --   2% complete.
Erasing at 0x35e0000 --   3% complete.
Erasing at 0x36e0000 --   4% complete.
Erasing at 0x37e0000 --   5% complete.
Erasing at 0x38e0000 --   6% complete.
Erasing at 0x39e0000 --   7% complete.
Erasing at 0x3ae0000 --   8% complete.
Erasing at 0x3be0000 --   9% complete.
Erasing at 0x3ce0000 --  10% complete.
Erasing at 0x3de0000 --  11% complete.
Erasing at 0x3ee0000 --  12% complete.
Erasing at 0x3fe0000 --  13% complete.
Erasing at 0x40e0000 --  14% complete.
Erasing at 0x41e0000 --  15% complete.
Erasing at 0x42e0000 --  16% complete.
Erasing at 0x43e0000 --  17% complete.
Erasing at 0x44e0000 --  18% complete.
Erasing at 0x45e0000 --  19% complete.
Erasing at 0x46e0000 --  20% complete.
Erasing at 0x47e0000 --  21% complete.
Erasing at 0x48e0000 --  22% complete.
Erasing at 0x49e0000 --  23% complete.
Erasing at 0x4ae0000 --  24% complete.
Erasing at 0x4be0000 --  25% complete.
Erasing at 0x4ce0000 --  26% complete.
Erasing at 0x4de0000 --  27% complete.
Skipping bad block at  0x04ee0000                                         

Erasing at 0x4f00000 --  28% complete.
Erasing at 0x4fe0000 --  29% complete.
Erasing at 0x50e0000 --  30% complete.
Erasing at 0x51e0000 --  31% complete.
Erasing at 0x52e0000 --  32% complete.
Erasing at 0x53e0000 --  33% complete.
Erasing at 0x54e0000 --  34% complete.
Erasing at 0x55e0000 --  35% complete.
Erasing at 0x56e0000 --  36% complete.
Erasing at 0x57e0000 --  37% complete.
Erasing at 0x58e0000 --  38% complete.
Erasing at 0x59e0000 --  39% complete.
Erasing at 0x5ae0000 --  40% complete.
Erasing at 0x5be0000 --  41% complete.
Erasing at 0x5ce0000 --  42% complete.
Erasing at 0x5de0000 --  43% complete.
Erasing at 0x5ee0000 --  44% complete.
Skipping bad block at  0x05f00000                                         

Erasing at 0x5fe0000 --  45% complete.
Erasing at 0x60e0000 --  46% complete.
Erasing at 0x61e0000 --  47% complete.
Erasing at 0x62e0000 --  48% complete.
Erasing at 0x63e0000 --  49% complete.
Erasing at 0x64e0000 --  50% complete.
Erasing at 0x65e0000 --  51% complete.
Erasing at 0x66e0000 --  52% complete.
Erasing at 0x67e0000 --  53% complete.
Erasing at 0x68e0000 --  54% complete.
Erasing at 0x69e0000 --  55% complete.
Erasing at 0x6ae0000 --  56% complete.
Erasing at 0x6be0000 --  57% complete.
Erasing at 0x6ce0000 --  58% complete.
Erasing at 0x6de0000 --  59% complete.
Erasing at 0x6ee0000 --  60% complete.
Erasing at 0x6fe0000 --  61% complete.
Erasing at 0x70e0000 --  62% complete.
Erasing at 0x71e0000 --  63% complete.
Erasing at 0x72e0000 --  64% complete.
Erasing at 0x73e0000 --  65% complete.
Erasing at 0x74e0000 --  66% complete.
Erasing at 0x75e0000 --  67% complete.
Erasing at 0x76e0000 --  68% complete.
Erasing at 0x77e0000 --  69% complete.
Erasing at 0x78e0000 --  70% complete.
Skipping bad block at  0x079e0000                                         

Erasing at 0x7a00000 --  71% complete.
Erasing at 0x7ae0000 --  72% complete.
Erasing at 0x7be0000 --  73% complete.
Erasing at 0x7ce0000 --  74% complete.
Erasing at 0x7de0000 --  75% complete.
Erasing at 0x7ee0000 --  76% complete.
Erasing at 0x7fe0000 --  77% complete.
Erasing at 0x80e0000 --  78% complete.
Erasing at 0x81e0000 --  79% complete.
Erasing at 0x82e0000 --  80% complete.
Erasing at 0x83e0000 --  81% complete.
Erasing at 0x84e0000 --  82% complete.
Erasing at 0x85e0000 --  83% complete.
Erasing at 0x86e0000 --  84% complete.
Erasing at 0x87e0000 --  85% complete.
Erasing at 0x88e0000 --  86% complete.
Erasing at 0x89e0000 --  87% complete.
Erasing at 0x8ae0000 --  88% complete.
Erasing at 0x8be0000 --  89% complete.
Erasing at 0x8ce0000 --  90% complete.
Erasing at 0x8de0000 --  91% complete.
Erasing at 0x8ee0000 --  92% complete.
Erasing at 0x8fe0000 --  93% complete.
Erasing at 0x90e0000 --  94% complete.
Erasing at 0x91e0000 --  95% complete.
Erasing at 0x92e0000 --  96% complete.
Erasing at 0x93e0000 --  97% complete.
Erasing at 0x94e0000 --  98% complete.
Skipping bad block at  0x09560000                                         

Erasing at 0x95e0000 --  99% complete.
Erasing at 0x96e0000 -- 100% complete.
OK
=> ubi part p2020ds-rootfs
UBI: attaching mtd1 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)
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=8"
UBI: MTD device size:            100 MiB
UBI: number of good PEBs:        796
UBI: number of bad PEBs:         4
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:             785
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/0
=> ubi create p2020ds-rootfs
No size specified -> Using max size (99676160)
Creating dynamic volume p2020ds-rootfs of size 99676160
=> tftp 0x2000000   fsl-image-flash-p2020ds-20200806091353.rootfs.ubifs
eTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC1: No link.
eTSEC2 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC2: No link.
eTSEC3 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC3: No link.
=> tftp 0x2000000   fsl-image-flash-p2020ds-20200806091353.rootfs.ubifs
eTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC1: No link.
Speed: 1000, full duplex
Using eTSEC2 device
TFTP from server 192.168.1.188; our IP address is 192.168.1.254
Filename 'fsl-image-flash-p2020ds-20200806091353.rootfs.ubifs'.
Load address: 0x2000000
Loading: *#################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  ###########################
  5.8 MiB/s
done
Bytes transferred = 9937920 (97a400 hex)
=> ubi write 0x2000000   p2020ds-rootfs 0x97a400
9937920 bytes written to volume p2020ds-rootfs
=> ubifsmount
ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
=> ubifsmount  p2020ds-rootfs
UBIFS error (pid 0): ubifs_get_sb: cannot open "p2020ds-rootfs", error -22
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'p2020ds-rootfs' errno=-22!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
=> ubifsmount p2020ds-rootfs
UBIFS error (pid 0): ubifs_get_sb: cannot open "p2020ds-rootfs", error -22
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'p2020ds-rootfs' errno=-22!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
=> nand erase.part p2020ds-rootfs

NAND erase.part: device 0 offset 0x3300000, size 0x6400000

Erasing at 0x3300000 --   0% complete.
Erasing at 0x33e0000 --   1% complete.
Erasing at 0x34e0000 --   2% complete.
Erasing at 0x35e0000 --   3% complete.
Erasing at 0x36e0000 --   4% complete.
Erasing at 0x37e0000 --   5% complete.
Erasing at 0x38e0000 --   6% complete.
Erasing at 0x39e0000 --   7% complete.
Erasing at 0x3ae0000 --   8% complete.
Erasing at 0x3be0000 --   9% complete.
Erasing at 0x3ce0000 --  10% complete.
Erasing at 0x3de0000 --  11% complete.
Erasing at 0x3ee0000 --  12% complete.
Erasing at 0x3fe0000 --  13% complete.
Erasing at 0x40e0000 --  14% complete.
Erasing at 0x41e0000 --  15% complete.
Erasing at 0x42e0000 --  16% complete.
Erasing at 0x43e0000 --  17% complete.
Erasing at 0x44e0000 --  18% complete.
Erasing at 0x45e0000 --  19% complete.
Erasing at 0x46e0000 --  20% complete.
Erasing at 0x47e0000 --  21% complete.
Erasing at 0x48e0000 --  22% complete.
Erasing at 0x49e0000 --  23% complete.
Erasing at 0x4ae0000 --  24% complete.
Erasing at 0x4be0000 --  25% complete.
Erasing at 0x4ce0000 --  26% complete.
Erasing at 0x4de0000 --  27% complete.
Skipping bad block at  0x04ee0000                                         

Erasing at 0x4f00000 --  28% complete.
Erasing at 0x4fe0000 --  29% complete.
Erasing at 0x50e0000 --  30% complete.
Erasing at 0x51e0000 --  31% complete.
Erasing at 0x52e0000 --  32% complete.
Erasing at 0x53e0000 --  33% complete.
Erasing at 0x54e0000 --  34% complete.
Erasing at 0x55e0000 --  35% complete.
Erasing at 0x56e0000 --  36% complete.
Erasing at 0x57e0000 --  37% complete.
Erasing at 0x58e0000 --  38% complete.
Erasing at 0x59e0000 --  39% complete.
Erasing at 0x5ae0000 --  40% complete.
Erasing at 0x5be0000 --  41% complete.
Erasing at 0x5ce0000 --  42% complete.
Erasing at 0x5de0000 --  43% complete.
Erasing at 0x5ee0000 --  44% complete.
Skipping bad block at  0x05f00000                                         

Erasing at 0x5fe0000 --  45% complete.
Erasing at 0x60e0000 --  46% complete.
Erasing at 0x61e0000 --  47% complete.
Erasing at 0x62e0000 --  48% complete.
Erasing at 0x63e0000 --  49% complete.
Erasing at 0x64e0000 --  50% complete.
Erasing at 0x65e0000 --  51% complete.
Erasing at 0x66e0000 --  52% complete.
Erasing at 0x67e0000 --  53% complete.
Erasing at 0x68e0000 --  54% complete.
Erasing at 0x69e0000 --  55% complete.
Erasing at 0x6ae0000 --  56% complete.
Erasing at 0x6be0000 --  57% complete.
Erasing at 0x6ce0000 --  58% complete.
Erasing at 0x6de0000 --  59% complete.
Erasing at 0x6ee0000 --  60% complete.
Erasing at 0x6fe0000 --  61% complete.
Erasing at 0x70e0000 --  62% complete.
Erasing at 0x71e0000 --  63% complete.
Erasing at 0x72e0000 --  64% complete.
Erasing at 0x73e0000 --  65% complete.
Erasing at 0x74e0000 --  66% complete.
Erasing at 0x75e0000 --  67% complete.
Erasing at 0x76e0000 --  68% complete.
Erasing at 0x77e0000 --  69% complete.
Erasing at 0x78e0000 --  70% complete.
Skipping bad block at  0x079e0000                                         

Erasing at 0x7a00000 --  71% complete.
Erasing at 0x7ae0000 --  72% complete.
Erasing at 0x7be0000 --  73% complete.
Erasing at 0x7ce0000 --  74% complete.
Erasing at 0x7de0000 --  75% complete.
Erasing at 0x7ee0000 --  76% complete.
Erasing at 0x7fe0000 --  77% complete.
Erasing at 0x80e0000 --  78% complete.
Erasing at 0x81e0000 --  79% complete.
Erasing at 0x82e0000 --  80% complete.
Erasing at 0x83e0000 --  81% complete.
Erasing at 0x84e0000 --  82% complete.
Erasing at 0x85e0000 --  83% complete.
Erasing at 0x86e0000 --  84% complete.
Erasing at 0x87e0000 --  85% complete.
Erasing at 0x88e0000 --  86% complete.
Erasing at 0x89e0000 --  87% complete.
Erasing at 0x8ae0000 --  88% complete.
Erasing at 0x8be0000 --  89% complete.
Erasing at 0x8ce0000 --  90% complete.
Erasing at 0x8de0000 --  91% complete.
Erasing at 0x8ee0000 --  92% complete.
Erasing at 0x8fe0000 --  93% complete.
Erasing at 0x90e0000 --  94% complete.
Erasing at 0x91e0000 --  95% complete.
Erasing at 0x92e0000 --  96% complete.
Erasing at 0x93e0000 --  97% complete.
Erasing at 0x94e0000 --  98% complete.
Skipping bad block at  0x09560000                                         

Erasing at 0x95e0000 --  99% complete.
Erasing at 0x96e0000 -- 100% complete.
OK
=> ubi part p2020ds-rootfs
UBI: mtd1 is detached from ubi0
UBI: attaching mtd1 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)
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=8"
UBI: MTD device size:            100 MiB
UBI: number of good PEBs:        796
UBI: number of bad PEBs:         4
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:             785
UBI: total number of reserved PEBs: 11
UBI: number of PEBs reserved for bad PEB handling: 7
UBI: max/mean erase counter: 1/0
=> ubi create p2020ds-rootfs
No size specified -> Using max size (99676160)
Creating dynamic volume p2020ds-rootfs of size 99676160
=> ubifsmount p2020ds-rootfs
UBIFS error (pid 0): ubifs_get_sb: cannot open "p2020ds-rootfs", error -22
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'p2020ds-rootfs' errno=-22!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume
=> tftp 0x2000000   fsl-image-flash-p2020ds.ubi
eTSEC2 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC2: No link.
eTSEC3 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC3: No link.
eTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC1: No link.
=> tftp 0x2000000   fsl-image-flash-p2020ds.ubi
Speed: 1000, full duplex
Using eTSEC2 device
TFTP from server 192.168.1.188; our IP address is 192.168.1.254
Filename 'fsl-image-flash-p2020ds.ubi'.
Load address: 0x2000000
Loading: *#################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  #################################################################
  ##########
  5.8 MiB/s
done
Bytes transferred = 10633216 (a24000 hex)
=> ubi write 0x2000000   p2020ds-rootfs 0xa24000
10633216 bytes written to volume p2020ds-rootfs
=> ubifsmount p2020ds-rootfs
UBIFS error (pid 0): ubifs_get_sb: cannot open "p2020ds-rootfs", error -22
UBIFS error (pid 0): ubifs_mount: Error reading superblock on volume 'p2020ds-rootfs' errno=-22!

ubifsmount - mount UBIFS volume

Usage:
ubifsmount <volume-name>
    - mount 'volume-name' volume

Outcomes