installing linux from source code
Hi all,
I am trying to install linux from its source code. After running make bzImage and adding its path in menu.lst file of grub when I boot this kernel, than many of the functionalities do not work like mouse, low graphics mode is enabled etc... I use make oldconfig to configure. Please help.......... Regards _Linux_Learner |
AFAIK: make oldconfig looks for an old configuration file (.config or .config.old). If you don't have one then it won't help. You now need to go through and make menuconfig to make sure you got everything.
Note: you should also say where you got your kernel and what version it is. |
Quote:
I haven't ever tried it, but this might help: http://www.linuxfromscratch.org/lfs/ |
Quote:
As far as LFS goes I don't think the OP is talking about building an entire distro from source although in the title it sounds that way. It sounds like OP is just trying to roll his own kernel. While LFS is in large part following directions, it's probably a little involved for a brand new linux user. What tutorial or HOW-TO is being followed and what kernel version is presently installed as well as the version being added. Are you using proprietary video drivers at all? |
reply
Quote:
Currently I am using ubuntu 9.04 and the kernel version is 2.6.28-18-generic and I am trying to compile linux 2.6.32.8 version..... Regards _Linux_Learner |
I'm no expert, but I've rolled several kernels in the last 6 months (the latest one was actually the oldest one yet, 2.6.27.4 for LFS, which I finished the 6.4 book today............AND IT BOOTED! Sorry, but I had to tell someone). The obvious points to look at are going to be in the build configuration stage. If you were following an online how-to or tutuorial please post the link. I'm thinking that maybe there was a problem with
Code:
make oldconfig Code:
make oldconfig #hit enter for defaults to all the new options The above should work fairly well, the wildcard being does your distro use a heavily patched kernel where those patches aren't available in the vanilla kernel from kernel.org? |
Second that - advise as post #2 stands:
Check you have a .config file in your source - if so, redo from make oldconfig. Either way, do a make menuconfig to make sure all the needed drivers are present. If you have working kbd, then try manually loading the extra modules. |
Quote:
"oldconfig" is a target that takes a config file from an older kernel and configures it to fit the current sources. The problem is that in between .29 and .32 a lot (and I really mean A WHOLE LOT) of things changed. Your best bet, if you are using a .28 kernel, is to pick the latest 2.6.28 kernel from kernel.org. Download, save and uncompress it. Boot your regular Ubuntu kernel, then go to the directory where your new kernel sources live and do this: Code:
zcat /proc/config.gz > .config Code:
make && make install modules_install |
no config.gz
Code:
zcat /proc/config.gz > .config regards _Linux_Learner |
Oh, yet another "smart" thing from the Ubuntu guys, it doesn't surprise me at all. That means that you won't be able to retrieve your current kernel config, so you'll have to configure the kernel yourself, or pick a working .config file from another distro you've got installed.
|
The easiest way to "add a system call" is actually to implement a kernel module. Also, it is easiest to define a "virtual device" that you can talk to via ioctl() calls.
|
Quote:
Code:
/mnt/Lucid/boot$ ls |
Back To Track
Hi all
Sorry for late resume but I faced a number of problems while going through this process of adding system call. But the result is still I didn't get the answer.......... Is there any command in linux to check all available system calls in linux kernel.... Thanks in advance |
Quote:
Quote:
|
Quote:
Regards _Linux_Learner |
All times are GMT -5. The time now is 03:54 AM. |