Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 May 2014 12:01:09 +0300
From:      "Sulev-Madis Silber (ketas)" <madis555@hot.ee>
To:        Ian Lepore <ian@FreeBSD.org>
Cc:        FreeBSD ARM <freebsd-arm@FreeBSD.org>
Subject:   Re: FreeBSD-10-STABLE hangs when booting from BeagleBone Black eMMC
Message-ID:  <53635ED5.6060508@hot.ee>
In-Reply-To: <1398784968.22079.13.camel@revolution.hippie.lan>
References:  <CADH-AwHvaVqycykONkzRsj7oD3xSi8hszvc_Wf4obC=Y_qPiaQ@mail.gmail.com> <1398618984.61646.165.camel@revolution.hippie.lan> <CADH-AwE%2B5=A4aiqbTYqor1Any1JGNhz4LHOJwfyykYU92UpirQ@mail.gmail.com> <1398624759.61646.174.camel@revolution.hippie.lan> <CADH-AwG%2BsaqXO4FYG65WMOuFyDzjbhF=a=-p3Y3En3zbcgyd6A@mail.gmail.com> <1398648505.61646.189.camel@revolution.hippie.lan> <CAD44qMX%2BhoeZ6yBD0v52xfoo5CXiUHgMz9qLa-=qhGYhhPUt1Q@mail.gmail.com> <CADH-AwEHRKSx11yjC5%2BkmYA4Q3Oh4VWpp-pr31eWwNc0bf0vUw@mail.gmail.com> <1398732508.61646.245.camel@revolution.hippie.lan> <CADH-AwHQjieXo-WgHkrc2wxwELwvrkg2spYucsZzRegvx9wWsA@mail.gmail.com> <1398784968.22079.13.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2014-04-29 18:22, Ian Lepore wrote:
> This may be the problem -- ubldr's behavior for finding and using dtb
> files is more complex than it used to be.  It may be that it used to
> claim to find and use the u-boot dtb, but it was really using a static
> dtb compiled into the kernel.  Now if u-boot provides a valid dtb it'll
> actually get used, even if kernel has a static dtb compiled in.
> 
> If you remove the u-boot env var 'fdtaddr' then it will fall back to
> using a compiled-in dtb file instead of a loaded one.
> 
> What I've been doing these days is installing my dtb files
> in /boot/modules or /boot/kernel and then setting the dtb file name in a
> u-boot env var named fdtfile.  That makes ubldr find and load the named
> file in the place it finds the kernel.
> 
> -- Ian


Nice, good suggestion. Now I have this "hack" in bb-uenv.txt:


------------------------------------------------------
uenvcmd=echo "[environment] delete fdtaddr"; env delete fdtaddr; setenv
loadfdt ''; setenv fdtfile "/boot/kernel/${fdtfile}"; echo
"[environment] loadfdt=${loadfdt}"; echo "[environment] fdtfile=${fdtfile}"
------------------------------------------------------


Not sure where FDT file should go? First I though maybe /boot/fdt...
then /boot/kernel seemed good place...


Also, maybe we should use this way of loading FDT in every platform it's
possible? No static FDT in kernel too. Ruins NFS boot, however...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53635ED5.6060508>