Bug 88694 - emulators/rtc: rtc kld module panic FreeBSD 6.0 kernel
Summary: emulators/rtc: rtc kld module panic FreeBSD 6.0 kernel
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-emulation (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-08 22:30 UTC by llevier
Modified: 2005-11-10 04:38 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description llevier 2005-11-08 22:30:13 UTC
When launched, the rtc module (rtc-2004.02.24.1_5) panic the FreeBSD kernel.

Unfortunately, I cant give you the panic message, it is not logged.

How-To-Repeat: start rtc module.
I need it for VMware (and so Linux compatibility).
On 4.11, it was working fine.
I moved to 5.3 than 6.0 in a single day, recompiled many things as VMware, Linux compat & rtc.
MY only problem is now this rtc module panicing the kernel.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-11-09 01:28:12 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-emulation

Over to maintainer(s).
Comment 2 Stephen Hurd freebsd_committer freebsd_triage 2005-11-09 07:57:10 UTC
Sounds like an old version of rtc is installed.  Since this is a kernel 
module, you cannot leave an old one sitting around.

Boot into single user mode, mount all the filesystems, delete the rtc 
port, then rebuild it from source.
Comment 3 Stephen Hurd freebsd_committer freebsd_triage 2005-11-09 19:14:00 UTC
Laurent LEVIER wrote:

>> Boot into single user mode, mount all the filesystems, delete the rtc 
>> port, then rebuild it from source.
>
> I did this to save my neck, but I would like to have the rtc port work.
> Maybe you should contact the maintener so he updates his apparently 
> old port?

Kernel modules MUST be updated when the kernel is.  It's not a port 
out-of-date thing, it's a module out of sync with kernel thing.  You'll 
see this behavior with any kernel modules from the ports tree (the 
nvidia drivers are another common one).  The rtc kernel module is only 
good for the kernel that was installed when it was built.

I'm using that port also, it's working fine now that I rebuilt it under 
6.0.  the only thing I could suggest is that UPDATING or possibly the 
upgrade section of the handbook include a list of ports which will cause 
problems and should be rebuilt before going multi-user.

Once again, the problem is caused by loading a kernel module for 4.x or 
5.x into the 6.0 kernel.  Rebuilding the module for the 6.0 kernel fixes 
the problem.
Comment 4 Mark Linimon freebsd_committer freebsd_triage 2005-11-10 04:37:09 UTC
State Changed
From-To: open->closed

Apparently this was a problem of trying to use an older binary with a 
current kernel.  That won't work.