comedi drivers missing

Bug #595018 reported by SA on 2010-06-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-ti-omap (Ubuntu)
Low
Bryan Wu

Bug Description

It appears the comedi drivers are missing from the current kernels - I know large numbers of them are totally irrelevant because the hardware isn't there but some of them are relevant and would be very handy.

On Wednesday 16 June 2010 10:52:49 SA wrote:
> Public bug reported:
>
> It appears the comedi drivers are missing from the current kernels - I
> know large numbers of them are totally irrelevant because the hardware
> isn't there but some of them are relevant and would be very handy.
>
> ** Affects: linux-ti-omap (Ubuntu)
> Importance: Undecided
> Status: New

When trying to build the comedi drivers vi module-assistant it appears that
the latest omap source and the latest omap kernels do no match either!

The latest kernel is 2.6.33-501
The latest kernel-source is 2.6.32.xx, 2.6.33-501 is unavailable and I cannot
build the drivers without it...

SA (superaorta) wrote :

The source files appear to be here: but not in the repos:

https://launchpad.net/ubuntu/lucid/+source/linux-ti-omap/2.6.33-501.7

Bryan Wu (cooloney) wrote :

@SA,

Could you please tell us how did you compile the comedi drvers as modules? Normally, we cloned Lucid kernel tree here, git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git. And ti-omap branch is the kernel for omap3 based machine.

Apparently, comedi drivers are there drivers/staging/comedi. If you have problem to compile it, please post the error message here.

-Bryan

Changed in linux-ti-omap (Ubuntu):
status: New → Incomplete
importance: Undecided → Low
assignee: nobody → Bryan Wu (cooloney)

Bryan,

My apologies- this problem is now resolved but it was one of so many problems
that I forgot to close it. The details that follow are a bit vague because
the system is now packed for transit and I can't read any of the details.

The issue was the sources for the particular kernel (I can't remember exactly
2.6.33-something) I was using appeared not to be available and the staging
drivers were not in the kernel package.

I believe that part of the problem was that the comedi drivers went in and out
of the ubuntu kernel in .33 and eventually moved to staging.

I got 2.6.34 from somewhere and performed a native build on the beagleboard.
The comedi packages _do not_ compile for the beagleboard because of a
architecture dependent flag in drivers.cc. With a small and naive (but most
likely harmless) hack I got the drivers to compile and with my new kernel the
comedi drivers are now working. The matter is live on the comedi list but no
one is sure how to implement that required change - doing it "properly" is
likely to be a huge change with knock on effects, my lightweight fix is
unlikely to be accepted into the kernel.

Fortunately anything my hack could nobble lies in drivers that cannot run on
the beagleboard (because it lacks the hardware) so I am pretty sure it is
safe for anything the the beagleboard can run.

The hack, for reference, is to change the single instance
of "PAGE_KERNEL_NO_CACHE" to "PAGE_KERNEL" in the comedi drivers.c. The
NO_CACHE variant of the page protection flag is not defined for OMAP (or
several other processor) but is required for one particular PCI card on
x86. "PAGE_KERNEL" has sufficient protection for the USBDUX etc drivers.

It would be nice if ubuntu had the tool chain packaged up so that cross
compiling could be done without using OE. Frequently the various instructions
I found were rather vague. A simple script for installing the kernel and
setting up uboot would alos be nice as it is hard to remember all the magic
settings required.

I think it is safe to close this bug - sorry I forgot to do this earlier.

Cheers,

SA

On Thursday 24 June 2010 08:15:50 Bryan Wu wrote:
> @SA,
>
> Could you please tell us how did you compile the comedi drvers as
> modules? Normally, we cloned Lucid kernel tree here,
> git://kernel.ubuntu.com/ubuntu/ubuntu-lucid.git. And ti-omap branch is
> the kernel for omap3 based machine.
>
> Apparently, comedi drivers are there drivers/staging/comedi. If you have
> problem to compile it, please post the error message here.
>
> -Bryan
>
> ** Changed in: linux-ti-omap (Ubuntu)
> Status: New => Incomplete
>
> ** Changed in: linux-ti-omap (Ubuntu)
> Importance: Undecided => Low
>
> ** Changed in: linux-ti-omap (Ubuntu)
> Assignee: (unassigned) => Bryan Wu (cooloney)

Bryan Wu (cooloney) wrote :

SA,

It is good to know you solved this issue. For the Ubuntu kernel building, please take a look at this page: https://help.ubuntu.com/community/Kernel/Compile

For cross compiling, https://wiki.ubuntu.com/KernelTeam/KernelMaintenanceStarter

I will close this bug.

Thanks
-Bryan

Changed in linux-ti-omap (Ubuntu):
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers