PDA

View Full Version : Precompiled kernel with Nokia DKU-2


the87boy
11th September 2006, 15:49
Hey

I'm having some problems, because I'm going to USA soon, and I'm going to have a mobile phone connected to my mobile phone, while I'm overthere, so I can send smses to my friends and so on
I have a Nokia 6230i, I will like to have connected to my computer
Otherwise I'm searching for a precompiled kernel, where usb_serial.h is included

falko
12th September 2006, 17:11
Otherwise I'm searching for a precompiled kernel, where usb_serial.h is included
I don't know where you can find such a kernel... Maybe it's easier to compile your own one?

the87boy
12th September 2006, 17:14
I have given it a try, but it wasn't successful
I had a config-file, but it's failing everytime, so if someone can compile it for me, I will be very happy

Ben
12th September 2006, 17:22
Can you copy any output why it is failing and what you are doing stepy by step maybe it is easier to help then...

Is it failing while compiling or on reboot?

the87boy
12th September 2006, 17:25
Can you copy any output why it is failing and what you are doing stepy by step maybe it is easier to help then...

Shall I also copy the whole config file in here or?

Is it failing while compiling or on reboot?
It's failing on compiling

falko
12th September 2006, 18:36
It's failing on compiling
Just post this error for now.

the87boy
13th September 2006, 15:18
Now I had compiled it with just this errors, who are written in the zipped log-file, I had attached.
Now I can't remember, what I have to do, and the howto, I had followed isn't avaible more
I had compiled the kernel with this commando:
make-kpkg --revision=custom.1.0 --initrd --rootcmd fakeroot binary-arch

Shall I just use this commandoes:
dpkg -i linux-image-2.6.17.11_custom.1.0_i386.deb linux-headers-2.6.17.11_custom.1.0_i386.deb

And then just reboot or what?

Ben
13th September 2006, 15:45
Ah I thought of compiling the "real" source from kernel.org with "patching" or adding the dku2 sources....

the87boy
13th September 2006, 15:54
It was also my meaning, but I couldn't find out of how to do that, so I will make the DKU-2 driver as a module (as described on the http://www.gnokii.org/docs.shtml#dku2) when I can't find out of the other thing

Ben
13th September 2006, 16:29
Well I would use this:


Install

* Get / configure / build a set of kernel sources.
* make sure that you are running this kernel, and /lib/modules/`uname -r`/build points to the kernel sources directory
* cd $gnokii_sources/patches/kernel_2.{4,6}
* make
* Become root
* make install
* modprobe nokia_dku2
* dmesg
* Look for the lines as shown above!
* Edit .gnokiirc to include port=/dev/ttyUSB.. and connection=dku2


For the first part I would download the actual kernel image from kernel.org,
unzip it in e.g. /usr/local/src
cd into the kernel dir
if you already have a kernel config for that kernel tree (eihter 2.4 or 2.6) copy it into that dir
run "make menuconfig" and change things which you need or do not need.
then run the above steps till make (excluding make) and run
"make bzImage modules modules_install"

then follow the rest.

at least do

cp arch/i386/boot/bzImage /boot/kernel-2.X.XX.X
cp System.map /boot/System.map-2.X.XX.X
cp .config /boot/.config-2.X.XX.X

the rest depends now on your bootloader config if it is lilo or grub...

the87boy
13th September 2006, 16:36
For the first part I would download the actual kernel image from kernel.org,
unzip it in e.g. /usr/local/src
I have done that, but I had used /usr/src instead


cd into the kernel dir
if you already have a kernel config for that kernel tree (eihter 2.4 or 2.6) copy it into that dir
run "make menuconfig" and change things which you need or do not need.
then run the above steps till make (excluding make) and run
"make bzImage modules modules_install"

Wouldn't it mean, that I have to compile the kernel first to see, if /lib/modules/`uname -r`/build points to the kernel sources directory


then follow the rest.

at least do

