maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   BFS for the power kernel (https://talk.maemo.org/showthread.php?t=58780)

epitaph 2011-03-28 17:06

Re: BFS for the power kernel
 
Quote:

Originally Posted by Tigerite (Post 929345)
Okay, so I got the go-ahead from lxp (some days ago) to post the modules freely. Sorry for the delay, I've just been so busy lately. The modules do require a slightly modified kernel, as the rx51power_defconfig requires CONFIG_CFG80211=m - by default it's set to y, perhaps this could be changed for -bfs6? I've also added two patches to the default kernel: one which iDont himself recommended to me (but was unsure whether it was draining more battery, so didn't include it in bfs5), to do with anti I/O stalling - for details go here; the other I found myself, which makes the nandsim module work on the N900 - without it, there isn't enough memory to simulate 256MB of nand (and run anything on the system) and there's no way of creating a backing file. Details of that one can be found here (neither patch needed modifying to apply to BFS so I left them exactly as found on the pages linked).

I have tested the debs myself on my N900 and lxp's modules against the new kernel - everything works for me, at least, but of course, YMMV..

http://ifile.it/uh697nz/kernel-bfs_2...bfs5_armel.deb
http://ifile.it/mws48k1/kernel-bfs-m...bfs5_armel.deb
http://ifile.it/93xaj2f/kernel-bfs-h...bfs5_armel.deb
http://ifile.it/wm3rck2/linux-kernel...bfs5_armel.deb
http://ifile.it/c07nkrv/kernel-bfs-b...bfs5_armel.deb
http://ifile.it/we6jrc0/kernel-bfs-f...bfs5_armel.deb
http://ifile.it/si1jpk7/lxp-modules_2.6.28-bfs5.tar.bz2

I've followed this post and installed multiboot and

kernel-bfs-headers_2.6.28-bfs5_armel.deb
kernel-bfs-bootimg_2.6.28-bfs5_armel.deb
kernel-bfs-flasher_2.6.28-bfs5_armel.deb
kernel-bfs-modules_2.6.28-bfs5_armel.deb
kernel-bfs_2.6.28-bfs5_armel.deb

It's seems to work but I have 2 questions:

1) Do I need this file kernel-bfs-flasher_2.6.28-bfs5_armel.deb?
It seems to flash the device? Why do I need this when I have already a zImage with this file kernel-bfs_2.6.28-bfs5_armel.deb?
2) I have run this file kernel-bfs-flasher_2.6.28-bfs5_armel.deb. Does this mean my device is flashed with 2.6.28-bfs5? I can't boot the default kernel 2.6.28-omap gives with multiboot. I can only select kernel 2.6.28-bfs5 ( because I have a BFS.item in multiboot ).

BTW. It seems to be very responsive! Almost double the base speed! I like it. Nice work!

humble 2011-03-29 09:01

Re: BFS for the power kernel
 
Sry for this post.

humble 2011-03-29 09:06

Re: BFS for the power kernel
 
@Tigerite

