Active Topics

 


Reply
Thread Tools
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#91
Originally Posted by pali View Post
Yes, but it is bad to tell that this is vmlinuz if in fact it is zImage. (As I wrote I do not like some stupid hacks this type). Why multiboot does not work if file has normal zImage name??
Sorry, I made a mistake.

I digged sources a bit ( http://maemo.org/packages/source/vie...boot/0.2.10-1/ , downloaded source package, MohammadAG is maintainer, but if you want to ask questions, ask Jay-C, he is original author of code - see readme file at the very bottom).

There is line (lines 20-21) in scripts/multiboot:
# vmlinuz searchlist
VMLINUZ_SEARCH="boot/multiboot/vmlinuz- boot/multiboot/zImage- boot/vmlinuz- boot/zImage-"
So it also searches zImage- files! And also in "/boot"!

Confirmed: kernel renamed to /boot/zImage-2.6.28.10pali1
/etc/multiboot.d/01-Maemo-kernel-power46.item contents:
ITEM_NAME="Maemo kernel-power46-pali1"
ITEM_KERNEL="2.6.28.10pali1"
ITEM_MODULES=ext3
(empty line at end of file, but don't know if it's needed)
and it still boots Thank you pali for mobilizing me to read the sources of multiboot

There is also file README, which part of reads:
1.Configuration
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

The configuration files are in /etc/multiboot.d/

Each file named <whatever>.item represents a bootable configuration,
which can be selected from the bootup menu.


1.1 Item file format
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~

A line starting with # is a comment

All other lines must be like the following:-

ITEM_ID="..."
A short name for this configuration.
No spaces, no special characters, max 6 characters long.

ITEM_NAME="..."
A description string for this configuration.
Shown on the bootmenu screen.

ITEM_KERNEL="..."
Kernel version to run in this configuration.
If the running kernel is not correct, multiboot will reflash
the device and reboot automatically.

ITEM_MODULES="..."
A list of kernel modules required to boot this configuration.
E.g. "ext2 ext3 fat vfat"

ITEM_DEVICE="..."
Root partition device name.
Use ${EXT_CARD} to point to the external MMC,
and ${INT_CARD} for internal.
E.g. "${EXT_CARD}p2" for partition 2 in removable MMC.

ITEM_FSTYPE="..."
Filesystem type for the root fs.
Usually ext2 or ext3.
Also, you must have the fs module loaded.

ITEM_FSOPTIONS="..."
Filesystem options for root fs. Typically,
for ext2/ext3:
"rw,noatime,errors=remount-ro"

ITEM_INITRC="..."
Init program to execute when switching over to root.
Optional, default is to search the usual locations.

ITEM_INITFS="..."
Locations where the Maemo root fs is moved after pivot.
Typically "initrd" or "mnt/initfs"
Defaults to "mnt/initfs"
And these are all options available in item file. Only 3: ITEM_KERNEL, ITEM_NAME, ITEM_MODULES are required by titan's power kernel, I just included this to see if your kernel maybe needs or can use any more options to use all its features?

Thanks for your great work again

Also: updated my previous post with instructions how to manually make it work with multiboot to better fulfill standards (zImage instead of vmlinuz). I was aware of the difference between these two files, but thought it was just a naming convention.

Last edited by misiak; 2011-04-20 at 18:43.
 

The Following 4 Users Say Thank You to misiak For This Useful Post:
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#92
Originally Posted by leojab View Post
misiak, I was trying the same method earlier, the same way u mentioned in the noob guide but to no avail. I cannot get 2.6.68.10pali1 to boot. I can boot only to Maemo PR1.3 and NIITDroid Vostok.

When selecting option to power kernel, the N900 does not seems to flash the kernel area with the power kernel and it just gets stuck in a black blank screen..
I really needs power kernel for hostmode and many other features..
The /lib/modules, /boot/multiboot and /etc/multiboot.d seems fine with same reference to kernel.

I do not know where i am doing wrong :-(
I made a horrible mistake there, sorry. I haven't copied full contents of file /etc/multiboot.d/01-Maemo-kernel-power46.item - the line
ITEM_MODULES=ext
should be:
ITEM_MODULES=ext3
Other instructions without changes.

Thanks for help Change contents of this file:
Code:
sudo gainroot
leafpad /etc/multiboot.d/01-Maemo-kernel-power46.item
Edit, save file, exit terminal, reboot and tell me if it works, please. Also, was your charger plugged in? I noticed I have sometimes problem with booting with multiboot while charging battery...


EDIT: pali!, maybe you could (in your packages) rename kernel zImage file name from /boot/zImage-2.6.28-pali1 to /boot/zImage-2.6.28.10pali1 ? If so, the package "multiboot-kernel-power" shall only containt /etc/multiboot.d/01-Maemo-kernel-power46.item file and depend on kernel-power? Because if you keep your current naming convention, after install of kernel-power and kernel-power-modules etc. we have kernel "zImage-2.6.28-pali1" and modules in /lib/modules in subdir "2.6.28.10pali1". And for multiboot it does not work Don't want to be rude here or anything negative, just asking for a consistent naming convention, because it would simplify lots of work

Also, instructions in post http://talk.maemo.org/showpost.php?p...8&postcount=75 updated again. I hope I won't need to change them anymore.

Last edited by misiak; 2011-04-20 at 19:51. Reason: more changes, don't want to triplepost
 

The Following 3 Users Say Thank You to misiak For This Useful Post:
Posts: 102 | Thanked: 23 times | Joined on Apr 2010
#93
Thanks pali and misiak.. I was able to finally get the kernel-power-pali1 installed.
The additional part to be checked is as follows:
1. After installing pali kernel, make sure the owner of the /lib/modules/2.6.28.10pali1 is root. This can be done using chown root:root command
2. Make sure the zImage file is in the /boot folder as well and it is owned by root

Now, I am satisfied with the first step.. cannot wait for more enhancement such as moving to kernel 2.6.37 with libraries
 

The Following User Says Thank You to leojab For This Useful Post:
Estel's Avatar
Posts: 5,028 | Thanked: 8,613 times | Joined on Mar 2011
#94
Hi Pali.

I really appreciate your work here. Is there anything that we, regular users, can do to help You become official kernel-power maintainer? I think this would clear mess that we have now with kernel-power versions (no offense to anyone):

- v46 official without usb cd modules = problems with hostmode
- v46 with bleeding edge wifi - same problems with hostmode
- v42 official - last known to work with usb CD in hostmode (correct me, if i'm wrong).

I'm also waiting for bleeding edge wifi to be included in Your kernel, but anyway, big thanks for all Your work already done

Ps.

I did a quick search on kernel-power page (where You are on pending list to become maintainer), but wasn't able to find any "vote" option. Sorry, if it is stupid question - I'm little new to this.
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#95
Originally Posted by leojab View Post
Thanks pali and misiak.. I was able to finally get the kernel-power-pali1 installed.
The additional part to be checked is as follows:
1. After installing pali kernel, make sure the owner of the /lib/modules/2.6.28.10pali1 is root. This can be done using chown root:root command
2. Make sure the zImage file is in the /boot folder as well and it is owned by root

Now, I am satisfied with the first step.. cannot wait for more enhancement such as moving to kernel 2.6.37 with libraries
You had permissions and file ownership problem? Strange, really strange...

Someone (maybe even pali, but I'm not sure and don't want to put words into his mouth) wrote that moving to kernel 2.6.37 will not be possible in Maemo 5, as some closed-source binaries rely on kernel interfaces present in 2.6.28 and deprecated or not available in 2.6.37

Also, pali! I want to try few things by myself, so: how to compile your kernel please step-by-step instruction (can be not noob-friendly, just steps)? ^ ^ Would it work when I: 1. download kernel-power 46 sources, 2. go to http://atrey.karlin.mff.cuni.cz/~pali/ , get kernel-power_2.6.28-pali1_source.diff.tar.gz, 3. apply diff, 4. compile kernel 5. compile modules? :P

Last edited by misiak; 2011-04-20 at 19:50.
 
Posts: 63 | Thanked: 26 times | Joined on Jul 2010 @ Canada
#96
I went to the garage and I did a positive review of the "pali" user (search for pali in the "people"). maybe if we are more users doing this, pali will get promoted as a trusted user?
 

The Following User Says Thank You to jprobichaud For This Useful Post:
Posts: 330 | Thanked: 97 times | Joined on Dec 2010 @ saudi arabia
#97
what about QCPUFreqapp ,when i run it CPU temp shows me 346C ! hehe

any fix for this.....
 
AgogData's Avatar
Posts: 870 | Thanked: 133 times | Joined on Aug 2010
#98
pali, can you tell me whats wrong here :

Code:
/home/user # cd /home/user/MyDocs/kernel/
/home/user/MyDocs/kernel # dpkg -i *.deb
Selecting previously deselected package kernel-power-bootimg.
(Reading database ... 67595 files and directories currently installed.)
Unpacking kernel-power-bootimg (from kernel-power-bootimg_2.6.28-pali1_armel.deb) ...
dpkg: regarding kernel-power-flasher_2.6.28-pali1_armel.deb containing kernel-power-flasher, pre-dependency problem:
 kernel-power-flasher pre-depends on kernel-power (= 2.6.28-pali1)
  kernel-power is installed, but is version 2.6.28-maemo46.
dpkg: error processing kernel-power-flasher_2.6.28-pali1_armel.deb (--install):
 pre-dependency problem - not installing kernel-power-flasher
Selecting previously deselected package kernel-power-headers.
Unpacking kernel-power-headers (from kernel-power-headers_2.6.28-pali1_armel.deb) ...
Preparing to replace kernel-power-modules 2.6.28-maemo46 (using kernel-power-modules_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-modules ...
dpkg: error processing kernel-power-modules_2.6.28-pali1_armel.deb (--install):
 failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10pali1/omaplfb.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace kernel-power 2.6.28-maemo46 (using kernel-power_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power ...
Selecting previously deselected package linux-kernel-power-headers.
Unpacking linux-kernel-power-headers (from linux-kernel-power-headers_2.6.28-pali1_armel.deb) ...
dpkg: error processing linux-kernel-power-headers_2.6.28-pali1_armel.deb (--install):
 failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./usr/include/linux/virtio_console.h': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Setting up kernel-power-bootimg (2.6.28-pali1) ...
Setting up kernel-power-headers (2.6.28-pali1) ...
Setting up kernel-power (2.6.28-pali1) ...
dpkg: failed to write status record about `wormux' to `/var/lib/dpkg/status': No space left on device
 
Posts: 1,042 | Thanked: 430 times | Joined on May 2010
#99
@Agogdata
The last line speaks for itself
No space left on device
as you can see kernel modules doesn't get replaced when you install another one so it just piles up at /var/lib/modules till you get out of space left for your n900's NAND
 
Posts: 1,680 | Thanked: 3,685 times | Joined on Jan 2011
#100
Originally Posted by AgogData View Post
pali, can you tell me whats wrong here :

/home/user # cd /home/user/MyDocs/kernel/
/home/user/MyDocs/kernel # dpkg -i *.deb
Selecting previously deselected package kernel-power-bootimg.
(Reading database ... 67595 files and directories currently installed.)
Unpacking kernel-power-bootimg (from kernel-power-bootimg_2.6.28-pali1_armel.deb) ...
dpkg: regarding kernel-power-flasher_2.6.28-pali1_armel.deb containing kernel-power-flasher, pre-dependency problem:
kernel-power-flasher pre-depends on kernel-power (= 2.6.28-pali1)
kernel-power is installed, but is version 2.6.28-maemo46.
dpkg: error processing kernel-power-flasher_2.6.28-pali1_armel.deb (--install):
pre-dependency problem - not installing kernel-power-flasher
Selecting previously deselected package kernel-power-headers.
Unpacking kernel-power-headers (from kernel-power-headers_2.6.28-pali1_armel.deb) ...
Preparing to replace kernel-power-modules 2.6.28-maemo46 (using kernel-power-modules_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power-modules ...
dpkg: error processing kernel-power-modules_2.6.28-pali1_armel.deb (--install):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./lib/modules/2.6.28.10pali1/omaplfb.ko': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace kernel-power 2.6.28-maemo46 (using kernel-power_2.6.28-pali1_armel.deb) ...
Unpacking replacement kernel-power ...
Selecting previously deselected package linux-kernel-power-headers.
Unpacking linux-kernel-power-headers (from linux-kernel-power-headers_2.6.28-pali1_armel.deb) ...
dpkg: error processing linux-kernel-power-headers_2.6.28-pali1_armel.deb (--install):
failed in buffer_write(fd) (9, ret=-1): backend dpkg-deb during `./usr/include/linux/virtio_console.h': No space left on device
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Setting up kernel-power-bootimg (2.6.28-pali1) ...
Setting up kernel-power-headers (2.6.28-pali1) ...
Setting up kernel-power (2.6.28-pali1) ...
dpkg: failed to write status record about `wormux' to `/var/lib/dpkg/status': No space left on device

No wonder no-body wants to develop for n900, they post their work then get swamped by noobspam.
__________________
N900: One of God's own prototypes. A high-powered mutant of some kind never even considered for mass production. Too weird to live, and too rare to die.
 
Reply

Tags
battery-status, bq27x00_battery, kernel, kernel-power, misiak4king, noobs-cant-read, pali4president, patches, readdirections, revolverspinyou


 
Forum Jump


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