PDA

View Full Version : error while flashing sailfish


n0zzz
2013-12-13, 17:37
Hello.
i have tried to flash sailfish many times now but no luck.
starting flashing by opening terminal on n9 and typing:

tar --numeric-owner -xvjf sailfish.tar.bz2 -C /sailfish/

everything goes fine until this comes:

tar: can't open ' ./usr/share/man/man3/autodie: :exception: :system.3pm.gz' : invalid argument

i have installed everything what instructions says but still im getting this :/

hope you can help me :)

juiceme
2013-12-13, 21:45
Hello.
i have tried to flash sailfish many times now but no luck.
starting flashing by opening terminal on n9 and typing:

tar --numeric-owner -xvjf sailfish.tar.bz2 -C /sailfish/

everything goes fine until this comes:

tar: can't open ' ./usr/share/man/man3/autodie: :exception: :system.3pm.gz' : invalid argument

i have installed everything what instructions says but still im getting this :/

hope you can help me :)

Two things that may or may not have some effect here;
1.) I always bunzip2 the *bz2 files on my PS and only transfer the uncompressed TAR files to device.
2.) I think you need to put the doubledash options after the file mode operations (read, write, check) so it would become like this:
tar -xvf sailfish.tar --numeric-owner -C /sailfish/

n0zzz
2013-12-14, 08:30
im still getting the same :/
im going to flash everything again.
fresh start :)

EDIT: still getting same error!

im going to give up :/

nieldk
2013-12-14, 08:48
Hello.
i have tried to flash sailfish many times now but no luck.
starting flashing by opening terminal on n9 and typing:

tar --numeric-owner -xvjf sailfish.tar.bz2 -C /sailfish/

everything goes fine until this comes:

tar: can't open ' ./usr/share/man/man3/autodie: :exception: :system.3pm.gz' : invalid argument

i have installed everything what instructions says but still im getting this :/

hope you can help me :)

Perhaps a faulty download of the sailfish.tar.bz2
Try to download again, and also, check md5 sum to check if download is good

n0zzz
2013-12-14, 09:23
ok now i have downloaded file again and checked md5 and everything seems to be fine but during flashing still getting the same error!

any ideas?

juiceme
2013-12-14, 11:12
ok now i have downloaded file again and checked md5 and everything seems to be fine but during flashing still getting the same error!

any ideas?

So it starts to extract the archive until at some point it comes to that error and then it bails out?
Are you running out of space, maybe your ALT_OS is really small?

n0zzz
2013-12-14, 11:32
1. reflash main and emmc.bin files:
flasher -F main.bin -F emmc.bin -f

2. running this:
flasher -f -F main.bin --erase-user-data=secure -F emmc.bin --erase-mmc=secure

3. flashing openmode kernel

4. flashing moslo kernel (windows regonizing drive that needs to be format before i can use it) so i format it from my pc and says 3.9gb free.

5. moving sailfish.tar.bz2 file into my n9

flashing sailfish:
devel-su, password
cd /home/user/MyDocs
mkdir /sailfish
mount /dev/mmcblk0p4 /sailfish
tar --numeric-owner -xvjf sailfish.tar.bz2 -C /sailfish/

...aaand then error pops up.

tell me if im doing something from

n0zzz
2013-12-14, 11:38
So it starts to extract the archive until at some point it comes to that error and then it bails out?
Are you running out of space, maybe your ALT_OS is really small?

yes it starts to extract it until fails.

n0zzz
2013-12-14, 11:40
If I remember right N9 tar doesnt know how to uncompress bz2 correctly, so you need to send tar or tar.gz file on device if you want to extract it from the device. Or you can just mount the partition to your linux machine and use bz2 extraction from there.

i have exracted .tar from bz2 file so i can send only .tar file but still getting same problem :/

juiceme
2013-12-14, 11:47
How much of the archive is extracted before it glitches?
What's the last thing to go correctly?
Which image are you trying to extract, did you try others?
Did you try to mount the ALT_OS partiton to outside host and extract to there?

n0zzz
2013-12-14, 11:59
How much of the archive is extracted before it glitches?
What's the last thing to go correctly?
Which image are you trying to extract, did you try others?
Did you try to mount the ALT_OS partiton to outside host and extract to there?

its pretty much end of the falshing when it glitching
im using SourenAraya's Sailfish images that are the latest.

what do you mean about trying to mount ALT_OS partition to outside host?
can you post some simple steps that worked for you?

juiceme
2013-12-14, 20:08
4. flashing moslo kernel (windows regonizing drive that needs to be format before i can use it) so i format it from my pc and says 3.9gb free.


OMG now I understand what you have done wrong here! :D:D

So you formatted your ALT_OS under windows?
The reason windows complains about it is becuse the MOSLO partitioner script creates an ext4 filesystem on the partition and a windows does not recognize it it will think it is unusable and want to format it as FAT ot NTFS :p

Now, what happens when you format it on windows, it will of course lack all the permission bits, ownerships, ability to use links,ability to have directory trees deeper than 255 characters, ability to use special charaters in filenames, large file support, etc. etc.
When you try to extract the Sailfish files from the archive it will sooner or later hit a file there that it cannot express in the filesystem terms, and bail out.

Now, even if you'd managed to extract the files from the archive to the partition, you could not run Sailfish as you'd lost all the above nice features of the FS :D

Fix: reformat the partition as ext4 on the device:
/sbin/mkfs.ext4 /dev/mmcblk0p4
that's it :)

n0zzz
2013-12-15, 09:18
ok thank you very much!
now i have succesfully flashed sailfish :)