first off thanks for you work:) (we all don't have to... we choose to)
i used to follow this project (and i did see improvements..and i would like to see some now:D)

anyway im having a problem downing the headers. could you please fix your link
this one
http://ifile.it/93xaj2f/kernel-bfs-h...bfs5_armel.deb , thanks


Edit: it working now sry.. 1 question thou will you be uploading to maemo repository?

Tigerite 2011-03-29 10:21

Re: BFS for the power kernel
 
Kernel BFS has its own garage page, so it's never been released into the repos. I am considering releasing a v6 with zram/compcache (I haven't fully decided whether to go with zram, which isn't fully supported on 2.6.28 and requires lines commenting out to compile, or stick with compcache which is compatible) but I'd have to discuss it with the other BFS moderators first. We've recently discovered distortions when making and receiving calls, and need to isolate the patch causing it - I have my suspicions that it's the two voltage patches that aren't present in power46, but I may be mistaken. It needs testing either way first, before anything can be released.

Oh, and you don't need to install the headers, or the linux ones, on-device. The only debs that are needed are the modules (always) and the main kernel-bfs package, which is used when flashing the kernel (via the flasher deb) or for dependency issues when using the zImage for multiboot/u-boot (within the bootimg deb). There is a dummy kernel-bfs package for the latter case, to save some space in rootfs, as the actual image within the kernel-bfs deb is only used by the flasher, not multiboot or u-boot.

epitaph 2011-03-29 10:54

Re: BFS for the power kernel
 
Quote:

Originally Posted by Tigerite (Post 977640)
Kernel BFS has its own garage page, so it's never been released into the repos. I am considering releasing a v6 with zram/compcache (I haven't fully decided whether to go with zram, which isn't fully supported on 2.6.28 and requires lines commenting out to compile, or stick with compcache which is compatible) but I'd have to discuss it with the other BFS moderators first. We've recently discovered distortions when making and receiving calls, and need to isolate the patch causing it - I have my suspicions that it's the two voltage patches that aren't present in power46, but I may be mistaken. It needs testing either way first, before anything can be released.

Oh, and you don't need to install the headers, or the linux ones, on-device. The only debs that are needed are the modules (always) and the main kernel-bfs package, which is used when flashing the kernel (via the flasher deb) or for dependency issues when using the zImage for multiboot/u-boot (within the bootimg deb). There is a dummy kernel-bfs package for the latter case, to save some space in rootfs, as the actual image within the kernel-bfs deb is only used by the flasher, not multiboot or u-boot.

I'm still a bit confused about your post but there is 2 way to install?

with multiboot:
===========
kernel-bfs-bootimg_2.6.28-bfs5_armel.deb
kernel-bfs-modules_2.6.28-bfs5_armel.deb
kernel-bfs_2.6.28-bfs5_armel.deb

without multiboot:
==============
kernel-bfs-flasher_2.6.28-bfs5_armel.deb
kernel-bfs-modules_2.6.28-bfs5_armel.deb

Tigerite 2011-03-29 10:57

Re: BFS for the power kernel
 
Without multiboot, you still need kernel-bfs_2.6.28-bfs5_armel.deb too, but otherwise, that's about the size of it. You don't install the bootimg deb though - you should use dpkg-deb to extract the zImage-2.6.28-bfs5 and then use that with multiboot (I've never installed multiboot so don't know all the ins and outs of it).

epitaph 2011-03-29 11:26

Re: BFS for the power kernel
 
Quote:

Originally Posted by Tigerite (Post 977663)
Without multiboot, you still need kernel-bfs_2.6.28-bfs5_armel.deb too, but otherwise, that's about the size of it. You don't install the bootimg deb though - you should use dpkg-deb to extract the zImage-2.6.28-bfs5 and then use that with multiboot (I've never installed multiboot so don't know all the ins and outs of it).

How do I use zRam? Do I need some configuration files? I would like to test it with BFS, because BFS seems to solve my problems!

Tigerite 2011-03-29 11:37

Re: BFS for the power kernel
 
You'll need the compiled module for BFS, and ideally the config script to set it up (although not strictly necessary). I've compiled a deb with those but I am not sure zram is stable enough, as I've had some lock-ups lately where the CPU has simply been flooded with requests, and I can only assume zram has been the culprit. I'm considering patching compcache instead, to use my kernel patch and its related disk parameters, as it's definitely compatible with 2.6.28 (whereas zram is designed for 2.6.33 and above).

epitaph 2011-03-29 11:53

Re: BFS for the power kernel
 
Quote:

Originally Posted by Tigerite (Post 977690)
You'll need the compiled module for BFS, and ideally the config script to set it up (although not strictly necessary). I've compiled a deb with those but I am not sure zram is stable enough, as I've had some lock-ups lately where the CPU has simply been flooded with requests, and I can only assume zram has been the culprit. I'm considering patching compcache instead, to use my kernel patch and its related disk parameters, as it's definitely compatible with 2.6.28 (whereas zram is designed for 2.6.33 and above).

So compcache is only for swap-space? And zRam for everything else?
When you compile what flag do use in the makefile? I assume it is gcc and you use something like -O3 -fomit-frame-pointer -ffast-math? Does compcache works with BFS and power-kernel?

Tigerite 2011-03-29 13:35

Re: BFS for the power kernel
 
Yes that's right, compcache is only for swap-space, and with the patches as they are (disabling all the remapping that Nokia included) I wouldn't recommend using backing swap with it either. I haven't been able to get zram to work with normal block devices anyway, by the way - it just crashes the device, so we wouldn't be losing anything.

Do you mean compiling compcache/zram, or BFS/power-kernel? I just use the Makefile for both so I don't honestly know. Compcache should work with both, as zram certainly does - it just needs to be compiled against the correct kernel and associated headers (but that's for me to worry about!)


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

vBulletin® Version 3.8.8