You are not logged in.
Pages: 1
Hi there!
I'm new to AL, so this might also be a newbie question, but noone could help me so far.
to get to the point, everytime i try to compile an ARCH kernel with:
"make && make modules modules_install"
i get an error concerning the Makefile:
[root@portdemonia linux]# make && make modules modules_install
CHK include/linux/version.h
CHK include/asm-i386/asm_offsets.h
scripts/Makefile.build:13: init/Makefile: No such file or directory
make[1]: *** No rule to make target `init/Makefile'. Stop.
make: *** [init] Error 2
I'd be very glad if anyone could help me out there
Offline
Have you tried using ABS ...??? or even srcpac ???
Mr Green
Offline
no i actually didn't, i expected that binary package to work...
and i believe i definitly should be able to compile a kernel if i just use that package... or am i wrong?
installing a custom kernel isn't what i want, only 2.6.10-ARCH would be quite nice...
do u think this might work using abs??
Offline
errm if you just want a stock kernel then
pacman -S kernel26
HTH
Mr Green
Offline
that is my problem!
if i do "pacman -S kernel26' i get a dir /usr/src/linux-BLA
then i do 'make menuconfig' and edit my modules... but THEN if i want to compile the bzImage i get the error described above...
Offline
working fine here ....
have you done a
pacman -Syu
...
first ?
Mr Green
Offline
yep i did...
Offline
using
pacman -S kernel26
package should load & install itself ...
other than updating grub (if required) or running lilo as root ... you should be able to boot into 2.6.10 ...
Can you load any other packages without any problems ?
Mr Green
Offline
so the stock kernel is built by
pacman -S kernel26
but i want to adapt it, there's millions off modules that nobody really needs. so i do
cd /usr/src/linux-2.6.10-ARCH/
make menuconfig
make && make modules modules_install
can't i do that?
the package kernel26 installs just fine, just like anything else
the error occurs when i want to compile the kernel
Offline
The kernel source is not installed in /usr/src/linux-2.6.10-ARCH when you install the kernel with pacman. Those are just the header files. You need to download the kernel source from www.kernel.org
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
Then this should be changed:
[root@portdemonia linux-2.6.10-ARCH]# pacman -Ss kernel26
current/kernel26 2.6.10-1
The Linux Kernel and modules (IDE support)
:twisted:
Offline
:cry: ....
Read up about ABS look in Wiki (search for kernels) ...
If you must build you kernel from scratch grab sources first .....
Good Luck
Mr Green
Offline
@craw
Believe me, you don't want to build the kernel the old fashioned way.
It's messy, really messy (IMO).
"pacman -S kernel26" grabs the latest kernel (as the description says: kernel and modules) binaries.
I suggest you try using ABS.
As root run "abs".
It will grab the latest PKGBUILDs & additional files for all the packages from the repositories.
1, go to "/var/abs/kernels".
2. copy "kernel26" directory to /var/abs/local/kernel26-myversion (or whatever you want to call it).
3. Modify the PKGBUILD inside: replace "yes "" | make config" line to be more precise with something within your likes, such as "make xconfig"/"make menuconfig" or even "make oldconfig", to use as base the ArchLinux "config" file there.
4. save the PKGBUILD
5. modify the "config" file in that directory, this line to be more precise: CONFIG_LOCALVERSION="-ARCH" / replace ARCH with something else (I don't know how effective this is when you start a new config)
6. run "makepkg" in that directory
7. during the build process, you'll be shown the interface to choose what/how to install
8. in the end you'll have a brand new ArchLinux package with your kernel. You'll be able to install it using "pacman -A whatever_your_pkg_is_named.pkg.tar.gz"
This way, if you choose to remove it/update it, your system will stay clean because the files in the pkg are kept in pacman's DB.
But.. the best thing is to read about ABS first. Good luck.
Enjoy afterwards.
:: / my web presence
Offline
thx a lot guys!
real nice community.
i know i have to get rid of my "gentooistic" behavior.
i'm starting with getting used to binaries
Offline
You might have a look over srcpac (search the forums), a tool which automatically customizes the default PKGBUILDs, builds the packages and installs them automatically when you update.
srcpac is actually a pacman wrapper, incapsulating all the pacman's cmd line params, with added functionality of compiling on the spot packages which are "marked" with "compile this one, changing these lines in the PKGBUILD" - the rest are downloaded from the repositories.
:: / my web presence
Offline
Pages: 1