A unified imx6 kernel config, old WANDBOARD-* configs going away

Tom Everett tom at khubla.com
Fri Feb 28 18:25:31 UTC 2014


I'll give it a try.



On Fri, Feb 28, 2014 at 11:18 AM, Warner Losh <bsdimp at gmail.com> wrote:

>
> On Feb 28, 2014, at 11:10 AM, Tom Everett <tom at khubla.com> wrote:
>
> > I'll give updating Crochet for this a spin.  I'm not that familiar with
> DTS
> > however.  I presume I need to drop the DTS blobs onto the FAT partition?
>
> Yes. For now, this will be a manual step for the moment, but will be
> automated
> soonish. I'm working on overhauling the dts stuff we have in the system
> right
> now and will commit something for that shortly after I finish... I expect
> full
> Crochet integration to follow after that.
>
> Warner
>
> > On Fri, Feb 28, 2014 at 6:42 AM, Ian Lepore <ian at freebsd.org> wrote:
> >
> >> I've added a new imx6 unified kernel config named IMX6.  It has no
> >> compiled-in fdt, and can boot all three flavors of Wandboard when u-boot
> >> and ubldr load a dtb file.  Folks should start using it and eventually
> >> the WANDBOARD* configs will go away when nobody needs them anymore.
> >>
> >> I build ubldr to load at address 11000000 and let it load the kernel at
> >> 12000000.  (The kernel can load on any 1MB boundary, but ubldr doesn't
> >> make use of that feature yet.)  ubldr will take a dtb file loaded by
> >> u-boot and pass it along to the kernel.  Another option is to put
> >> the .dtb file in your /boot/kernel or /boot/modules directory, and ubldr
> >> will load it from there, using the filename set in the u-boot env var
> >> fdt_file.
> >>
> >> Unfortunately we can't do a single image that boots any wandboard,
> >> because u-boot itself has to be different for each board.  This is what
> >> my u-boot env looks like on each wandboard:
> >>
> >> => printenv
> >> baudrate=115200
> >> bootcmd=run ubnet
> >> bootdelay=1
> >> console=ttymxc0
> >> fdt_file=wandboard-dual.dtb
> >> loadaddr=11000000
> >> loaderdev=net
> >> ubmmc=fatload mmc 0 ${loadaddr} ubldr; bootelf
> >> ubnet=dhcp ${loadaddr} /wand/boot/ubldr;bootelf
> >>
> >> Environment size: 265/8188 bytes
> >>
> >> The only thing that differs per-board is the fdt_file setting, and the
> >> u-boot binary itself.  The "loaderdev=net" variable tells ubldr to load
> >> the kernel from the network device rather than disk.  So now all my
> >> different model wandboards boot the same kernel and run from the same
> >> nfs root directory.
> >>
> >> -- Ian
> >>
> >>
> >> _______________________________________________
> >> freebsd-arm at freebsd.org mailing list
> >> http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> >> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> >>
> >
> >
> >
> > --
> > A better world shall emerge based on faith and understanding  - Douglas
> > MacArthur
> > _______________________________________________
> > freebsd-arm at freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-arm
> > To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
>
>


-- 
A better world shall emerge based on faith and understanding  - Douglas
MacArthur


More information about the freebsd-arm mailing list