From: Suso <suso@suso.eigenmann.indiana.edu> Newsgroups: suso.linux-help Subject: Kernel compilation (WAS: Re: configuring sound and modem capabilities) Date: Sun, 15 Nov 1998 22:52:00 +0000 Organization: A poorly-installed InterNetNews site NNTP-Posting-Host: suso.eigenmann.indiana.edu In-Reply-To: <364B5E06.9DEF706A@yahoo.com> Xref: news.suso.org suso.linux-help:26
Peter, Fortunately you won't need to understand C or any programming language to compile the kernel. When you compile the kernel all you are doing is running a compiler program that translates the source code into a binary file. Here's a summary of the basic steps in kernel compilation: - Download the .tar.gz file for a kernel. You should get linux-2.0.35.tar.gz since it is the latest stable kernel. - run 'cd /usr/src/'. Now remove the symbolic link called linux that points to your current linux kernel source directory. Type 'rm linux'. - now make a directory called linux-2.0.35 and make a symlink to that directory called linux. Like this: mkdir linux-2.0.35 ln -s linux-2.0.35 linux - Change into the linux directory and type 'make menuconfig' or 'make xconfig' if you're in Xwindows. Here is the part were you choose what options you want in your kernel. Until you know more about all the hardware, you can leave most of it alone with the exception of the PPP support in Networking and the Sound support. 'M' stands for modules and basically means that it will be compiled as a loadable driver. When you are done just save changes and exit. - Now you need to run these commands: make dep make clean make modules make modules_install make zImage 'make zImage' is the make target that actually compiles the kernel image. It will take about 10-30 minutes to compile the kernel depending on your machine. - Once it's done it will put the new kernel image in a file called '/usr/src/linux/arch/i386/boot/zImage'. You will need to copy this file to the /boot directory like this: cd arch/i386/boot cp zImage /boot/vmlinuz-2.0.35 - Now you'll want to edit the '/etc/lilo.conf' file to add the new kernel image. Use something like pico, vi or emacs to edit the lilo.conf file. Put this add the end of the file image=/boot/vmlinuz-2.0.35 label=linux35 root=/dev/read-only Make sure that for the root= argument that you use the device number that your / partition is on. - Now run 'lilo' and you should see it confirm the new images. You can now reboot and when the lilo boot: prompt appears type type in linux35 and hit enter. That should be all there is. A reading of the Linux Kernel HOWTO is a very good idea. At least a skimming over is in order. Good Luck, Suso On Thu, 12 Nov 1998, peter hanson wrote: > i am really sorry. i am still too new to linux to know how to compile > things.. i am currently trying to learn C, and i have made my first > program, but i cant run it for some reason. i am also new to > programming, so i would like help on that. could you please tell me how > to compile/recompile programs so i can run them, and walk me thorugh the > kernel comilation? thank you very much, > peter hanson > > Suso wrote: > > > Peter, > > > > Great, I'm glad you could get these specs. Sorry this took so long > > for > > me to get around to this(I had A LOT of distractions this week). > > First > > I'll explain the modem part then the sound card. > > > > Modem: > > > > First you'll want to configure the kernel for PPP support and > > serial > > port support. Recompile it. Now find out what IRQ and IO number and > > COM > > port your modem is using. If you're also using windows95 on that > > machine > > you can reboot into windows and check the numbers in the systems > > control > > panel. Write these numbers down and go back into linux. > > > > You didn't say whether the modem was plug and play or not so I'm > > going > > to assume that it isn't, if it is then you'll want to read the isapnp > > man > > pages by typing 'man isapnp' and 'man isapnp.conf'. > > > > After you've recompiled the kernel and all you should be able to > > reboot > > into Linux and type 'lsdev' and your modem will show up as a Serial > > device with the same IRQ and IO port that you wrote down. What you can > > do > > now is make a symbolic link to the COM port using the cua[0-3] > > devices. If > > your modem is on COM3 you'd link it to /dev/cua2. If it was on COM1 > > you'd > > use /dev/cua0, etc. The linking command is done like this: > > > > cd /dev > > ln -s cua0 modem > > > > Now you're ready to setup PPP. If you're using RedHat Linux you can > > just > > go into X windows as root and open up the control-panel. In the > > control > > panel is a icon for networking. You can click on this, then click on > > the > > interfaces button at the top. In here, add an interface of type PPP. > > You'll be prompted for things like the phone number and your username > > and > > password. After putting these in click ok and save the configuration. > > Now > > go back to the first button of the netconfig window and put in your > > name > > servers and domain name information. > > > > Once all this is done you should be able to just type in 'ifup ppp0' > > as > > root and you'll hear the modem dial out. If you don't, you might check > > if > > the modem is Plug and Play and check to see if the modem dials out > > using > > the 'minicom' program. > > > > Sound: > > > > Depending on whether the sound card is Plug and Play(PnP) or not > > you'll > > need to read about pnpisatools. > > > > If the sound card is not PnP you can configure it from within the > > kernel > > configuration. First find out what IRQs, DMAs and IO channels your > > card > > uses by checking out the manual or checking those settings from within > > > > Windows95. I'd rely more on the information in the manual first > > though. > > > > Go into the kernel configuration and enable support for the > > following > > things: > > > > Sound card support > > Generic OPL2/OPL3 FM Synth > > MPU-401 support > > /dev/dsp and /dev/audio support > > MIDI interface support > > FM Synthesizer(YM3812/OPL-3) support > > > > Then put in the values for the IObase, DMA, etc. setting in the > > proper > > boxes under the MIDI support for the card. After saving the config and > > > > recompiling the kernel you should be able to reboot and type 'lsdev' > > and > > see that you have supported sound hardware. If you don't, you might do > > a > > search on the internet for your hardware and Linux. You could also try > > > > using the well known software OSS(Open Sound System). That you can get > > a > > free trial on to test your hardware under Linux. Their website address > > is: > > > > http://www.opensound.com/ > > > > > > > > Good luck with both your modem and sound. Let me know how things go > > or > > if you have any further questions. > > > > Thanks for your time and enthusiasm, > > > > Suso > > > > On Sat, 7 Nov 1998, peter hanson wrote: > > > > > ok, sorry i was late in getting my information on my sound card and > > > modem... > > > > > > E-Tech, Inc > > > fax+voice modem > > > PC336RVP-cd > > > 336. kps, internal > > > > > > Yamaha OPL3-SAx 1.0.00 > > > sound, video game, and joystick interface > > > Genius Soundmaker 3DX > > > 16 bit, fullduplex MPU-401 > > > > > > ok, i hope that is helpful enough, i await your reply!! > > > > > > peter hanson > > > > > > > > > > > > Suso wrote: > > > > > > > Peter, > > > > > > > > Thanks for posting your question here. Modems and Sound Cards > > are > > > > usually the first culprits for being Plug and Play. Instead of > > > > explaining each possible senario and how to solve it, it would > > would > > > > be better if you could let us know what brand and model of sound > > card > > > > you have. Also find out if the cards are PnP, PCI or ISA, etc. > > Also > > > > it's important to know whether the Modem is internal > > > > or external. > > > > > > > > Once you provide this information I'll be able to give you a > > much > > > > better and more detailed answer. > > > > > > > > Thanks for your patience, > > > > > > > > Suso > > > > > > > > On Sun, 01 Nov 1998 20:29:38 -0500, peter hanson > > > > > > wrote: > > > > >wowo, i haven't been on in SO long!! ok, anyway, i was wondering > > how > > > > to > > > > >configure sound on my linux/nt box. i have the installation guide > > > > > > with > > > > >all of those helpful tips-and-tricks on how to get things done in > > > > > > linux, > > > > >and i haven't been feeling very tippy or tricky with it lately. i > > > > > > just > > > > >got X-windows up and running (which was a big feat for me, it was > > > > > > >broken!) and i looked into the control panel, and then modem > > > > >configuration. then i clicked on the COM1 under MS-DOS, and can > > you > > > > >believe it!? It Doesn't Do Anything!! well, that was my first > > > > problem. > > > > >my next problem is with my sound. first of all, i was at the > > shell, > > > > and > > > > >ran /usr/sbin/sndconfig, and then i entered in my sound card > > > > >specifications, but when i click on OK, i get an error message > > > > >complaining about mod (im sorry, but i forgot the name of the > > thing > > > > >other than mod, its been a while when i tried it, and im in NT > > > > >now....oops)something or rather not working.. i need help, and > > i'd > > > > >appriciate it if someone would! > > > > > > > > > >thanks, > > > > > peter hanson > > > > > > > > > > > > > > > > > > > > > > > > >