![]() |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Yes thats clears thing out quite nicely and I'm even more disappointed.
In fact I know now that I spend 400 bucks on a device which is hardly useable as an development unit for fun hacking. No factory images is a nogo for me and I'm evaluating right now if I won't sell the whole thing on ebay after christmas. Perhaps you should've disclosed this information earlier. I'm really disappointed now and feel a bit ripped of because I asked this question several times and haven't got an answer until now. But I think the 400 bucks from customers looked so nice you wouldn't bother telling the whole truth. :mad::mad::mad: |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I've already backed most of them up, but at the moment I cannot back up a running/changing volume like / , can I?
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Nothing is in recovery atm anyway. All this is hacking advice and my personal opinion. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Alright, I give it a try over the next days. So just to be clear and not waste 400 bucks ;) fastboot oem unlock; fastboot flash recovery somerecovery.img won't do any harm?
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
rainisto: DRM means any kind of taking away control from the user by means of obscurity, closed encryption and so on. Locked / encrypted bootloader with no way to set your own keys or unlock it is a perfect example of DRM. That's the way I understand the term. Preventing copying media files is just one example of it.
Protecting data and security with encryption is perfectly fine, as far as the user is in control of that protection. If user isn't - that's already DRM. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Ok, and without unlock I can boot custom recovery?
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Thanks for your help, this was very supporting. I will see what I can do :). If I can create my own recovery images I would be perfectly pleased
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
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?
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Of course ;) but no timeframe.
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Here probably is a good place: https://wiki.merproject.org/wiki/Sailfish#Jolla
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
I tried flashing my custom recovery but failed: Code:
fastboot -i 0x2931 flash recovery recovery.img |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Did you try as root to run: "dd if=recovery.img of=/dev/disk/by-partlabel/recovery" while beeing logged inside Jolla phone shell? |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
my mistake, sorry
I try this |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
1 Attachment(s)
Quote:
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Thanks for the info. Exactly the kind of explanation which is needed, imo.
Some questions rise:
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. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
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.
Quote:
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
shmerl: Sorry, i missed some of your comments and then i missed your PoV .. now i understand to you... :)
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I've successfully booted my own compiled kernel right now. But at the moment I've some problems with initrd but should figure it out sooner or later
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
https://github.com/KonstaT/sailfisho...oot-img.sh#L17 Looks like there's only a dummy ramdisk inside boot.img. Have you btw dumped the original boot partition from the device? Or at least could someone upload the kernel config (/proc/config.gz) from an actual device? It should be quite close to boston_mer_defconfig but still not exactly. According to this, there's also a tool for flashing partitions in the system. https://github.com/KonstaT/sailfisho...bootimg-sbj.sh Edit. Oh wow, my posts are moderated before publishing for some reason. This message appearead here several days (~week?) later. Seriously, wtf?! If I've done something to deserve a post ban - then just issue one, but this is just ridiculous. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
It is working now. I'm preparing an easy guide with an image.
As I'm typing this, I'm backing up my mmcblk0p* partitions. The best thing, you don't even have to modify your recovery partition :) I've written the guide here: https://wiki.merproject.org/wiki/Sai...prebuilt_image As you can see I'm really not good at this kind of stuff. If some one with some skill in mediawiki wants to improve feel free. For questions use this thread or write me a pm. Please be careful, I won't take any responsibility for your actions. This guide is for users who know what they are doing |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
I am trying to contact you but do not have private message privileges on this forum for some reason. Can you please email me? allegation at gmail.com Thank you. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Thank you very much for the instructions. I was able to boot your image. I also added some missing details I discovered on the way to the Wiki.
For a real fastboot recovery image, I would appreciate support for ssh and also NFS. Then we could copy the files directly to the host instead of going through the SD card. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I was able to dualboot mine, too.
Actually I booted the stock kernel but with a different rootfs, you do not need to do any changes to the kernel configuration since you can override the command line when mkbootimg'ing. The stock kernel image, cmdline and initramfs are stored in /boot/boot.img (this is in mkbootimg format). There are several (Android) programs around to "unmkbootimg" this and get the raw kernel images et all. Also, the format is simple enough to decode manually. The stock kernel cmdline, stored in this file, is: Code:
init=/sbin/preinit root=/dev/mmcblk0p28 rootfstype=btrfs rootflags=recovery noinitrd androidboot.hardware=qcom user_debug=31 ehci-hcd.park=3 maxcpus=2 Some comments to the wiki page https://wiki.merproject.org/wiki/ind.../Backup_Device that may be interesting if creating your own bootimgs:
EDIT: I've now changed the above wiki page (section "Build your own image"). Waiting for feedback if you're trying to build your own images! |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Hello,
I've tried building the bootimage with an extra ramdisk but so far only got instant reboot, so I decided to include it directly into the kernel. Did you actually had success including a ramdisk with mkbootimg? I think you need to specify an offset to the kernel, which declares the location of the image. Something like Code:
initrd=0x02200000 My first priority was to provide an fast solution to backup your device ;). Now I have some time and will look into it and include an ssh server for example. Edit: Ramdisk inclusion with boot.img worked. I've no idea why it did'nt last time I tried. Perhaps because it was already very late and I'm tired ;) So this is clearly the preferred method over init inclusion in kernel image. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I think it would be interesting to know whether these partitions are actually the same for all devices or if they contain anything specific for each phone. So here are SHA1 checksums of my backups.
Code:
$ sha1sum mmcblk0p{1..27}.img Please let me know if yours differ from mine above. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Yep, actually a lot differ:
Code:
fd13511082820e36c0cada61862457152bc8483c mmcblk0p1 |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
So dissapointed with the wireless support (no monitor mode/injection)
Does anyone have a clue to which card is in the device ? Code:
[nemo@localhost ~]$ sudo iw list |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I think it is some kind of Qualcomm Prima WCNSS module
|
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Code:
sudo dmesg | grep wcnss and lsmod Code:
[nemo@localhost ~]$ sudo lsmod |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I upgraded, I guess thus two modules directories
/lib/modules/3.4.0.20131115.2/kernel/net/wireless is empty /lib/modules/3.4.0.20131118.1/kernel/net/wireless contains cfg80211.ko and wlan.ko |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Also, enabling NFS client is easy enough: just copy nfs.ko from rootfs (or enable as builtin if building your own kernel). Busybox's default mount is enough to connect to NFS as long as you pass -o nolock to disable dependency on localhost lockd/portmapper. Quote:
BTW. Another disappointment is that the stock kernel is tainted propietary by this module. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
EDIT: I've build a version of prima wlan driver which seems to work which is good news I think. Needs to clean it all a bit up though. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Did you check if monitor mode is working with your port? |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Quote:
Code:
iw list Looks like the mysatroker module is missing: Code:
filename: /lib/modules/3.4.0.20131118.1/kernel/mysatroker.ko |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
@djselbeck
Well, the mysatroker module seems to be some myriad implementation of /dev/binder. Yet another propriatrairy implementation :( (http://talk.maemo.org/showpost.php?p...&postcount=718) As for the wireless driver. Wow, there are at least some points interresting there: Code:
HT TX/RX MCS rate indexes supported: 0-7 Code:
* Unknown command (82) |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
I doubt that the 5GHz channels can be activated.
But nevertheless it is good to have an own kernel running. Hope an open whatsapp will be ported soon, so I can remove the alien piece of junk. |
Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
Hello again,
I've uploaded the updated kernel sources with integrated prima wlan driver. If someone wants to try it you should know that it currently doesn't read the correct MAC adress and generates an automatic one. https://github.com/djselbeck/sailfis..._jolla_msm8930 Also you can prevent alien_init from going crazy if you replace /opt/alien/system/genv/bin/{mysatroker_ressource_manager_server,mysatroker_au dio_server} with following bash script Code:
#!/bin/bash |
All times are GMT. The time now is 09:14. |
vBulletin® Version 3.8.8