maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Compiling custom kernels for P1.1 (with fiasco-gen) (https://talk.maemo.org/showthread.php?t=43420)

titan 2010-02-04 21:38

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"

arkanoid 2010-02-04 21:48

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
BFS? (don't know if it works good on ARM, though)

spanner 2010-02-04 21:59

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
* framebuffer console for boot messages

smoku 2010-02-04 22:08

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.

mdengler 2010-02-04 22:12

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.

mankir 2010-02-04 22:13

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!

Bernard 2010-02-04 22:22

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
The USB IP support would be very interesting to experiment with.

titan 2010-02-04 23:28

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

meep 2010-02-05 00:11

Re: Compiling custom kernels for P1.1 (with fiasco-gen)
 
+1 for usbip!

Cheers

jebba 2010-02-05 00:24

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


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

vBulletin® Version 3.8.8