g7 / sailfishx-patcher-f5321

Patcher script that applies the f5321 (Xperia X Compact) compatibility layer on top of official Sailfish X f5121 images
29 stars 5 forks source link

fimage.img repack failed #4

Closed 0312birdzhang closed 5 years ago

0312birdzhang commented 5 years ago

BTW, this log is from 3.0.0.8

# e2fsck -f -y fimage.img
e2fsck 1.43.4 (31-Jan-2017)
ext2fs_open2: Bad magic number in super-block
e2fsck: Superblock invalid, trying backup blocks...
e2fsck: Bad magic number in super-block while trying to open fimage.img

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>
g7 commented 5 years ago

Thanks for the report, I haven't tried yet patching 3.0.0.x, but will do so soon.

g7 commented 5 years ago

It patched fine here. I haven't tried flashing it as unfortunately I don't have a spare device to try this on.

The md5 of the source file I used Sailfish_OS-Jolla-3.0.0.8-f5121-0.2.1.11.zip is

dbdf87bffb8c2992add9c7907faeb7b2

perhaps yours is different? Have you used vagrant or executed the script manually?

0312birdzhang commented 5 years ago

md5 is same dbdf87bffb8c2992add9c7907faeb7b2 *Sailfish_OS-Jolla-3.0.0.8-f5121-0.2.1.11.zip I updated droid-config-f5121, and i repacked it on windows (with dos2unix fix some \r error)

BTW, can you share yours?

0312birdzhang commented 5 years ago

Rollback to older droid-config-f5121 fix this issue.

resize2fs 1.43.4 (31-Jan-2017)
The filesystem is already 341796 (4k) blocks long.  Nothing to do!
e2fsck 1.43.4 (31-Jan-2017)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
fimage.img: 16/85536 files (0.0% non-contiguous), 125461/341796 blocks
resize2fs 1.43.4 (31-Jan-2017)
Resizing the filesystem on fimage.img to 191953 (4k) blocks.
The filesystem on fimage.img is now 191953 (4k) blocks long.