Driver loading issues on Ubuntu 11.04 ( 2.6.38-8-generic #42-Ubuntu SMP)
142 views
Skip to first unread message
Gary Virta
unread,
Jun 28, 2011, 11:00:56 PM6/28/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Boltek Linux Programming
Running Ubuntu 11.04 32-bit kernel version 2.6.38-8-generic #42-Ubuntu
SMP. I'm able to successfully build the driver per the readme, but
when trying to load the ko I get an ugly oops (see below). Any advice
is appreciated.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Boltek Linux Programming
My kernel also crashes when I try to load the driver on 64-bit
Scientific Linux (==RHEL) 6 with kernel 2.6.32-131. How did you log
the crash? It doesn't end up in my system logs, even though I
configured rsyslog to log all kernel messages.
Gary Virta
unread,
Jun 29, 2011, 9:25:18 AM6/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Boltek Linux Programming
Luckily it didn't bring down the machine and I was able to I just pull
it from dmesg. I don't know if OOPSes go to syslog by default, but
there might be a trace file hanging around somewhere you can look at.
Patrick McManus
unread,
Jun 29, 2011, 9:33:53 AM6/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to boltek-linux...@googlegroups.com
in 2.6.27 the linux kernel team broke API compatibility for device_create() .. The attached patch fixed it up in the driver a couple years ago. I haven't looked at the boltek hardware since that time so I don't know if anything else would be needed today.
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Boltek Linux Programming
Thanks Patrick! I will try applying this tonight and report back...
> boltek-1.0.1-patch
> 1KViewDownload
Gary Virta
unread,
Jun 29, 2011, 1:31:20 PM6/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to boltek-linux...@googlegroups.com
That did the trick, thanks a lot!
[ 485.685411] Boltek Lightning Detector v1:1.0.1
[ 485.686113] boltek 0000:04:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[ 485.686229] Boltek Lightning Detector started at /dev/lightning-0 major 249 minor 0
Jim Hunziker
unread,
Jun 29, 2011, 2:03:55 PM6/29/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Boltek Linux Programming
The patch worked for me, too. Though when I define SIMULATE_HIT in
demo.c, I only get strikes that have valid set to 0. I'm not sure if
this is expected behavior.
Gary Virta
unread,
Jul 3, 2011, 7:25:34 PM7/3/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to boltek-linux...@googlegroups.com
BTW Patrick-
Since you appear to be the maintainer for this driver, are you in a position to help Boltek update their package with the version including this patch to help out the next guy? I got this broken 1.0.0 driver from the Linux SDK download from Boltek here (linked from their download page).