cp arch/i386/boot/bzImage /boot/kernel-2.X.XX.X
cp System.map /boot/System.map-2.X.XX.X
cp .config /boot/.config-2.X.XX.X

the rest depends now on your bootloader config if it is lilo or grub...
Shouldn't I have installed the kernel first (the .deb-files)? I'm using grub

Ben
13th September 2006, 16:44
Well the .deb are prceompiled packages I thought...
It's now matter how you first got your kernel, if you take the one coming with debian or compile one for your self...

I thought /lib/modules/`uname -r`/build is either a symlink, but did not check that....

the87boy
13th September 2006, 16:45
Don't you have a messenger? It's much easier in that way, I think, because I'm so confused

Ben
13th September 2006, 17:00
At the moment not, I'm at work sorry. But just describe it here, maybe sb. else has any helpfull ideas...

the87boy
13th September 2006, 17:06
I will do so
Now I had download and extracted 'linux-2.6.17.13.tar.bz2'
What shall I do now?

the87boy
14th September 2006, 16:39
Shall I compile the kernel and then edit the kernel again or what do I have to do :confused:

falko
14th September 2006, 21:00
Did you have a look at this tutorial? http://www.howtoforge.com/forums/showthread.php?t=21

the87boy
14th September 2006, 21:37
Yes, but I thought, I should do something, before I had to configure the kernel

falko
15th September 2006, 20:21
No, you must compile a new kernel, and when you run
make menuconfigyou must select all kernel modules you need.

the87boy
17th September 2006, 18:13
Well I would use this:


...
* make sure that you are running this kernel, and /lib/modules/`uname -r`/build points to the kernel sources directory


Does that mean, I have to compile the kernel first or what?



* cd $gnokii_sources/patches/kernel_2.{4,6}


It's easy, but when I run the command below, it says, that there aren't no rules to create the bzImage

make bzImage modules modules_install


That's what I have done until now

the87boy
21st September 2006, 12:54
Aren't there some help?

falko
22nd September 2006, 13:52
Why don't you try this tutorial? http://www.howtoforge.com/forums/showthread.php?t=21

the87boy
25th September 2006, 13:26
I had followed it, but it comes with an error, when I had rebooted the computer, that says:
request_module: runaway loop modprobe net-pf-1
request_module: runaway loop modprobe char-major-5-1
request_module: runaway loop modprobe net-pf-1
request_module: runaway loop modprobe char-major-5-1
request_module: runaway loop modprobe net-pf-1

falko
26th September 2006, 18:29
Does it hang during boot? Otherwise, I'd ignore it.

the87boy
26th September 2006, 19:42
Yes, it stops, when that error comes
I think, it had something to do with the Cryptographic options, because it is doing it with everything in the Cryptographic options, I compile as modules
Can the reason be, that I get this error:

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.17.13; fi

When I run:

cd /usr/src/linux-2.6.17.13
sudo make modules_install

the87boy
28th September 2006, 21:07
I think, I had found the fail now
When I run the make modules_install before the make-kpkg-command (and there because the dpkg -i command), the dpkg -i command says, that the /lib/modules folder already exists
What can I have maked wrong?

falko
29th September 2006, 15:35
When I run the make modules_install before the make-kpkg-command (and there because the dpkg -i command), the dpkg -i command says, that the /lib/modules folder already exists

Did you try to run the command afterwards?

the87boy
2nd October 2006, 09:38
No, but shouldn't it run before?

falko
3rd October 2006, 18:23
No, I think you must run it afterwards.

the87boy
15th October 2006, 07:04
I cant try it now, because I'm in US now, so it's very risky to reboot a computer with a new kernel or do anybody have some tricks to do that?

falko
16th October 2006, 15:28
so it's very risky to reboot a computer with a new kernel or do anybody have some tricks to do that?
It's a trial and error thing, so if you don't have physical access to the system right now, you shouldn't do it (unless you have a serial console which lets you connect to your computer as if you were sitting in front of it, i.e. you can see the bootup process and everything else through this serial console).