An introduction to Linux Device Drivers - #1

Today we’ll be discussing a basic c code, the famous hello.c, which will be loaded as a kernel module and discuss some of the basic aspects related to it. #include <linux/init.h> #include <linux/module.h> MODULE_LICENSE (“GPL”); // included in module.h, tells about the license the code is having. static int __init hello_init (void) { printk (KERN_ALERT “Hello, worldn”); return 0; } static void __exit hello_exit (void) { printk (KERN_ALERT “Goodbyen”); }...

January 29, 2010 · Ratnadeep Debnath

Resolved Kernel boot problem :D

I am using Fedora 10 and I was running the kernel 2.6.27.15-170.2.24.fc10.i686 and I was happy until I did a ‘yum update’. My kernel got updated to kernel 2.6.27.19-170.2.35.fc10.i686, and then the system won’t boot the latest kernel. While booting it gave a mesage : Unable to access resume device (/dev/dm-1) mount : could not find filesystem ‘/dev/root’ I wondered what had happened? But, the old kernel 2.6.27.15-170.2.24.fc10.i686 seemed to work perfectly....

March 11, 2009 · Ratnadeep Debnath