maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] kernel-power stable v51 in Extras-Devel (https://talk.maemo.org/showthread.php?t=85665)

wganis 2013-04-10 04:23

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
pls help can anyone have link zimage kernel power 51r1 ? Tq

JadeH 2013-04-10 06:24

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
52 has some nice changes, good work

peterleinchen 2013-04-10 06:58

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1335077)
@peterleinchen, can you look what nitdroid installer script doing? And if it is possible to create script which generate uboot bootmenu item file for some default nitdroit installation?

Hey pali,
of course would like to help you. But what is your intention?
There are a few installers flying around. I got it years ago with the autoinstaller from repos (very old nit version 0.0.8?). Installs only on SD. Ammyt made another (in his thread) or better two. Able to install on eMMC (sure: on /home/and, guess: also on dedicated partition), but I never checked that.
Furthermore there needs to be made some tweaks to nit to be able to boot via u-boot (see above forum link). A "default default" install will not work (someone else confirms this, please?)

So it could be possible to check the default locations for nit files and create bootmenu.item. Is that what you think of?

acrux 2013-04-10 07:08

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1334601)
I pushed kp52 to autobuilder, so enable extras-devel and run apt-get update.

After reflash I'm currently at CSSU-testing (installed before servers migration) and kernel-power 51r1.
Enabling extras-devel and running apt-get upgrade wanted to upgrade besides kp52 packages also: file; libmagic1; gstreamer0.10-maemo-xiph. Are they dependencies of kp52(I guess not)? If not, why are they offered to upgrade as HAM shows no upgrades when extras-devel is enabled? Is it safe to upgrade also these packages?

shady 2013-04-10 18:13

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I am using multiboot, and upgraded to Power52 once i saw it in the repos. I however see that it is uboot only. I am no longer running nitdroid, but would like to use power52 (no option shows in multiboot) and the previous kernels do not load. so i ask for resources that may guide me through either removing multiboot and installing uboot, or how to get the current power kernel working. any help is appreciated!

thanks

elros34 2013-04-10 18:22

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by shady (Post 1335279)
how to get the current power kernel working. any help is appreciated!
thanks

http://talk.maemo.org/showthread.php?t=89721

Taleydra 2013-04-10 18:37

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Didn't see a thread on 52, but installed it on my new n900. (First one would not recognize sim card anymore, and used various kernel-power versions with no problem). I noticed the camera would not work, the notification led would not work, nor the keyboard lights. I did an apt-get for the fcam drivers, but no effect.

I installed the original kernel, and the camera and led would work, but not the keyboard.

I tried to install an earlier version of kernel-power, but it would not download.

Installed v52 again, and same result.

Installed the original again, now I am stuck in a reboot loop.

I am also getting this from the flasher: Suitalble USB device not found, waiting

Any help would be appreciated.

pkz 2013-04-11 11:13

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1334813)
multiboot support was removed in october 2012 and there were testing packages for more months...

Thanks pali for your effort.

Are there any problem for those who use bootmenu with backupmenu?

In general, what I cannot understand is the question about flashing and the necessity to have this strange bootloading system: are there any place where to find a complete tutorial about nolo, bootmenu, multiboot, U-boot and fiasco images, also in relation to kernel power and other OSs?

Thanks in advance
pkz

pali 2013-04-11 11:23

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pkz (Post 1335411)
Are there any problem for those who use bootmenu with backupmenu?

If you mean fanoush bootmenu script modified by me (extras package "bootmenu") then this is OK without any problems. Custom init scripts which are started by this bootmenu are OK too.

reinob 2013-04-11 14:07

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pkz (Post 1335411)
In general, what I cannot understand is the question about flashing and the necessity to have this strange bootloading system: are there any place where to find a complete tutorial about nolo, bootmenu, multiboot, U-boot and fiasco images, also in relation to kernel power and other OSs?

Basically, the boot process is as follows:

1. *NOLO* is the boot loader, which loads whatever kernel is installed in the kernel partition.

2. *kernel* loads and runs whatever it's been given as an init parameter. standard (on Maemo) is /sbin/preinit

3. *preinit* intializes various stuff about your N900 and then runs init (upstart)

4. *upstart* starts system services, X11 and the desktop.

*** U-Boot

Now if you install U-Boot it replaces *kernel*, so that NOLO passes control to U-Boot, which itself loads a kernel. If that kernel is a Maemo kernel (stock, power kernel), then that kernel loads preinit, etc.

