Sep
15
2008
0

Building kernel source tree from *.src.rpm

kernel-source package provides patch applied source code:

rpm2cpio kernel-source-2.4.21-27.0.2.1.7.EL.i386.rpm | cpio -idmv

The src rpm does provide the base source and patches:
rpm -i kernel-2.4.21-27.0.2.1.7.EL.src.rpm
/>> This installs the base kernel and the *.patch separately
cd /usr/src/redhat/SPECS/
rpmbuild -bp kernel-2.4.ora-27.1.7.EL.spec

If Architecture is not included: i386
rpmbuild -bp –target i686 kernel-2.4.ora-27.1.7.EL.spec

/>> This installs the patches and provides the actual kernel tree
cd ../BUILD/kernel-2.4.21/linux-2.4.21

Share
Written by in: kernel,linux | Tweet This
Sep
15
2008
0

Unconditional Shutdown on PC HW

Uhm .. My home PC screwed up ..

It kept shutting down even starting Debian in addition to Windows XP.

That
had happened before due to a dangling CPU fan before, and I had
replaced the fan with a state of the art double 2000+ RPM one .. But no
problem with that now ..

After sometime, I could not even boot anything up.

I have decided to take out every component and start adding one by one..

The
problem seems to be something about the power supply.. I think the
switch at the back has a problem, because whenever I use it, I need to
wait for a couple of minutes before I can hit the usual power button to
start up.

After adding everything again, it seemed OK.

That night I left the Debian up, but in the morning I saw that it was shutdown and trying to reboot hopelessly.
I tried again by disabling “Reboot with power problem” option in BIOS.. Happened again the other night.

Last day I left Win XP up, and nothing happened. It just dont make sense.

I restarted Debian and it was OK in the morning .. I’m waiting for the evening to see..

Share
Sep
15
2008
0

Interested in Linux Kernel Module Programming?

See http://www.tldp.org/LDP/lkmpg/. An excellent and simple resource. Keep your good C programming skills and stick to them.
Now you will live on the dangerous side of things where a SEGV is a system crash 🙂

“Understanding
the Linux Kernel” by Daniel P. Bovet, Marco Cesati is a very good book
to dig into the stuff. Have a look for sure…..

Share
Written by in: kernel | Tweet This
Sep
15
2008
0

Timestamps and dmesg on Linux

The dmesg on Linux does not have timestamps. dmesg is the kernel ring
buffer and it is not a logfile. To see timestamped log files on Linux
goto /var/log and see other logs than messages*

The dmesg has
timestamps on Solaris. Because it is just a script processing the
system logs. Let’s compare apples to apples… Linux does the right
thing here 🙂

Share
Written by in: kernel | Tweet This

Powered by WordPress | Theme: Aeros 2.0 by TheBuckmaker.com