From owner-freebsd-arm@freebsd.org Fri Jan 27 08:22:00 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 6F3A6CC2810 for ; Fri, 27 Jan 2017 08:22:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x231.google.com (mail-it0-x231.google.com [IPv6:2607:f8b0:4001:c0b::231]) (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 2CFD5DFC for ; Fri, 27 Jan 2017 08:22:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x231.google.com with SMTP id c7so51231405itd.1 for ; Fri, 27 Jan 2017 00:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=yNnPfNQIcl7r3FovHoh39jXgpGyqNIa0IrlD82/dZqE=; b=P4zgC9d4CO5a6AQ0524BHVI3CICad1kKF0OflWzHnRZ0L+ssbSUusMIp93Hqa2Kcaf rrBuGYWep8zTsoT434CmZXeiX+CuyZkXkFHPbngkFJkgvhY9mq/GXukVtRNUMzfUfXSO D64wU0PlE7/6RkrmfD+WE/ipu+8TpZlUKvIu0NHmiPWa+tGvkuMmyuewyDM53GFY1IeU RYhIRN+pq19g/pzWnGjCmkSU6deSD5I2m/JLamSIesw8OofOQtSsOyb/dV5hN4RI5x43 9Ec6BF5Ac8nYax3BeINthI0Nsct3eYb73yKHmDQTQ9O+Pdn/E3vD3nPgCTrJ3vNOqDa/ G7/A== 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:content-transfer-encoding; bh=yNnPfNQIcl7r3FovHoh39jXgpGyqNIa0IrlD82/dZqE=; b=BMbWJx9quOQFZLKnqMvQdNG2fWkMx9J98+JJpCgahJLRltH7uzL48uu0k4Wa1JVZc5 J0NXLyM70ipVeZPbDbKZtV6zLjm6A6hplj0qk89Uo7CMt1YY3GbgHAx9e3M8wW/uOFu7 zwxWukecWf1A5BPODWm1mLTOhb4fWdEHk2NgHXqZVtH8tXMvgqIegwRduhTT/Yfm1KzW QQvuxpJKpz33fueYO3qF2qj4OEn402syGX8yBS5ujgWrDWsGyExDsV5/G4twsLVvJ+pm i5pXz1g4eW4VIz/U5xwxRutxBAzr6oUx8kUY9vUotDiQHkLeb9wxciFfrzreQolGIJI7 Yt4Q== X-Gm-Message-State: AIkVDXKzln+a0er0Vud0/BJGngC3PChkIGYQDEMrQYuOaqEftkV0V18VD2lu2Dr2debGmzSBW7tPD1KKAS1L+g== X-Received: by 10.36.178.21 with SMTP id u21mr2055751ite.103.1485505319332; Fri, 27 Jan 2017 00:21:59 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.145.217 with HTTP; Fri, 27 Jan 2017 00:21:58 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <20170127013142.GA2921@bluezbox.com> References: <51d197a2-1332-617a-32a8-9901f474afa2@bsd.com.br> <20170125221350.GA92571@bluezbox.com> <3ad9c97c-e40c-0a37-f603-a08b5a72ebd3@bsd.com.br> <20170127013142.GA2921@bluezbox.com> From: Warner Losh Date: Fri, 27 Jan 2017 01:21:58 -0700 X-Google-Sender-Auth: okhPCVUWPR36T1p37jPKANXqAkw Message-ID: Subject: Re: FreeBSD 12 r312227 dont boots on Beaglebone black To: Oleksandr Tymoshenko Cc: =?UTF-8?B?T3RhY8OtbGlv?= , "freebsd-arm@freebsd.org" 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, 27 Jan 2017 08:22:00 -0000 On Thu, Jan 26, 2017 at 6:31 PM, Oleksandr Tymoshenko wrote: > Otac=C3=ADlio (otacilio.neto@bsd.com.br) wrote: >> Em 25/01/2017 19:13, Oleksandr Tymoshenko escreveu: >> > Otac=C3=ADlio (otacilio.neto@bsd.com.br) wrote: >> >> Dears >> >> >> >> I'm trying boot a FreeBSD12-armv6-r312227 >> >> (u-boot-beaglebone-2017.01.00.1) on a beaglebone black. The snapshot >> >> FreeBSD-12.0-CURRENT-arm-armv6-BEAGLEBONE-20170105-r311461.img that I >> >> downloaded from >> >> ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/12.0= / >> >> works fine, but when I try boot the image that I build on my machine >> >> using crouchet I get: >> >> >> >> U-Boot SPL 2017.01-rc3 (Jan 22 2017 - 23:17:18) >> >> Trying to boot from MMC1MMC partition switch failed >> >> *** Warning - MMC partition switch failed, using default environment >> >> >> >> reading u-boot.img >> >> reading u-boot.img >> >> >> >> And boot stops. Someone can confirm that the revision 312227 is worki= ng >> >> fine? >> > I did some digging at the breakage is caused by this commit in U-Boot: >> > https://www.mail-archive.com/u-boot@lists.denx.de/msg234317.html >> > >> > Crochet is using FAT12 for Beaglebone Black. Switching to FAT16 fixes >> > the problem. Try applying this patch to crochet and re-build image: >> > >> > https://people.freebsd.org/~gonzo/patches/crochet-bbb-fat16.diff >> > >> I have applied the patch and now I'm getting this error. Some hints? > > FreeBSD uses dtb names that do not match upstream ones. After updating > to 2017.01 that change was lost in progress. Possible workaround (HACK > ALERT!!!) would be to do something like this: > > =3D> setenv findfdt 'setenv fdtfile beaglebone-black.dtb' > =3D> saveenv > > Copy-paste to U-Boot serial console does not work for me on BBB, so > you'll have have to enter these commands > > I will submit update to u-boot ports so all these workarounds will > not be required. I half-way expected we'd have issues here. My notion was that we'd continue to use the upstream names and migrate our tools to create the proper links / copies as a transition. We'll have to migrate someday and might as well get started... Warner