maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   Nokia & AEGIS open-mode (https://talk.maemo.org/showthread.php?t=81579)

jalyst 2012-01-13 17:26

Nokia & AEGIS open-mode
 
Starting this thread upon recommendation of javispedro...
The original at FMC has become somewhat outdated, given where everything's at now.
Thanks to wolke for the following summary of how-to's, & qole for modifications:
05/11/12: please also read this, which is not in the info. below
=================================
TO GET THE FLASHER APP:
http://tablets-dev.nokia.com/maemo-d...-downloads.php

grab the flasher for your OS that says 'for Harmattan', e.g.:
flasher_3.12.1_amd64.deb

install it, e.g.:
sudo dpkg -i flasher*.deb
=================================
=================================
TO GET FIRMWARE IMAGE or EMMC IMAGE:
-get your product variant code {most look like 059****} from the sim card tray
{mine, the malaysian 64 GB, is 059J238}
-{you can get NaviFirmEx here: https://code.google.com/p/navifirmex/}
-run:
wine NaviFirmEx/NaviFirmEx.exe
change server to: Nokia Care Suite
phone is n9...
-pick the latest-looking release that has your code
-copy the link location of the large file and wget it
emmc should have the word 'emmc' in it and most are ~1.8GB
e.g.: 2C899062_DFL61_HARMATTAN_20.2011.40-4.SEAP_EMMC_SEAP.bin
flasher is the other one and most are ~1.1GB
e.g.: DFL61_HARMATTAN_20.2011.40-4_PR_LEGACY_005-OEM1-958_ARM.bin
-rename them to firmware.bin or emmc.bin if you feel like it.
=================================
=================================
TO GET OPEN KERNEL:
http://maemo.cloud-7.de/HARM/N9/openmode_kernel_PR1.1/

patched: {you probably want this}
http://maemo.cloud-7.de/HARM/N9/open...dfl61-20113701
unpatched:
http://maemo.cloud-7.de/HARM/N9/open...dfl61-20113701

both gave me the big scary warning on a malaysian n9 64gb.
patched appears to work out-of-the-box {no aegis, real root}.
unpatched wouldnt let me restart sshd.

rename it to 'openkernel' if you feel like it.
=================================
=================================
TO FLASH FIRMWARE, KERNEL and/or EMMC:
1) install the flasher app
2) get the firmware image {i rename it 'firmware.bin'}
you must always flash the firmware first, and then the emmc and/or the kernel.
{you can do the emmc at the same time as firmware}
3) get the kernel {i rename it 'openkernel'}, and/or the emmc {i rename it 'emmc.bin'}
4) turn off your N9
5) unplug your N9 from the usb so you dont start until you are ready
6) run the first firmware command below. wait until it says waiting...
7) plug in your phone via usb to start flashing immediately.
when one command finishes {it will say 'Success'},
IMMEDIATELY run the next flasher command.
if the phone reboots in between commands, start over or you will brick it. {i find that the phone reboots in ~10s}

FIRMWARE + KERNEL
NOTE: deletes apps, and a lot of settings {everything not in /home}.
does NOT delete DCIM, or anything else in MyDocs

*Nokia claims this voids your warranty*
flasher -F firmware.bin -f
flasher -F firmware.bin -k openkernel --flash-only=kernel -f -R

FIRMWARE + EMMC
NOTE: DELETES ALL PERSONAL DATA, ALL APPS, AND EVERYTHING ELSE.
*Nokia is FINE with this.*
flasher -f -F firmware.bin -F emmc.bin -R

FIRMWARE + KERNEL + EMMC
NOTE: DELETES ALL PERSONAL DATA, ALL APPS, AND EVERYTHING ELSE.
*Nokia claims this voids your warranty*
flasher -f -F firmware.bin -F emmc.bin -R
flasher -F firmware.bin -k openkernel --flash-only=kernel -f -R
=================================

2 lists of what's definitely working, & what's not or may not.
Thanks again wolke for this! (headings link to original -potentially more updated- posts)

List of things that definitely work:
the point of this is to illustrate that everything works, except the things that dont. if you havent seen anything that doesnt, dont worry.
01) phone/contacts/conversations
02) openvpn
03) gps/maps/drive/turn-by-turn-directions
04) ssh over wifi/usb/wifi-hotspot as root or user
05) vncserver {vnc-ing INTO the n9, not FROM the n9. havent found a vncclient yet}
06) wifi-hotspot {joikuspot. you have to run a terminal cmd first}
07) firefox {fennec v11~a1, no flash yet, but it could be coming}
08) camera {video, iso, white bal, flash}
09) tklock-both {power button unlocks lockscreen + homescreen}
10) things i compile in scratchbox
11) locally&remotely executable terminal commands to:
+customize launcher-buttons on home screen
+change profiles {silent/meeting/general}
+(un)lock lock/home screens {simulate power-btn short, long, and double press}

