From owner-freebsd-arm@freebsd.org Sun Jan 29 13:56:11 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 D763FCC7AD7 for ; Sun, 29 Jan 2017 13:56:11 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: from mail-vk0-x234.google.com (mail-vk0-x234.google.com [IPv6:2607:f8b0:400c:c05::234]) (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 98EDD1F7 for ; Sun, 29 Jan 2017 13:56:10 +0000 (UTC) (envelope-from otacilio.neto@bsd.com.br) Received: by mail-vk0-x234.google.com with SMTP id k127so201688963vke.0 for ; Sun, 29 Jan 2017 05:56:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsd.com.br; s=capeta; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9CDyLB77XhUtn+Rm15PvsdJCxJwIagIT4K4nzRJjBMo=; b=AtgnqEzE1S685TeZIIikrNUV3yc4brz3nVmIHTH4e2/87qun1KZFgb6eXZQ4zOqLqG 5q+2B7gEfxt42+810q0jRpvFR1KDWMlcqYwiVZlpiuA4NzJKw2bh1i5leBpye+fcIJob MyFVmwilk9kBXo13IhRofn3375A/03saZ+Rwg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9CDyLB77XhUtn+Rm15PvsdJCxJwIagIT4K4nzRJjBMo=; b=hPr1EtUuVPzaRME6CQ2hUbNko++bq51TRxL80nQeSL6h/cJ5rJd4zi0RI7pp3SUzCP mvNW1iw0qoF+B61ID4seuLPnPYEmsUN27d95aD1GiDky9OpQjL04hqCgUmvA/cFUh0Qi td08HLxPlWQECJWxdC9x+WwEnMN59Smbk47WmSiVgGaqFYn/BPRsWqiX/NtTFOg+1JhA VXk7ouqrzx7HXVoezmBtSAcokZ5WURjqSbYHZhLasQVySnsSIMtNKdpFgMdT1fjEOe+y 51l0Vqg2zY9ivzUX8Va5F7FJjd7KBRclM9BPac/La2GljfYN9C7qAECpiR+YAFamS6vV WvQQ== X-Gm-Message-State: AIkVDXI8z8W3xAZzwjtSVOCzdI4+KarbkodseYKq+iS4Z2kMZvThjCyP71vKIl+n66TgDUCtdbr4+USUWF35/w== X-Received: by 10.31.156.201 with SMTP id f192mr8150190vke.14.1485698169743; Sun, 29 Jan 2017 05:56:09 -0800 (PST) MIME-Version: 1.0 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> <13aa921f-b65f-8bf6-f298-ccb286c7ed6e@bsd.com.br> <20170127020035.GA3187@bluezbox.com> <55637733-f4f5-6bcc-1d00-4c4b7d1b1b3d@bsd.com.br> <20170127022746.GA3433@bluezbox.com> <20170128035431.GA13176@bluezbox.com> In-Reply-To: <20170128035431.GA13176@bluezbox.com> From: =?UTF-8?Q?Otac=C3=ADlio_de_Ara=C3=BAjo_Ramos_Neto?= Date: Sun, 29 Jan 2017 13:55:59 +0000 Message-ID: Subject: Re: FreeBSD 12 r312227 dont boots on Beaglebone black To: Oleksandr Tymoshenko Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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, 29 Jan 2017 13:56:11 -0000 Em s=C3=A1b, 28 de jan de 2017 00:54, Oleksandr Tymoshenko escreveu: > Oleksandr Tymoshenko (gonzo@bluezbox.com) wrote: > > Otac=C3=ADlio (otacilio.neto@bsd.com.br) wrote: > > > Em 26/01/2017 23:00, Oleksandr Tymoshenko escreveu: > > > > Otac=C3=ADlio (otacilio.neto@bsd.com.br) wrote: > > > >> Em 26/01/2017 22:31, Oleksandr Tymoshenko escreveu: > > > >>> 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: > > ... skipped ... > > > > >>>> 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 wil= l > > > >>> not be required. > > > >>> > > > >> I'm getting this: > > > >> > > > >> Type '?' for a list of commands, 'help' for more detailed help. > > > >> loader> setenv findfdt 'setenv fdtfile beaglebone-black.dtb' > > > >> Error: stack underflow > > > >> loader> > > > > No, setenv/saveenv should be done in u-boot. But this gave me > > > > an idea. You can also mount root partition on SD card and > > > > add following line to /boot/loader.conf: > > > > > > > > fdt_file=3D"beaglebone-black.dtb" > > > > > > > > That should do the trick as well > > > > > > > I have added > > > > > > fdt_file=3D"bboneblk.dtb" > > > > > > (because this is the name that I found on fat partition) to > > > /boot/loader.conf but still getting > > > > No, in this case it's not about what's on FAT it's what in > > /boot/dtb/ on root partition. That's where loader looks for > > DTB files. > > > > I don't have crochet setup handy right now so can't check > > end-to-end procedure, but I'll do it tomorrow. > > I tried building crochet image from scratch and can confirm > that adding fdt_file=3D"beaglebone-black.dtb" to /boot/loader.conf > works around this issue. Proper fix should be available soon. > > -- > gonzo > This works for me also. Thanks a lot! []'s -Otacilio >