There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop driver drivers error ethernet excel freeze gaming hard drive hardware hdmi internet java laptop malware memory monitor motherboard music network obp printer problem ram registry repair router slow software sound toshiba trojan usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
where's the kernel???

Reply  
Thread Tools
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
22-Sep-2004, 09:52 AM #1
where's the kernel???
Hi,

Im trying to understand where to find the kernel source in my suse linux 9.1
I've to compile the kernel in order to use my adsl modem, I understood that the source code is under /usr/src , but here I've found only packages, and under packages there are: build, rpms, sources, specs, srpms ... but they are all empy besides RPMS!!! what is this?
And under RPMS there are: athlon, i386, i486, i586, i686 (what are those??) , noarcj
So, I can't find this kernel source!!!
can anybody help me?
thanks!
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
23-Sep-2004, 04:41 AM #2
is this so hard? I didn't think it was, well, thanks anyway...
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
23-Sep-2004, 05:41 AM #3
Try installing the kernel sources through YaST2. If you're not sure what version you have type uname -r at a command prompt.
In YaST2, in the Install and Remove Software utility, type kernel-source in the search field and choose the one that matches your uname -r results. Make sure while your there that you have gcc installed as well.
HTH
lynch
__________________
seldom right,but never in doubt...
Here's a few links I find helpful:
Intro to Linux:A Hands-on Guide
USALUG
A little Linux help
OpenSUSE help+
Bash Commands
5mi11er's Avatar
Senior Member with 521 posts.
 
Join Date: Aug 2004
Experience: Networking Professional
23-Sep-2004, 03:43 PM #4
The answers to all your questions are easily found via google. Read a bunch of the resources available, then ask us about the things you're still hazy about.

-Scott
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
27-Sep-2004, 10:22 PM #5
Once your sources are installed, they should be located in /usr/src/linux. From there you can type in make [menuconfig|oldconfig|xconfig] to get your own custom kernel going.
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
28-Sep-2004, 08:13 AM #6
After doing the search of kernel with YaST2, I've found several voices regarding the kernel, one of which is kernel-default. I didn't find any kernel-source
But still, I can't open that file, I have several options in the bottom of the box: description, technical data, dependencies, version.
I cant open anything.
Where is the kernel??
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
28-Sep-2004, 08:22 AM #7
Also, I need to compile my kernel because I can't access the internet otherwise. But the ironic thing is that all the guides on the web are telling me to download the kernel if I don't have one. But how can I download it if I can't access the internet?
I don't even know how to import it from a usb pen for example, considering that I don't know how to configure linux to make it read a usb pen....
-------
the only thing which looks like a linux code, is located in /usr/bin which is full of uncomprehensible files
and other things are in /usr/i586-suse-linux
which includes the following folders: bin, include, lib

Ok, am I in the right path? It's full of files, which ones do I have to open in order to configure the kernel?

Last edited by number; 28-Sep-2004 at 08:56 AM..
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
28-Sep-2004, 10:10 AM #8
another doubt, considering that the directory /usr/src/linux/ (where I am supposed to find the kernel source code) does not exist, do I have to create it and unpack the kernel source from the CD of SuSe?
The point is that even in the installation CD I cant find the source.....
dago's Avatar
Member with 56 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
28-Sep-2004, 03:00 PM #9
What Suse do you have? 9.1 what? Personal or Professional?
number's Avatar
Senior Member with 947 posts.
 
Join Date: Oct 2003
Location: eternal city
28-Sep-2004, 05:23 PM #10
it's Suse 9.1 personal
dago's Avatar
Member with 56 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
28-Sep-2004, 06:18 PM #11
Well, I don't have that so I cannot tell you if Suse Personal has kernel-source or not.

Anyways, what is your kernel version? Post what you see with command
Quote:
uname -r
lynch's Avatar
Senior Member with 1,962 posts.
 
