From owner-freebsd-arm@freebsd.org Sun Jul 16 22:50:32 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 683DCC7BE01 for ; Sun, 16 Jul 2017 22:50:32 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [195.149.99.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "raven.bwct.de", Issuer "raven.bwct.de" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1913C6A0FC for ; Sun, 16 Jul 2017 22:50:31 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.15.2/8.15.2) with ESMTPS id v6GMdkgM003834 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 17 Jul 2017 00:39:47 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.5/8.14.4) with ESMTP id v6GMddH7060283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 17 Jul 2017 00:39:39 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.15.2/8.15.2) with ESMTPS id v6GMdc6E059738 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 17 Jul 2017 00:39:38 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.15.2/8.15.2/Submit) id v6GMdc4j059737; Mon, 17 Jul 2017 00:39:38 +0200 (CEST) (envelope-from ticso) Date: Mon, 17 Jul 2017 00:39:38 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Cc: Bernd Walter Subject: RPI2-Images Message-ID: <20170716223936.GA58474@cicely7.cicely.de> Reply-To: ticso@cicely.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely7.cicely.de 11.0-STABLE amd64 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-4.4 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, RP_MATCHES_RCVD=-1.507 autolearn=ham version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 16 Jul 2017 22:50:32 -0000 Just to get a recent FreeBSD on a Pi2 running, I've gone through a few images with mixed results. FreeBSD-11.0-RELEASE-arm-armv6-RPI2.img works fine. FreeBSD-11.1-RC3-arm-armv6-RPI2.img shows this: ... Mounting late filesystems:. Configuring vt: blanktime. Generating RSA host key. 2048 SHA256:ZPTJrJQQXL2z16vTJjZGRVT4KwflzxzYS4yWkbJ/Fgo root@rpi2 (RSA) Generating ECDSA host key. 256 SHA256:GW8ubAvN0Qj8xUbPn8zlogndXpm13Du+A5U3lHwAtR8 root@rpi2 (ECDSA) Generating ED25519 host key. 256 SHA256:rybupyofzcX+zlYaPFSp749fVjyyd3XrIquE0ogfr+8 root@rpi2 (ED25519) Performing sanity check on sshd configuration. Starting sshd. Starting cron. Starting background file system checks in 60 seconds. [: =: unexpected operator [: =: unexpected operator mount: /dev/ufs/rootfs: Device busy Fri Jul 14 14:57:48 FreeBSD/arm (rpi2) (ttyu0) login: Not sure what to think about the two '[: =: unexpected operator' messages, but they only happened on the first boot and I can't see that anything has failed. FS was expanded to full SD size as well. But since this is RC3 already, I think this should be investigated. FreeBSD-12.0-CURRENT-arm-armv6-RPI2-20170710-r320869.img show this: ... uhub1 on uhub0 uhub1: on usbus0 uhub1: MTT enabled GEOM_PART: ufs/rootfs was automatically resized. Use `gpart commit ufs/rootfs` to save changes or `gpart undo ufs/rootfs` to revert them. mmcsd0s2 resized growfs: /dev/ufs/rootfs: Operation not permitted /etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating a new one uhub1: 5 ports with 4 removable, self powered ugen0.3: at usbus0 smsc0 on uhub1 smsc0: on usbus0 smsc0: chip 0xec00, rev. 0002 miibus0: on smsc0 smscphy0: PHY 1 on miibus0 smscphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ue0: on smsc0 ue0: Ethernet address: b8:27:eb:07:20:c5 Setting hostuuid: dd0eedc4-65c4-11e7-bb07-b827eb0720c5. Setting hostid: 0x7716eed6. No suitable dump device was found. Starting file system checks: /dev/ufs/rootfs: NO WRITE ACCESS /dev/ufs/rootfs: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. Automatic file system check failed; help! ERROR: ABORTING BOOT (sending SIGTERM to parent)! Jul 10 23:09:45 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: I remember seeing a discussion about write acces a few months ago, but this is the most recent snapshot and I'd assumed it was fixed in the meantime. Anyway - it's current after all, so no expectations. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm. From owner-freebsd-arm@freebsd.org Mon Jul 17 00:41:36 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 29FAFC7D301 for ; Mon, 17 Jul 2017 00:41:36 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 A8AA46C42B for ; Mon, 17 Jul 2017 00:41:35 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id h22so76921820lfk.3 for ; Sun, 16 Jul 2017 17:41:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=K9rEoZ+/j3Y9RQRGVQkiQHM8L6W+5t74TuF7ukmtTZA=; b=f9fHxj2/ma4pWuVhZb8VXYhTOKFwRqeMCD6ScZSHN8UdRuBRdkGQYCYMWQygsZ7muC jTqkaP7rqoqSLAHjJG3oIYXt4ZiFnDdTmEwe5LiDDRBeid1MuTU1Bsw6sbAwxyTC8gtD jg8dEP73wqyuCPGxbIoCpJ4slpkPdRqLFjSsWMwA39idzTgAws5vRFEE+gNs1guXofjG D9/PTVfd+pvJ235vPaktHolq1fldCOtsvnYr/gm0cfj3Z7zHi/5i0w42OEvcc/hex36L +ZixYM4nxFEEBmnHINge6fbEDhivDgm1XrWB49VAINBrOxpTaKimjR4PB/kMNotdLNwC z80Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=K9rEoZ+/j3Y9RQRGVQkiQHM8L6W+5t74TuF7ukmtTZA=; b=bwN92CdBF9zttuLKSo5bbHVBMRyjV8YhunatxQhDLK63RS87KHIdLcuKJfqklx6zNy d1nRrvJhsh8ck+Hg/rYDRVCkKcn5uPu06JW1yTp1DXUzdJZhIaRVLpvKCC5bc/1tOORx H4BLu+z2OYRYb0mqU/nVl+hjGagCKSi1hzWrnHcDYiFbj2MEMw13ePxGNYI45CpPleyr +srLtvdQG1uDZGRTbch3aIpbWxTJmd5uDMqQ/+lLlm0p9gXLt723lgGg0uUzzfqNqHw3 ALrtG/nwmxr1Avo8O7PfpltNUWsqyqsyGJfssAQVfndEbSmUn/6HEDcM4tFlwR/5SzWs HtKg== X-Gm-Message-State: AIVw111d+OWJdcOdr4xUerhNYM0C0qY4etyf/blx1/192UC3iEJqxvNs TuCtgGmcqsiDskn3mLtLIcxEa8eyfXax X-Received: by 10.25.201.3 with SMTP id z3mr5295495lff.72.1500252093005; Sun, 16 Jul 2017 17:41:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Sun, 16 Jul 2017 17:41:32 -0700 (PDT) From: Russell Haley Date: Sun, 16 Jul 2017 17:41:32 -0700 Message-ID: Subject: BBB & IMX6 Hummingboard SDIO driver To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 00:41:36 -0000 Hi, I'm building for a BBB and I think I've got almost everything but I er... can't find the dtb file or the uEnv.txt file. Any help would be grand? I have a feeling I'm going to have to beg/borrow/steal a uEnv.txt file from a pre-built image. As I'm going through the process of re-learning the build steps, i thought of a couple of things that I either didn't see or couldn't find on the website: - A list of boards and their kernel config files - An easy reference on where to find the bits after the build. yes, yes, it's in the handbook. - Since u-boot has been standardised now, it would be nice to have a section on where to get u-boot and the other bits needed to boot. Anyway, I've got an unprecedented week with no work and no kids, so I'm going to do what any sane person would do during a beautiful July summer: play with FreeBSD! My end goal - and this is a stretch target - is to try and adopt Illyia's SDIO driver. I'm not sure how far I'll get, or much time I'll have after my week is up, but that's what my objective is. I've built the system using the kernel config BEAGLEBONE-MMCCAM in the blind hope that it will use his drivers? Once I get that working and can verify it in dtrace (maybe? yet another rabbit hole!) I want to get it working on my IMX6 hummingboard. oh, and I suppose I should open up some code, eh? Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) Cheers, Russ From owner-freebsd-arm@freebsd.org Mon Jul 17 02:30:18 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B400C7EB81 for ; Mon, 17 Jul 2017 02:30:18 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F41456E850 for ; Mon, 17 Jul 2017 02:30:17 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: dfb47341-6a97-11e7-bfd0-afd4446ba3af X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id dfb47341-6a97-11e7-bfd0-afd4446ba3af; Mon, 17 Jul 2017 02:30:18 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v6H2U8fi004590; Sun, 16 Jul 2017 20:30:09 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1500258608.22314.63.camel@freebsd.org> Subject: Re: BBB & IMX6 Hummingboard SDIO driver From: Ian Lepore To: Russell Haley , freebsd-arm Date: Sun, 16 Jul 2017 20:30:08 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 02:30:18 -0000 On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: > Hi, > > I'm building for a BBB and I think I've got almost everything but I > er... can't find the dtb file or the uEnv.txt file. Any help would be > grand? I have a feeling I'm going to have to beg/borrow/steal a > uEnv.txt file from a pre-built image. > > As I'm going through the process of re-learning the build steps, i > thought of a couple of things that I either didn't see or couldn't > find on the website: > > - A list of boards and their kernel config files > - An easy reference on where to find the bits after the build. yes, > yes, it's in the handbook. > - Since u-boot has been standardised now, it would be nice to have a > section on where to get u-boot and the other bits needed to boot. > > Anyway, I've got an unprecedented week with no work and no kids, so > I'm going to do what any sane person would do during a beautiful July > summer: play with FreeBSD! > > My end goal - and this is a stretch target - is to try and adopt > Illyia's SDIO driver. I'm not sure how far I'll get, or much time > I'll > have after my week is up, but that's what my objective is. I've built > the system using the kernel config BEAGLEBONE-MMCCAM in the blind > hope > that it will use his drivers? Once I get that working and can verify > it in dtrace (maybe? yet another rabbit hole!) I want to get it > working on my IMX6 hummingboard. > > oh, and I suppose I should open up some code, eh? > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) > > Cheers, > > Russ You don't need a uenv.txt file.  It was always optional, and with the latest uboot stuff it's completely gone. -- Ian From owner-freebsd-arm@freebsd.org Mon Jul 17 13:21:56 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 88832D7F481 for ; Mon, 17 Jul 2017 13:21:56 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 64360126D; Mon, 17 Jul 2017 13:21:56 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from FreeBSD.org (freefall.freebsd.org [IPv6:2610:1c1:1:6074::16:84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by freefall.freebsd.org (Postfix) with ESMTPS id 7F58E1498C; Mon, 17 Jul 2017 13:21:55 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Date: Mon, 17 Jul 2017 13:21:53 +0000 From: Glen Barber To: ticso@cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter Subject: Re: RPI2-Images Message-ID: <20170717132153.GN16843@FreeBSD.org> References: <20170716223936.GA58474@cicely7.cicely.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="SqfawxHnX56H7Ukl" Content-Disposition: inline In-Reply-To: <20170716223936.GA58474@cicely7.cicely.de> X-Operating-System: FreeBSD 11.0-STABLE amd64 X-SCUD-Definition: Sudden Completely Unexpected Dataloss X-SULE-Definition: Sudden Unexpected Learning Event X-PEKBAC-Definition: Problem Exists, Keyboard Between Admin/Computer X-Spidey-Sense: Uh oh, Peter logged in User-Agent: Mutt/1.8.2 (2017-04-18) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 13:21:56 -0000 --SqfawxHnX56H7Ukl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jul 17, 2017 at 12:39:38AM +0200, Bernd Walter wrote: > FreeBSD-11.1-RC3-arm-armv6-RPI2.img shows this: > ... > Mounting late filesystems:. > Configuring vt: blanktime. > Generating RSA host key. > 2048 SHA256:ZPTJrJQQXL2z16vTJjZGRVT4KwflzxzYS4yWkbJ/Fgo root@rpi2 (RSA) > Generating ECDSA host key. > 256 SHA256:GW8ubAvN0Qj8xUbPn8zlogndXpm13Du+A5U3lHwAtR8 root@rpi2 (ECDSA) > Generating ED25519 host key. > 256 SHA256:rybupyofzcX+zlYaPFSp749fVjyyd3XrIquE0ogfr+8 root@rpi2 (ED25519) > Performing sanity check on sshd configuration. > Starting sshd. > Starting cron. > Starting background file system checks in 60 seconds. > [: =3D: unexpected operator > [: =3D: unexpected operator > mount: /dev/ufs/rootfs: Device busy >=20 Hmm. I do not recall seeing this, but I will retry from a clean RPI2 image. Glen --SqfawxHnX56H7Ukl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAllsuewACgkQAxRYpUeP 4pNN7xAAhrfOYVNHcbqkhyYa9q4lJN9sWycE1t2HY2sPJOnPVhVIRa3zv+1CzA+e sk5lF6Fm8DxaXHrl/leNA/SXq3xkWOe7mYznL2hltqBk5U/fSNYb6qr0jGlLBFC6 HGenSkr0JTsPnpofuplxbkUvGxNBCSyTB2lnFSWxs4IPq2H6gfSmwnkICcznZLMN EciRbrVOyONtKAVYD77TURAf1RlPbv2g9DFk/gg48CMX5Y0PBelTAZBNyeLeFEg/ cqg0RaqJnFJYCFxR31cq/LcwPqS6WIWOX4NzKGEf8kjtnKZ9DXNheBAvq0Ql3rOh SGc8BtN70Tjv5Vn0nwqEMJKpBkZMNL5rIxnnTN6KFEa+FP77xez2CF5FEW7o/WgO GQrrB0FQLz2YPO2DQ8TRyDVVptMrwkOrptGjDAab0lltf4fusWdvhugrLslme37a R1J8HcFSKLgOUq0c1qF3KrtA9zz48YOFm0RTIfUY2NC3Ww0ZssfOQ0Gup+Q/MUHZ 1HbM4dipUbtDdrry9qvk43EiebDa+JXMbr5Yh5Ny0zks/yl1CLcvo6XTVCfZsjNU fohYT43tjaHvoQQe4JlhVLhjx5KWa17hsOcaujlqFpZq2RXf7VfX1/egkg+tLNnK 7GsmcWIXR2G0MwwYgITBxLRUnNnYPVMJgoRuLfpFIf/kgfYV6q8= =TIPA -----END PGP SIGNATURE----- --SqfawxHnX56H7Ukl-- From owner-freebsd-arm@freebsd.org Mon Jul 17 18:32:07 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8E485D9D603 for ; Mon, 17 Jul 2017 18:32:07 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 15F9B6BAEC; Mon, 17 Jul 2017 18:32:07 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id z78so90786795lff.0; Mon, 17 Jul 2017 11:32:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1c6V9OCXazVh9N/UXBwQ51GegSd33ZzFE21AWkCNzJg=; b=lacVZY1wvqBw5wVi5aYMqnTq1wzhFdIlXKNZ0mX7E1fmSlYgXu48EZF33NEz4HlyC5 GbFGrmNe3WIzXTyQO1CQy/vjp1Y+9NH15u781SmWkZUs5ysmsLp8UQtkjXSBE6SgQQRq Xgeejlth4mgph+Ke/3HHdaaogwTqmyqDZECfatGT8VqyAQ9WB/7oU9w8WN9UokA15Ihb SOMVPQEJY0CfDp20DJcgJA2FJsGZem8CJSlYlBErgjn6nCQpTwv0BycjEALbOvAaFtRn zwHpoKO64byESChL2P0z2FR8JlhdCqPObxOy/Z3i/tyCIN3rElMGdluCZlm91sRAzn+M Z+Aw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1c6V9OCXazVh9N/UXBwQ51GegSd33ZzFE21AWkCNzJg=; b=Qyv8bcBVGvjsY4wrndWaezfCbVGjp40sRKhp7vzfUiFyKl+S6XwyZY7p1SgO9qCnqH Vp6LgsChWoYr3zNygLVXCIqRi3z5mioa44q9qo6wkBoJkRx98lBNxesESFjL3JM10cNH /a9FdZMBKSyVOeo44midDy+FmDmoBiam8zhXfL8Tc6lBlXOC1vGjjjxmOP8nDn/0xoqR eznds9YkMH6ri5pSA8DIBDXnsdu7A99yyqXbSIxXYEpbJ+G9t/ZnzfIhJQSDb3vKkLej zZZ6YK09Mi7GVDxaKh7qKjq732abFJ3noH+aizvjTFnQbwCLfqRYMBxzAH1SLUZNvO+k yYFQ== X-Gm-Message-State: AIVw1102YvmhEYHX20EzFgLmvyEYFIdH/S1ZHr7ZVqeIRMbuEee4tPfQ HYdUdARlxM0ZEivst3VAkYGTJdXUa6eF X-Received: by 10.25.234.211 with SMTP id y80mr183310lfi.25.1500316324975; Mon, 17 Jul 2017 11:32:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Mon, 17 Jul 2017 11:32:04 -0700 (PDT) In-Reply-To: <1500258608.22314.63.camel@freebsd.org> References: <1500258608.22314.63.camel@freebsd.org> From: Russell Haley Date: Mon, 17 Jul 2017 11:32:04 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Ian Lepore Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 18:32:07 -0000 On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >> Hi, >> >> I'm building for a BBB and I think I've got almost everything but I >> er... can't find the dtb file or the uEnv.txt file. Any help would be >> grand? I have a feeling I'm going to have to beg/borrow/steal a >> uEnv.txt file from a pre-built image. >> >> As I'm going through the process of re-learning the build steps, i >> thought of a couple of things that I either didn't see or couldn't >> find on the website: >> >> - A list of boards and their kernel config files >> - An easy reference on where to find the bits after the build. yes, >> yes, it's in the handbook. >> - Since u-boot has been standardised now, it would be nice to have a >> section on where to get u-boot and the other bits needed to boot. >> >> Anyway, I've got an unprecedented week with no work and no kids, so >> I'm going to do what any sane person would do during a beautiful July >> summer: play with FreeBSD! >> >> My end goal - and this is a stretch target - is to try and adopt >> Illyia's SDIO driver. I'm not sure how far I'll get, or much time >> I'll >> have after my week is up, but that's what my objective is. I've built >> the system using the kernel config BEAGLEBONE-MMCCAM in the blind >> hope >> that it will use his drivers? Once I get that working and can verify >> it in dtrace (maybe? yet another rabbit hole!) I want to get it >> working on my IMX6 hummingboard. >> >> oh, and I suppose I should open up some code, eh? >> >> Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >> >> Cheers, >> >> Russ > > You don't need a uenv.txt file. It was always optional, and with the > latest uboot stuff it's completely gone. > > -- Ian Thanks Ian. DTB files are apparently generated with buildworld. https://wiki.freebsd.org/FlattenedDeviceTree I know they are generated with a specific tool (the name of which I forget) . I'm surprised it's not it's own target or at least part of buildkernel. Russ From owner-freebsd-arm@freebsd.org Mon Jul 17 18:34:40 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7DAD9D9D7E3 for ; Mon, 17 Jul 2017 18:34:40 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 610AE6BDF9 for ; Mon, 17 Jul 2017 18:34:40 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 89c9644b-6b1e-11e7-a4a1-c9e62e5d9688 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 89c9644b-6b1e-11e7-a4a1-c9e62e5d9688; Mon, 17 Jul 2017 18:34:16 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v6HIYbj1006217; Mon, 17 Jul 2017 12:34:37 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1500316477.22314.91.camel@freebsd.org> Subject: Re: BBB & IMX6 Hummingboard SDIO driver From: Ian Lepore To: Russell Haley Cc: freebsd-arm Date: Mon, 17 Jul 2017 12:34:37 -0600 In-Reply-To: References: <1500258608.22314.63.camel@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 18:34:40 -0000 On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: > On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: > > > > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: > > > > > > Hi, > > > > > > I'm building for a BBB and I think I've got almost everything but > > > I > > > er... can't find the dtb file or the uEnv.txt file. Any help > > > would be > > > grand? I have a feeling I'm going to have to beg/borrow/steal a > > > uEnv.txt file from a pre-built image. > > > > > > As I'm going through the process of re-learning the build steps, > > > i > > > thought of a couple of things that I either didn't see or > > > couldn't > > > find on the website: > > > > > > - A list of boards and their kernel config files > > > - An easy reference on where to find the bits after the build. > > > yes, > > > yes, it's in the handbook. > > > - Since u-boot has been standardised now, it would be nice to > > > have a > > > section on where to get u-boot and the other bits needed to boot. > > > > > > Anyway, I've got an unprecedented week with no work and no kids, > > > so > > > I'm going to do what any sane person would do during a beautiful > > > July > > > summer: play with FreeBSD! > > > > > > My end goal - and this is a stretch target - is to try and adopt > > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time > > > I'll > > > have after my week is up, but that's what my objective is. I've > > > built > > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind > > > hope > > > that it will use his drivers? Once I get that working and can > > > verify > > > it in dtrace (maybe? yet another rabbit hole!) I want to get it > > > working on my IMX6 hummingboard. > > > > > > oh, and I suppose I should open up some code, eh? > > > > > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) > > > > > > Cheers, > > > > > > Russ > > You don't need a uenv.txt file.  It was always optional, and with > > the > > latest uboot stuff it's completely gone. > > > > -- Ian > Thanks Ian. > > DTB files are apparently generated with buildworld. > > https://wiki.freebsd.org/FlattenedDeviceTree > > I know they are generated with a specific tool (the name of which I > forget) . I'm surprised it's not it's own target or at least part of > buildkernel. > > Russ The DTB files installed on our distributed images are built from sys/modules/dtb (which makes them part of the kernel build unless you go out of your way to build them by themselves). -- Ian From owner-freebsd-arm@freebsd.org Mon Jul 17 18:39:30 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 44A9CD9D95B for ; Mon, 17 Jul 2017 18:39:30 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22c.google.com (mail-lf0-x22c.google.com [IPv6:2a00:1450:4010:c07::22c]) (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 B9A196C06B; Mon, 17 Jul 2017 18:39:29 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22c.google.com with SMTP id t72so90863137lff.1; Mon, 17 Jul 2017 11:39:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rxIWs2bL8IrclSHolkfIUIWQPYrTMxfNvPirzOx31wg=; b=EX33ai1WQ2qYZHJ2w+86qnzpoB0ufDI8f3rcro4tIL9rd2p6M9wrPHL6qJmtTwY/Z2 q0+nltqKKhJDjdkBcm4Eh6UQ78wHVjOfsGMPdzoPncKwM6xa8I9h0WEap0Qw38ZWzSOM lKdRcamNCIXLHhJ4sLovPlE+BmrMmBqf71ZkjBFFbVX0k8S7889I+Yscw7WetROsGnxy PZKU7EPYBDsrQqN0V3QpB+L0r6d9iDO5bN1a6rerV5Jb+diOMPFLjbzrOqEP9hHW014+ a4i0RCdeg+gT85nwqg842QbgbpmmcGRpiEGUaAv5jjZ0DD2j/EKuKxFxdcKKVVkrtnJu pfmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rxIWs2bL8IrclSHolkfIUIWQPYrTMxfNvPirzOx31wg=; b=XQuFdaAFJ+TDTbjyS6SojfqWvBJ8O3zlzWf1MHqXO1z6VBuWNRL3O3KylJUMY4Tii7 my9j5jm/Ofcvp9v+gsj9vSPJsPGj6Op8RF181VgrCUDDkcAl1QMWrMe4GFVLEzXDqqku Hs0Wt/pfDkAVZ1ayU+OGm7SHXd5I3gpFbPOsTQQgKuesF4LoVOyn6w/uj/WbkgRcLpq1 NiFYlor7GhEWhSUevFbGaP95GAlZJgoqsPGTVsoDY1ICwiR16dVIMygqRarhE5M/tOLX 8xL24N83txko1/T63A6GJ0b5u5dYHobf3/RAJaHK96ynJSavUcx6Dl/cs0TGcESI2q8B 0mbA== X-Gm-Message-State: AIVw110sR590u99TcZl84x7KzHGyC3fLJarhqq/0+9QSlOtKRqlcXXa1 k3C/o94/XxjCkMZukyKbDzxhgtUPCdpa X-Received: by 10.46.80.22 with SMTP id e22mr5706676ljb.68.1500316767620; Mon, 17 Jul 2017 11:39:27 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Mon, 17 Jul 2017 11:39:27 -0700 (PDT) In-Reply-To: <1500316477.22314.91.camel@freebsd.org> References: <1500258608.22314.63.camel@freebsd.org> <1500316477.22314.91.camel@freebsd.org> From: Russell Haley Date: Mon, 17 Jul 2017 11:39:27 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Ian Lepore Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 18:39:30 -0000 On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: > On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >> > >> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >> > > >> > > Hi, >> > > >> > > I'm building for a BBB and I think I've got almost everything but >> > > I >> > > er... can't find the dtb file or the uEnv.txt file. Any help >> > > would be >> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >> > > uEnv.txt file from a pre-built image. >> > > >> > > As I'm going through the process of re-learning the build steps, >> > > i >> > > thought of a couple of things that I either didn't see or >> > > couldn't >> > > find on the website: >> > > >> > > - A list of boards and their kernel config files >> > > - An easy reference on where to find the bits after the build. >> > > yes, >> > > yes, it's in the handbook. >> > > - Since u-boot has been standardised now, it would be nice to >> > > have a >> > > section on where to get u-boot and the other bits needed to boot. >> > > >> > > Anyway, I've got an unprecedented week with no work and no kids, >> > > so >> > > I'm going to do what any sane person would do during a beautiful >> > > July >> > > summer: play with FreeBSD! >> > > >> > > My end goal - and this is a stretch target - is to try and adopt >> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >> > > I'll >> > > have after my week is up, but that's what my objective is. I've >> > > built >> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >> > > hope >> > > that it will use his drivers? Once I get that working and can >> > > verify >> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >> > > working on my IMX6 hummingboard. >> > > >> > > oh, and I suppose I should open up some code, eh? >> > > >> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >> > > >> > > Cheers, >> > > >> > > Russ >> > You don't need a uenv.txt file. It was always optional, and with >> > the >> > latest uboot stuff it's completely gone. >> > >> > -- Ian >> Thanks Ian. >> >> DTB files are apparently generated with buildworld. >> >> https://wiki.freebsd.org/FlattenedDeviceTree >> >> I know they are generated with a specific tool (the name of which I >> forget) . I'm surprised it's not it's own target or at least part of >> buildkernel. >> >> Russ > > The DTB files installed on our distributed images are built from > sys/modules/dtb (which makes them part of the kernel build unless you > go out of your way to build them by themselves). EBK (Error Behind Keyboard): Forgot the single quotes in my find command. oops. Thanks! russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% find . -name '*dtb*' ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb From owner-freebsd-arm@freebsd.org Mon Jul 17 20:57:23 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AEA0EDA07B4 for ; Mon, 17 Jul 2017 20:57:23 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 347377113C; Mon, 17 Jul 2017 20:57:23 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id z78so960863lff.0; Mon, 17 Jul 2017 13:57:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qPYTxrNeeWkzkWYmkkIAgSqtJL0JufvxjO3PMDnur2E=; b=BvLpghh3Ds2essBLdFddkbRwPBFyDA/tz6GzprKcXuWnsX99pT2Q79ViGmXai6Idns HNxjYk/HK0YV6AbTWGf0J/oTTBU9Hl6HSD+TEvq5iBgutH6wuS+0IzvqNfBWMUi6/HqK 3ksZX+TnQD7qfUiHjjjyp38niYu8jjT4JHXgs24ZQot+URx5S/Rykz/+puLsE4Mvm5Lf or0JXjwmQTT/ZVWQBQNsnmym/aK0JUAgEXfA8pPCpEj9Oj7l5OVoqw0Xp9mnuwWoX7p6 Kpr5lCrQUPfZ+bMVxJutb1ye4e4W2erIkQ58sx9L6S6lt4egu5o5QUgFD3BDJ5t4Q2xH Hjqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qPYTxrNeeWkzkWYmkkIAgSqtJL0JufvxjO3PMDnur2E=; b=sknmFGWX/3Q9RHI1nLSSQxVLfNzM0bLoDCwh5tNUIUKwCiqh2tPQv//zQkWP7eiAqo /8V4UiPzlwNU1QmSuU6DG22b5jg6wi3HJ5k7wyWDBkhl1qO3W+nzixnl6gqyhmeeWo9C shkVLbrI28k050WwqjDCQpE+cMLiYpGfZdFZHzSrlUBO3Cq0byHB5PGakYYdjSRo6VIb B8sbMvk2Ush9Fsp7Kr3SCQYeTXxsN2DJJNetDhTTROoVAtuistxmjvIq3+TnKnXotQ2p Rg5v0zjDR8/TVabOV2dk4Q+hWo9QofSiK/XeUxkVWV+139tJc47NZlpRjTj0uRo1F1fE xNuA== X-Gm-Message-State: AIVw111jAQBrpVTph7elwYpyqElo9Ml0UTkCZSO+HJ3trFKx18LzfvCH q4a8ZkGcMHMPjOg/48YZ9bHuybRRktK4 X-Received: by 10.46.69.212 with SMTP id s203mr5129300lja.73.1500325041371; Mon, 17 Jul 2017 13:57:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Mon, 17 Jul 2017 13:57:21 -0700 (PDT) In-Reply-To: References: <1500258608.22314.63.camel@freebsd.org> <1500316477.22314.91.camel@freebsd.org> From: Russell Haley Date: Mon, 17 Jul 2017 13:57:21 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Ian Lepore Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jul 2017 20:57:23 -0000 My installworld is failing? Steps so far: #Make a memdisk to speed things up mkdir /mnt/memdisk mkdir /mnt/uboot truncate -s 1024M bbb.img sudo mdconfig -f bbb.img gpart create -s mbr md0 gpart add -t fat32 -b 1M -s 50M md0 newfs_msdos -F32 /dev/md0s1 gpart add -t freebsd md0 sudo newfs /dev/md0s2 #build make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel #install sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ sudo mount /dev/md0s2 /mnt/memdisk/ sudo make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld distribution build error (full output is here: https://pastebin.com/VU3XDt5u): -------------------------------------------------------------- >>> Installing everything -------------------------------------------------------------- cd /usr/home/russellh/FreeBSD/hummingboard/src; make -f Makefile.inc1 install ===> lib (install) ===> lib/csu (install) ===> lib/csu/arm (install) cc -target armv6-gnueabihf-freebsd12.0 --sysroot=/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp -B/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp/usr/bin -O -pipe -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/common -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/libc/include -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline -Wnested-externs -Wredundant-decls -Wold-style-definition -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int -Wno-unused-const-variable -Qunused-arguments ERROR-tried-to-rebuild-during-make-install -mlong-calls -S -o crt1.s /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm/crt1.c /tmp/install.t1fF66Xy/sh: cc: not found *** Error code 127 Stop. make[6]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm *** Error code 1 Stop. make[5]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu *** Error code 1 Stop. make[4]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib *** Error code 1 Stop. make[3]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src *** Error code 1 Stop. make[2]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src *** Error code 1 Stop. make[1]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src *** Error code 1 Stop. make: stopped in /usr/home/russellh/FreeBSD/hummingboard/src Thanks, Russ On Mon, Jul 17, 2017 at 11:39 AM, Russell Haley wrote: > On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: >> On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >>> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >>> > >>> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >>> > > >>> > > Hi, >>> > > >>> > > I'm building for a BBB and I think I've got almost everything but >>> > > I >>> > > er... can't find the dtb file or the uEnv.txt file. Any help >>> > > would be >>> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >>> > > uEnv.txt file from a pre-built image. >>> > > >>> > > As I'm going through the process of re-learning the build steps, >>> > > i >>> > > thought of a couple of things that I either didn't see or >>> > > couldn't >>> > > find on the website: >>> > > >>> > > - A list of boards and their kernel config files >>> > > - An easy reference on where to find the bits after the build. >>> > > yes, >>> > > yes, it's in the handbook. >>> > > - Since u-boot has been standardised now, it would be nice to >>> > > have a >>> > > section on where to get u-boot and the other bits needed to boot. >>> > > >>> > > Anyway, I've got an unprecedented week with no work and no kids, >>> > > so >>> > > I'm going to do what any sane person would do during a beautiful >>> > > July >>> > > summer: play with FreeBSD! >>> > > >>> > > My end goal - and this is a stretch target - is to try and adopt >>> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >>> > > I'll >>> > > have after my week is up, but that's what my objective is. I've >>> > > built >>> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >>> > > hope >>> > > that it will use his drivers? Once I get that working and can >>> > > verify >>> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >>> > > working on my IMX6 hummingboard. >>> > > >>> > > oh, and I suppose I should open up some code, eh? >>> > > >>> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >>> > > >>> > > Cheers, >>> > > >>> > > Russ >>> > You don't need a uenv.txt file. It was always optional, and with >>> > the >>> > latest uboot stuff it's completely gone. >>> > >>> > -- Ian >>> Thanks Ian. >>> >>> DTB files are apparently generated with buildworld. >>> >>> https://wiki.freebsd.org/FlattenedDeviceTree >>> >>> I know they are generated with a specific tool (the name of which I >>> forget) . I'm surprised it's not it's own target or at least part of >>> buildkernel. >>> >>> Russ >> >> The DTB files installed on our distributed images are built from >> sys/modules/dtb (which makes them part of the kernel build unless you >> go out of your way to build them by themselves). > > EBK (Error Behind Keyboard): Forgot the single quotes in my find > command. oops. Thanks! > > russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% > find . -name '*dtb*' > ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb > ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb > ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb > ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb > ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb From owner-freebsd-arm@freebsd.org Tue Jul 18 05:34:24 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D67AAC7CFBC for ; Tue, 18 Jul 2017 05:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C54606A8 for ; Tue, 18 Jul 2017 05:34:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6I5YOWM032261 for ; Tue, 18 Jul 2017 05:34:24 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 220817] BananaPi 11.1-RC3 image doesn't boot Date: Tue, 18 Jul 2017 05:34:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: taner76@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 05:34:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220817 Bug ID: 220817 Summary: BananaPi 11.1-RC3 image doesn't boot Product: Base System Version: 11.0-RELEASE Hardware: arm OS: Any Status: New Severity: Affects Many People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: taner76@gmail.com Created attachment 184462 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D184462&action= =3Dedit boot log Hi, BananaPi 11.1-RC3 image doesn't boot properly. It stops loading kernel due = to the missing valid dtb. Boot log attached. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Tue Jul 18 11:11:04 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1FB4BCFEC01 for ; Tue, 18 Jul 2017 11:11:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D89C86A297; Tue, 18 Jul 2017 11:11:03 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dXQ9v-0004l9-Nb; Tue, 18 Jul 2017 12:55:20 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Ian Lepore" , "Russell Haley" Cc: freebsd-arm Subject: Re: BBB & IMX6 Hummingboard SDIO driver References: <1500258608.22314.63.camel@freebsd.org> <1500316477.22314.91.camel@freebsd.org> Date: Tue, 18 Jul 2017 12:55:14 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 535c43b1e2e4460e348b3940d95530cd X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 11:11:04 -0000 On Mon, 17 Jul 2017 22:57:21 +0200, Russell Haley wrote: > My installworld is failing? > > Steps so far: > #Make a memdisk to speed things up > mkdir /mnt/memdisk > mkdir /mnt/uboot > > truncate -s 1024M bbb.img > sudo mdconfig -f bbb.img > > gpart create -s mbr md0 > gpart add -t fat32 -b 1M -s 50M md0 > newfs_msdos -F32 /dev/md0s1 > gpart add -t freebsd md0 > sudo newfs /dev/md0s2 > > #build > > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 > KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel > > #install > sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ > sudo mount /dev/md0s2 /mnt/memdisk/ > sudo make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld > distribution > > build error (full output is here: https://pastebin.com/VU3XDt5u): > > -------------------------------------------------------------- >>>> Installing everything > -------------------------------------------------------------- > cd /usr/home/russellh/FreeBSD/hummingboard/src; make -f Makefile.inc1 > install > ===> lib (install) > ===> lib/csu (install) > ===> lib/csu/arm (install) > cc -target armv6-gnueabihf-freebsd12.0 > --sysroot=/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp > -B/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp/usr/bin > -O -pipe -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/common > -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/libc/include > -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch > -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline > -Wnested-externs -Wredundant-decls -Wold-style-definition > -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int > -Wno-unused-const-variable -Qunused-arguments > ERROR-tried-to-rebuild-during-make-install -mlong-calls -S -o crt1.s > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm/crt1.c > /tmp/install.t1fF66Xy/sh: cc: not found > *** Error code 127 'cc: not found' This happens to me if I forget to set SRCDIR or OBJDIR (from the top of my head, I'm not on my FreeBSD machine right now). It looks in the default (but wrong) directory then. Ronald. > > Stop. > make[6]: stopped in > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm > *** Error code 1 > > Stop. > make[5]: stopped in > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu > *** Error code 1 > > Stop. > make[4]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib > *** Error code 1 > > Stop. > make[3]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make[2]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make[1]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > > > > Thanks, > Russ > > On Mon, Jul 17, 2017 at 11:39 AM, Russell Haley > wrote: >> On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: >>> On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >>>> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >>>> > >>>> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >>>> > > >>>> > > Hi, >>>> > > >>>> > > I'm building for a BBB and I think I've got almost everything but >>>> > > I >>>> > > er... can't find the dtb file or the uEnv.txt file. Any help >>>> > > would be >>>> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >>>> > > uEnv.txt file from a pre-built image. >>>> > > >>>> > > As I'm going through the process of re-learning the build steps, >>>> > > i >>>> > > thought of a couple of things that I either didn't see or >>>> > > couldn't >>>> > > find on the website: >>>> > > >>>> > > - A list of boards and their kernel config files >>>> > > - An easy reference on where to find the bits after the build. >>>> > > yes, >>>> > > yes, it's in the handbook. >>>> > > - Since u-boot has been standardised now, it would be nice to >>>> > > have a >>>> > > section on where to get u-boot and the other bits needed to boot. >>>> > > >>>> > > Anyway, I've got an unprecedented week with no work and no kids, >>>> > > so >>>> > > I'm going to do what any sane person would do during a beautiful >>>> > > July >>>> > > summer: play with FreeBSD! >>>> > > >>>> > > My end goal - and this is a stretch target - is to try and adopt >>>> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >>>> > > I'll >>>> > > have after my week is up, but that's what my objective is. I've >>>> > > built >>>> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >>>> > > hope >>>> > > that it will use his drivers? Once I get that working and can >>>> > > verify >>>> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >>>> > > working on my IMX6 hummingboard. >>>> > > >>>> > > oh, and I suppose I should open up some code, eh? >>>> > > >>>> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >>>> > > >>>> > > Cheers, >>>> > > >>>> > > Russ >>>> > You don't need a uenv.txt file. It was always optional, and with >>>> > the >>>> > latest uboot stuff it's completely gone. >>>> > >>>> > -- Ian >>>> Thanks Ian. >>>> >>>> DTB files are apparently generated with buildworld. >>>> >>>> https://wiki.freebsd.org/FlattenedDeviceTree >>>> >>>> I know they are generated with a specific tool (the name of which I >>>> forget) . I'm surprised it's not it's own target or at least part of >>>> buildkernel. >>>> >>>> Russ >>> >>> The DTB files installed on our distributed images are built from >>> sys/modules/dtb (which makes them part of the kernel build unless you >>> go out of your way to build them by themselves). >> >> EBK (Error Behind Keyboard): Forgot the single quotes in my find >> command. oops. Thanks! >> >> russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% >> find . -name '*dtb*' >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Tue Jul 18 14:25:20 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DCCF5D7EA9B for ; Tue, 18 Jul 2017 14:25:20 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x233.google.com (mail-lf0-x233.google.com [IPv6:2a00:1450:4010:c07::233]) (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 526EE7011D for ; Tue, 18 Jul 2017 14:25:20 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x233.google.com with SMTP id t72so15446850lff.1 for ; Tue, 18 Jul 2017 07:25:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=BUitzt8EoHWnyc+gkQ0DE1iROsIyxtKE9mbjtFFubAc=; b=RtA20+w1IEyCZaEEF5xhbdE1BiDlfi0Y2KY2IJvvqVLd18yUxWa3P+nIZMsjCj7bVD HRzxxWYrtCFIUqczGZM6A93rgUrTbfmju96xU32GKO9pCfyNI27efYyC6DoktOFDxFhN RkqddBpDlzRn0IBVLUylcDfbTqxRewg9r9EOgRi53DQR7QPtAn+AdISZpCXeflQuHtKh /c9vrLbcdlt+QFJrrPqtjJhfamoGUyvRQHx8+YmI7T3DcewYWvuyYMDwnv7Y8/B2zjyf +nrwWIO78/UAFFq2jouD3Zi9wkLRz2gjNDs31vommOettS5fHpL8FwEJw1j7ZAJHw/W5 NkAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=BUitzt8EoHWnyc+gkQ0DE1iROsIyxtKE9mbjtFFubAc=; b=Op7Z58GUZ95zuwU2TGzjUw0zc9aWCWVn+b1Y8RYMDf0Zy8HRWS/udUOjcdCBJBk39P jVP9p5kSSrtVLFO4zkwxxdnmFDEU27M77e9Us83zhgLLsVWVWIbw/ODC9ICtVKnlMbjO r9wAxZrA8soNfRZGhrYJC9rE0QMex1D2B/LBwV+JEsdB9ZBn3yYWLTkwbOJpRa4AQmgh v1VFjSsOFsC6mxsIEFaeO7PWCvmuLj0UbEBXOvdLsuooZVcxUeNabm5YjMX/P3rGcaV5 YGj1zk8yUeApWhyuHc93y1mWbgoeZra2W4Bdf11zRgVI6s6FDHHXo/NTsl81x8JOy3Sr fyzA== X-Gm-Message-State: AIVw113JwGiq8VQkF19xCHweNfEfBUm3QS66tb7YOA9Mcazoz4sWvYRJ rxuUeQYWBnkqPyqi7r3+wjE4hZxnwA== X-Received: by 10.25.234.211 with SMTP id y80mr846705lfi.25.1500387918270; Tue, 18 Jul 2017 07:25:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Tue, 18 Jul 2017 07:25:17 -0700 (PDT) From: Russell Haley Date: Tue, 18 Jul 2017 07:25:17 -0700 Message-ID: Subject: BBB & IMX6 Hummingboard SDIO driver To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 14:25:21 -0000 Well more EBK (error behind keyboard). In the end I STILL didn't read the entire command line in the wiki. I missed the -E parameter for sudo, which preserves the environment variables. Ian remembered that he once added something to the sudoers file, which got me to the next step, where I finally *saw* the missing sudo parameter when reading the wiki entry for buildkernel. His more permanent solution is to add a line via visudo: Defaults env_keep += "MAKEOBJDIRPREFIX MODULES_OVERRIDE SUBDIR_OVERRIDE" which preserves the required variable of MAKEOBJDIRPREFIX. He explains the other variables: The other two vars are because I sometimes do a sudo make install with SUBDIR_OVERRIDE= or MODULES_OVERRIDE= to get a quick partial install Final build instructions: *NOTE: My output all says hummingboard because I thought I was going to build for that board first. I changed my mind at the last minute and built for my BBB. I'm cross building on amd64 to a BBB. setenv BASEDIR `pwd` setenv MAKEOBJDIRPREFIX $BASEDIR/obj cd $BASEDIR/src svn checkout https://svn0.us-west.FreeBSD.org/base/head . mkdir /mnt/memdisk mkdir /mnt/uboot truncate -s 1100M bbb.img #I think... I used 2048 because 1024 failed sudo mdconfig -f bbb.img gpart create -s mbr md0 gpart add -t fat32 -b 1M -s 50M md0 sudo newfs_msdos -F16 /dev/md0s1 gpart add -t freebsd md0 sudo newfs /dev/md0s2 make TARGET_ARCH=armv6 -j10 buildworld make TARGET_ARCH=armv6 KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ sudo mount /dev/md0s2 /mnt/memdisk/ #The -E is very important. It preserves the environment for sudo sudo -E make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld distribution sudo -E make installkernel TARGET_ARCH=armv6 KERNCONF=BEAGLEBONE-MMCCAM DESTDIR=/mnt/memdisk cp ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys/boot/arm/uboot/ubldr /mnt/uboot # cd ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src% cp ./sys/BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb /mnt/uboot/ cd /usr/ports/sysutils/u-boot-beaglebone/ make cp work/u-boot-ports-v2017.01.00.2/MLO /mnt/uboot cp work/u-boot-ports-v2017.01.00.2/u-boot.img /mnt/uboot sudo umount /dev/md0s1 sudo umount /dev/md0s2 sudo mdconfig -du md0 sysctl kern.geom.debugflags=16 dd if=bbb.img of=/dev/da5 bs=4096k total ufs size used: 948M Thanks! Russ Now I need to find those silly little pins for the fdt cable. lolz On Mon, Jul 17, 2017 at 5:15 PM, Russell Haley wrote: > Sorry, I'm going to take the TARGET out and try again. It's not in the > wiki entry for cross building. > > On Mon, Jul 17, 2017 at 1:57 PM, Russell Haley wrote: >> My installworld is failing? >> >> Steps so far: >> #Make a memdisk to speed things up >> mkdir /mnt/memdisk >> mkdir /mnt/uboot >> >> truncate -s 1024M bbb.img >> sudo mdconfig -f bbb.img >> >> gpart create -s mbr md0 >> gpart add -t fat32 -b 1M -s 50M md0 >> newfs_msdos -F32 /dev/md0s1 >> gpart add -t freebsd md0 >> sudo newfs /dev/md0s2 >> >> #build >> >> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld >> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 >> KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel >> >> #install >> sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ >> sudo mount /dev/md0s2 /mnt/memdisk/ >> sudo make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld distribution >> >> build error (full output is here: https://pastebin.com/VU3XDt5u): >> >> -------------------------------------------------------------- >>>>> Installing everything >> -------------------------------------------------------------- >> cd /usr/home/russellh/FreeBSD/hummingboard/src; make -f Makefile.inc1 >> install >> ===> lib (install) >> ===> lib/csu (install) >> ===> lib/csu/arm (install) >> cc -target armv6-gnueabihf-freebsd12.0 >> --sysroot=/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp >> -B/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp/usr/bin >> -O -pipe -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/common >> -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/libc/include >> -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W >> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes >> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch >> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline >> -Wnested-externs -Wredundant-decls -Wold-style-definition >> -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int >> -Wno-unused-const-variable -Qunused-arguments >> ERROR-tried-to-rebuild-during-make-install -mlong-calls -S -o crt1.s >> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm/crt1.c >> /tmp/install.t1fF66Xy/sh: cc: not found >> *** Error code 127 >> >> Stop. >> make[6]: stopped in >> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm >> *** Error code 1 >> >> Stop. >> make[5]: stopped in >> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu >> *** Error code 1 >> >> Stop. >> make[4]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib >> *** Error code 1 >> >> Stop. >> make[3]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >> *** Error code 1 >> >> Stop. >> make[2]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >> *** Error code 1 >> >> Stop. >> make[1]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >> *** Error code 1 >> >> Stop. >> make: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >> >> >> >> Thanks, >> Russ >> >> On Mon, Jul 17, 2017 at 11:39 AM, Russell Haley wrote: >>> On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: >>>> On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >>>>> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >>>>> > >>>>> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >>>>> > > >>>>> > > Hi, >>>>> > > >>>>> > > I'm building for a BBB and I think I've got almost everything but >>>>> > > I >>>>> > > er... can't find the dtb file or the uEnv.txt file. Any help >>>>> > > would be >>>>> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >>>>> > > uEnv.txt file from a pre-built image. >>>>> > > >>>>> > > As I'm going through the process of re-learning the build steps, >>>>> > > i >>>>> > > thought of a couple of things that I either didn't see or >>>>> > > couldn't >>>>> > > find on the website: >>>>> > > >>>>> > > - A list of boards and their kernel config files >>>>> > > - An easy reference on where to find the bits after the build. >>>>> > > yes, >>>>> > > yes, it's in the handbook. >>>>> > > - Since u-boot has been standardised now, it would be nice to >>>>> > > have a >>>>> > > section on where to get u-boot and the other bits needed to boot. >>>>> > > >>>>> > > Anyway, I've got an unprecedented week with no work and no kids, >>>>> > > so >>>>> > > I'm going to do what any sane person would do during a beautiful >>>>> > > July >>>>> > > summer: play with FreeBSD! >>>>> > > >>>>> > > My end goal - and this is a stretch target - is to try and adopt >>>>> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >>>>> > > I'll >>>>> > > have after my week is up, but that's what my objective is. I've >>>>> > > built >>>>> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >>>>> > > hope >>>>> > > that it will use his drivers? Once I get that working and can >>>>> > > verify >>>>> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >>>>> > > working on my IMX6 hummingboard. >>>>> > > >>>>> > > oh, and I suppose I should open up some code, eh? >>>>> > > >>>>> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >>>>> > > >>>>> > > Cheers, >>>>> > > >>>>> > > Russ >>>>> > You don't need a uenv.txt file. It was always optional, and with >>>>> > the >>>>> > latest uboot stuff it's completely gone. >>>>> > >>>>> > -- Ian >>>>> Thanks Ian. >>>>> >>>>> DTB files are apparently generated with buildworld. >>>>> >>>>> https://wiki.freebsd.org/FlattenedDeviceTree >>>>> >>>>> I know they are generated with a specific tool (the name of which I >>>>> forget) . I'm surprised it's not it's own target or at least part of >>>>> buildkernel. >>>>> >>>>> Russ >>>> >>>> The DTB files installed on our distributed images are built from >>>> sys/modules/dtb (which makes them part of the kernel build unless you >>>> go out of your way to build them by themselves). >>> >>> EBK (Error Behind Keyboard): Forgot the single quotes in my find >>> command. oops. Thanks! >>> >>> russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% >>> find . -name '*dtb*' >>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb >>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb >>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb >>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb >>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb From owner-freebsd-arm@freebsd.org Tue Jul 18 16:05:58 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B66EAD966BD for ; Tue, 18 Jul 2017 16:05:58 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22a.google.com (mail-lf0-x22a.google.com [IPv6:2a00:1450:4010:c07::22a]) (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 40DDC7322A for ; Tue, 18 Jul 2017 16:05:58 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22a.google.com with SMTP id w198so17998869lff.2 for ; Tue, 18 Jul 2017 09:05:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=YET8y2FeH5edn7h6MZ3davng4BiGyU7CxAXW0Kaicfc=; b=GAMyJhj278CoAgrXaLqMpBzyxYRoJ6vTgTFdeHQ8Rq8ytt5TfzFSLykncVZic73kuK K94LC70UFMkRnt67rG031wp3LWzZdvbX0XpxgkdD2n463q0JfflogiG5jqUOwAaVb1tA 7OMf/zMpD5QdEwbHnLQAz/2q6LGhGTe1cW36jFVUyTKF945819jwJwNGDyZGQLnvIGzV CKIw2WNAJdmEt07idhnT4vouTh9JcWyyzryhynq6Xy5AuOZ6zq8X0lx+J3zSQjpfsRLg /zLp3hc6e8avVlGX6cklc09g9Gxf5N6tzK4SHPa35VqV6ENaaybyZqt9WjY6cDTJOm1k Miqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=YET8y2FeH5edn7h6MZ3davng4BiGyU7CxAXW0Kaicfc=; b=tH5EMqOf/tiSUjnoKhlt19xDnSw1w2IsqIP4w3TojTstbhiNmslgnsBbtnSQi6w1HY BsUuen23mifkolzfBmGzSpRORGXBVNsfFxjwVQMfVv9VFwK7Mf0BydL2knbyVIkw8BLx 8bpoXVL2SeanWzsh9mU9NM8hCNTt03GyZaWwyG0NHQt55N/oQwXB8oQXahqMBgmxSWwz /EQWIUAIZdxJA6N0CkFQ+siijBjhsf+Z+6NIVJvoZd+Ri3TwFh3iZ23tPjqQhHN28Buc F+1qUIFNaZkKYIJ2+I1vHHJkwJR+O80g8gWnuwxpuyHUvP0SS9NdBA5b4IyUphtbLHrP 9z5w== X-Gm-Message-State: AIVw112iQp+rvge2ivZcZ9HLYvwIJwZyVAaN2N6US4iXzkrBuKNHkUnr rN2mBwzoWZz05K6W9yCB7Op6wenuDZgJ X-Received: by 10.46.80.22 with SMTP id e22mr1072913ljb.68.1500393956250; Tue, 18 Jul 2017 09:05:56 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Tue, 18 Jul 2017 09:05:55 -0700 (PDT) From: Russell Haley Date: Tue, 18 Jul 2017 09:05:55 -0700 Message-ID: Subject: u-boot for cubox-hummingboard failing To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 16:05:58 -0000 russellh@prescott:/usr/ports/sysutils/u-boot-cubox-hummingboard% sudo make ===> License GPLv2 accepted by the user ===> u-boot-cubox-hummingboard-2013.10_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by u-boot-cubox-hummingboard-2013.10_1 for building ===> Extracting for u-boot-cubox-hummingboard-2013.10_1 => No checksum file (/usr/ports/sysutils/u-boot-cubox-hummingboard/distinfo). *** Error code 1 Stop. make: stopped in /usr/ports/sysutils/u-boot-cubox-hummingboard I did a portsnap fetch update but it didn't help. I'm heading out for a bit but I will look at it later. The date looks wrong on that if the u-boot port has been updated? Otherwise perhaps I can just checksum the files myself. Now where did my copy of the porters handbook go? ;) Russ From owner-freebsd-arm@freebsd.org Tue Jul 18 16:23:58 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F294D96C51 for ; Tue, 18 Jul 2017 16:23:58 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E591973A24 for ; Tue, 18 Jul 2017 16:23:57 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 6e70d867-6bd5-11e7-a4a1-c9e62e5d9688 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 6e70d867-6bd5-11e7-a4a1-c9e62e5d9688; Tue, 18 Jul 2017 16:23:28 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v6IGNopa001313; Tue, 18 Jul 2017 10:23:50 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1500395030.22314.164.camel@freebsd.org> Subject: Re: u-boot for cubox-hummingboard failing From: Ian Lepore To: Russell Haley , freebsd-arm Date: Tue, 18 Jul 2017 10:23:50 -0600 In-Reply-To: References: Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 16:23:58 -0000 On Tue, 2017-07-18 at 09:05 -0700, Russell Haley wrote: > russellh@prescott:/usr/ports/sysutils/u-boot-cubox-hummingboard% sudo > make > ===>  License GPLv2 accepted by the user > ===>   u-boot-cubox-hummingboard-2013.10_1 depends on file: > /usr/local/sbin/pkg - found > ===> Fetching all distfiles required by > u-boot-cubox-hummingboard-2013.10_1 for building > ===>  Extracting for u-boot-cubox-hummingboard-2013.10_1 > => No checksum file > (/usr/ports/sysutils/u-boot-cubox-hummingboard/distinfo). > *** Error code 1 > > Stop. > make: stopped in /usr/ports/sysutils/u-boot-cubox-hummingboard > > I did a portsnap fetch update but it didn't help. > > I'm heading out for a bit but I will look at it later. The date looks > wrong on that if the u-boot port has been updated? Otherwise perhaps > I > can just checksum the files myself.  Now where did my copy of the > porters handbook go? ;) > > Russ I think your ports didn't get updated properly.  I don't use portsnap, but did you maybe modify the file at some point and now portsnap is not updating it so it doesn't lose your changes? To just build the old version, add -DNO_CHECKSUM to the make command. -- Ian From owner-freebsd-arm@freebsd.org Tue Jul 18 16:24:41 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A134CD96CE7 for ; Tue, 18 Jul 2017 16:24:41 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-pg0-x22b.google.com (mail-pg0-x22b.google.com [IPv6:2607:f8b0:400e:c05::22b]) (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 7136473A94; Tue, 18 Jul 2017 16:24:41 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-pg0-x22b.google.com with SMTP id v190so15455949pgv.2; Tue, 18 Jul 2017 09:24:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:content-transfer-encoding:message-id:date:subject:from :in-reply-to:references:to; bh=RhrCKT0POfWgIzva7OeJmfAyNffKXR1qZHJQE7L7E5Q=; b=iZe95iIi8cYgRRY0Ce21paFFLLKWI7LZl3BSuQSN8fG5iOXjyeGcMDnDLANerjk7fj aM2wxnYnXwP5vCtnswTklyEW/satfbi84sEW+ZWgmoWMuprXp98CayOAoQMjblcqxvVS R4X0Cx17NhOURGoFbdebad5RD3gqoOpIRISUbcLhgPbZLkP5Cl3yALa+K9yVYldTl8F3 rgGIJbwYTWx3yGinqoIrIimBCcEs9niDK3rOCWE/paKDDb49LSmpEviGns9tkyQT7B7Z TOAoq4ndzN8UVAbs/+mItbQn/NF0sxoY8S2HzcOj9PfVSWl76CCYeIp4t2gNIc4S/neY dviA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:content-transfer-encoding :message-id:date:subject:from:in-reply-to:references:to; bh=RhrCKT0POfWgIzva7OeJmfAyNffKXR1qZHJQE7L7E5Q=; b=V8EOWKnPYXpsWWZ175GE1gSjZi+SsQGrffEMI/5LkSh6C4BrbkodkxAGMiFa3hiJQZ K/XJJPdw54+yA7QSi/XAvDmf9O+1Ss9ok8nA7pUQxuFVMWRwS9PJzvYILwjEp8Ll4QNB kj2OZhCwjWcfhnHgUhzcRgSTynaThAAHxr84/IgqHm0L1HtUemtUeCzwKmtjS+HY4Oyp XOHd0nFMgNbB1bwQdAqSPOzWOeb4x7PX/+v70anHgERKjD+U6bqcpJvxKzMneKTGxWIj h/ufkhRAfMD4wn2rf9yPyxPt9en7kb0zlamlsWs+5v3Udah4Whao8McyowxUoc/Xy5Po uigg== X-Gm-Message-State: AIVw111QT8pj+tuDuCWWBM6flYbxG5AR5/6tReVMZGd2g/Ucm63RLUfw J98Q71gRK5j/G85VoLA= X-Received: by 10.99.119.10 with SMTP id s10mr2498724pgc.211.1500395080495; Tue, 18 Jul 2017 09:24:40 -0700 (PDT) Received: from [127.0.0.1] ([184.151.231.202]) by smtp.gmail.com with ESMTPSA id 191sm5828116pfb.70.2017.07.18.09.24.38 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 18 Jul 2017 09:24:39 -0700 (PDT) Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: BlackBerry Email (10.3.3.2163) Message-ID: <20170718162438.6312020.64253.28958@gmail.com> Date: Tue, 18 Jul 2017 09:24:38 -0700 Subject: Re: u-boot for cubox-hummingboard failing From: Russell Haley In-Reply-To: <1500395030.22314.164.camel@freebsd.org> References: <1500395030.22314.164.camel@freebsd.org> To: Ian Lepore , freebsd-arm X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 16:24:41 -0000 I'll pull from svn when I get back. Sent=A0from=A0my=A0BlackBerry=A010=A0smartphone=A0on=A0the=A0Virgin=A0Mobil= e=A0network. =A0 Original Message =A0 From: Ian Lepore Sent: Tuesday, July 18, 2017 9:23 AM To: Russell Haley; freebsd-arm Subject: Re: u-boot for cubox-hummingboard failing On Tue, 2017-07-18 at 09:05 -0700, Russell Haley wrote: > russellh@prescott:/usr/ports/sysutils/u-boot-cubox-hummingboard% sudo > make > =3D=3D=3D>=A0=A0License GPLv2 accepted by the user > =3D=3D=3D>=A0=A0=A0u-boot-cubox-hummingboard-2013.10_1 depends on file: > /usr/local/sbin/pkg - found > =3D=3D=3D> Fetching all distfiles required by > u-boot-cubox-hummingboard-2013.10_1 for building > =3D=3D=3D>=A0=A0Extracting for u-boot-cubox-hummingboard-2013.10_1 > =3D> No checksum file > (/usr/ports/sysutils/u-boot-cubox-hummingboard/distinfo). > *** Error code 1 >=20 > Stop. > make: stopped in /usr/ports/sysutils/u-boot-cubox-hummingboard >=20 > I did a portsnap fetch update but it didn't help. >=20 > I'm heading out for a bit but I will look at it later. The date looks > wrong on that if the u-boot port has been updated? Otherwise perhaps > I > can just checksum the files myself.=A0=A0Now where did my copy of the > porters handbook go? ;) >=20 > Russ I think your ports didn't get updated properly. =A0I don't use portsnap, but did you maybe modify the file at some point and now portsnap is not updating it so it doesn't lose your changes? To just build the old version, add -DNO_CHECKSUM to the make command. -- Ian From owner-freebsd-arm@freebsd.org Tue Jul 18 21:09:47 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E078FDA0279 for ; Tue, 18 Jul 2017 21:09:47 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward14o.cmail.yandex.net (forward14o.cmail.yandex.net [37.9.109.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 92CE283D35 for ; Tue, 18 Jul 2017 21:09:46 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp2m.mail.yandex.net (smtp2m.mail.yandex.net [77.88.61.129]) by forward14o.cmail.yandex.net (Yandex) with ESMTP id 4374C221C4 for ; Wed, 19 Jul 2017 00:09:38 +0300 (MSK) Received: from smtp2m.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2m.mail.yandex.net (Yandex) with ESMTP id 248F92300E0D for ; Wed, 19 Jul 2017 00:09:37 +0300 (MSK) Received: by smtp2m.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id fV97mS33Y5-9aAeLMFp; Wed, 19 Jul 2017 00:09:36 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1500412176; bh=/PlbDJesSVKoRxfZFpcC7rsE2CilyvMGO9QKxqr8sZE=; h=To:From:Subject:Message-ID:Date; b=bsftXx1toivRPA+DXkDFlIZqEq/2Oc6H8/sf27IkzTp+mP2qhN76zabIkUJLGMMfY SaUN2Rf2SjOrMejAn1KqJ+rGfsP678JOBFYSJDJaPxdmBfEHwSvsBCfZYFujmL5GGP +QT27C3oU74eS9/WoUAWndXOJBdse08GVLF7JSz4= Authentication-Results: smtp2m.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0 To: freebsd-arm@FreeBSD.org From: Boris Samorodov Subject: [RPI2] base packages: success Message-ID: <7b675630-eac1-980e-dc19-73a6accdbe7a@passap.ru> Date: Wed, 19 Jul 2017 00:09:36 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 21:09:48 -0000 Hi All, Just a note that I've successfully updated an fresh RPI2-current system to use base packages (IMX6 kernel). I've done all that documented at https://wiki.freebsd.org/PkgBase , built base packages (at amd64 host). At the RPI2 host I use /boot/loader.conf: --- kernel="kernel.IMX6" --- An it just works. Thanks to all who do the hard work to achieve this! -- WBR, bsam From owner-freebsd-arm@freebsd.org Tue Jul 18 21:15:32 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AFE3DA0498 for ; Tue, 18 Jul 2017 21:15:32 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward1j.cmail.yandex.net (forward1j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46DB3F7 for ; Tue, 18 Jul 2017 21:15:32 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [IPv6:2a02:6b8:0:801::ac]) by forward1j.cmail.yandex.net (Yandex) with ESMTP id C922520F4C for ; Wed, 19 Jul 2017 00:15:28 +0300 (MSK) Received: from smtp2j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2j.mail.yandex.net (Yandex) with ESMTP id A3A5A3EC0D97 for ; Wed, 19 Jul 2017 00:15:27 +0300 (MSK) Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 2WySYjPHj6-FRbWIL4J; Wed, 19 Jul 2017 00:15:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1500412527; bh=o6VG9bBy/NcNLPhxyh5siQrop1EvN4pwelhVwR8gSAU=; h=Subject:From:To:References:Message-ID:Date:In-Reply-To; b=QbeDze2A+ARVjS2FmgKXtkmtiYRYb8bdCX82EEwSv85+/OKviz0acyhzXB5UgeNfm 5t7Ys0iDoQ8SIFavyha8J4YeIOumwwdaRiCRDfm2cooYshX/rqpQg3NuoWTOKEjrWZ ERvXjaqz5ey3xL6IjdlWznxK/iFcqvcXsnXREtLQ= Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0 Subject: WandboardQuad, not RPI2 Re: [RPI2] base packages: success From: Boris Samorodov To: freebsd-arm@FreeBSD.org References: <7b675630-eac1-980e-dc19-73a6accdbe7a@passap.ru> Message-ID: <78c10bf3-bc1d-dc67-06b1-f4efc70fc630@passap.ru> Date: Wed, 19 Jul 2017 00:15:27 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <7b675630-eac1-980e-dc19-73a6accdbe7a@passap.ru> Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Jul 2017 21:15:32 -0000 Sorry, PRI2 is only at my plans. For now I have a success with WandboardQuad. 19.07.2017 00:09, Boris Samorodov пишет: > Hi All, > > Just a note that I've successfully updated an fresh RPI2-current system > to use base packages (IMX6 kernel). I've done all that documented at > https://wiki.freebsd.org/PkgBase , built base packages (at amd64 host). > At the RPI2 host I use /boot/loader.conf: > --- > kernel="kernel.IMX6" > --- > > An it just works. > > Thanks to all who do the hard work to achieve this! > From owner-freebsd-arm@freebsd.org Wed Jul 19 03:19:57 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8AB15DA77EF for ; Wed, 19 Jul 2017 03:19:57 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 00F3E68F27 for ; Wed, 19 Jul 2017 03:19:57 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22b.google.com with SMTP id d78so21845901lfg.3 for ; Tue, 18 Jul 2017 20:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=k8Rr0kWRqSyRVFd0UjbO5GLPjjOKnPHBVE/v40JukPg=; b=SVTg9TLbWwJADw+FHzxknhEUVof0TZKiE6SALJsN6y/M5N2V5u9CJqwz0XTeMKHe1b Mb+hY+h1efNE6NRo3Cz9idIgI5sYGPLEYTN09Q3TXgrr5Lifyr8fWF3pfH+FBhKxG4qE Y4Y6JlToiCMijp+AturCMhMnfD1Rl7GmRAhdmzCpDTK8rCvg2rBc/FrcdAOjW5MZkcMO rKcWWnefFo2NEtmeBf5Kups4TR+tPLQNzFCoqe4b2IH3YtiIMndKft32bvyZz4E3UFg8 cBoEXYQerm7ofz2esn8J8EL04v3VoZW0LkNvpWMkp3wXznH9JtKTH3XT5tYynw+C1O4F d+7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=k8Rr0kWRqSyRVFd0UjbO5GLPjjOKnPHBVE/v40JukPg=; b=IhHoA8dd0Xg9lGXxiT0dtg/lTNADw1xj5Yakst5tHxLEZzWTey00HzwGFtJnBIUkdJ SuWDt3egAeWVW7e5fNMmOOT6uNvpqOX/CfqbKFl2WFdIFxO5MZcSAklb1eCR46fenHKI PyRD7LUhI3rvGZM3jS2hJX5M77pQlPyI9upbURudzsIZD8RamGwSlMHIhso6CmY2Kya8 KsMvI77poQ0MriA76RGVhWILg4h+hUfhs4dhJ0IIwHDFnkUXajXpe7Sk9alBSXlL1uZK SO1sX78VcNzrLtxlMArdZCU61SdOrhMsuePIw65nciJu7evWoA5qH0A1jZywJo54Kq/e tfmA== X-Gm-Message-State: AIVw111t4/ohB2Gdtjjp/mKdVHi1IahneyjvNwIbcoP3jm8aW6dB9GZW traA4m22HnFupN+swImdW9hl8fnNeWF1D3s= X-Received: by 10.25.79.89 with SMTP id a25mr1462378lfk.160.1500434394634; Tue, 18 Jul 2017 20:19:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Tue, 18 Jul 2017 20:19:54 -0700 (PDT) In-Reply-To: References: From: Russell Haley Date: Tue, 18 Jul 2017 20:19:54 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 03:19:57 -0000 Current Status: Building and Installing - BBB - Either the information about building a Beaglebone has fallen out of date, or the beaglebone black has different requirements that should be documented on that page. Boot pieces: - MLO -u-boot.img -ubldr.bin - The kernel I built yesterday panics during load due to a sleep lock that has already been identified by kibab (aka Ilya). I will attempt to patch it tomorrow. hummingboard - The u-boot port for cubox-hummingboard does not build from the ports. It tries to fetch the 2013 source files and fails the checksum. I pulled ports from svn and it builds correctly with u-boot 2017. Source Code The following is my examination of the code I can identify as involving the new MMCCAM stack. I am reading first to understand how the pieces fit and then will get into the details. - All mmccam functions for BBB sd cards is run through the sdhci driver in /sys/dev/sdhci/sdhci.c which is extended by arm/ti/ti_sdhci.c. When a custom kernel configuration is used, the MMCCAM flag is specified and the MMCCAM specific code is compiled into /sys/dev/sdhci/sdhci.c and .h. - There seems to be a implementation specific startup routine compiled into the arm/ti/ti_sdhci.c using an ifdef. There is also a custom read and write defined so I assume there is some board specific things that need adjusting. Need to look closer - sdhci code paths seem to directly use the cam_ccb and cam_sim rather than call any mmc specific code. It seems the sdhci uses the cam bus but not the mmc_sdio code, nore the cam_xpt_* code. - Note: in /sys/dev/sdhci/sdhci.c the includes on lines 51 through 55 are duplicated in an ifdef MMCCAM at lines 1979 through 1985. Is that intentional? cam/mmc - mmc_sdio seems to be it's own thing. It includes both the cam_sim/cam_ccb and the cam_xpt_* headers but I don't know yet if it uses both sets of functionality (code is still opaque to me). Okay, back at it tomorrow. Ilya, Warner, if you're around at all I'd love to get a state of the union from you. Thanks, Russ On Tue, Jul 18, 2017 at 7:25 AM, Russell Haley wrote: > Well more EBK (error behind keyboard). In the end I STILL didn't read > the entire command line in the > wiki. I missed the -E parameter for sudo, which preserves the > environment variables. > > Ian remembered that he once added something to the sudoers file, which > got me to the next step, where I finally *saw* the missing sudo parameter > when reading the wiki entry for buildkernel. His more permanent > solution is to add a line via > visudo: > > Defaults env_keep += "MAKEOBJDIRPREFIX MODULES_OVERRIDE SUBDIR_OVERRIDE" > > which preserves the required variable of MAKEOBJDIRPREFIX. > > He explains the other variables: > The other two vars are because I sometimes do a sudo make install with > SUBDIR_OVERRIDE= or MODULES_OVERRIDE= to get a quick partial install > > Final build instructions: > > *NOTE: My output all says hummingboard because I thought I was going > to build for that board first. I changed my mind at the last minute > and built for my BBB. I'm cross building on amd64 to a BBB. > > setenv BASEDIR `pwd` > setenv MAKEOBJDIRPREFIX $BASEDIR/obj > cd $BASEDIR/src > > svn checkout https://svn0.us-west.FreeBSD.org/base/head . > > > mkdir /mnt/memdisk > mkdir /mnt/uboot > > truncate -s 1100M bbb.img #I think... I used 2048 because 1024 failed > sudo mdconfig -f bbb.img > > gpart create -s mbr md0 > gpart add -t fat32 -b 1M -s 50M md0 > sudo newfs_msdos -F16 /dev/md0s1 > gpart add -t freebsd md0 > sudo newfs /dev/md0s2 > > > make TARGET_ARCH=armv6 -j10 buildworld > make TARGET_ARCH=armv6 KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel > > sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ > sudo mount /dev/md0s2 /mnt/memdisk/ > > #The -E is very important. It preserves the environment for sudo > sudo -E make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld distribution > sudo -E make installkernel TARGET_ARCH=armv6 > KERNCONF=BEAGLEBONE-MMCCAM DESTDIR=/mnt/memdisk > > cp ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys/boot/arm/uboot/ubldr > /mnt/uboot > > # > cd ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src > ~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src% > cp ./sys/BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb > /mnt/uboot/ > > > cd /usr/ports/sysutils/u-boot-beaglebone/ > > make > > cp work/u-boot-ports-v2017.01.00.2/MLO /mnt/uboot > cp work/u-boot-ports-v2017.01.00.2/u-boot.img /mnt/uboot > > sudo umount /dev/md0s1 > sudo umount /dev/md0s2 > sudo mdconfig -du md0 > > sysctl kern.geom.debugflags=16 > dd if=bbb.img of=/dev/da5 bs=4096k > > total ufs size used: 948M > > Thanks! > Russ > > Now I need to find those silly little pins for the fdt cable. lolz > > On Mon, Jul 17, 2017 at 5:15 PM, Russell Haley wrote: >> Sorry, I'm going to take the TARGET out and try again. It's not in the >> wiki entry for cross building. >> >> On Mon, Jul 17, 2017 at 1:57 PM, Russell Haley wrote: >>> My installworld is failing? >>> >>> Steps so far: >>> #Make a memdisk to speed things up >>> mkdir /mnt/memdisk >>> mkdir /mnt/uboot >>> >>> truncate -s 1024M bbb.img >>> sudo mdconfig -f bbb.img >>> >>> gpart create -s mbr md0 >>> gpart add -t fat32 -b 1M -s 50M md0 >>> newfs_msdos -F32 /dev/md0s1 >>> gpart add -t freebsd md0 >>> sudo newfs /dev/md0s2 >>> >>> #build >>> >>> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld >>> make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 >>> KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel >>> >>> #install >>> sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ >>> sudo mount /dev/md0s2 /mnt/memdisk/ >>> sudo make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld distribution >>> >>> build error (full output is here: https://pastebin.com/VU3XDt5u): >>> >>> -------------------------------------------------------------- >>>>>> Installing everything >>> -------------------------------------------------------------- >>> cd /usr/home/russellh/FreeBSD/hummingboard/src; make -f Makefile.inc1 >>> install >>> ===> lib (install) >>> ===> lib/csu (install) >>> ===> lib/csu/arm (install) >>> cc -target armv6-gnueabihf-freebsd12.0 >>> --sysroot=/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp >>> -B/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp/usr/bin >>> -O -pipe -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/common >>> -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/libc/include >>> -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W >>> -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes >>> -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch >>> -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline >>> -Wnested-externs -Wredundant-decls -Wold-style-definition >>> -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int >>> -Wno-unused-const-variable -Qunused-arguments >>> ERROR-tried-to-rebuild-during-make-install -mlong-calls -S -o crt1.s >>> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm/crt1.c >>> /tmp/install.t1fF66Xy/sh: cc: not found >>> *** Error code 127 >>> >>> Stop. >>> make[6]: stopped in >>> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm >>> *** Error code 1 >>> >>> Stop. >>> make[5]: stopped in >>> /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu >>> *** Error code 1 >>> >>> Stop. >>> make[4]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib >>> *** Error code 1 >>> >>> Stop. >>> make[3]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >>> *** Error code 1 >>> >>> Stop. >>> make[2]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >>> *** Error code 1 >>> >>> Stop. >>> make[1]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >>> *** Error code 1 >>> >>> Stop. >>> make: stopped in /usr/home/russellh/FreeBSD/hummingboard/src >>> >>> >>> >>> Thanks, >>> Russ >>> >>> On Mon, Jul 17, 2017 at 11:39 AM, Russell Haley wrote: >>>> On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: >>>>> On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >>>>>> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >>>>>> > >>>>>> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >>>>>> > > >>>>>> > > Hi, >>>>>> > > >>>>>> > > I'm building for a BBB and I think I've got almost everything but >>>>>> > > I >>>>>> > > er... can't find the dtb file or the uEnv.txt file. Any help >>>>>> > > would be >>>>>> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >>>>>> > > uEnv.txt file from a pre-built image. >>>>>> > > >>>>>> > > As I'm going through the process of re-learning the build steps, >>>>>> > > i >>>>>> > > thought of a couple of things that I either didn't see or >>>>>> > > couldn't >>>>>> > > find on the website: >>>>>> > > >>>>>> > > - A list of boards and their kernel config files >>>>>> > > - An easy reference on where to find the bits after the build. >>>>>> > > yes, >>>>>> > > yes, it's in the handbook. >>>>>> > > - Since u-boot has been standardised now, it would be nice to >>>>>> > > have a >>>>>> > > section on where to get u-boot and the other bits needed to boot. >>>>>> > > >>>>>> > > Anyway, I've got an unprecedented week with no work and no kids, >>>>>> > > so >>>>>> > > I'm going to do what any sane person would do during a beautiful >>>>>> > > July >>>>>> > > summer: play with FreeBSD! >>>>>> > > >>>>>> > > My end goal - and this is a stretch target - is to try and adopt >>>>>> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >>>>>> > > I'll >>>>>> > > have after my week is up, but that's what my objective is. I've >>>>>> > > built >>>>>> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >>>>>> > > hope >>>>>> > > that it will use his drivers? Once I get that working and can >>>>>> > > verify >>>>>> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >>>>>> > > working on my IMX6 hummingboard. >>>>>> > > >>>>>> > > oh, and I suppose I should open up some code, eh? >>>>>> > > >>>>>> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >>>>>> > > >>>>>> > > Cheers, >>>>>> > > >>>>>> > > Russ >>>>>> > You don't need a uenv.txt file. It was always optional, and with >>>>>> > the >>>>>> > latest uboot stuff it's completely gone. >>>>>> > >>>>>> > -- Ian >>>>>> Thanks Ian. >>>>>> >>>>>> DTB files are apparently generated with buildworld. >>>>>> >>>>>> https://wiki.freebsd.org/FlattenedDeviceTree >>>>>> >>>>>> I know they are generated with a specific tool (the name of which I >>>>>> forget) . I'm surprised it's not it's own target or at least part of >>>>>> buildkernel. >>>>>> >>>>>> Russ >>>>> >>>>> The DTB files installed on our distributed images are built from >>>>> sys/modules/dtb (which makes them part of the kernel build unless you >>>>> go out of your way to build them by themselves). >>>> >>>> EBK (Error Behind Keyboard): Forgot the single quotes in my find >>>> command. oops. Thanks! >>>> >>>> russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% >>>> find . -name '*dtb*' >>>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb >>>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb >>>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb >>>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb >>>> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb From owner-freebsd-arm@freebsd.org Wed Jul 19 20:00:27 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 95269D7D337 for ; Wed, 19 Jul 2017 20:00:27 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x229.google.com (mail-lf0-x229.google.com [IPv6:2a00:1450:4010:c07::229]) (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 1FF1969F38; Wed, 19 Jul 2017 20:00:27 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x229.google.com with SMTP id y15so4367533lfd.5; Wed, 19 Jul 2017 13:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WDYvAilAdEpNl5SaEAgXmJxZUQ/MO3fOD9PUs+mi8gQ=; b=gK4NMJwaSVRS8o6SCrAU3Z5WC26nSR/mk8+7AKaSd+cVADw56ER1t8xu/7ldt8uyD+ Z/gtqTd6mwauLlUCYnnBhhgm+DlMvbnZP9kwz/pQJI6oofUVgnJQxZKwQkTDPGR64F1O wh7NnSbGCwfUSasKD/gWmZrA6jsQSPlHVV6EJFTERpjqV8JOnjYZQr8/XqnKahkuK6xV ihJH4Bs9L+WU7wANY+wGDaciOZttobwrZDJb4xeYj/u11p1r84E/6JRJRQhodrM0msWT n8JaULZ2ftSuka9qVRPa7hZlg75eUK9UEm7Alr6CpqF7AUFtyab6r1G1y5VhSWAlPFeC f+HQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WDYvAilAdEpNl5SaEAgXmJxZUQ/MO3fOD9PUs+mi8gQ=; b=Sjms1G3TVOEccvozBjtELbjjX+au7WxduhUrkeLc4P09ZG9PB5n3aq2Ahs5sCi8WXn b+uV0PI4xtS1vh+ByZb77mRpmBEa4m0Rghpl3+UUh+kzHAmxgvB5Y95upUR1looAUWrF tfrCqOzazPxueEU3MBsEl1+f4rQrTG+gdvyRB4RszG3lHz7TGSoRJKdQDEAqlsRTaVl5 I6F7rP6rQz4hQanfZEkAQd/MFKMPwAztaq1Eg/52n+UwjdTaI3Vlf1OknE0QZIGl88Hc 6UdEXjWPkyNwkR5i0SQLUU+wpDZToqAFDznuLpsHi0KPvvyyt1py0u3NQUIrGC57nAlu dngQ== X-Gm-Message-State: AIVw111njO21VZY+yDYYGqjCF41TBcD8N61EW6ey8pZcSI6ikvbbqg6P mu7xI9W5NLtQxiaFx0ZJgIB8usuwU9Nj X-Received: by 10.25.219.208 with SMTP id t77mr351792lfi.110.1500494424503; Wed, 19 Jul 2017 13:00:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Wed, 19 Jul 2017 13:00:24 -0700 (PDT) From: Russell Haley Date: Wed, 19 Jul 2017 13:00:24 -0700 Message-ID: Subject: Re: r321082 To: asomers@freebsd.org, freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 20:00:27 -0000 Hi asomers (Alan), I was harassing the kindly people on the #mipsbsd irc channel and I have run into an installworld issue when building for armv6. I am running r321178 and it was suspected that commit r321082 may be the cause of the failure. I was told to 'ping' you in case you had some more information. My error output is here: https://pastebin.com/x4kNX84J The first time through installworld the file lio_test was not found so I dropped to the directory and built it manually. I ran installworld again but received the same error, even though the file is present (see output). I believe my MAKOBJDIRPREFIX is set correctly: russellh@prescott:~/FreeBSD/rh-armv6/src/tests/sys/aio% echo $MAKEOBJDIRPREFIX/ /usr/home/russellh/FreeBSD/rh-armv6/obj/ Any information you could provide would be graciously appreciated. Sincerely, Russell Haley From owner-freebsd-arm@freebsd.org Wed Jul 19 20:21:53 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0AF8ED7D78F for ; Wed, 19 Jul 2017 20:21:53 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yb0-x236.google.com (mail-yb0-x236.google.com [IPv6:2607:f8b0:4002:c09::236]) (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 BE8596A7E7 for ; Wed, 19 Jul 2017 20:21:52 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yb0-x236.google.com with SMTP id z37so2668673ybh.1 for ; Wed, 19 Jul 2017 13:21:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=h+LGmpjgzBSUm0KoWZybKqQjD6hWJWG3m9fkelOYBvY=; b=JLxmi4fcA3C10kQRhB3eg9Ve4t3ea17TCACZfAxAVrWEx1wxUVmRWx7PuTNPeMOJL5 9NMHvSmfYMpWfh38MXuDl1Yb4eOADy/fRM9t+LSp8O9WOcQZb8FWQ91IQqPlc1xmiC7m HjsCHIvLbbN7qSPHEhrrhr/iPD7CT84FlJYYLyLvTqeuSf+25fEqZWeMJcfQVnkf8jwX jh9v7x1E9JlDaesAZtzj7S3DPjT7J1VYrfWaJbqJvBPKX9eYFQaG4rWKCy2M5ESrTRJK 0/lG3f6+QpAzMBj1sOLlilIZcGls1EhUXIBFvIFnHQ1p2h3WAfAJEBj16578A7AYokyQ tj7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=h+LGmpjgzBSUm0KoWZybKqQjD6hWJWG3m9fkelOYBvY=; b=qtyNI1Ee012gMt9TiORROWZlHP2meksxrpjcUJ+IgkIDYXSO3bj3LCusEWyTGDh0Ml +IkgWerjAyxTBJj96naxNwI0U5J85gq0Epxgx9sbNDaaAB9IEBkc9OUJWhRV9fpwYnKP KtDxlLCBynAcNoLkVP6aIDT+vpw1T1dwJC0fn7Ud5dilL5WH/0GtuMiyb9H41kfG3ovD UD0GpnKr7DmlEGzPYY840/+iBvu2UH5ahcf9GvDgIqQfzUSnq91wLbctDUX9dWLiCcff qCzST9IhRzMtne7+xNRUEDZVAcHK2MGWCGd08ezTeS4A9ShoWFArxd5uerBO2pgvzmwL FaNA== X-Gm-Message-State: AIVw111SjG6RiOrRbmk7O4gRQM5EnCu+iAP9uxd/yqcN/Y6W12K+0jEg LKC9EVbaffz5eJPULN6gfpMteGX4qQ== X-Received: by 10.37.57.11 with SMTP id g11mr1260368yba.217.1500495711742; Wed, 19 Jul 2017 13:21:51 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.129.95.135 with HTTP; Wed, 19 Jul 2017 13:21:51 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Wed, 19 Jul 2017 14:21:51 -0600 X-Google-Sender-Auth: NyD3MPkpJbn0meM0Mz31OmGgla0 Message-ID: Subject: Re: r321082 To: Russell Haley Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jul 2017 20:21:53 -0000 On Wed, Jul 19, 2017 at 2:00 PM, Russell Haley wrote: > Hi asomers (Alan), > > I was harassing the kindly people on the #mipsbsd irc channel and I > have run into an installworld issue when building for armv6. I am > running r321178 and it was suspected that commit r321082 may be the > cause of the failure. I was told to 'ping' you in case you had some > more information. My error output is here: > > https://pastebin.com/x4kNX84J > > The first time through installworld the file lio_test was not found so > I dropped to the directory and built it manually. I ran installworld > again but received the same error, even though the file is present > (see output). > > I believe my MAKOBJDIRPREFIX is set correctly: > > russellh@prescott:~/FreeBSD/rh-armv6/src/tests/sys/aio% echo $MAKEOBJDIRPREFIX/ > /usr/home/russellh/FreeBSD/rh-armv6/obj/ > > Any information you could provide would be graciously appreciated. > > Sincerely, > > Russell Haley Honestly, I'm at a loss. I don't see how you could fail to have that file if you're doing a normal build. Was it a clean build? Are you using META_MODE? -Alan From owner-freebsd-arm@freebsd.org Thu Jul 20 03:34:29 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4B895DA5BBF for ; Thu, 20 Jul 2017 03:34:29 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x22d.google.com (mail-lf0-x22d.google.com [IPv6:2a00:1450:4010:c07::22d]) (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 C77B77E958; Thu, 20 Jul 2017 03:34:28 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x22d.google.com with SMTP id d78so7263024lfg.3; Wed, 19 Jul 2017 20:34:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=PBXoKhJTFWR1BDNrGcE/M9JvOKv58J/mFem/BOR2KiY=; b=tKzAWHRZE+gNqSvLdDUj7TXfy2fSOCPRHW7P+jfqrrT+atld+TAGHeIFibVH4H1Ioj wuREohZoRNfA3J6GW8Jic5vroAuMoE0oxZSMWxS4yq3ST+xucCqxos0zffzjfO0QKFoG JkoIWMcN5y5j62SGUSHJUnfCp8cu1z1xrUWzyXWjbIpsNg/4wGW7IE4r0RSqzvE/cMNV woAa1Y49Wm0BplGybz2RpzPX2npDSGq/306JgOh8SxqifvxXMdHYUZD80ZPkggN8Si1z 2UryNSaWdGOzfencc4T7pBbTeUvt/ELpeEkJu70tv7qWoMHJRlWt//ffClUQ7z6J35+j +hQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=PBXoKhJTFWR1BDNrGcE/M9JvOKv58J/mFem/BOR2KiY=; b=Xk0t/QJEpVqTGb4Muuk4csK8SbDDJUNBCnqWrRgMcVJ2CDZN10LKnPSGCDNGWQdC+b GaZYzZS33uKl2q3n24AyO2HAccLc/dlCqNPlyc1vFp3QUbFyh0V/q0wzbFWKgesAazOK K1r+KZZ772/t+cA+IvEfuBmQZ3aolGjR3gXZAP01KVrvMV7Kz6n7yn5WH5vtMmhLMIae 6vIrhBTl4ZeJ9iDmHjD199Inc7bhGW8s/1PZLLfPBcHIkBSEW8bMOpCvDDNaIsq4dpnw IKLzXf44KZRWMXN1Xr7nFUsRMcdNi4qw4N1PQcreWJ+ZbPYc/msKF17k0tXVu9sXPVMb D6lA== X-Gm-Message-State: AIVw110RbD2zYJOkadnTj37WEc0PUq0cHGAAUUKkeo13ocRa61yEuqXj yE1IRgz/DP4RyEvUG95ryGDMZQgcZQ== X-Received: by 10.25.37.208 with SMTP id l199mr701623lfl.181.1500521666941; Wed, 19 Jul 2017 20:34:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Wed, 19 Jul 2017 20:34:26 -0700 (PDT) In-Reply-To: References: From: Russell Haley Date: Wed, 19 Jul 2017 20:34:26 -0700 Message-ID: Subject: Re: r321082 To: Alan Somers Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 03:34:29 -0000 On Wed, Jul 19, 2017 at 1:21 PM, Alan Somers wrote: > On Wed, Jul 19, 2017 at 2:00 PM, Russell Haley wrote: >> Hi asomers (Alan), >> >> I was harassing the kindly people on the #mipsbsd irc channel and I >> have run into an installworld issue when building for armv6. I am >> running r321178 and it was suspected that commit r321082 may be the >> cause of the failure. I was told to 'ping' you in case you had some >> more information. My error output is here: >> >> https://pastebin.com/x4kNX84J >> >> The first time through installworld the file lio_test was not found so >> I dropped to the directory and built it manually. I ran installworld >> again but received the same error, even though the file is present >> (see output). >> >> I believe my MAKOBJDIRPREFIX is set correctly: >> >> russellh@prescott:~/FreeBSD/rh-armv6/src/tests/sys/aio% echo $MAKEOBJDIRPREFIX/ >> /usr/home/russellh/FreeBSD/rh-armv6/obj/ >> >> Any information you could provide would be graciously appreciated. >> >> Sincerely, >> >> Russell Haley > > Honestly, I'm at a loss. I don't see how you could fail to have that > file if you're doing a normal build. Was it a clean build? Are you > using META_MODE? > -Alan Thanks for getting back to me, I did an update and rebuild and all in the world is fine. Probably something silly I did. I'm still pretty green at this. Regards, Russell From owner-freebsd-arm@freebsd.org Thu Jul 20 03:48:43 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 82C2CDA704C for ; Thu, 20 Jul 2017 03:48:43 +0000 (UTC) (envelope-from asomers@gmail.com) Received: from mail-yb0-x233.google.com (mail-yb0-x233.google.com [IPv6:2607:f8b0:4002:c09::233]) (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 40ADB7EE37 for ; Thu, 20 Jul 2017 03:48:43 +0000 (UTC) (envelope-from asomers@gmail.com) Received: by mail-yb0-x233.google.com with SMTP id z37so4184362ybh.1 for ; Wed, 19 Jul 2017 20:48:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=0v+03b449dIQzEjrlfquQlzek//Vm+/HW2uJ2gqrRM8=; b=j70XjbtnY/X8oSO4r540/69iqORl/2iAWR+HXW+bIoHhamuRpV8rRagss6NPovRst5 qWsLsDdinohwou9tG2SvwS7eRwvAP3k5W+h/qqWf5sxHPsqsl5oKJJvvFx5QoykiMLhG lLXbjCogP1GJB9MklmQM6jMJAbjp/T55rD45MQYYCdSI4M2MkSXEu2gv5Fx1SHViDUZG ib/ZQ6hvNEChXLPicz+elOmj05WsX/kFSfM5g9+aTV8JWFpxkopuDSdl8wP9tw/8DVHG Nu7oMb1rlutbZ/gFxupYWiiXqX9FjPW18uDHUXAcFYDXkCPeKwglDfvxBLny4YzbBsuJ YpvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=0v+03b449dIQzEjrlfquQlzek//Vm+/HW2uJ2gqrRM8=; b=CMkSKHu4wJsMGkph46lgoYymHyjKsKNnBGw2VmU4TjFvWVsNoJZYzpSyr9P20RvKUI ejJYMZlB5cQJhlrYuG9oDPjK4K3FCoP1+jHId8GFSaStPrFrXkvsGLY09/Npq73tjwvr WZeM5/a+eIPyxTS5k4mADbnWvs7tDfDoXSaMTNsvZABbhNpqb8Idp2czBMcPmFB5/UIg RiMNYBGctSTocjA0xr58EhT0p/87ecCfZ9ijwQDp2okP9sfkuUZhIvjRV2m8MFZQAzoo QdSc+43unx0j2NFuTVqRlmnxZgMCUlEIWpNtIkd8BqVlyqV94QDTITGp0S9cIWJLtH1R u2xw== X-Gm-Message-State: AIVw112S5Y4Ktf7FRrwEUxXN3yPzyqv2p6hBrIArVaBrzQK1pmncYLwH rBLTtVyLZMU5HBrpQhETonD5jQ0/6Q== X-Received: by 10.37.200.197 with SMTP id y188mr2053838ybf.315.1500522522328; Wed, 19 Jul 2017 20:48:42 -0700 (PDT) MIME-Version: 1.0 Sender: asomers@gmail.com Received: by 10.129.95.135 with HTTP; Wed, 19 Jul 2017 20:48:41 -0700 (PDT) In-Reply-To: References: From: Alan Somers Date: Wed, 19 Jul 2017 21:48:41 -0600 X-Google-Sender-Auth: fEW9gC30_P6ziAAR109CrO9Ya5M Message-ID: Subject: Re: r321082 To: Russell Haley Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 03:48:43 -0000 On Wed, Jul 19, 2017 at 9:34 PM, Russell Haley wrote: > On Wed, Jul 19, 2017 at 1:21 PM, Alan Somers wrote: >> On Wed, Jul 19, 2017 at 2:00 PM, Russell Haley wrote: >>> Hi asomers (Alan), >>> >>> I was harassing the kindly people on the #mipsbsd irc channel and I >>> have run into an installworld issue when building for armv6. I am >>> running r321178 and it was suspected that commit r321082 may be the >>> cause of the failure. I was told to 'ping' you in case you had some >>> more information. My error output is here: >>> >>> https://pastebin.com/x4kNX84J >>> >>> The first time through installworld the file lio_test was not found so >>> I dropped to the directory and built it manually. I ran installworld >>> again but received the same error, even though the file is present >>> (see output). >>> >>> I believe my MAKOBJDIRPREFIX is set correctly: >>> >>> russellh@prescott:~/FreeBSD/rh-armv6/src/tests/sys/aio% echo $MAKEOBJDIRPREFIX/ >>> /usr/home/russellh/FreeBSD/rh-armv6/obj/ >>> >>> Any information you could provide would be graciously appreciated. >>> >>> Sincerely, >>> >>> Russell Haley >> >> Honestly, I'm at a loss. I don't see how you could fail to have that >> file if you're doing a normal build. Was it a clean build? Are you >> using META_MODE? >> -Alan > > Thanks for getting back to me, I did an update and rebuild and all in > the world is fine. Probably something silly I did. I'm still pretty > green at this. > > Regards, > > Russell Glad to hear everything's working. Happy hacking! From owner-freebsd-arm@freebsd.org Thu Jul 20 08:28:37 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 709D3DAC011 for ; Thu, 20 Jul 2017 08:28:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5F63C1FE6 for ; Thu, 20 Jul 2017 08:28:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6K8Sbbd081601 for ; Thu, 20 Jul 2017 08:28:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 220877] embedfs throw compile error on aarch64(arm64) Date: Thu, 20 Jul 2017 08:28:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: wheelcomplex@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 08:28:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220877 Bug ID: 220877 Summary: embedfs throw compile error on aarch64(arm64) Product: Base System Version: CURRENT Hardware: arm64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: wheelcomplex@gmail.com Compiling aarch64 kernel for raspberry pi 3 with following configure: options MD_ROOT makeoptions MFS_IMAGE=3D/usr/src/sys/arm64/conf/initrd.img Throw error: # --- embedfs_initrd.o ---=20 # objcopy --input-target binary --output-target --binary-architecture aarch64 /usr/src/sys/arm64/conf/initrd.img embedfs_initrd.o # objcopy: --binary-architecture: invalid target name # *** [embedfs_initrd.o] Error code 1 As we can see, command 'objcopy' missed one arg after --output-target. The correct command line should be 'objcopy --input-target binary=20 --output-target elf64-littleaarch64 --binary-architecture aarch64=20 /usr/src/sys/arm64/conf/initrd.img embedfs_initrd.o'. This small patch will fix the issue. It works for me. ---- cut here --- --- /home/david/sandspace/private-freebsd/sys/conf/kern.pre.mk.orig +++ /home/david/sandspace/private-freebsd/sys/conf/kern.pre.mk @@ -250,6 +250,7 @@ EMBEDFS_FORMAT.arm?=3D elf32-littlearm EMBEDFS_FORMAT.armv6?=3D elf32-littlearm +EMBEDFS_FORMAT.aarch64?=3D elf64-littleaarch64 EMBEDFS_FORMAT.mips?=3D elf32-tradbigmips EMBEDFS_FORMAT.mipsel?=3D elf32-tradlittlemips EMBEDFS_FORMAT.mips64?=3D elf64-tradbigmips ---- cut here --- --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Thu Jul 20 08:56:53 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0B00FDACAEB; Thu, 20 Jul 2017 08:56:53 +0000 (UTC) (envelope-from ilya@bakulin.de) Received: from olymp.kibab.com (olymp6.kibab.com [IPv6:2a01:4f8:160:84c1::2]) by mx1.freebsd.org (Postfix) with ESMTP id ADF843206; Thu, 20 Jul 2017 08:56:52 +0000 (UTC) (envelope-from ilya@bakulin.de) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Thu, 20 Jul 2017 10:56:50 +0200 From: Ilya Bakulin To: Russell Haley Cc: freebsd-arm , owner-freebsd-arm@freebsd.org Subject: Re: BBB & IMX6 Hummingboard SDIO driver Organization: Deglitch Networks In-Reply-To: References: Message-ID: <703c195298dd3bbbd3abd53603758f14@bakulin.de> X-Sender: ilya@bakulin.de X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 08:56:53 -0000 On 2017-07-19 05:19, Russell Haley wrote: > Current Status: > > Building and Installing - BBB > - Either the information about building a Beaglebone has fallen out of > date, or the beaglebone black has different requirements that should > be documented on that page. Boot pieces: > - MLO > -u-boot.img > -ubldr.bin > > - The kernel I built yesterday panics during load due to a sleep lock > that has already been identified by kibab (aka Ilya). I will attempt > to patch it tomorrow. I'm not sure what problem are you talking about. The patch on Phabricator tries to address a problem that there are several sleep() calls used in the MMC/SD probe code. This code shouldn't sleep. So I'm trying to get rid of sleeps, but the patch I've generated so far doesn't work -- this is just a starting point. So if the version from -HEAD panics at boot -- this is a bug and I need to address it. I haven't booted BBB in ages and will have sufficient time to debug the problem myself in two weeks (during DevSummit in Cambridge). > Source Code > The following is my examination of the code I can identify as > involving the new MMCCAM stack. I am reading first to understand how > the pieces fit and then will get into the details. > > - All mmccam functions for BBB sd cards is run through the sdhci > driver in /sys/dev/sdhci/sdhci.c which is extended by > arm/ti/ti_sdhci.c. When a custom kernel configuration is used, the > MMCCAM flag is specified and the MMCCAM specific code is compiled into > /sys/dev/sdhci/sdhci.c and .h. Yes, that's right. > - There seems to be a implementation specific startup routine > compiled into the arm/ti/ti_sdhci.c using an ifdef. There is also a > custom read and write defined so I assume there is some board specific > things that need adjusting. Need to look closer Yes, initialization function for MMCCAM is different. Also there is #ifdef'ed code in write_1 and read_1 because I need to adjust a 8-bit enable bit when writing to SDHC control register. Old stack did it in ios handling, but MMCCAM doesn't allow device drivers to have their own ios handling. > - sdhci code paths seem to directly use the cam_ccb and cam_sim > rather than call any mmc specific code. It seems the sdhci uses the > cam bus but not the mmc_sdio code, nore the cam_xpt_* code. This is correct -- every CAM request/response is routed by the CAM subsystem. > - Note: in /sys/dev/sdhci/sdhci.c the includes on lines 51 through 55 > are duplicated in an ifdef MMCCAM at lines 1979 through 1985. Is that > intentional? No, this should be corrected. Thanks! > > cam/mmc > - mmc_sdio seems to be it's own thing. It includes both the > cam_sim/cam_ccb and the cam_xpt_* headers but I don't know yet if it > uses both sets of functionality (code is still opaque to me). This code is not used yet since there is no SDIO-specific code for now. > > Okay, back at it tomorrow. Ilya, Warner, if you're around at all I'd > love to get a state of the union from you. Replying to your question on IRC wrt communication protocol: I don't frequently monitor all FreeBSD mailing lists and can easily miss SDIO-related stuff unless I'm directly CC'ed. I have a highlight setup for the #bsdmips IRC channel that notifies me when SDIO or my nickname is mentioned, so I will know someone was talking about these things. I'm in Munich (timezone is CEST), so reply times might be longer for US-based folk. -- Mit freundlichen Grüßen, Ilya Bakulin From owner-freebsd-arm@freebsd.org Thu Jul 20 18:12:08 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 968DCC7D93B for ; Thu, 20 Jul 2017 18:12:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 847D973867 for ; Thu, 20 Jul 2017 18:12:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v6KIC82s078807 for ; Thu, 20 Jul 2017 18:12:08 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 220050] armv6 kernel fails to build in clang500-import branch: smc instruction requires TrustZone Date: Thu, 20 Jul 2017 18:12:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: mfc-stable10- mfc-stable11+ X-Bugzilla-Changed-Fields: bug_status flagtypes.name resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 18:12:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D220050 Ed Maste changed: What |Removed |Added ---------------------------------------------------------------------------- Status|In Progress |Closed Flags| |mfc-stable10-, | |mfc-stable11+ Resolution|--- |FIXED --- Comment #2 from Ed Maste --- https://svnweb.freebsd.org/base?view=3Drevision&revision=3D321052 --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Thu Jul 20 21:52:31 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1CACBCFCED4 for ; Thu, 20 Jul 2017 21:52:31 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5j.cmail.yandex.net (forward5j.cmail.yandex.net [IPv6:2a02:6b8:0:1630::18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id CDDD87DEA4 for ; Thu, 20 Jul 2017 21:52:30 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from smtp4j.mail.yandex.net (smtp4j.mail.yandex.net [5.45.198.129]) by forward5j.cmail.yandex.net (Yandex) with ESMTP id 721E3206E6 for ; Fri, 21 Jul 2017 00:52:28 +0300 (MSK) Received: from smtp4j.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp4j.mail.yandex.net (Yandex) with ESMTP id 4A0503241063 for ; Fri, 21 Jul 2017 00:52:27 +0300 (MSK) Received: by smtp4j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id yP2r1aNSkI-qREiO5xR; Fri, 21 Jul 2017 00:52:27 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1500587547; bh=tFVD4tQzC5WEEl3SNE6k9jMvrZHB98tZhPNWMGl3krg=; h=Subject:From:To:References:Message-ID:Date:In-Reply-To; b=Sjb2DapkSnNBFRKoBQtCB5C6C8lmfHCgmZmMcRZH9gcClrDtRQg8XaZatZ40QGkxW ES6zFpb7cvwUNTXVb23X9IAsIh65/POLel5UT9wgfBuouBI31rLtawxzQijdB+bUEd cCdAxGdTORuYjilOPtof9/GL4uOqyLzgZy4dd4P4= Authentication-Results: smtp4j.mail.yandex.net; dkim=pass header.i=@passap.ru X-Yandex-Suid-Status: 1 0 Subject: And now PRI2 (was: Re: WandboardQuad) base packages: success From: Boris Samorodov To: freebsd-arm@FreeBSD.org References: <7b675630-eac1-980e-dc19-73a6accdbe7a@passap.ru> <78c10bf3-bc1d-dc67-06b1-f4efc70fc630@passap.ru> Message-ID: Date: Fri, 21 Jul 2017 00:52:27 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <78c10bf3-bc1d-dc67-06b1-f4efc70fc630@passap.ru> Content-Type: text/plain; charset=utf-8 Content-Language: ru-RU Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 21:52:31 -0000 RPI2 is also a success. 19.07.2017 00:15, Boris Samorodov пишет: > Sorry, PRI2 is only at my plans. For now I have a success with > WandboardQuad. > > 19.07.2017 00:09, Boris Samorodov пишет: >> Hi All, >> >> Just a note that I've successfully updated an fresh RPI2-current system >> to use base packages (IMX6 kernel). I've done all that documented at >> https://wiki.freebsd.org/PkgBase , built base packages (at amd64 host). >> At the RPI2 host I use /boot/loader.conf: >> --- >> kernel="kernel.IMX6" >> --- >> >> An it just works. >> >> Thanks to all who do the hard work to achieve this! -- WBR, bsam From owner-freebsd-arm@freebsd.org Thu Jul 20 23:08:33 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BF080CFDEFF for ; Thu, 20 Jul 2017 23:08:33 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (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 384237FEB2 for ; Thu, 20 Jul 2017 23:08:33 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x243.google.com with SMTP id p11so2349175lfd.1 for ; Thu, 20 Jul 2017 16:08:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=8lIbJUsRThyoQhOpLZ3RkaMlrxtF8zT+P1/UDN0Enqs=; b=NLmtcMH5Q93XGRAvvjqObSWgdGHt6Vt1WENLL3bzD84L/no8ljZCUXWCYd/tjyGA8P RcSlHJ/bQa0mkjkvDfyR3J8bhR4g4m44q2RpGWDUUEda4QEWLIJSNz1QeJCxQNyUqFCP vEjobJKMnYAIG6o55AzKuoe/O3839+9z8/SPau7FRPGVL0IclqjZr6C4LuFzcTrOKtWI fwQjCeehvgp9OwNniBTrELEf/4q/wKF9a5jEKwFGEkiKqGxOHuzdLFMnNMUw7+j8KNW5 EFURqTVoVOCiMXCc1lHtKaIvRUg2fwcxiW4aI+Gup2YLxnveT+O64hySbFYh1acaIHYp zrDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=8lIbJUsRThyoQhOpLZ3RkaMlrxtF8zT+P1/UDN0Enqs=; b=Fqcvc5Ftfi9RwGxhVt+68PyKwByXNpzVuwcRv4GeZoHuj7AP9XsP2czJ+M0prFXvU5 gSM58VJn9YeIVX4udyLtxoJuwFDF5Z9ik0V35Zv9GQqRUDS9mba/fUAMLe5kiI7BWQj1 vcxoH34nYvUbFRUlCqRo6hL4kT2KF1mP44+YiOthJNf3mwmfMzu3qt8JjmWxisKKisrL TpPAo9WpPGw6UOHqFWzjNLhCfEQDUNMB3Xp7JNxe/Wxfa+D2r9KHheI8n6PA8XUjHeTx 3FFgmipW/DGhtpRFRTeKgpG9TBQllbKS3MzpQ+BnoG9t3T87r2ROLsc7KsU6DzTJ1TjA ZKqg== X-Gm-Message-State: AIVw1104DnlYj5tF1Kfa/YNzN406d7wgZ6W9hhHf03khwUR3fTSeoD+X Muji3x457ePTfpvVfswusmKEtKsWxYBx X-Received: by 10.25.207.204 with SMTP id f195mr1792045lfg.40.1500592111380; Thu, 20 Jul 2017 16:08:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Thu, 20 Jul 2017 16:08:30 -0700 (PDT) In-Reply-To: <703c195298dd3bbbd3abd53603758f14@bakulin.de> References: <703c195298dd3bbbd3abd53603758f14@bakulin.de> From: Russell Haley Date: Thu, 20 Jul 2017 16:08:30 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Ilya Bakulin Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Jul 2017 23:08:33 -0000 On Thu, Jul 20, 2017 at 1:56 AM, Ilya Bakulin wrote: > On 2017-07-19 05:19, Russell Haley wrote: >> >> Current Status: >> >> Building and Installing - BBB >> - Either the information about building a Beaglebone has fallen out of >> date, or the beaglebone black has different requirements that should >> be documented on that page. Boot pieces: >> - MLO >> -u-boot.img >> -ubldr.bin >> >> - The kernel I built yesterday panics during load due to a sleep lock >> that has already been identified by kibab (aka Ilya). I will attempt >> to patch it tomorrow. > > > I'm not sure what problem are you talking about. The patch on Phabricator > tries to address a problem that there are several sleep() calls > used in the MMC/SD probe code. > This code shouldn't sleep. So I'm trying to get rid of sleeps, > but the patch I've generated so far doesn't work -- this is just a starti= ng > point. > So if the version from -HEAD panics at boot -- this is a bug and I need > to address it. I haven't booted BBB in ages and will have sufficient time > to debug the problem myself in two weeks (during DevSummit in Cambridge). In an effort to eliminate as many of MY errors as possible, I copied a BB snapshot image from July 17. Once that successfully booted and I had an ip address and written an echo to file, I replaced the kernel with a BEAGLEBONE-MMCCAM kernel. I did not see the same results as I did with my own image built using an older revision, so I am discarding my kernel panic for now. The snapshot with a BEAGELBONE-MMCCAM kernel (r321242) doesn't panic, but it fails to mount the second slice on mmcsd0s2. My complete "lots of freakin output" (you weren't kidding) is here: https://pastebin.com/CrWYPZtv For completeness sake I created a standard BEAGELBONE kernel and installed it and everything booted fine. Cheers, Russ >> Source Code >> The following is my examination of the code I can identify as >> involving the new MMCCAM stack. I am reading first to understand how >> the pieces fit and then will get into the details. >> >> - All mmccam functions for BBB sd cards is run through the sdhci >> driver in /sys/dev/sdhci/sdhci.c which is extended by >> arm/ti/ti_sdhci.c. When a custom kernel configuration is used, the >> MMCCAM flag is specified and the MMCCAM specific code is compiled into >> /sys/dev/sdhci/sdhci.c and .h. > > Yes, that's right. > >> - There seems to be a implementation specific startup routine >> compiled into the arm/ti/ti_sdhci.c using an ifdef. There is also a >> custom read and write defined so I assume there is some board specific >> things that need adjusting. Need to look closer > > Yes, initialization function for MMCCAM is different. > Also there is #ifdef'ed code in write_1 and read_1 because I need to adju= st > a 8-bit enable bit when writing to SDHC control register. > Old stack did it in ios handling, but MMCCAM doesn't allow device drivers > to have their own ios handling. > >> - sdhci code paths seem to directly use the cam_ccb and cam_sim >> rather than call any mmc specific code. It seems the sdhci uses the >> cam bus but not the mmc_sdio code, nore the cam_xpt_* code. > > This is correct -- every CAM request/response is routed by the CAM > subsystem. > >> - Note: in /sys/dev/sdhci/sdhci.c the includes on lines 51 through 55 >> are duplicated in an ifdef MMCCAM at lines 1979 through 1985. Is that >> intentional? > > No, this should be corrected. Thanks! > >> >> cam/mmc >> - mmc_sdio seems to be it's own thing. It includes both the >> cam_sim/cam_ccb and the cam_xpt_* headers but I don't know yet if it >> uses both sets of functionality (code is still opaque to me). > > This code is not used yet since there is no SDIO-specific code for now. >> >> >> Okay, back at it tomorrow. Ilya, Warner, if you're around at all I'd >> love to get a state of the union from you. > > > Replying to your question on IRC wrt communication protocol: I don't > frequently > monitor all FreeBSD mailing lists and can easily miss SDIO-related stuff > unless I'm directly CC'ed. > I have a highlight setup for the #bsdmips IRC channel that notifies me > when SDIO or my nickname is mentioned, so I will know someone was talking > about these things. > > I'm in Munich (timezone is CEST), so reply times might be longer for > US-based folk. > -- > Mit freundlichen Gr=C3=BC=C3=9Fen, > Ilya Bakulin From owner-freebsd-arm@freebsd.org Fri Jul 21 07:40:08 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D9B34D9B019 for ; Fri, 21 Jul 2017 07:40:08 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [IPv6:2001:4b98:c:538::198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A424A66DA4 for ; Fri, 21 Jul 2017 07:40:08 +0000 (UTC) (envelope-from daniel.engberg.lists@pyret.net) Received: from mfilter49-d.gandi.net (mfilter49-d.gandi.net [217.70.178.180]) by relay6-d.mail.gandi.net (Postfix) with ESMTP id BD72BFB883 for ; Fri, 21 Jul 2017 09:40:05 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter49-d.gandi.net Received: from relay6-d.mail.gandi.net ([IPv6:::ffff:217.70.183.198]) by mfilter49-d.gandi.net (mfilter49-d.gandi.net [::ffff:10.0.15.180]) (amavisd-new, port 10024) with ESMTP id PRUstiH7zuRE for ; Fri, 21 Jul 2017 09:40:04 +0200 (CEST) X-Originating-IP: 10.58.1.146 Received: from webmail.gandi.net (webmail6-d.mgt.gandi.net [10.58.1.146]) (Authenticated sender: daniel.engberg@pyret.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPA id 6C47EFB881 for ; Fri, 21 Jul 2017 09:40:04 +0200 (CEST) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 21 Jul 2017 09:40:04 +0200 From: Daniel Engberg To: freebsd-arm@freebsd.org Subject: Getting WRT3200ACM supported in FreeBSD Message-ID: <230641082921efdb048b1460012db2ba@pyret.net> X-Sender: daniel.engberg.lists@pyret.net User-Agent: Roundcube Webmail/1.1.2 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2017 07:40:08 -0000 Hi, I asked a few weeks ago about getting Linksys WRT1900ACS and/or WR1200AC supported in FreeBSD and got positive initial responses. Looking around I found that the premium model WRT3200ACM goes on sale randomly and ends up cheaper/at the same price than the ones above. The major difference is the higher clock frequency, different switch and wifi (less important as FreeBSD doesn't support the WIFI chipsets). The switch (88E6352) is listed in the marvell switch driver so I suppose it's supported. While I'm not a very good programmer I can sort out minor issues in code but I'm stuck on how to import the DTS file and I'm told that the Armada stuff is a bit "different" so I'm asking for a bit of help or at least pointers on how to go about it. It would be really nice to have a easily available box/platform that runs FreeBSD, has several ethernet ports and isn't expensive. gonzo@ kindly offered to help but he's been busy lately and I don't really want to nag about it. As a sidenote it seems that quite a few people on #bsdmips have this router so it would be nice to get it working. The DTS-file is in the Linux kernel tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/armada-385-linksys-rango.dts Specs: https://wikidevi.com/wiki/Linksys_WRT3200ACM In case anyone is wondering about the serial port it's a 6-pin 2.0 mm JST connector (with pins soldered). Best regards, Daniel From owner-freebsd-arm@freebsd.org Fri Jul 21 19:31:24 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B2F0DAF90A for ; Fri, 21 Jul 2017 19:31:24 +0000 (UTC) (envelope-from ilya@bakulin.de) Received: from olymp.kibab.com (olymp6.kibab.com [IPv6:2a01:4f8:160:84c1::2]) by mx1.freebsd.org (Postfix) with ESMTP id EFE5980DC7 for ; Fri, 21 Jul 2017 19:31:23 +0000 (UTC) (envelope-from ilya@bakulin.de) Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Russell Haley References: <703c195298dd3bbbd3abd53603758f14@bakulin.de> Cc: freebsd-arm From: Ilya Bakulin Message-ID: Date: Fri, 21 Jul 2017 21:31:14 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Jul 2017 19:31:24 -0000 On 21.07.17 01:08, Russell Haley wrote: > In an effort to eliminate as many of MY errors as possible, I copied a > BB snapshot image from July 17. Once that successfully booted and I > had an ip address and written an echo to file, I replaced the kernel > with a BEAGLEBONE-MMCCAM kernel. I did not see the same results as I > did with my own image built using an older revision, so I am > discarding my kernel panic for now. The snapshot with a > BEAGELBONE-MMCCAM kernel (r321242) doesn't panic, but it fails to > mount the second slice on mmcsd0s2. My complete "lots of freakin > output" (you weren't kidding) is here: https://pastebin.com/CrWYPZtv > > For completeness sake I created a standard BEAGELBONE kernel and > installed it and everything booted fine. > > Cheers, > > Russ > MMCCAM creates the device named sdda0, not mmcsd0. To make the life easier just create a GEOM label for the mmcsd0s2 and change /etc/fstab to mount the partition by label instead of device name.= Then the system will do the right thing (c) no matter what MMC stack you use. Thank you for testing the MMCCAM-enabled kernel, I appreciate this. -- Ilya From owner-freebsd-arm@freebsd.org Sat Jul 22 22:34:08 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BB707DAEE58 for ; Sat, 22 Jul 2017 22:34:08 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (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 3F92167B80 for ; Sat, 22 Jul 2017 22:34:08 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x243.google.com with SMTP id p11so5163908lfd.1 for ; Sat, 22 Jul 2017 15:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=qwJ5/1hzZgvKa37SYMcL0ASas8TGsAlWBo8PpLvx9c4=; b=FWVfwIKkQ+VEjVR8lnP7hakekmp0WhxPwEKAJt0jAMn35xDEoXXC7i+2+dZNCB8JKr vfJJV5fZ3mlyG4kWcDdQUNcY/ROio+aYlotji2FXZySV5WPAPnINTu7xNXJafmnlHzyh HY4x6oYSHtlQzuY3gku8tV0x161LncGYsg0WQVd6kuLyCgfkZNKGj9nbYjInpA/D9aQv 8aT1tHAnNsEIpzvim/PjT5FTRkIOqudQ7lMD8wRQcieSLkr/Xd2vfxAiQAlXVh+w6PPS F7v9F9J5Sa5Cem21eWWOe6q+IydHLy2QYSm696H/pb0L8q+HJymj9Ma+IrcYeQuhF3I0 AJ7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=qwJ5/1hzZgvKa37SYMcL0ASas8TGsAlWBo8PpLvx9c4=; b=QJ9QfDOW4IrQSGpBC3cUeUSV5w9KJuRTHFYmLWiX+hZzRsDSUxprGkfwGtfQepDC4r /noCy2e70unoU0sFYRCwWcmlHgcZ9X+vk/Ix1JBc2AkHK+I5WN1QevtVCUBrBrNJmrHm 220r+OoG6J+k5rWIq9x16nsQCmC+1xYrdrAApOABnvlElkipiBuF5lUvW1hf5Yrs9B83 jt3EAcA5CCUgzk2xxNRTgj4Amx+Y3aIhQxApw4hH3Ar5qaof8Mzqs/iU64GhUdI+EvLf 0OnVgeqEXCOJNNAOpT/ysUtOZWiZwRUicnfCFf3j2l/lMTJH0UMu2D6u6s3x0Xaa/WOK Su0w== X-Gm-Message-State: AIVw112oYO0ridjW91Dl/mcwn5eJpqzkIcQtONzZQaAX+GPkBiP3Wb1K 0C4G/NtleFj7Zfo52EIg3XPTv/1WidcN X-Received: by 10.25.89.82 with SMTP id n79mr3279690lfb.179.1500762846535; Sat, 22 Jul 2017 15:34:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.46.82.211 with HTTP; Sat, 22 Jul 2017 15:34:05 -0700 (PDT) In-Reply-To: References: <703c195298dd3bbbd3abd53603758f14@bakulin.de> From: Russell Haley Date: Sat, 22 Jul 2017 15:34:05 -0700 Message-ID: Subject: Re: BBB & IMX6 Hummingboard SDIO driver To: Ilya Bakulin Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Jul 2017 22:34:08 -0000 On Fri, Jul 21, 2017 at 12:31 PM, Ilya Bakulin wrote: > On 21.07.17 01:08, Russell Haley wrote: > >> In an effort to eliminate as many of MY errors as possible, I copied a >> BB snapshot image from July 17. Once that successfully booted and I >> had an ip address and written an echo to file, I replaced the kernel >> with a BEAGLEBONE-MMCCAM kernel. I did not see the same results as I >> did with my own image built using an older revision, so I am >> discarding my kernel panic for now. The snapshot with a >> BEAGELBONE-MMCCAM kernel (r321242) doesn't panic, but it fails to >> mount the second slice on mmcsd0s2. My complete "lots of freakin >> output" (you weren't kidding) is here: https://pastebin.com/CrWYPZtv >> >> For completeness sake I created a standard BEAGELBONE kernel and >> installed it and everything booted fine. >> >> Cheers, >> >> Russ >> > MMCCAM creates the device named sdda0, not mmcsd0. > To make the life easier just create a GEOM label for the mmcsd0s2 and > change /etc/fstab to mount the partition by label instead of device name. > Then the system will do the right thing (c) no matter what MMC stack you > use. > > Thank you for testing the MMCCAM-enabled kernel, I appreciate this. Progress update: - I worked with Ian to try and get rootfs working, but am too ham-fisted (or it's broken but I think he had it working) to get that working. - I tried adding options ROOTDEVNAME=\"ufs:sdda0s2a\" first to the BEAGELBONE-MMCCAM conf file but the BEAGLEBONE settings won out, so I commented out options ROOTDEVNAME=\"ufs:mmcsd0s2\" from the BEAGLEBONE file - The unit finally booted but ran extremely poorly due to the debug output. Ian helped me shut that off using sysctl ... (didn't write it down argh!). the system ran between 9 and 20% in a nominal state. - Once debug was turned off, the system ran at 0.4% in a nominal state. I attempted various fs related things including (groan) downloading ports and accidentally turning the system off while it was writing to disk! fsck recovered the slice. - My observation is that it's slow. I have no concrete data (yet) and quite possibly have forgotten how slow Arm and SD cards really are. I have hesitated to add your patch as I do want to test in various states to collect data (i.e. regular BBB kernel, MMCCAM kernel, MMCCAM kernel with changes). All in all I have had the hardest time trying to get working dtrace examples. I have contacted gnn about being unable to compile the TeachBSD course. Perhaps someone has a working copy of the TeachBSD presentation available? Thanks, Russell