kldload exec format error on amd64 freebsd-7.1-rc2

From: Christof Schulze <christof.schulze_at_gmx.net>
Date: Sun, 4 Jan 2009 01:11:07 +0100
Hello Everyone,

this is my first post to the list so I hope I am not asking a dumb
question even though I searched.

I am trying to get the Ricoh SD Card reader
sdhci0_at_pci0:5:9:2:      class=0x080500 card=0xc024144d chip=0x08221180
rev=0x18 hdr=0x00
to work with the driver written by Alex Motin.
The sdhci and mmc code compiles fine and loads into my kernel.
The mmcsd module which as I understand things is needed to recognize
an inserted SD Card, attach a device name to it etc compiles fine (I
ran make clean beforehand) but I cannot kldload it:

# kldload mmcsd
kldload: can't load mmcsd: Exec format error

# dmesg |tail
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
g_vfs_done():acd0[READ(offset=530432, length=2048)]error = 5
link_elf_obj: symbol kproc_create undefined
kldload: /boot/kernel/mmcsd.ko: Unsupported file type
link_elf_obj: symbol kproc_create undefined
kldload: /boot/kernel/mmcsd.ko: Unsupported file type

I ran out of ideas and things to try so maybe someone on this list
still has more ideas than I do and is willing to share them.
I would greatly appreciate it and of course I will provide further
info if needed.

These are the stats for the system:

# uname -a
FreeBSD ccschu935 7.1-RC2 FreeBSD 7.1-RC2 #0: Tue Dec 23 11:42:13 UTC
2008     root_at_driscoll.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
amd64


# kldstat
Id Refs Address            Size     Name
 1   39 0xffffffff80100000 b6fd98   kernel
 2    1 0xffffffff80c70000 f5b78    zfs.ko
 3    2 0xffffffff80d66000 2c00     opensolaris.ko
 4    2 0xffffffff80d69000 38f00    linux.ko
 5    1 0xffffffff80da2000 f2a8     if_ipw.ko
 6    1 0xffffffff80db2000 1a940    snd_hda.ko
 7    2 0xffffffff80dcd000 67470    sound.ko
 8    1 0xffffffff80e35000 4fe0     atapicam.ko
 9    1 0xffffffff80e3a000 33f50    ipw_bss.ko
10    1 0xffffffff80e6e000 32000    ipw_ibss.ko
11    1 0xffffffff80ea0000 30de8    ipw_monitor.ko
12    1 0xffffffffaf67a000 1076     daemon_saver.ko
13    1 0xffffffffaf6c2000 734      rtc.ko
14    1 0xffffffffaf6c7000 4c7c     i915.ko
15    1 0xffffffffaf6cc000 d7ec     drm.ko
16    1 0xffffffffaf858000 8eb2     if_wpi.ko
17    1 0xffffffffaf931000 24b2e    wpifw.ko
18    1 0xffffffffaf7db000 3c65     sdhci.ko
19    1 0xffffffffafa8c000 4241     mmc.ko

Regards

Christof Schulze
-- 
Received on Sat Jan 03 2009 - 23:38:02 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:39 UTC