recompile my module on boot time with kernel
Hi,
I am using FC9, I want to write a module that will always show current time after booting.But for that I need not only to load module using insmod/modprobe, but also to compile that module during boot time.How can I perform this 2 steps correctly. |
Fedora's akmod's compile during the boot process, you might want to download the source code of one of them and see how it works. Since you want to write a module, that would be a good place to start. Finding the source code for Fedora 9 might be a problem though, since it reached its end of life over a year ago.
|
Fedora 9 is No longer supported and is past it's End Of Life
PLEASE !!!!!!! install CentOS 5.4 ( if you need long life - 5 years ) or Fedora 12 if you want a life span of 13 MONTHS - (or 5 months until fedora 13 is out ) |
loading a module in FC9 at the boot time
Hi,
I fail to load a modulein FC9 at the boot time. I have written in 1>/etc/rc.d/rc.local insmod <module name> but it didn't work. 2>I also edit /etc/modprobe.conf but it also didn't work. So,I would have been grateful if someone solve my problem. |
Hi, I use Mandriva!
IN/with Mandrivs there is a file called /etc/modprobe.preload Code:
# /etc/modprobe.preload: kernel modules to load at boot time. If your edits to modprobe.conf did not work, look for a module that may be loading before, taking the place/blocking of the correct module "lsmod" usually displays such facts. Be careful of spelling, it will make a difference! Mandriva is very similar, but not the same as Fedora.(imo) Regards Glenn |
Hi ,
Thanks for replying, but FC9 doesn't have any /etc/modprobe.preload,so I can't get through the problem. |
Hi ,
Thanks for replying, but FC9 doesn't have any /etc/modprobe.preload,so I can't get through the problem. |
1 Attachment(s)
I'm not sure why you want to do this.
Do you want to see the time on the console after boot? Why not configure bash or zsh (shell) to display it for you? Or is this an excersize in making modules? I use the z shell and have it configured to show the time and coloured text. In both gui and cli modes. Quote:
|
Hi,
I have written a programme in gcc #include <time.h> #include <stdio.h> int main(void) { time_t timer; struct tm *tblock; timer = time(NULL); tblock = localtime(&timer); printf("%d",tblock->tm_mday); return 0; } It has been compiled in gcc.But in kernel space it hasn't been solved. Please can anyone suggest the kernel space version of this code. |
Hi,
I have written a programme in gcc Quote:
|
Hi,
I have written a programme in gcc Quote:
|
Gourab Das
Fedora 9 is unsupported - there are NO updates ti it and there have beed NO updates for a year now AND there WILL NEVER BE and updates to it please do your self AND THE REST OF THE NET A VERY BIG SECURITY FAVOR and install a supported version fedora 12 OR a long life distro like CentOS 5.4 or RHEL 5.4 !!!! |
All times are GMT -5. The time now is 03:20 PM. |