Join Date: Aug 2002
Location: Back East,Way Back East
28-Sep-2004, 06:28 PM #12
The version does'nt matter. Do a search of "kernel" . I did and it showed kernel-source.
lynch
Whiteskin's Avatar
Senior Member with 2,051 posts.
 
Join Date: Nov 2002
Location: Alberta, Canada
Experience: Windows: Decent. Unix/Linux: Advanced +1
28-Sep-2004, 08:14 PM #13
Or, should you not be able to find it, after seeing the output of 'uname', go to kernel.org, download the bz2 archive containing that package. Copy it to your pen drive.

Insert pen drive in linux box. Dmesg should (but not always) give something like ' usb connect at adress 1-1'

do the following command as root. 'mkdir /mnt/pendrive && mount -t vfat /dev/sda1 /mnt/pendrive'

That should mount your pen drive to /mnt/pendrive.

Navigate over to it.

Copy the linux sources tarball to /usr/src. Extract it using the command 'tar xvfj /usr/src/linux-kernel-2.4.blah.blah blah.

THis will create a versioned directory called linux-2.blah blah.

next, ln -s /usr/src/linux-blah /usr/src/linux. Then, change directory into linux, and run make [menuconfig|oldconfig|xconfig]
__________________
emerge world_domination;
Smart Questions gentoo
Ubuntu
linux google:Shiny!
short101's Avatar
Member with 108 posts.
 
Join Date: Dec 2003
Location: Oz
29-Sep-2004, 06:06 AM #14
short101
Obviously you can get on the net, otherwise you wouldnt be able to post. So if you are dual booting or using another machine, just download the kernel source file (which should be something like "kernel-source-2.4.25.tar.gz", or whatever your kernel is) Then once you have downloaded it just burn it to cd, Or if you have dual boot, put it on your partition that both can read (ie, I have a fat32 partition that I can access all my music, movies, files, with windows and linux) Then all you have to do (either way) is copy it to your /usr/src directory and then uncompress it. If you run kde or gnome as desktops you can even do it without having to use the terminal if thats too much for you. Then once you have uncompressed it, (not sure about suse) you have to set a symbolic link. This is easy, from the terminal just type
"ln -s /usr/src/kernel-source-xx.xx.x /linux"
This adds "linux" in your /usr/src directory. If you open a file browser, and go to /usr/src you will see a new folder called "linux"
Then once you have done that you cd to the linux directory
"cd /usr/src/linux"
then its a matter of setting your kernel options with either make menuconfig, make xconfig, or whatever you want to use to configure your kernel. Make sure you read the options for each option or you will end up doing it a lot of times. Then compile it. If you dont know how to download your kernel source though, then you are probably going to run into problems. For example you need to install a few apps to get the thing configured in the first place. First start with your install cd and install make, gcc, bin86, libc6-dev,tk8.3 and if you are using 2.6 kernel then you also have to install qt libraries for make xconfig. (this is whats needed for debian but I wouldnt be surprised if its needed for suse to, to configure kernels) Anyway I think you should do a bit of reading before you tackle this one. It shouldnt be to hard to find your kernel source on the internet. All you have to do is type "suse kernel-source.xxxxx" If you cant find it then, maybe linux is a bit beyond you. Not trying to be nasty, but it really isnt very hard. Try slowing down a bit. I know your probably keen as mustard to get your box working with linux ( I was exactly the same trying to get my winmodem working with linux, cause, whats the point if you cant get on the net with it?), but if you google, almost always there will be an answer out there. Try reading the suse documentation on there website about downloading stuff and about basic compiling or google "suse kernel compile" and you will come up with a wealth of info. Its just a matter of reading and eventually it will all gel.

Last edited by short101; 29-Sep-2004 at 06:31 AM..
dago's Avatar
Member with 56 posts.
 
Join Date: Sep 2004
Location: Brazil
Experience: Intermediate
29-Sep-2004, 08:50 PM #15
number,
indeed the kernel-source may be different than kernel version, but give the one you have and I'll send you the link to download the precise one for you...
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 04:04 AM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.