From owner-freebsd-arm@FreeBSD.ORG Tue Mar 3 01:48:17 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id EF78187B for ; Tue, 3 Mar 2015 01:48:17 +0000 (UTC) Received: from mail-pd0-f181.google.com (mail-pd0-f181.google.com [209.85.192.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BCA46A24 for ; Tue, 3 Mar 2015 01:48:17 +0000 (UTC) Received: by pdno5 with SMTP id o5so44166123pdn.8 for ; Mon, 02 Mar 2015 17:48:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=MSRpI/JHkxNwd5nwAvEom9plo93bKYX0vdMUf4W1ZMg=; b=eQX4t9SbcDDXHILZ7V5ya06zLeLoTco7VSiDQE5W7MjOzXy/Sokq0QT4SJhHhVtFKl i38UaudXGITc6MXDUBdAA/x9aqB8vpREi/PxpoqTd8W4WaH6tqbZLDcv7tgi6/uxKsAw AsCNUBxw9i2E5vrwuQNcAf2J7cUND1J+wu1gUwcGaOZ5nV/TlFSEswa7Ci6MeVco7g72 s+UAzpTXEPn5irumf7+3vGN1khRKW6gDDnNM3Fv9seju8r+twxcQUj11ntbPFglvt+4k LUwTX7TjRatEUdz/rt8Z1Z0yKOj8Xld1oNu49WF34PCTlsXv4qJ3zW8D8Q3lvq8YcvhM iGDw== X-Gm-Message-State: ALoCoQkuz4uA3YO3ap45AP9GG/sr+uz7kI1y3SQw4IFRAvFhFxttM2/f4J4+kPMQkEVymM5Jw7jv X-Received: by 10.68.254.168 with SMTP id aj8mr51252212pbd.80.1425347297265; Mon, 02 Mar 2015 17:48:17 -0800 (PST) Received: from lgmac-scingram.corp.netflix.com ([69.53.236.236]) by mx.google.com with ESMTPSA id r5sm13160662pdc.81.2015.03.02.17.48.16 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 02 Mar 2015 17:48:16 -0800 (PST) Sender: Warner Losh Subject: Re: panic: bus_add_child is not implemented Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2070.6\)) Content-Type: multipart/signed; boundary="Apple-Mail=_1FE9B8AF-DBF3-41F7-836B-2704889696FB"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Pgp-Agent: GPGMail 2.5b5 From: Warner Losh In-Reply-To: Date: Mon, 2 Mar 2015 18:48:14 -0700 Message-Id: <8A6DDF8F-0BAA-40CE-8905-866C48BA6015@bsdimp.com> References: To: =?utf-8?Q?Mat=C3=ADas_Perret_Cantoni?= X-Mailer: Apple Mail (2.2070.6) Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Mar 2015 01:48:18 -0000 --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 = 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 >=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--