Date: Fri, 27 Jan 2017 19:54:31 -0800 From: Oleksandr Tymoshenko <gonzo@bluezbox.com> To: =?iso-8859-1?Q?Otac=EDlio?= <otacilio.neto@bsd.com.br> Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: FreeBSD 12 r312227 dont boots on Beaglebone black Message-ID: <20170128035431.GA13176@bluezbox.com> In-Reply-To: <20170127022746.GA3433@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> <13aa921f-b65f-8bf6-f298-ccb286c7ed6e@bsd.com.br> <20170127020035.GA3187@bluezbox.com> <55637733-f4f5-6bcc-1d00-4c4b7d1b1b3d@bsd.com.br> <20170127022746.GA3433@bluezbox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Oleksandr Tymoshenko (gonzo@bluezbox.com) wrote: > Otacílio (otacilio.neto@bsd.com.br) wrote: > > Em 26/01/2017 23:00, Oleksandr Tymoshenko escreveu: > > > Otacílio (otacilio.neto@bsd.com.br) wrote: > > >> Em 26/01/2017 22:31, Oleksandr Tymoshenko escreveu: > > >>> Otacílio (otacilio.neto@bsd.com.br) wrote: > > >>>> Em 25/01/2017 19:13, Oleksandr Tymoshenko escreveu: > > >>>>> Otacílio (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: > > >>> > > >>> => setenv findfdt 'setenv fdtfile beaglebone-black.dtb' > > >>> => 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'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="beaglebone-black.dtb" > > > > > > That should do the trick as well > > > > > I have added > > > > fdt_file="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="beaglebone-black.dtb" to /boot/loader.conf works around this issue. Proper fix should be available soon. -- gonzo
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170128035431.GA13176>