Re: cannot ubiupdatevol squashfs image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Sep 10, 2019 at 3:11 PM Boris Stein <boris.stein@xxxxxxxxx> wrote:

[...]

> But then there is a failure when system boots:

[...]

> [    5.919637] ubi0: attaching mtd25
> [    7.038038] ubi0: scanning is finished
> [    7.048738] ubi0: attached mtd25 (name "system", size 319 MiB)
> [    7.048767] ubi0: PEB size: 262144 bytes (256 KiB), LEB size: 253952 bytes
> [    7.053530] ubi0: min./max. I/O unit sizes: 4096/4096, sub-page size 4096
> [    7.060333] ubi0: VID header offset: 4096 (aligned 4096), data offset: 8192
> [    7.067173] ubi0: good PEBs: 1279, bad PEBs: 0, corrupted PEBs: 0
> [    7.073956] ubi0: user volume: 8, internal volumes: 1, max. volumes
> count: 128
> [    7.080208] ubi0: max/mean erase counter: 2/1, WL threshold: 4096,
> image sequence number: 796905358
> [    7.087316] ubi0: available PEBs: 0, total reserved PEBs: 1279,
> PEBs reserved for bad PEB handling: 40
> [    7.096278] ubi0: background thread "ubi_bgt0d" started, PID 207
> [    7.105838] cpuidle: enable-method property 'psci' found operations
> [    7.106471] lpm_levels_of: Residency < 0 for LPM
> [    7.106475] lpm_levels_of: idx 1 420
> [    7.106478] lpm_levels_of: Residency < 0 for LPM
> [    7.106480] lpm_levels_of: idx 2 500
> [    7.106483] lpm_levels_of: idx 2 3040
> [    7.106693] lpm_levels: register_cluster_lpm_stats()
> [    7.108873] rmnet_ipa3 started initialization
> [    7.109878] RNDIS_IPA module is loaded.
> [    7.109878] audio_pdr_late_init get_service_location failed ret -19
> [    7.110531] msm_bus_late_init: Remove handoff bw requests
> [    7.135649] vreg_sd_mmc: disabling
> [    7.135656] emac_phy: disabling
> [    7.135661] rgmii_io_pads: disabling
> [    7.135668] vreg_wlan: disabling
> [    7.135672] ALSA devic[    7.193476] Freeing unused kernel memory: 1024K
> /etc/mdev/iio.sh: .: line 19: can't open
> '/sys/bus/i2c/devices/*-006*/iio:device?*/uevent'
> [    7.697004] iio.sh (216) used greatest stack depth: 6288 bytes left
> /etc/mdev/iio.sh: .: line 19: can't open
> '/sys/bus/i2c/devices/*-006*/iio:device?*/uevent'
> [    7.730144] iio.sh (218) used greatest stack depth: 6256 bytes left
> mkdir: can't create directory '/mnt/sdcard/': No such file or directory
> mount: mounting /dev/mmcblk0p1 on /mnt/sdcard/ failed: No such file or directory
> [    8.038745] mdev (214) used greatest stack depth: 6000 bytes left
> mdm-init : Detected block device : 25 for system
> [    8.051651] ubi: mtd25 is already attached to ubi0ubiattach:
> error!: cannot attach mtd25
>            error 17 (File exists)
> [    8.107261] Waiting for ubinfo for md-rootfs
> [    8.107431] Done ubinfo for md-rootfs, volume ID: 1
> [    8.111069] Waiting for /dev/ubi0_1
> [    8.115328] Done waiting for /dev/ubi0_1
> [    8.124406] block ubiblock0_1: created from ubi0:1(md-rootfs)
> [    8.125039] Waiting for /dev/ubiblock0_1
> [    8.186355] Done waiting for /dev/ubiblock0_1
> [    8.216688] Waiting for ubinfo for rootfs
> [    8.216872] Done ubinfo for rootfs, volume ID: 0
> [    8.219764] Waiting for /dev/ubi0_0
> [    8.224833] Done waiting for /dev/ubi0_0
> [    8.233326] block ubiblock0_0: created from ubi0:0(rootfs)
> [    8.233943] Waiting for /dev/ubiblock0_0
> [    8.301729] Done waiting for /dev/ubiblock0_0
> [    8.614592] 1911 device_is_secure: #########################
> device_is_secure=0

???

> [    8.651724] Waiting for ubinfo for md-sdatafs
> [    8.651900] Done ubinfo for md-sdatafs, volume ID: 3
> [    8.655158] Waiting for /dev/ubi0_3
> [    8.660428] Done waiting for /dev/ubi0_3
> [    8.668817] block ubiblock0_3: created from ubi0:3(md-sdatafs)
> [    8.669459] Waiting for /dev/ubiblock0_3
> [    8.734968] Done waiting for /dev/ubiblock0_3
> [    8.766984] Waiting for ubinfo for sdatafs
> [    8.767156] Done ubinfo for sdatafs, volume ID: 2
> [    8.770369] Waiting for /dev/ubi0_2
> [    8.774891] Done waiting for /dev/ubi0_2
> [    8.783874] block ubiblock0_2: created from ubi0:2(sdatafs)
> [    8.784493] Waiting for /dev/ubiblock0_2
> [    8.851409] Done waiting for /dev/ubiblock0_2
> [    8.913053] 1911 device_is_secure: #########################
> device_is_secure=0

???

> mount: mounting /dev on /system/dev failed: Invalid argument
> mount: mounting /dev/pts on /system/dev/pts failed: No such file or directory

wut?

> [    9.006327] SQUASHFS error: zlib decompression failed, data probably corrupt
> [    9.006359] SQUASHFS error: squashfs_read_data failed to read block 0x785a5a

usually squashfs has a blocksize of 1k or 4k. So block 0x785a5a is out
of bounds.

> [    9.012677] SQUASHFS error: Unable to read fragment cache entry [785a5a]
> [    9.019470] SQUASHFS error: Unable to read page, block 785a5a, size d6b4
> [    9.026242] SQUASHFS error: Unable to read fragment cache entry [785a5a]
> [    9.032876] SQUASHFS error: Unable to read page, block 785a5a, size d6b4
> [    9.039529] SQUASHFS error: Unable to read fragment cache entry [785a5a]
> [    9.046225] SQUASHFS error: Unable to read page, block 785a5a, size d6b4
> [    9.052910] SQUASHFS error: Unable to read fragment cache entry [785a5a]
> [    9.059573] SQUASHFS error: Unable to read page, block 785a5a, size d6b4
> [    9.066281] SQUASHFS error: Unable to read fragment cache entry [785a5a]
> [    9.072954] SQUASHFS error: Unable to read page, block 785a5a, size d6b4
>
>
> Please adivse,

There seem to be many other components involved.
Is the squashfs image actually correct?

-- 
Thanks,
//richard

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux