From owner-freebsd-current@FreeBSD.ORG Sun Jan 4 09:39:30 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 D87B4106564A for ; Sun, 4 Jan 2009 09:39:30 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from mx0.deglitch.com (backbone.deglitch.com [IPv6:2001:16d8:fffb:4::abba]) by mx1.freebsd.org (Postfix) with ESMTP id 73AAB8FC0C for ; Sun, 4 Jan 2009 09:39:30 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from DSPAM-Daemon (localhost [127.0.0.1]) by mx0.deglitch.com (Postfix) with SMTP id 5A68A8FC4F for ; Sun, 4 Jan 2009 12:39:28 +0300 (MSK) Received: from orion.SpringDaemons.com (drsun1.dialup.corbina.ru [85.21.245.235]) by mx0.deglitch.com (Postfix) with ESMTPA id EE73D8FC18; Sun, 4 Jan 2009 12:39:27 +0300 (MSK) Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 24A043996C; Sun, 4 Jan 2009 12:41:52 +0300 (MSK) Date: Sun, 4 Jan 2009 12:41:41 +0300 From: Stanislav Sedov To: Christof Schulze Message-Id: <20090104124141.5d757262.stas@FreeBSD.org> In-Reply-To: <20090104011107.143069c3@ccschu935> References: <20090104011107.143069c3@ccschu935> Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Sun Jan 4 12:39:28 2009 X-DSPAM-Confidence: 1.0000 X-DSPAM-Improbability: 1 in 98689409 chance of being spam X-DSPAM-Probability: 0.0023 X-DSPAM-Signature: 496083d0967001599314920 Cc: freebsd-current@freebsd.org Subject: Re: 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 09:39:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sun, 4 Jan 2009 01:11:07 +0100 Christof Schulze mentioned: > 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 > I think you took the code intended for CURRENT. E.g. kproc_create does not exists on 7.x. I believe there were some patches agains 7.x as well. You may try to ask mav for them too. The other way might be to update your system to CURRENT and try with it. If you'll take CURRENT kernel it should be able to run 7.x world without problems. - -- Stanislav Sedov ST4096-RIPE -----BEGIN PGP SIGNATURE----- iEYEARECAAYFAklghGAACgkQK/VZk+smlYGtCQCeJjWsnZPwmHOTuHW+5dRrqjcE Xu4AnRpumhlywVKos5r9x7ZMJJxGmjXO =ByTp -----END PGP SIGNATURE----- !DSPAM:496083d0967001599314920!