Active Topics

 


Reply
Thread Tools
Posts: 1,298 | Thanked: 2,277 times | Joined on May 2011
#51
djselbeck: If you succeed in figuring out exact steps how to back up and restore various partitions, can you please summarize them somewhere on the Mer wiki?
 

The Following 3 Users Say Thank You to shmerl For This Useful Post:
Posts: 113 | Thanked: 303 times | Joined on Dec 2013 @ Germany
#52
Of course but no timeframe.
 

The Following 7 Users Say Thank You to djselbeck For This Useful Post:
Posts: 1,298 | Thanked: 2,277 times | Joined on May 2011
#53
Here probably is a good place: https://wiki.merproject.org/wiki/Sailfish#Jolla

Last edited by shmerl; 2013-12-20 at 18:31.
 
Posts: 113 | Thanked: 303 times | Joined on Dec 2013 @ Germany
#54
Originally Posted by Stskeeps View Post
AFAIK - if it doesn't work, lemme know.
Hello,

I tried flashing my custom recovery but failed:

Code:
fastboot -i 0x2931 flash recovery recovery.img 
sending 'recovery' (5964 KB)...
OKAY [  0.375s]
writing 'recovery'...
FAILED (remote: access denied. need privilege!)
finished. total time: 0.379s
 
Posts: 1,067 | Thanked: 2,383 times | Joined on Jan 2012 @ Finland
#55
Originally Posted by djselbeck View Post
Hello,

I tried flashing my custom recovery but failed:

Code:
fastboot -i 0x2931 flash recovery recovery.img 
sending 'recovery' (5964 KB)...
OKAY [  0.375s]
writing 'recovery'...
FAILED (remote: access denied. need privilege!)
finished. total time: 0.379s
Maybe you didn't understand when Stskeeps said that stay with developer mode and root.

Did you try as root to run: "dd if=recovery.img of=/dev/disk/by-partlabel/recovery" while beeing logged inside Jolla phone shell?
__________________
IRC: jonni@freenode
Sailfish: ¤ Qt5 SailfishTouchExample ¤ Qt5 MultiPointTouchArea Example ¤ ipaddress ¤ stoken ¤ Sailbox (Dropbox client) ¤
Harmattan: ¤ Presence VNC for Harmattan ¤ Live-F1 ¤ BTinput-terminal ¤ BabyLock ¤ BabyLock Trial ¤ QML TextTV ¤
Disclaimer: all my posts in this forum are personal trolling and I never post in any official capacity on behalf of any company.
 

The Following User Says Thank You to rainisto For This Useful Post:
Posts: 113 | Thanked: 303 times | Joined on Dec 2013 @ Germany
#56
my mistake, sorry

I try this
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#57
Originally Posted by Stskeeps View Post
Okay, so, guys - here's the exact situation, with a large amount of gory technical details so you can understand what's going on too.

* Philosophy wise, we're into user privacy - protecting your private data against attackers, physical or applications - ie, not DRM (other people's rights..). When you've set a lock code, we try to protect your data as well as we can.

A way to see this is that I really wouldn't want my private conversations to be easily extractable because I put my phone into a malicious USB charger or a competitor stole my phone off the table in Amsterdam in Ruoholahti while I was getting a drink.

* The bootloader of the Jolla is 'little kernel' ("lk") which speaks the typical Android fastboot protocol, which has a open source flasher.

* There's three modes of booting:
- Normal booting - boot into 'boot' partition, which is a combined kernel + initrd + cmdline image
- Recovery booting (volume down + power on) - doesn't do anything at the moment as there's nothing in recovery but boots into 'recovery' partition (same format as boot)
- Fastboot mode (volume down + put USB in) - opens a fastboot session on USB that you can connect to with fastboot flasher

There's a few toggles in the device currently:
* Developer mode - which gives you full root on your device and it says, please note this: "this may void your warranty" - it does not say "this will void your warranty". The philosophy there is that if you break something with it, you get to keep both pieces - don't do anything stupid - like overwrite the boot loader, or use hardware parts beyond their specifications.
- It is possible to flash kernel, recovery, etc from within device as we do this in OTA updates. If you really have to hack, do it with recovery partition until the below is in place.

