Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Hi. I'm trying to do my first kernel recompile, with 2.2.15 (Mandrake 7.1). Two questions:
1) The Mandrake sources include about 50 patches besides the 2.2.15 tarball, many of which seem to be for old kernel versions (e.g., 2.2.12). Is there any way to tell which of these I actually need?
2) When I tried to compile just the unpatched 2.2.15 files, I got as far as make zImage, which banged out with
make: Entering directory /usr/src/linux-2.2.15b/linux/arch/i386/boot
gcc D_KERNEL (bunch of options) bootsect.S -o bootsect.s
as86 -O -a -o bootsect.o bootsect.s
Make: as86: command not found
Make: ***[bootsect.o] Error 127
make: Leaving directory '/usr/src/blahblah'
make: ***[zimiage] Error 2
The Makefile for this boot directory has the lines
AS86 = $(CROSS_COMPILE)as86 -O -a
LD86 = $(CROSS_COMPILE)ld86 -O
Now, I understand from a previous post that as86 = assembler for 8086-80386 systems, and ld86 presumably = linker for same. But I have a system with 2 800 MHz PIII's, and as/ld instead of as86/ld86. If I replace as86 and ld86 in the makefile with as and ld, respectively, will that be OK? Or will I be messing up something? Why does it want an ancient assembler anyway - did I screw up during make config? Any info appreciated.
Answered my own question. Most info in ASSEMBLY-HOWTO. as86 != as, and as will likely not compile as86 source. as86 used mainly to generate bootloader for LILO, but may be used by other programs as well. Per HOWTO recs found stripped-down version of as86 and ld86 in bin86 v. 0.4 in my Mandrake distribution, specifically designed just for kernel compilation. Installed rpm and worked like a charm.
Re patches: found out which ones I needed the hard way - compiling a test kernel and seeing what no longer worked. Also looked at .config file and compared with Mandrake's .config files - if an option was missing from mine it probably came from a patch.
The whole kernel compilation exercise was time consuming but very educational - I highly recommend it to other newbies who want to learn more about their system.