Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Mar 2015 18:48:14 -0700
From:      Warner Losh <imp@bsdimp.com>
To:        =?utf-8?Q?Mat=C3=ADas_Perret_Cantoni?= <perretcantonim@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: panic: bus_add_child is not implemented
Message-ID:  <8A6DDF8F-0BAA-40CE-8905-866C48BA6015@bsdimp.com>
In-Reply-To: <CADLKG00yGO6%2Bfd54pemcCTZ7PvhFU6wxzKCt_xWxg%2B4LxjsQTw@mail.gmail.com>
References:  <CADLKG00yGO6%2Bfd54pemcCTZ7PvhFU6wxzKCt_xWxg%2B4LxjsQTw@mail.gmail.com>

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

--Apple-Mail=_1FE9B8AF-DBF3-41F7-836B-2704889696FB
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

can you send me the source?

Warner

> On Mar 2, 2015, at 6:11 PM, Mat=C3=ADas Perret Cantoni =
<perretcantonim@gmail.com> wrote:
>=20
> Hello!
>=20
> I wrote a simple newbus driver for reading and writing a specific I/O =
port,
> which is basically a copy of the Warner Losh example driver for the =
iOpener
> Led. I compiled with no errors, but I get a kernel panic " =
bus_add_child is
> not implemented" when I try to load it in my development board which =
is a
> Zedboard with FreeBSD.
>=20
>=20
> The way I compiled it:
>=20
> # cd /usr/src
> root@matiBSD:/usr/src # make buildenv TARGET_ARCH=3Darmv6
> BUILDENV_SHELL=3D/usr/local/bin/bash
> KERNBUILDDIR=3D/usr/obj/arm.armv6/usr/src/sys/ZEDBOARD
> Entering world for armv6:arm
> [root@matiBSD /usr/src]# cd /home/drivers/p3
> [root@matiBSD /home/drivers/p3]# make
>=20
>=20
> The content of the Makefile I used:
>=20
> KMOD =3Dp3
> SRCS =3Dp3.c device_if.c bus_if.h
> .include <bsd.knod.mk>
>=20
>=20
> The way I tried to load it:
>=20
> root@zedboard:/usr # kldload /boot/msdos/p3.ko
> panic: bus_add_child is not implemented
> cpuid =3D 1
>=20
>=20
> My only guess here is that I should compile the driver with the kernel =
so
> that the linker can properly link the BUS_ADD_CHILD() method call in =
the
> drivers identify() method.
>=20
> My host is:    FreeBSD matiBSD  10.1-BETA2 FreeBSD 10.1-BETA2
> My target is: FreeBSD zedboard 10.1-BETA2 FreeBSD 10.1-BETA2
>=20
>=20
> I'm new at this, so any income is appreciated!
>=20
> Regards,
> Matias.
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"


--Apple-Mail=_1FE9B8AF-DBF3-41F7-836B-2704889696FB
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJU9RLfAAoJEGwc0Sh9sBEAqk4P/3x7QpnmeWj0XiNHIRYUfP4Z
15gpl61NUWFELunnHbkllERBjgd+sguYHDjHErV+n6Fmp7xyTekk2yGXo53VksNm
2NETaBa2H6wXAuDc9EyaHS/VMMdaaWLziWGyl5X9FRwgj/mL36qWJLNzylcmsM12
fKO/NyF905/7SxiT/jxsqOG+wpShpkjnknkvYm5qMzKNHJibyM5T3BQbpw84jT+z
vIXubESscFdACtFaiT9Qg3K87pmMuJJUO04bHHpAEaY49S2YYWVmbDsiA4jY9EK8
UfQoNtfrtSyhvF+37Ihq/vpKBanBohBcx4ERfMmp7hBvk2n9BwB/c8kSoK1LqPW7
M1kGA2pcd0ZCDCk2xWCY5ud0Rr8PbF+101U5rGGDvpYwycIZ0crqECm4gGLocJku
0GRKGg6owcqOLpmcFX/f9IkhIaYQ9jPA5OiQJehO9+Sl5V6SNIBA0pn0QL351GzB
5/who1VwW5gt1njdcHlarv3kf50D0R+wpVUQGTCq2/43joWwjzgPWTcIvPP+uOE6
pyOSNDANAo7d80i9lJIv+DG2MN9Sz5tPm1CO5ISJCdOOoUoSSZr9DvU3+T4jklB1
FzdPM2acoZXt/Wa2UAcYzvyWoL3O7UFcptp+TC1bNt0WVyLzUjU3A2ctg2QFBfOz
SFSkxtT0S0uHyQueXC6h
=Obv7
-----END PGP SIGNATURE-----

--Apple-Mail=_1FE9B8AF-DBF3-41F7-836B-2704889696FB--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8A6DDF8F-0BAA-40CE-8905-866C48BA6015>