 | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city | | 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! | | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city | | is this so hard? I didn't think it was, well, thanks anyway... | | Senior Member with 1,962 posts. | | Join Date: Aug 2002 Location: Back East,Way Back East | | 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 | | Senior Member with 521 posts. | | Join Date: Aug 2004 Experience: Networking Professional | | 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 | | Distinguished Member with 2,051 posts. | | Join Date: Nov 2002 Location: Alberta, Canada Experience: Windows: Decent. Unix/Linux: Advanced +1 | | 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. | | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city | | 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?? | | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city | | 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 07:56 AM.
| | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city | | 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..... | | Member with 55 posts. | | Join Date: Sep 2004 Location: Brazil Experience: Intermediate | | What Suse do you have? 9.1 what? Personal or Professional? | | Senior Member with 947 posts. | | Join Date: Oct 2003 Location: eternal city |
28-Sep-2004, 04:23 PM
#10 | | | | Member with 55 posts. | | Join Date: Sep 2004 Location: Brazil Experience: Intermediate |
28-Sep-2004, 05: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 | | Senior Member with 1,962 posts. | | Join Date: Aug 2002 Location: Back East,Way Back East |
28-Sep-2004, 05:28 PM
#12 | The version does'nt matter. Do a search of "kernel" . I did and it showed kernel-source.
lynch | | Distinguished Member with 2,051 posts. | | Join Date: Nov 2002 Location: Alberta, Canada Experience: Windows: Decent. Unix/Linux: Advanced +1 |
28-Sep-2004, 07: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] | | Senior Member with 108 posts. | | Join Date: Dec 2003 Location: Oz |
29-Sep-2004, 05: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 05:31 AM.
| | Member with 55 posts. | | Join Date: Sep 2004 Location: Brazil Experience: Intermediate |
29-Sep-2004, 07: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... |  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.
|
Smart Search
| Find your solution! | |
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.
| You Are Using: |
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 12:14 AM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd. | |
|