Meaning: U-Boot replaces step 2, but the kernel loaded by U-Boot normally (if Maemo) jumps to step 3, so all is OK.

*** Bootmenu

Bootmenu is run by preinit, so that it runs between steps 3 and 4, let's call it 3.5. It is thus entirely independent of U-Boot and whatever kernel you have.

*** Backupmenu

Backupmenu is like Bootmenu. It is actually (normally) run from Bootmenu, so it kind of replaces step 4.

*** Multiboot

Multiboot replaces /sbin/preinit (step 3), so that it shows a menu similar to Bootmenu. The trick here is that when you select a kernel, it FLASHES that kernel, so that your selected kernel replaces STEP 2.

If you remember a few lines ago U-Boot ALSO REPLACES THE KERNEL.

If you do the math you'll notice that if you have U-Boot *and* Multiboot the next time you select a kernel in Multiboot it will replace U-Boot, so U-Boot is gone completely from your device. This is a common problem amongst the people who (still) don't know how the N900 and Maemo work.

*** Flashing

Your N900 has various partitions. For all practical matters you have:

disk 1:
partition 1: kernel
partition 2: root file system (/)
(NOLO and other partitions are also there, but you don't care).

disk 2:
partition 1: /home
partition 2: Mydocs
(swap is also there but you don't care)

If you flash the ROOTFS aka FIASCO aka COMBINED image you are basically replacing "disk 1", i.e. you get the stock kernel and a new root file system. Your /home and your Mydocs are not touched.

If you flash the eMMC aka VANILLA you get a new /home and Mydocs.

* NOTE (added after Pali's comment -- Thanks)
/opt is a symlink to /home/opt, meaning that if you flash the eMMC/VANILLA image *only* your /opt folder will be empty, which will likely make Maemo unbootable.

(actually should not happen, unless something actually requires /opt to be there. But yes, knowing Maemo, there is 100% something critical-essential stored in /opt).
*

Note that you can choose to only flash the kernel (i.e. without touching the rootfs). This is a way of e.g. fixing a fvcked up U-boot configuration.

I hope this makes everything a bit clearer!

pali 2013-04-11 14:15

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
@reinob: nice info for beginers. one important note: /opt (which is basicly part of / rootfs) is stored on "disk 2", so flashing only eMMC/VANILLA will make maemo5 broken.

HELLASISGREECE 2013-04-11 15:22

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Pali, apt-get updare/upgrade doesn't give any kp52-related update feedback. I use cssu thumb (latest) and kernel 51r1

pkz 2013-04-11 20:11

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
@pali: thanks again, yes I'm using the fanoush thing as you mentioned, so in theory KP52 should be correctly managed!

@reinob: great explanation! Now everything is much clearer; I have few questions though:

Quote:

Originally Posted by reinob (Post 1335446)
*** Flashing

Your N900 has various partitions. For all practical matters you have:

disk 1:
partition 1: kernel
partition 2: root file system (/)
(NOLO and other partitions are also there, but you don't care).

disk 2:
partition 1: /home
partition 2: Mydocs
(swap is also there but you don't care)

Where is mounted partition 1? Is it in /boot ? And, how large is it, and which is his device (/dev/...)? Is it still an ubifs?

Quote:

Originally Posted by reinob (Post 1335446)
If you flash the ROOTFS aka FIASCO aka COMBINED image you are basically replacing "disk 1", i.e. you get the stock kernel and a new root file system. Your /home and your Mydocs are not touched.

How can be flashed the only first partition of disk 1?

Quote:

Originally Posted by reinob (Post 1335446)
I hope this makes everything a bit clearer!

Definitely you made it much clearer!

Thanks
pkz


PS: could this explanation become a short tutorial in a wiki page?

pali 2013-04-11 20:19

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
in above very very simple example "disk 1" is internal onenand memory. you can see layout of it in file /proc/mtd

cheve 2013-04-12 01:24

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I don't have multi-boot , uboot or nitroidon on my N900, so can I assume that upgrading to KP52 should have less problem?

ivgalvez 2013-04-12 08:52

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by reinob (Post 1335446)
Basically, the boot process is as follows:

1. *NOLO* is the boot loader, which loads whatever kernel is installed in the kernel partition.

2. *kernel* loads and runs whatever it's been given as an init parameter. standard (on Maemo) is /sbin/preinit

3. *preinit* intializes various stuff about your N900 and then runs init (upstart)

4. *upstart* starts system services, X11 and the desktop.

*** U-Boot

Now if you install U-Boot it replaces *kernel*, so that NOLO passes control to U-Boot, which itself loads a kernel. If that kernel is a Maemo kernel (stock, power kernel), then that kernel loads preinit, etc.

Meaning: U-Boot replaces step 2, but the kernel loaded by U-Boot normally (if Maemo) jumps to step 3, so all is OK.

*** Bootmenu

Bootmenu is run by preinit, so that it runs between steps 3 and 4, let's call it 3.5. It is thus entirely independent of U-Boot and whatever kernel you have.

*** Backupmenu

Backupmenu is like Bootmenu. It is actually (normally) run from Bootmenu, so it kind of replaces step 4.

*** Multiboot

Multiboot replaces /sbin/preinit (step 3), so that it shows a menu similar to Bootmenu. The trick here is that when you select a kernel, it FLASHES that kernel, so that your selected kernel replaces STEP 2.

If you remember a few lines ago U-Boot ALSO REPLACES THE KERNEL.

If you do the math you'll notice that if you have U-Boot *and* Multiboot the next time you select a kernel in Multiboot it will replace U-Boot, so U-Boot is gone completely from your device. This is a common problem amongst the people who (still) don't know how the N900 and Maemo work.

*** Flashing

Your N900 has various partitions. For all practical matters you have:

disk 1:
partition 1: kernel
partition 2: root file system (/)
(NOLO and other partitions are also there, but you don't care).

disk 2:
partition 1: /home
partition 2: Mydocs
(swap is also there but you don't care)

If you flash the ROOTFS aka FIASCO aka COMBINED image you are basically replacing "disk 1", i.e. you get the stock kernel and a new root file system. Your /home and your Mydocs are not touched.

If you flash the eMMC aka VANILLA you get a new /home and Mydocs.

* NOTE (added after Pali's comment -- Thanks)
/opt is a symlink to /home/opt, meaning that if you flash the eMMC/VANILLA image *only* your /opt folder will be empty, which will likely make Maemo unbootable.

(actually should not happen, unless something actually requires /opt to be there. But yes, knowing Maemo, there is 100% something critical-essential stored in /opt).
*

Note that you can choose to only flash the kernel (i.e. without touching the rootfs). This is a way of e.g. fixing a fvcked up U-boot configuration.

I hope this makes everything a bit clearer!

Wonderful explanation, this should be copy-pasted in every opening thread about Fremantle.

pichlo 2013-04-12 14:11

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by reinob (Post 1335446)
Basically,

<snip>

I hope this makes everything a bit clearer!

Wonderful tutorial, reinob! I wish someone had written up something like that 6 months ago! It had taken me a few months (and a lot of sweat trying to rescue a bricked device :)) to gather that info from random scraps here and there and/or to figure it out myself.

lucas777 2013-04-16 12:32

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Guys quick question what is the command for kernel power 51 to install like apt-get install kernel.....

Ive forgotten and its not in the ham list under devel for some reason?

reinob 2013-04-17 07:47

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by lucas777 (Post 1336392)
Guys quick question what is the command for kernel power 51 to install like apt-get install kernel.....

Ive forgotten and its not in the ham list under devel for some reason?

# apt-get install kernel-power-flasher

if you really want v51, I'd do it using dpkg. Otherwise something like:

# apt-get install kernel-power-flasher=1:2.6.28-10power51

should do the trick.

misiak 2013-04-17 08:00

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by reinob (Post 1336649)
# apt-get install kernel-power-flasher

if you really want v51, I'd do it using dpkg. Otherwise something like:

# apt-get install kernel-power-flasher=1:2.6.28-10power51

should do the trick.

Shouldn't it be 1:2.6.28-10power51r1? Wasn't v51 somehow broken?

reinob 2013-04-17 08:10

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by misiak (Post 1336653)
Shouldn't it be 1:2.6.28-10power51r1? Wasn't v51 somehow broken?

Guy is asking for 51. NFC why :)

Quote:

what is the command for kernel power 51 to install like apt-get install ..

NokiaN900R 2013-04-17 22:15

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1241732)
Temporary link for v52 until somebody fix Extras-Devel repository & autobuilder:
http://talk.maemo.org/showpost.php?p...&postcount=288


Kernel-power version v51 (r1) is now in Extras-Devel!

Update (from old version):
Use Hildon Application Manager or via apt-get

Installation:
From Hildon Application Manager install package: Linux kernel for power user
Or via apt-get package: kernel-power-flasher

Overclock support (optional):
From Hildon Application Manager install package: Linux kernel for power user (settings and overclock)
Or via apt-get package: kernel-power-settings

Multiboot support (optional):
In Hildon Application Manager install packages: Maemo ULTimate BOOTloader and Linux kernel for power user (boot image for multiboot)
Or via apt-get packages: multiboot and kernel-power-bootimg

U-Boot support (optional):
First from U-Boot for Nokia RX-51 with BootMenu thread install needed U-Boot packages. Then in Hildon Application Manager install package Linux kernel for power user (boot image for multiboot)
Or via apt-get package kernel-power-bootimg

Packet injection wifi driver:
Kernel modules are already included and installed in /opt/packet-injection-modules/2.6.28.10-power51/
To load/unload it use shell script: http://atrey.karlin.mff.cuni.cz/~pal...t-injection.sh

New USB host mode:
This kernel is needed for new usb host mode from this thread.

Uninstallation:
Multiboot and overclock support can be uninstalled via Hildon Application Manager or via apt-get. Uninstalling kernel image is possible only via menu entry "Nokia Kernel". NEVER UNINSTALL KERNEL POWER PACKAGES!!! IT CAN MAKE YOUR DEVICE UNBOOTABLE.

===

Changelog:

kernel-power (1:2.6.28-10power51r1) fremantle; urgency=low

* Fix bug in bq2415x_charger driver which cause reboot when driver is unloaded

-- Pali Rohár <hidden> Mon, 23 Jul 2012 13:36:02 +0200

kernel-power (1:2.6.28-10power51) fremantle; urgency=low

* Added bq2415x charger driver (blacklisted by default)
* Show speed of connected usb device in /sys/devices/platform/musb_hdrc/hostdevice
* Fix radio-si4713 driver which caused using 100% CPU
* Provides: kernel-feature-smartreflex, kernel-feature-video720p, kernel-feature-packet-injection, kernel-feature-charger, kernel-feature-usbhost-new
* Added wl1251 packet injection modules
* Use ITEM_OMAPATAG in u-boot bootmenu entry
* Added thumb patches from kernel-cssu, enable thumb support and provides: kernel-feature-errata-430973-workaround
* Added patch for bq27x00 which export registers to file /sys/class/power_supply/bq27200-0/registers

-- Pali Rohár <hidden> Mon, 23 Jul 2012 11:36:29 +0200

===

For questions about development, bugs, etc... write to thread
[Development] kernel-power on http://talk.maemo.org/showthread.php?t=78371
Here is also information how to compile kernel, send patches, ...

Is the update of the kernel a must or is this something for power users??? Its my first year of using the n900 and i try to make clear what is good for the phone and what not.

Estel 2013-04-17 22:40

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Not to mention, that correct version to install now is kp52 ;) Pali declared it stable ages ago, just wasn't able to upload it into broken repos.

BTW, Pali, what now stops you from adding kp52 to repos?

/Estel

Android_808 2013-04-18 06:50

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
its in develfor about a week

sixwheeledbeast 2013-04-18 06:58

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by Estel (Post 1336867)
BTW, Pali, what now stops you from adding kp52 to repos?

Package promotion is broken.
You can't promote to testing correctly, this seems true for all packages.

reinob 2013-04-18 07:38

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by NokiaN900R (Post 1336857)
Is the update of the kernel a must or is this something for power users??? Its my first year of using the n900 and i try to make clear what is good for the phone and what not.

There's no need for you to install kernel-power, unless you need it for some reason. The kernel includes some bug fixes w.r.t. stock kernel, but as far as I can tell they don't concern major bugs (= the N900 runs still OK with the stock kernel :)

For many people the main reason is overclocking/undervolting.
Another common reason to use KP (only version 51r1 or 52) is that it allows you to run CSSU-thumb.

Besides that, it may be relevant if you e.g. use USB host-mode and/or need kernel modules that don't come with the stock kernel.

panjgoori 2013-04-18 08:08

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
since latest KP52 is not working with multi-boot (guru mediation error). can anyone guide me to how to use KP52 with u-boot ? I don't have Nitdroid installed and i also don't have any plans to use it. I only use backupmenu its a must have for me. Can anyone help me to create boot entries for both of them ? Thanks.

NokiaN900R 2013-04-18 09:47

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by reinob (Post 1336933)
There's no need for you to install kernel-power, unless you need it for some reason. The kernel includes some bug fixes w.r.t. stock kernel, but as far as I can tell they don't concern major bugs (= the N900 runs still OK with the stock kernel :)

For many people the main reason is overclocking/undervolting.
Another common reason to use KP (only version 51r1 or 52) is that it allows you to run CSSU-thumb.

Besides that, it may be relevant if you e.g. use USB host-mode and/or need kernel modules that don't come with the stock kernel.

Thank you for your reply!
I wanted to install kernel power so i can use USB host mode!!! :D

saponga 2013-04-18 10:55

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by panjgoori (Post 1336941)
since latest KP52 is not working with multi-boot (guru mediation error). can anyone guide me to how to use KP52 with u-boot ? I don't have Nitdroid installed and i also don't have any plans to use it. I only use backupmenu its a must have for me. Can anyone help me to create boot entries for both of them ? Thanks.

You should have NO problem with backupmenu. Just go ahead and update KP by HAM.

caveman 2013-04-18 11:35

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Anyone else having boot problems with kp52?

In my case I have CSSU-thumb, u-boot and ARCH, and I installed kernel power 52 bootimg. u-boot updates fine, kp52 loads but the device reboots after some 20s.

pali 2013-04-18 12:00

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
kernel-power v52 thread is here: http://talk.maemo.org/showthread.php?t=89823

Alecsandru 2013-05-18 14:24

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
please could someone upload the bootmenu.img folder of the kp52(u-boot) and boot file from emmc ,(generated by u-boot)HELP

bandora 2013-07-09 10:14

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
I'm sorry if this has been answered before, but how can I get those missing modules? And where do I put them... argh it's been a while since I've used the N900 lol...

I've tried reinstalling kernel-power using apt-get but I still get those errors everytime I load the injection drivers..

Code:

/home/user/MyDocs # sh packet-injection.sh load
ERROR: Module wl1251_spi does not exist in /proc/modules
ERROR: Module wl1251 does not exist in /proc/modules
ERROR: Module rfkill_backport does not exist in /proc/modules
ERROR: Module compat does not exist in /proc/modules
libwl1251: netlink family ID is 21
wl1251-cal: Country code: 0
wl1251-cal: Got CAL NVS
wl1251-cal: found MAC address ec:9b:5b:42:13:f1
wl1251-cal: netlink family id 20
wl1251-cal: ack_handler()
wlancond (stop) running, process 1186
wlancond (stop) pre-stop, (main) process 1186
wlancond (stop) stopping, process 1186
wlancond (stop) killed, process 1186
wlancond (stop) post-stop
wlancond (stop) waiting
wlancond (start) waiting
wlancond (start) starting
wlancond (start) pre-start
wlancond (start) spawned, process 1625
wlancond (start) post-start, (main) process 1625
wlancond (start) running, process 1625


pali 2013-07-09 12:01

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Ignore above 4 error lines. Eveyrthing is OK and your packet injection modules were loaded. packet-injection.sh first unload all wifi modules (also packet injection) and then load packet injection modules. It also try to unload packet injection modules, but if they are not loade it write above error. Just ignore it.

bandora 2013-07-09 13:57

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Oh ok thanks pali! :)

enne30 2013-07-25 12:24

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by sixwheeledbeast (Post 1336928)
Package promotion is broken.
You can't promote to testing correctly, this seems true for all packages.

I was waiting to find kp52 in testing :(

So is it safe to enable devel and just install KP52? (i'm with CSSU stable-KP50).

pichlo 2013-07-25 12:28

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by enne30 (Post 1362005)
So is it safe to enable devel and just install KP52? (i'm with CSSU stable-KP50).

If not then I'm pretty screwed. That's exactly what I've done (and disabled devel immediately afterwards :)).

enne30 2013-07-25 13:19

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
He asks me to upgrade to KP51r1, first... Should I go? :confused:

pali 2013-07-25 13:47

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
enable extras-devel repo, update catalogues and you will see kp52 update

enne30 2013-07-25 14:00

Re: [Announce] kernel-power stable v51 in Extras-Devel
 
Quote:

Originally Posted by pali (Post 1362024)
enable extras-devel repo, update catalogues and you will see kp52 update

Extras-devel enabled, in updates I see: "Linux kernel for power user" and when I try to install it says KP51r1.

I'm with KP50, maybe it's normal to update to KP51r1 first?


All times are GMT. The time now is 09:09.

vBulletin® Version 3.8.8