Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Sep 2011 06:07:13 -0700
From:      David Wolfskill <david@catwhisker.org>
To:        stable@freebsd.org
Subject:   Something odd with devices mmd, mmdsd, and/or sdhci?
Message-ID:  <20110911130713.GV42450@albert.catwhisker.org>

next in thread | raw e-mail | index | archive | help

--uOZhbHG+Ruum37TI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

I was a bit surprised this morning to find that my daily build of
stable/8 on my laptop failed until I modified my kernel config.

I was running:

FreeBSD g1-227.catwhisker.org 8.2-STABLE FreeBSD 8.2-STABLE #241 r225459: F=
ri Sep  9 04:02:21 PDT 2011     root@g1-227.catwhisker.org:/common/S1/obj/u=
sr/src/sys/CANARY  i386

(which I had actually last updated yesterday, but there had been
no kernel changes in stable/8 as of r225467).

I had updated my working copy up to r225473 this morning; things
were OK until I tried to build my kernel (CANARY), which I hadn't
changed in several months; this is what I encountered:

>>> Kernel build for CANARY started on Sun Sep 11 04:07:16 PDT 2011
=2E..
>>> stage 1: configuring the kernel
=2E..
>>> stage 2.2: rebuilding the object tree
=2E..
>>> stage 2.3: build tools
=2E..
>>> stage 3.1: making dependencies
=2E..
>>> stage 3.2: building everything
=2E..
MAKE=3D/usr/obj/usr/src/make.i386/make sh /usr/src/sys/conf/newvers.sh CANA=
RY
cc -c -O -pipe  -std=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wst=
rict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual =
 -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sy=
s -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -inclu=
de opt_global.h -fno-common -finline-limit=3D8000 --param inline-unit-growt=
h=3D100 --param large-function-growth=3D1000  -mno-align-long-strings -mpre=
ferred-stack-boundary=3D2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3=
 -ffreestanding -fstack-protector -Werror  vers.c
linking kernel.debug
ld: kernel.debug: Not enough room for program headers (allocated 5, need 6)
ld: final link failed: Bad value
*** Error code 1

Stop in /common/S1/obj/usr/src/sys/CANARY.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.


But I had no trouble building GENERIC (on the same laptop), or
GENERIC and a couple of other lightly-customized configs on my build
machine.

So I started poking at the kernel config; the following change is
what allowed the kernel build to succeed:


Index: CANARY
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /cvs/local/src/kernels/FreeBSD-8/CANARY,v
retrieving revision 1.3
diff -u -r1.3 CANARY
--- CANARY	7 Mar 2011 19:17:03 -0000	1.3
+++ CANARY	11 Sep 2011 12:40:46 -0000
@@ -47,17 +43,6 @@
 nodevice  	wi		# I want to use the module, for hacking
=20
 #
-# MMC/SD
-#
-# mmc 		MMC/SD bus
-# mmcsd		MMC/SD memory card
-# sdhci		Generic PCI SD Host Controller
-#
-device		mmc
-device		mmcsd
-device		sdhci
-
-#
 # SMB bus
 #
 # System Management Bus support is provided by the 'smbus' device.


Hence the query in the Subject -- any thoughts?

Thanks!

Peace,
david
--=20
David H. Wolfskill				david@catwhisker.org
Depriving a girl or boy of an opportunity for education is evil.

See http://www.catwhisker.org/~david/publickey.gpg for my public key.

--uOZhbHG+Ruum37TI
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (FreeBSD)

iEYEARECAAYFAk5ssoEACgkQmprOCmdXAD2A3gCggskTpdkJL8Dz4reLbaMIAW8Y
LJEAniDCf8Zd37qHj65tY+JWL+rPl2uD
=F5L+
-----END PGP SIGNATURE-----

--uOZhbHG+Ruum37TI--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110911130713.GV42450>