linux-headers-2.6.20-14: "include/linux/mmc/protocol.h" missing

Bug #103714 reported by Hervé Cauwelier
8
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Hi,

Until linux-headers-2.6.20-12 I had the file "include/linux/mmc/protocol.h". I need it to compile the experimental driver sdricohcs (http://sourceforge.net/projects/sdricohcs/).

With 2.6.20-13 and 14 I see two new headers "core.h" and "sd.h". But the API changed too much to compile sdricohcs.

Oddly enough, looking the kernel gitweb for 2.6.21 and the mmc branch, "protocol.h" is still present and no trace of "core.h"

Where these changes come from so I can update the API usage?

Revision history for this message
Jason Fergus (leech-sisna) wrote :

I was just bitten by this one as well. What's with the change, I didn't think the API would change between a simple Ubuntu revision. Hopefully soon the sdricoh_cs driver will be included into the kernel, for now it simply doesn't work (I have an Asus z71v and it's reported that this driver will work for the card reader inside it on the sdricoh forums.

Leech

Revision history for this message
Hervé Cauwelier (hcauwelier-deactivatedaccount) wrote :

Thanks for the news Jason. I was worrying the CVS hasn't changed for 3 weeks but you bring good news.

Revision history for this message
TomasHnyk (sup) wrote :

http://sourceforge.net/forum/forum.php?thread_id=1717110&forum_id=669719 - this brings some light into the question, as well as this http://ubuntuforums.org/showthread.php?p=2653995. By all means,this is not a bug in Ubuntu but in the upstream driver, and it will have no effect as soon as Ubuntu uses 2.6.22 kernel. Also, upstream knows about it.
(workaround:
-Download the latest SVN version
-Open the sdricoh_cs.c file
-find the reference to protocol.h
-comment out all the if kernel_version stuff around it
-make sure that sd.h is not commented out
-make, sudo make install
credits: evilmonkey of ubuntuforums)

Changed in linux-source-2.6.20:
status: Unconfirmed → Rejected
Revision history for this message
jevgtv (tugevus) wrote :
Download full text (4.9 KiB)

I experience the same problem in 12.04

jevgtv@jevgtv-HP-Compaq-6910p ~ $ cd Downloads/
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads $ cd ricoh_xd_3/
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ ./make && sudo make install && sudo make load
bash: ./make: No such file or directory
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ make
make -C /lib/modules/3.2.0-23-generic/build M=/home/jevgtv/Downloads/ricoh_xd_3
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-23-generic'
  LD /home/jevgtv/Downloads/ricoh_xd_3/nand/built-in.o
  CC [M] /home/jevgtv/Downloads/ricoh_xd_3/nand/nand_base.o
In file included from /home/jevgtv/Downloads/ricoh_xd_3/nand/nand_base.c:42:0:
/home/jevgtv/Downloads/ricoh_xd_3/include/linux/mtd/mtd.h:16:33: fatal error: linux/mtd/compatmac.h: No such file or directory
compilation terminated.
make[3]: *** [/home/jevgtv/Downloads/ricoh_xd_3/nand/nand_base.o] Error 1
make[2]: *** [/home/jevgtv/Downloads/ricoh_xd_3/nand] Error 2
make[1]: *** [_module_/home/jevgtv/Downloads/ricoh_xd_3] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
make: *** [build] Error 2
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ ./configure
bash: ./configure: No such file or directory
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ ./make && sudo make install && sudo make load
bash: ./make: No such file or directory
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ sudo !!
sudo ./make && sudo make install && sudo make load
[sudo] password for jevgtv:
sudo: ./make: command not found
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/ricoh_xd_3 $ cd
jevgtv@jevgtv-HP-Compaq-6910p ~ $ cd Downloads/
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads $ cd sdricoh_cs-0.1.4/
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/sdricoh_cs-0.1.4 $ make
make -C /lib/modules/3.2.0-23-generic/build SUBDIRS=/home/jevgtv/Downloads/sdricoh_cs-0.1.4 modules
make[1]: Entering directory `/usr/src/linux-headers-3.2.0-23-generic'
  CC [M] /home/jevgtv/Downloads/sdricoh_cs-0.1.4/sdricoh_cs.o
/home/jevgtv/Downloads/sdricoh_cs-0.1.4/sdricoh_cs.c:34:29: fatal error: pcmcia/cs_types.h: No such file or directory
compilation terminated.
make[2]: *** [/home/jevgtv/Downloads/sdricoh_cs-0.1.4/sdricoh_cs.o] Error 1
make[1]: *** [_module_/home/jevgtv/Downloads/sdricoh_cs-0.1.4] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-3.2.0-23-generic'
make: *** [default] Error 2
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/sdricoh_cs-0.1.4 $ make install
if test ! -d /lib/modules/3.2.0-23-generic/kernel/drivers/mmc ; then mkdir -p /lib/modules/3.2.0-23-generic/kernel/drivers/mmc ; fi
install -D -m 644 *.ko /lib/modules/3.2.0-23-generic/kernel/drivers/mmc
install: cannot stat `*.ko': No such file or directory
make: *** [install] Error 1
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/sdricoh_cs-0.1.4 $ sudo modprobe sdricoh_cs
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/sdricoh_cs-0.1.4 $ lsmod | grep ricohsdricoh_cs 12953 0
pcmcia 39791 2 sdricoh_cs,pata_pcmcia
jevgtv@jevgtv-HP-Compaq-6910p ~/Downloads/sdricoh_cs-0.1.4 $ lspci | grep Ricoh
02:06.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b9)
02:06.1 CardBus bri...

Read more...

Changed in linux-source-2.6.20 (Ubuntu):
status: Invalid → New
affects: linux-source-2.6.20 (Ubuntu) → linux (Ubuntu)
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 103714

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.