Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recompiling Kernel

Status
Not open for further replies.

sedawk

Programmer
Feb 5, 2002
247
US
I had a thread on laptop battery meter. It seems all utilities need to be recompiled after obtaining service patch, eg.,ACPI. How does the recompiling process work?

I mean, say, I have a battery meter patch algorithm is only to compute the battery usage by counting how many processes are active then give out the battery power left.Or it may be just a dameon running,say every 30 seconds to check how many processes are active. A simple one, no BIOS data fetching(not technical terms), how can I recompile it in this case?

I just want to know the process. In between there maybe many APIs or Kernel interference, What are the most simplest one?

Enjoy.
 
Daniel,

This is a long article. I only can digest part of them.

1. Kernel recompiling is needed when upgrading old version(kernel). The new updates can be found on certain links. Are there regular alterts from Linux users?

2. I think the example I raised can be fit on the section "loadable modules". So I can insert anything by writing my own *.c file then follow the instructions for loadable modules?

3. The article didn't show how and where to find relative patches.

4. Someone told me a while ago, RH 9 can only see windows FAT32 file system but not NTFS when doing dual boot systems. So what the example in the article about Kernel modules for NTFS?
 
RH9 does support NTFS - if you need to load the module, you can use "modprobe ntfs".

NTFS has been supported for a while, but as an "almost stable" readonly module, and an unstable read-write module,

<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Building your own kernel is no trivial task, the first times you would probably want to load a working configuration and enable only the options you need. With RedHat, you can load their kernel configuration from [tt]/boot/config-`uname -r`[/tt].

//Daniel
 
Thanks both of you.

I'd like to detour a little bit on this question:

Marc said this NTFS had been supported for a while but as stable readonly module whileas unstable read-write module. I want to dig further since when I installed RH 9, I converted NTFS to FAT32 becuase of the saying I posted on my previous thread. Now it seems this process is redundant. I just want to confirm:

So NTFS and FAT32 are exactly the same in RH 9 dual boot system?

Thanks.
 
NTFS has no write support in Linux. Writing to your NTFS partition can destroy any data on it. FAT32 is *always* the better of the two for Linux.
 
Hey, less of the 'always'!

The NTFS project is ongoing; now that read support is stable, a lot of work is going into the read-write module.

More info can be found on the Linux-NTFS project site:


<marc> i wonder what will happen if i press this...[pc][ul][li]please give feedback on what works / what doesn't[/li][li]need some help? how to get a better answer: faq581-3339[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top