From owner-freebsd-current@FreeBSD.ORG Sun Jan 4 00:38:02 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74893106566C for ; Sun, 4 Jan 2009 00:38:02 +0000 (UTC) (envelope-from christof.schulze@gmx.net) Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by mx1.freebsd.org (Postfix) with SMTP id D3E758FC12 for ; Sun, 4 Jan 2009 00:38:01 +0000 (UTC) (envelope-from christof.schulze@gmx.net) Received: (qmail invoked by alias); 04 Jan 2009 00:11:15 -0000 Received: from p54B6DF1D.dip.t-dialin.net (EHLO klausdieter0815.dyndns.org) [84.182.223.29] by mail.gmx.net (mp037) with SMTP; 04 Jan 2009 01:11:15 +0100 X-Authenticated: #3549759 X-Provags-ID: V01U2FsdGVkX195PHIoHuV53PdfY9wDTzeV6cpR3Oxv9c0o7AuBxm GazMgAYxfZpZWl Received: from ccschu935 (localhost [127.0.0.1]) by myhost.mydomain.de (Postfix) with ESMTP id CC71F261 for ; Sun, 4 Jan 2009 01:11:09 +0100 (CET) Date: Sun, 4 Jan 2009 01:11:07 +0100 From: Christof Schulze To: freebsd-current@freebsd.org Message-ID: <20090104011107.143069c3@ccschu935> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.12.11; amd64-portbld-freebsd7.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-FuHaFi: 0.54 Subject: kldload exec format error on amd64 freebsd-7.1-rc2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jan 2009 00:38:02 -0000 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@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@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 --