Active Topics

 


Reply
Thread Tools
Posts: 113 | Thanked: 303 times | Joined on Dec 2013 @ Germany
#311
Wouldn't the easiest way to use netcat over the tcp connection (which is already there)? Than you don't have to go the way over the sdcard?
 

The Following 3 Users Say Thank You to djselbeck For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#312
Originally Posted by djselbeck View Post
Wouldn't the easiest way to use netcat over the tcp connection (which is already there)? Than you don't have to go the way over the sdcard?
That is not a bad idea, there is a somewhat big concern for me in this.
If connection is lost it breaks everything (EDIT: doesnt do any harm, just need to run backup again). Also, errors in transmission might cause a faulty backup. This could be evaluated by md5sums of course.
Feasable though, even if connection breaks, it wont do much harm as we would not be touching bootloader.
Also, bear in mind, that backing up 16G worth is gonna take hours.

Last edited by nieldk; 2014-08-28 at 11:44.
 

The Following 2 Users Say Thank You to For This Useful Post:
Posts: 113 | Thanked: 303 times | Joined on Dec 2013 @ Germany
#313
Connection problems shouldn't be a real concern. USB Network seems quite stable. Also TCP does a fair amount of integrity check.

Same error could happen with sdcards. I think both methods are ok, my method of backup at the jolla beginning was per sd card. Today I would probably do it pre nc
 

The Following 3 Users Say Thank You to djselbeck For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#314
so, I have dd of /dev/mmcblk0p28 (sailfish) partition (comparable with system on Android) as sailfish.img
but, block size is wrong and
img2simg -C 512 sailfish.img
gives me incorrect block size error (4096)
suggestions are welcome

http://pastebin.com/hD34Zuua

Last edited by nieldk; 2014-08-28 at 14:49.
 

The Following User Says Thank You to For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#315
Besides, may it be better to backup and restore from recovery mode, using normal tools?

E.g. only use fastboot to flash whatever images are required to boot to recovery, then boot into recovery, connect via telnet/nc/whatever and flash the image back using dd.

This way one has more control over the process, can skip buggy bootloaders, and may even use a simple .tar.gz containing the rootfs (plus mkfs.btrfs and a script to create the subvolumes, instead of a disk image).
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#316
Yes, the recovery works well, even we can dd back an image.
However, what will you do when you can ONLY enter fastboot ? (not recovery) ?

Originally Posted by javispedro View Post
Besides, may it be better to backup and restore from recovery mode, using normal tools?

E.g. only use fastboot to flash whatever images are required to boot to recovery, then boot into recovery, connect via telnet/nc/whatever and flash the image back using dd.

This way one has more control over the process, can skip buggy bootloaders, and may even use a simple .tar.gz containing the rootfs (plus mkfs.btrfs and a script to create the subvolumes, instead of a disk image).
 

The Following User Says Thank You to For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#317
Originally Posted by nieldk View Post
Yes, the recovery works well, even we can dd back an image.
However, what will you do when you can ONLY enter fastboot ? (not recovery) ?
I just can't see how would flashing the "sailfish" partition help if your bootloader is broken up to the point you can't boot to recovery.

If fastboot works but recovery partition or kernel is damaged, you have two options. either flash those only, or boot your own kernel with a recovery initrd with ssh, telnet, whatever.

If fastboot doesn't work, you're fscked. I don't know how to fix that (basically we only know how to fix that for the N900). I don't know what kind of damage you have to do in order to break fastboot, either.
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#318
good point, perhaps it makes better sense to create a flashable recovery image.
This is also redistributable and is not a huge image ...
 

The Following 2 Users Say Thank You to For This Useful Post:
javispedro's Avatar
Posts: 2,355 | Thanked: 5,249 times | Joined on Jan 2009 @ Barcelona
#319
Originally Posted by nieldk View Post
good point, perhaps it makes better sense to create a flashable recovery image.
This is also redistributable and is not a huge image ...
And if one uses the .tar.gz file instead of disk images, one might even separate it into jolla-propietary-crap.tar.gz and sailfish.tar.gz. The later can be freely distributed, while the former can be either created from a running system, or "found in popular pirate sites" (because I suspect its size will be < 50MB).

Btw, anyone tried if you can flash images with locked bootloader?
 

The Following 2 Users Say Thank You to javispedro For This Useful Post:
Guest | Posts: n/a | Thanked: 0 times | Joined on
#320
to use fastboot bootloader must be unlocked
 

The Following 2 Users Say Thank You to For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 13:20.