+Nokia N9 64GB Black 059J238 {malaysian}
+PR1.1
DFL61_HARMATTAN_20.2011.40-4_PR_LEGACY_005-OEM1-958_ARM.bin
+patched open kernel
zImage-2.6.32.39-dfl61-20113701

Things that possibly aren't solvable, even with open mode:

1) big scary warning
we know about disclaimer-cal and /usr/share/osso/boot/rle, but removing these does not remove it,
inserting modified RLEs does not fix it.
flashing with --suppress-warranty-disclaimer does not fix it, nor does flashing emmc.

2) cannot downgrade firmware
i REALLY REALLY want to solve this problem. i think its worth exploring how to, e.g.: flash the very first version so that any arbitrary version can be installed. from what i can tell, the problem is 100% the flasher app. maybe theres another flasher app already? maybe some reverse engineering could be gotten underway to do so? this is not impossible to do, and theres nothing malicious about wanting to do it {e.g. to test previous versions}.
the sole purpose for stopping downgrades is to patch-up aegis holes, and the sole purpose for aegis to exist is so that businesses dont shy away from 'open platforms'. large corporations dont know how to do business in an environment where they cant abuse the endusers.

3) ~/.profile is read by the thing that starts up the xserver-ish monstrosity, and you can BRICK YOUR PHONE AND LOSE YOUR EMMC {photos, convos, contacts, etc} if you do something stupid to it.
http://talk.maemo.org/showthread.php?t=81813

4) /root/.bashrc is overwritten in a stupid way
silly bug, no lasting damage, easy workaround, what the hell is doing it and why?
http://talk.maemo.org/showthread.php?t=81794

5) chroot!
im surprised this isnt up and working. at least one person has it on an n950.

6) pidgin
libpurple and gtk+ are working, with vkbd support!
so where's ma pidgin. {im occasionally working on this one, but its a pain.}

7) thunderbird, claws-mail, SOMETHING
my only requirement for email be that the whole msg {headers, body, and attachments} of all messages be fetched both on a schedule and by demand, and permanently stored offline.
i dont need my reader integrated with my fetcher.
i dont need my writer integrated with my reader.
fetch/read/write are very separate tasks for me that i only occasionally do at the same time.

8) lock screen customization
you can add an icon by setting a gconf string. im led to believe you can also tweak style.
i want a count of my missed calls, texts, and emails-by-account, and maybe a smaller clock to save battery. i would also like battery percentage and stats

9) making the power button {and vol buttons?} run arbitrary commands for short/long/double
namely, double-press to toggle my flashlight.
it seems you can send arbitrary dbus messages in mce.ini, so this should be doable. however, i dont know how to toggle the flashlight with dbus; i use a closed source 'app' called PhoneTorch; its nice because you can just phonetorch/killall phonetorch from a terminal, which may or may not be necessary for this.

10) full vnc control
i want to be able to simulate touch-screen drags, or at least control the main interface.

soln: netview

uvatbc 2012-01-13 21:57

Re: AEGIS open-mode
 
I'm trying to figure out the downsides of the aegis-free kernel.
Not enough people mentioning their experience. I'd also like to know if it can be reverted back to stock kernel or even better: dual boot.

jalyst 2012-01-14 06:59

Re: AEGIS open-mode
 
Quote:

Originally Posted by uvatbc (Post 1150291)
I'm trying to figure out the downsides of the aegis-free kernel.
Not enough people mentioning their experience.

http://forum.meego.com/showthread.php?p=38252#post38252
So we've got relatively few apps now that are still causing problems.
If we can get them all working nicely, then hopefully the downsides will become non-existent.
Hopefully we'll get more brave souls jumping on board & then sharing their experiences here.

Quote:

<SNIP> or even better: dual boot.
Apparently not.... :(
http://forum.meego.com/showthread.php?p=37779#post37779
I think it was explained why in much more detail earlier in that thread.
But I can't recall it all now...

jalyst 2012-01-14 16:15

Re: AEGIS open-mode
 
Hmm, the folks chatting in the original thread don't seem interest in moving here.
At least yet....

kiiwii 2012-01-14 17:00

Re: AEGIS open-mode
 
hi @jalyst

I think people sick with the no-kia aegis strategy will be lead to that FMC thread by google... at least me was.

so, personally, I read through all that thread from beginning and got excited about what @joergrw and @javispedro and all the participaters have contribute the community. That's a record and sign of how the progress made.

so, open a new thread is nice.

But I recommend to do a brief summery or statics what that thread have achieved. and most important, if I was a certain linux user/administrator but not familiar with maemo/meego/harmattan before, I will definitely hate aegis... coz "root" dose not gain the SUPER power of the whole system.... hmmm that made what a angry bird I was :D

so, brief introduction/summary/statics will be nice. and what's open mode and why open mode clarified will be fine. coz seemed I didnot see maemo people here feel the no-kia aegis policy.

that's what i thought. cheers.

soleil 2012-01-15 01:15

Re: AEGIS open-mode
 
I'm interested in this open mode kernel too . But as a normal user I can just sit and wait for a stable realease. I also want to know something great to give me the motivation to uses this open mode. For example USB host mode with ope mode or power kernel :) Am I demanding too much ? :D

MFaroTusino 2012-01-15 02:25

Re: AEGIS open-mode
 
I followed the method of flashing and using opensh, but after reboot, I got the device malf error. Luckily, since I followed the guide in order to not touch user files, everything was there once i re-flashed.

Being open would help me a lot. Have tried to change access of system files, to allow user to run them, but aegis stops me everytime :(

jalyst 2012-01-15 06:48

Re: AEGIS open-mode
 
Quote:

Originally Posted by kiiwii (Post 1150563)
so, open a new thread is nice.
But I recommend to do a brief summery or statics what that thread have achieved. and most important, if I was a certain linux user/administrator but not familiar with maemo/meego/harmattan before, I will definitely hate aegis... coz "root" dose not gain the SUPER power of the whole system.... hmmm that made what a angry bird I was :D

That's a good point....
If I have time I'll amend the OP with a brief summary of what open-mode's about, & why it's needed etc.

1st I need feedback from participants in the original thread, as-to-whether they're happy w/the location of this thread.
Maybe they don't want to bother with a new thread now, although I think javispedro's logic for a new one was sound.
Personally I think this is a better spot than anywhere at FMC, way more inclusive & way more eyes etc.

qole 2012-01-15 08:07

I have been happily running aegis-free on my N950 for several weeks now.
It is so nice to have access to the full variety of Debian apps, like a text editor and a VNC viewer...

I have had problems with the following apps, both of which were solved by replacing the aegisfs dirs with a basic dir.
- facebook app
- location / gps / maps app
I have to manually replace the dirs after each reboot, quite annoying.

I have had recent problems with Skype chat not displaying messages in the chat window. Still investigating that.

The other apps seem to be Ok with aegis dirs now that I've stopped messing around with them...

I want to figure out how to extract all of the files out of aegisfs directories before flashing to open mode, then after flashing, disabling the aegisfs mounts and copying in the files unencrypted.

PS good choice of forum for this thread! ;)

F2thaK 2012-01-15 08:25

Re: AEGIS open-mode
 
Can we "open" the N9?

qole 2012-01-15 08:28

Re: AEGIS open-mode
 
Yes, that's what this thread is about, an open, unlocked, jailbroken, whatever-you-want-to-call-it kernel for Harmattan. My wife has the N9, so I haven't installed it on her device, but it should work for both the N9 and the N950.

kiiwii 2012-01-15 13:17

Re: AEGIS open-mode
 
@qole

I haven't suffer that anymore :)
so, this is what I have done to my n9:

1. flash in the firmware.
flasher -F firmware.bin -f

2. without boot, instantly flash in the open mode kernel afterwards.
flasher -F firmware.bin -k OMkernal --flash-only=kernel -f -R

this way works well for me so long.

uvatbc 2012-01-15 17:37

Re: Nokia & AEGIS open-mode
 
@qole: Thats awesome.

I've got some questions:
1. Does Nokia maps and drive work? Will Openvpn work?
2. Is aegis really gone or will it still show warnings instead of full enforcement? I'd like the warnings on my n950 so that I can test on my n950 and be assured that it works on everyone else's n9.

vi_ 2012-01-15 17:52

Re: Nokia & AEGIS open-mode
 
just out of interest Qole, what application did you develop/are developing that scored you an n950?

Quote:

Originally Posted by qole (Post 1150786)
I have been happily running aegis-free on my N950 for several weeks now.
It is so nice to have access to the full variety of Debian apps, like a text editor and a VNC viewer...

I have had problems with the following apps, both of which were solved by replacing the aegisfs dirs with a basic dir.
- facebook app
- location / gps / maps app
I have to manually replace the dirs after each reboot, quite annoying.

I have had recent problems with Skype chat not displaying messages in the chat window. Still investigating that.

The other apps seem to be Ok with aegis dirs now that I've stopped messing around with them...

I want to figure out how to extract all of the files out of aegisfs directories before flashing to open mode, then after flashing, disabling the aegisfs mounts and copying in the files unencrypted.

PS good choice of forum for this thread! ;)


