Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #1  
Old 2010-02-04, 21:38
titan titan is offline
 
Join Date: Oct 2009
Location: Germany
Posts: 946
Thanks!: 216
Thanked 1,650 Times in 417 Posts
Default Compiling custom kernels for P1.1 (with fiasco-gen)

Hi
since PR1.1 it has been impossible to build a self-flashing custom kernel
as the tool fiasco-gen was missing (https://bugs.maemo.org/show_bug.cgi?id=7972).
Marcell Lengyel was kind enough to prerelease the binary which is supposed to be part of SDK1.1.1: https://bugs.maemo.org/attachment.cgi?id=2214

Now we can start building our own kernels again (also see http://wiki.maemo.org/User:Jebba/Kernel).

I think it could be a good idea to build a common community kernel
which contains all the modules we need and which the Nokia kernel misses.
Maybe we can convince Nokia to enable those modules in one of the next PRs.

Below you find a list of what I have enabled in my kernel.
What else would you like to see in the kernel?

UPDATED:
For the latest information check the page http://wiki.maemo.org/Kernel_Power

You can download my latest build which contains lots of extra modules and features
and which works fine on my N900 from extras-testing.

INSTALLATION:
0. make the extras-testing catalogue is enabled
1. install the package "kernel-power-flasher" from App manager (section System) or using apt-get
2. reboot and enjoy.

CHANGELOG:
* patched to 2.6.28.10, Nokia PR1.2 (!) and other bugfixes
* enabled additional modules for iptables (NAT,connection tracking, packet filtering), Wifi mesh,
IPv6 (incl. Mobile IPv6 , privacy, and ip6tables), QoS, hotspot fixes, IP tunneling,
device mapper+dmloop, crytoloop, builtin ext3 for booting from other media,
ext4, XFS, reiserfs, NTFS reading, ISO9660, UDF, CIFS, automounter, EFI partitions,
UTF8 codepages, mouse+joystick input, kernel config, cryptd, SHA256+512,blowfish,
USB 1.1+2.0+generic drivers,USB hubs,USB video+serial, USB/IP, kexec
and more...
(Note: The boot logo is disabled as framebuffer console seems to be broken)
The stock Nokia kernel already contains: FUSE, Bluetooth HID, NFSv4

If you want to revert to the original kernel, execute
Code:
apt-get install --reinstall kernel kernel-flasher
If the device is bricked for some reason you can simply reflash the kernel alone (assuming you have the current firmware)
Code:
flasher-3.5 -u -F RX-51_2009SE_3.2010.02-8_PR_COMBINED_MR0_ARM.bin
sudo flasher-3.5 -f -k zImage -R
For USB/IP install the usbip package from the extras-devel repository.
execute
Quote:
modprobe vhci-hcd
before using usbip.
For iptables install the iptables package, for kexec the kexec-tools.

If you want to try USB/IP with the stock PR1.1 kernel (untested), download
http://n900.tannerlab.com/kernel/vhci-hcd.ko
http://n900.tannerlab.com/kernel/usbip.ko
http://n900.tannerlab.com/kernel/usbip_common_mod.ko
to the kernel modules directory and run "depmod -a"

Last edited by titan; 2010-06-22 at 05:39. Reason: kernel package; 10th update, more details, unbrick, PR1.2
Reply With Quote
  #2  
Old 2010-02-04, 21:48
arkanoid arkanoid is offline
 
Join Date: Nov 2009
Posts: 251
Thanks!: 4
Thanked 70 Times in 39 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

BFS? (don't know if it works good on ARM, though)
Reply With Quote
  #3  
Old 2010-02-04, 21:59
spanner's Avatar
spanner spanner is offline
 
Join Date: Nov 2009
Location: Bristol, UK
Posts: 253
Thanks!: 194
Thanked 184 Times in 86 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

* framebuffer console for boot messages
Reply With Quote
  #4  
Old 2010-02-04, 22:08
smoku's Avatar
smoku smoku is offline
 
Join Date: Dec 2009
Location: Warsaw, Poland
Posts: 1,716
Thanks!: 218
Thanked 3,007 Times in 775 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

I already have built mine for the PS3 controller connectivity.
The only change is joystick and mouse modules support.
__________________
smoku @xiaoka.com (SMTP/XMPP) ...:.:....:... pebbled . Poky Fish : sixaxis . psx4m . uae4all
Jolla Phone post-mortem . . . . . . . . . . -> 1+1 VGN-UX390N
Reply With Quote
The Following 2 Users Say Thank You to smoku For This Useful Post:
  #5  
Old 2010-02-04, 22:12
mdengler mdengler is offline
 
Join Date: Jan 2010
Location: Hong Kong, CHINA
Posts: 74
Thanks!: 195
Thanked 25 Times in 18 Posts
Send a message via Skype™ to mdengler
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

NAT would be nice.

aufs has been said near "kernel" a lot, but I don't know much more than that.
Reply With Quote
  #6  
Old 2010-02-04, 22:13
mankir's Avatar
mankir mankir is offline
 
Join Date: Dec 2009
Location: Frankfurt, Germany
Posts: 276
Thanks!: 104
Thanked 224 Times in 90 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

I am not sure if it's technically possible, but mounting squashfs for wikipedia dumps & realtime support for music producing would be very nice!
Reply With Quote
  #7  
Old 2010-02-04, 22:22
Bernard Bernard is offline
 
Join Date: Jun 2006
Posts: 468
Thanks!: 67
Thanked 610 Times in 204 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

The USB IP support would be very interesting to experiment with.
Reply With Quote
  #8  
Old 2010-02-04, 23:28
titan titan is offline
 
Join Date: Oct 2009
Location: Germany
Posts: 946
Thanks!: 216
Thanked 1,650 Times in 417 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

Some of your suggestions require additional patches.
If you can send me patches for 2.6.28 I'd happy to add them to my build.

@spanner: fb console is already enabled
Reply With Quote
  #9  
Old 2010-02-05, 00:11
meep meep is offline
 
Join Date: Jan 2010
Posts: 94
Thanks!: 9
Thanked 10 Times in 8 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

+1 for usbip!

Cheers
Reply With Quote
  #10  
Old 2010-02-05, 00:24
jebba jebba is offline
 
Join Date: Nov 2009
Location: Redstone Canyon, Colorado
Posts: 355
Thanks!: 148
Thanked 566 Times in 157 Posts
Default Re: Compiling custom kernels for P1.1 (with fiasco-gen)

I have my PR1.1 kernel now built with the new fiasco-gen.

Some info:
http://wiki.maemo.org/User:Jebba/Kernel

Install file for my repo:
http://www.freemoe.org/users/jebba/jebba.install

Directory containing the actual kernel:
http://www.freemoe.org/users/jebba/d.../binary-armel/

My live kernel scratchbox:
http://www.freemoe.org/users/jebba/scratchbox/kernel/

Changelog:
http://www.freemoe.org/users/jebba/s...6.28/changelog
Reply With Quote
The Following 12 Users Say Thank You to jebba For This Useful Post:
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:47.