You are not logged in.

#1 2005-03-25 19:41:09

big_gie
Member
Registered: 2005-01-19
Posts: 637

Can't compile/boot

Hi,

I wanted to upgrade the kernel. I was using kernel26 v2.6.10-ARCH. I've seen a how to ( http://wiki2.archlinux.org/index.php/Cu … 20later%29 ) about making an PKGBUILD for building kernels. I've modified it a bit so it would fit my needs.

After compiling/creating the new package of kernel26 v2.6.11.5 with the suspend2 patch, I've rebooted the new kernel and nothing worked. I was aware that the nvidia and ndiswrapper kernel modules woudn't work so I've downloaded the sources in advance.

I compiled ndiswrapper, but wasn't able to modprobe it. Dmesg returned some info about magic numbers. After a bit of search (with lynx... thats really not as nice as firefox! tongue ) I've found that it was because the module wasn't compiled with the same option as the kernel. The modinfo returned something like "gcc 3.4.3" but uname -a returned something like "gcc 3.4.3 SMP". I didn't understand why the kernel was compiled with SMP and not the things compiled after.

Then I told myself that I would just compile manually the new vanilla kernel, without patches and pkgbuilds, and recompile my modules. After compiling v2.6.11.5 from kernel.org and adapted the grub/menu.lst, I've booted the new v2.6.11.5 but at the module loading, the screen scrolled insanly with messages about sound modules that couldn't be loaded. I didn't let it continue and I pressed ctrl+alt+del to reboot.

Since I deleted/uninstalled the ndiswrapper that was working my good old v2.6.10-ARCH doesn't have internet access anymore. I decided to recompile the v2.6.10-ARCH. But then again, after booting that new kernel compilation, I have the same insane screen about module…

So now I'm here with a 2.6.10-ARCH kernel that cannot compile/load my ndiswrapper and nvidia modules or any new kernel because of some weird SMP flags…

What can I do??? I'm a bit desperate. Arch was my best linux experience to date…

Thank you very much.

Offline

#2 2005-03-25 22:38:46

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't compile/boot

you're in the arch kernel? try grabbing ndiswrapper from my repo in my signature... see if that helps...

can you post the exact text of the errors from make...

the only difference I can think of is that you need the kernel sources in order to compile ndiswrapper... are they properly linked at /usr/src/linux (is that right?)

Offline

#3 2005-03-25 22:51:05

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Can't compile/boot

Stupid of me!!!

When I builded the kernel, I just ran "make" and not "make modules_install".... So there where no modules for the newly compiled kernel...

After booting to the old 2.6.10-ARCH, I've ran make modules_install and I was able to boot correctly into the 2.6.11-ARCH-CUSTOM. After this, ndiswrapper and nvidia compiled successfuly.

Thanx for your help smile

Offline

#4 2005-03-25 22:58:50

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't compile/boot

you should use the kernel PKGBUILDs for building a kernel... it's much more concise and you can build upon what others have already done (check the forums for dibble's kernel PKGBUILD with automatic patching, and someone else made an interactive version)

Offline

#5 2005-03-26 11:49:23

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Can't compile/boot

Yeah but thats exactly what made my system not usable...

Managing kernels via pacman is great, but to dangerous I think...

Offline

#6 2005-03-26 20:48:32

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't compile/boot

I don't understand... how is it dangerous? how did it cause your system to be unusable? there's literally no difference between a PKGBUILD and compiling from source....

Offline

#7 2005-03-26 21:48:59

big_gie
Member
Registered: 2005-01-19
Posts: 637

Re: Can't compile/boot

I didn't understand needer, but I wasn't able to boot correctly my computer. I didn't understand what the pkgbuild was doing. Now I've studied it more and trying to adapt it.

Offline

#8 2005-03-27 11:05:11

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,436
Website

Re: Can't compile/boot

big_gie - lets be fair - you altered the PKGBUILD and broke it and that's why your system wouldn't boot - we all worked passed that now but lets have the cards on the table, eh?

Offline

#9 2005-03-27 17:50:10

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Can't compile/boot

8)

Offline

Board footer

Powered by FluxBB