fw190 2012-01-15 18:08

Re: Nokia & AEGIS open-mode
 
Maybe Easy Debian ;)

qole 2012-01-15 20:03

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by uvatbc (Post 1150954)
1. Does Nokia maps and drive work?

As I wrote above, I had problems getting the GPS / location to activate, but I got it to work (see the FMC thread for details). Kiiwii insists that a fresh flash of the whole firmware, followed by a flash of the open kernel, solves all of my problems. I haven't tried it.

Quote:

Originally Posted by uvatbc (Post 1150954)
Will Openvpn work?

I haven't tried it, but unless it relies on Aegis for something, it should work.

Quote:

Originally Posted by uvatbc (Post 1150954)
2. Is aegis really gone or will it still show warnings instead of full enforcement? I'd like the warnings on my n950 so that I can test on my n950 and be assured that it works on everyone else's n9.

I'm using the patched kernel, so it now behaves like the N900; it just does what you would expect a Linux device would do. I never see warnings about anything.

Just lots of "what's your password again?" type screens.

qole 2012-01-15 20:11

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by vi_ (Post 1150959)
just out of interest Qole, what application did you develop/are developing that scored you an n950?

can't... stop... myself....

http://troll.me/images/trololo/u-mad-u-jelly.jpg

rainisto 2012-01-16 07:10

Re: AEGIS open-mode
 
Quote:

Originally Posted by kiiwii (Post 1150860)
@qole

I haven't suffer that anymore :)
so, this is what I have done to my n9:

1. flash in the firmware.
flasher -F firmware.bin -f

2. without boot, instantly flash in the open mode kernel afterwards.
flasher -F firmware.bin -k OMkernal --flash-only=kernel -f -R

this way works well for me so long.

Yes, if you flash the open mode kernel without booting to secure mode, you should get everything in working condition, since aegis databases are created on 1st boot, and that way they are created with open mode keys.

mzanetti 2012-01-16 07:25

Re: Nokia & AEGIS open-mode
 
Would be awesome if you could provide the flash instructions and a link to the open-mode kernel in the first post of this thread. Currently one has to read at least the first page to even understand what this thread is about and find the flash instructions on the second page... Still haven't found the kernel download :)

EDIT: BIG BIG thanks to everyone involved in making this happen!

shmerl 2012-01-16 07:33

Re: Nokia & AEGIS open-mode
 
Just a thought. When do you think Mer/Nemo will mature to the point of rendering Harmattan with open kernel not needed anymore? Or there is no way to estimate that yet?

shmerl 2012-01-16 07:35

Re: Nokia & AEGIS open-mode
 
--double--

F2thaK 2012-01-16 13:11

Re: Nokia & AEGIS open-mode
 
Readme
http://maemo.cloud-7.de/HARM/N9/openmode_kernel_PR1.1/



Download
http://maemo.cloud-7.de/HARM/N9/open...dfl61-20113701



OPEN!
1. flash in the firmware.
flasher -F firmware.bin -f

2. without boot, instantly flash in the open mode kernel afterwards.
flasher -F firmware.bin -k zImage-2.6.32.39-dfl61-20113701 --flash-only=kernel -f -R



edit: just did this and now apparently my warranty is permanently void. great.

F2thaK 2012-01-16 14:00

Re: Nokia & AEGIS open-mode
 
http://i900.photobucket.com/albums/a...0/DSC02121.jpg

This now comes up every time I reboot.

