The Following 26 Users Say Thank You to jackburton For This Useful Post: | ||
|
2013-03-17
, 23:09
|
|
Posts: 889 |
Thanked: 2,087 times |
Joined on Sep 2010
@ Manchester
|
#2
|
The Following 3 Users Say Thank You to mrsellout For This Useful Post: | ||
|
2013-03-17
, 23:30
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#3
|
Is the following what you're after?
http://depot.javispedro.com/nit/harm/srcs/
The Following User Says Thank You to jackburton For This Useful Post: | ||
|
2013-03-18
, 04:04
|
|
Posts: 368 |
Thanked: 826 times |
Joined on May 2012
@ India
|
#4
|
|
2013-03-18
, 05:07
|
Posts: 498 |
Thanked: 836 times |
Joined on Jun 2012
@ Finland
|
#5
|
|
2013-03-18
, 11:57
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#6
|
The Following User Says Thank You to jackburton For This Useful Post: | ||
|
2013-03-18
, 12:00
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#7
|
The Following User Says Thank You to jackburton For This Useful Post: | ||
|
2013-03-18
, 12:15
|
Posts: 1,067 |
Thanked: 2,383 times |
Joined on Jan 2012
@ Finland
|
#8
|
The Following 3 Users Say Thank You to rainisto For This Useful Post: | ||
|
2013-03-18
, 12:17
|
Posts: 466 |
Thanked: 661 times |
Joined on Jan 2009
|
#9
|
proper way to build kernel is ofcourse to use dpkg-buildpackage.
And you never need to use --suppress-warranty-warning, as that was just added as internal joke to flasher binary, in reality it doesn't do anything
|
2013-03-18
, 12:56
|
Posts: 1,269 |
Thanked: 3,961 times |
Joined on May 2011
@ Brazil
|
#10
|
I literally did all the compiling on the N950. It takes more time compiling on the device, but feels more natural to me.
I first did this on my N950. I then did it also on the N9. The SDK doesn't seem to have sources for PR1.3 used on N9. Anybody know where to get that?
Here I've documented the exact steps I took. There are lots of posts about open mode kernels and how to flash the ones that exist already, but I could not find information on the steps used to produce those kernels in order to customize them. Hope this helps others who want to compile their own kernels.
This post is still a work in progress. I will try to make it prettier over time. Just wanted to get the information out there.
Thanks:
References:
Open questions:
Where to get PR1.3 source and config?Downloads
You can download my nat-enabled kernel and modules from here:
http://www.ctrl-h.net/nokia/harmattan/pr1.2/
http://www.ctrl-h.net/nokia/harmatta...3/kernel/btlc/
http://www.ctrl-h.net/nokia/harmatta.../kernel/lopan/
Follow the instructions to get the firmware and emmc for your device: http://talk.maemo.org/showthread.php?t=82693
Download the 3.12 Harmattan flasher from:
http://skeiron.org/tablets-dev/maemo-dev-env-downloads/
Download the open mode kernel (you'll use this to be able to chroot and compile on the device itself. It's also a good way to learn how to flash the kernel before you build your own):
Nokia N950 PR1.2: http://maemo.cloud-7.de/HARM/N9/1.2/openmode-kernel/
Nokia N9 PR1.3:
http://maemo.cloud-7.de/HARM/N9/1.3/openmode-kernel/
Flash the open mode kernel: (Here I am wiping the whole device, you may have reason not to do this, though you'll definitely want to do this at some point as described later in the instructions):
Unplug the phone from the computer and it will boot to the open mode kernel
Configure a network connection
Enable developer-mode (settings; security; developer-mode)
Check open mode with the command "accli -I" after the phone reboots. You should see "open" (you probably already saw a warning on boot which confirms this, too. You can clear this warning in later steps).
Follow the steps here to get an SDK chroot on the device:
http://talk.maemo.org/showthread.php?t=86158
I used the steps on that post in 2B
Get easy-chroot package according to:
http://talk.maemo.org/showthread.php?p=1247020
I do this: I download the .deb then
Download the lzma direct to the N9 or using a computer and transfer using USB.
Extract it according to the instructions
on the device as root do
Here are the places in menu config that I changed to enable IP NAT and MASQUERADE for Bluetooth tethering:
Networking Support; Networking Options; Network packet filtering framework (netfilter); Core Netfilter Configuration; Netfilter connection Tracking Support <M>;
Networking Support; Networking Options; Network packet filtering framework (netfilter); IP: Netfilter Configuration; IPv4 connection tracking support (required for NAT) <M>, Full NAT <M>, MASQUERADE target support <M>
A few additional packages are needed in order to compile. Do
I work around it by first editing Makefile and appending a letter (in this case, "c") to the EXTRAVERSION such as:
Attach to the computer doing the flashing and mount USB (since the SDK image is in MyDocs, you may need to reboot before mass storage will work again to transfer the kernel. Or you could sftp off or sftp in to grab it).
Get the kernel off your N9 or N950 via USB or SFTP upload/download
Power off
Flash the new kernel and reboot!
There are several ways to reflash. If you just want to test flashing the kernel, then something like this will work:
With open mode kernels, you will need to flash the whole system so that new aegis keys for open mode will be created on first boot. If you don't do this, then your passwords for services won't get saved and you'll have to keep re-entering them in, which is very annoying! Based on what I've read on the forums, doing application-based backup/restore *should* work after doing a full wipe.
If you don't like the warranty void message, there are a couple of steps before you even start this whole thing (see http://talk.maemo.org/showpost.php?p...ostcount=358):
Flash a completely stock system.
Install developer tools
run:
START THIS WHOLE THING OVER FROM SCRATCH
Code:
When you flash the new kernel, add the --suppress-warranty-warning flag. E.g.
Last edited by jackburton; 2013-08-22 at 14:12. Reason: Updates