FreeBSD 12 r312227 dont boots on Beaglebone black

Oleksandr Tymoshenko gonzo at bluezbox.com
Sat Jan 28 03:54:46 UTC 2017


Oleksandr Tymoshenko (gonzo at bluezbox.com) wrote:
> Otacílio (otacilio.neto at bsd.com.br) wrote:
> > Em 26/01/2017 23:00, Oleksandr Tymoshenko escreveu:
> > > Otacílio (otacilio.neto at bsd.com.br) wrote:
> > >> Em 26/01/2017 22:31, Oleksandr Tymoshenko escreveu:
> > >>> Otacílio (otacilio.neto at bsd.com.br) wrote:
> > >>>> Em 25/01/2017 19:13, Oleksandr Tymoshenko escreveu:
> > >>>>> Otacílio (otacilio.neto at 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


More information about the freebsd-arm mailing list