:(

mscion 2012-01-16 14:18

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by F2thaK (Post 1151295)
http://i900.photobucket.com/albums/a...0/DSC02121.jpg

This now comes up every time I reboot.

:(

My question is how can a device possiblle harm you? Will the battery blow up? Is it psychcological damage? Is that X-ray app I've seen on these threads installed without our knowledge? That might cause some damage...

erendorn 2012-01-16 14:27

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by mscion (Post 1151302)
My question is how can a device possiblle harm you? Will the battery blow up? Is it psychcological damage? Is that X-ray app I've seen on these threads installed without our knowledge? That might cause some damage...

You can quite possibly harm yourself if you have access to the battery and wireless chips firmwares. It is not likely to happen, but it is possible, and it is perfectly normal that Nokia won't take the blame if it does.

coderus 2012-01-16 15:08

Re: Nokia & AEGIS open-mode
 
is there are any way to flash back original core without reflashing full APE?

mr_jrt 2012-01-16 15:56

Re: Nokia & AEGIS open-mode
 
Also worth noting that it's also lying as changing the software doesn't invalidate the warranty on the hardware by law, as much as companies may wish you to think otherwise.

qole 2012-01-16 16:07

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by mscion (Post 1151302)
My question is how can a device possiblle harm you? Will the battery blow up? Is it psychcological damage? Is that X-ray app I've seen on these threads installed without our knowledge? That might cause some damage...

Yep, I love the BSW (Big Scary Warning)...

Has anyone triggered that warning on an N9, or only on the N950?

marxian 2012-01-16 16:20

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by mscion (Post 1151302)
My question is how can a device possiblle harm you?

You could sprain your wrist when you throw it out of the window. ;)

qole 2012-01-16 18:23

Re: Nokia & AEGIS open-mode
 
My question is: if I do a backup, then a firmware reflash followed by an open kernel flash, then I restore my backup, will I be re-introducing all of the problems back when I restore?

F2thaK 2012-01-16 23:21

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by qole (Post 1151347)
Yep, I love the BSW (Big Scary Warning)...

Has anyone triggered that warning on an N9, or only on the N950?

I did it on my N9 and got that warning

marrat 2012-01-17 10:08

Re: Nokia & AEGIS open-mode
 
As soon as my newly-ordered Cyan N9 arrives (in addition to my current black one) the first thing I will do before powering it on is to flash PR1.1 image + Open Mode kernel!

That way I can provide "real-world" testing of Open Mode from day one to the community :-)

EDIT: should I use the patched kernel or the unmodified open mode kernel?

And after flashing complete PR1.1 with original kernel, closed mode is there again as usual, I assume?

mscion 2012-01-17 13:08

Re: Nokia & AEGIS open-mode
 
Qole, marrat and anyone else, for the sake of the community, please wear protective gloves and goggles before flashing to Open Mode kernel...

marrat 2012-01-17 13:10

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by mscion (Post 1151822)
Qole, marrat and anyone else, for the sake of the community, please wear protective gloves and goggles before flashing to Open Mode kernel...

I will keep your advise in mind when I press Enter at the flasher command prompt :cool:

wicket 2012-01-17 13:24

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by mscion (Post 1151302)
My question is how can a device possiblle harm you? Will the battery blow up? Is it psychcological damage? Is that X-ray app I've seen on these threads installed without our knowledge? That might cause some damage...

Flashing your own kernel also gives you the ability to overclock which will significantly shorten the life of your device. I suspect the only way Nokia can check to see if you may have overclocked your device is to check if you have ever installed an unofficial kernel.

The solution to this would be for Nokia to provide a signed open-mode kernel. Perhaps someone could raise a bug to address this?

jalyst 2012-01-17 18:55

Re: Nokia & AEGIS open-mode
 
This is gathering steam, glad to see more folks jumping on board!
As soon as the White N9s available in my country I intend to "dip my toe" ;-P

admiral0 2012-01-17 19:41

Re: Nokia & AEGIS open-mode
 
+1 lurking from FMC times

merlin1991 2012-01-17 23:50

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by qole (Post 1151347)
Yep, I love the BSW (Big Scary Warning)...

Has anyone triggered that warning on an N9, or only on the N950?

got it here on the n9

but I also have no problem with aegisfs (did erase user data with flasher prior to flashing) and I flashed like this
Code:

flasher -F firmware.bin -f --erase-user-data=secure
do some stuff in closed mode (didn't open maps or add an account)
flasher -k zimage -F firmware.bin -f


Makeclick 2012-01-18 20:21

Re: Nokia & AEGIS open-mode
 
Quote:

Originally Posted by F2thaK (Post 1151579)
I did it on my N9 and got that warning

m'kay! I got boot loop and i try to flash only kernel from orginal fiasco (flasher -f --flash-only=kernel -F orginalfirmware.bin) and i got that same message! why? is that illegal to flash only kernel?? Is that some sort auto message? Must refalsh all of fiasco... again, i do not want to lose my warranty..

marrat 2012-01-19 08:45

Re: Nokia & AEGIS open-mode
 
Just flashed PR1.1 and unpatched Open Mode kernel on my fresh Cyan N9. Phone is booting now, so let's see :)

EDIT: Reinstall authorised Operating System! Not booting...

With original kernel, no problem...

OK, tried the same again, now it's working with unpatched Open Mode kernel. I will post my experiences here.


All times are GMT. The time now is 21:54.

vBulletin® Version 3.8.8