* OEM unlock - which determines if bootloader is open or not - no special code is required to unlock - just fastboot oem unlock, but the power comes with responsibility - and I'm not in any way as an employee recommending this.

Now - one of the things about breaking things is that you can glue things together and it's all good again - About recovery:

At an upcoming update (I cannot say which, because, until a feature is released, it can at any point be pulled and postponed), there will be a recovery partition installed that will 1) ask for your device lock code if you have one and 2) allow you to factory reset your device in case you've hacked it a bit too much ("unbootable brick" situation)

That recovery I'd like to improve in such a way that it enables users to do full system backup/restore from microSD and other useful bits that we've learnt from maemo times is just generally nice to have (BackupMenu, BootMenu, etc).

Now, about factory images.

The Jolla device has all it's system data on a eMMC, one big SD card practically. This is shared with the modem part and includes things like modem firmware and other bits (take a look at the 25+ GPT partitions!). The device factory image is a combination of SailfishOS, a Qualcomm Android hardware adaptation and modem bits. The hardware adaptation and modem bits are copyrighted by Qualcomm and are put in place by the factory partner - and Jolla cannot distribute those parts.

Due to a bit of a design flaw on my behalf that I hope to solve for future devices, our entire system is merged together in one big 'sailfish' BTRFS volume which makes it even harder to separate bad bits and 'good bits' and 'flash them seperately'

In practice, what this means, is that we cannot provide full factory images. And that sucks. But if we do a proper recovery, backup and restore possibilities, it takes care of a lot of the trouble.

I don't personally buy devices that can't be hacked. We started developing Sailfish on hackable devices - we know our roots. And I have one coming to me at full price - no rebates or special treatment.

Does this clear up the situation a bit? Device is open as is explained above, but, when you hack, you'll always want to be able to restore your device. And that's what I hope the recovery will sort out unless you really screw up the device. In which case it's your own fault.
working on it
Attached Images
 
 

The Following 13 Users Say Thank You to For This Useful Post:
Posts: 479 | Thanked: 1,284 times | Joined on Jan 2012 @ Enschede, The Netherlands
#58
Thanks for the info. Exactly the kind of explanation which is needed, imo.

Some questions rise:
  1. There's no possibility the problem of the too intertwined volumes can be solved by a software update?
  2. How about the possibility for the end-user to create a back-up of the flash, which he then can use later to restore his otherwise FUBARred device?
  3. Isn't it kinda ignorant of qualcomm not to allow distribution of those blobs, since every Jolla owner already has access to them on device?..

Edit: I missed part of the thread. Apparently Q2 is already answered, with a "yes, you can". That's good to know. Would be nice if the process could be automated a bit, and/or have a somewhat more n00b-friendly manual.

Last edited by Fuzzillogic; 2013-12-20 at 20:47.
 
Posts: 1,298 | Thanked: 2,277 times | Joined on May 2011
#59
Kaacz: DRM is DRM. I didn't mix anything, see explanation above. For example "secure" boot in UEFI without a way to use your own keys or to disable it is DRM. Don't mix security with taking away control and choice from the user.

Originally Posted by Fuzzillogic View Post
  1. Isn't it kinda ignorant of qualcomm not to allow distribution of those blobs, since every Jolla owner already has access to them on device?..
Qualcomm aren't new to stupidity and nasty vendor behavior (for example this). So I wouldn't ask any questions on common sense and decency there.

Last edited by shmerl; 2013-12-20 at 20:37.
 

The Following User Says Thank You to shmerl For This Useful Post:
Posts: 123 | Thanked: 108 times | Joined on Oct 2008 @ Prague, Czech
#60
shmerl: Sorry, i missed some of your comments and then i missed your PoV .. now i understand to you...

Last edited by Kaacz; 2013-12-20 at 21:12.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:18.