Zynq/Zybo USB bug: ubldr "fixes" my device tree

Adrian Chadd adrian.chadd at gmail.com
Sun Aug 7 01:54:22 UTC 2016


hi!

Cool! can you create a PR for that?


-adrian


On 31 July 2016 at 10:55, Thomas Skibo via freebsd-arm
<freebsd-arm at freebsd.org> wrote:
>
> Hello.
>
> I finally tracked down a bug that kept me from being able to use a USB drive as root on a Zybo (or Zedboard).  Mounting USB drives has worked fine before but using one as root would fail.
>
> The first megabyte of memory space on Zynq has several caveats including a hole between 256K-512K that is inaccessible by bus masters.  My solution was to simply ignore the first megabyte by starting memory at 0x100000 in my DTS file(s).  But, I discovered that the first megabyte was being allocated and the ehci device hung trying to DMA to the hole.  It turns out that ubldr, after loading the board.dtb file, proceeded to “fix up” the device tree from memory range information it got in a sysinfo call to u-boot’s API.  The memory range started at 0.
>
> The simplest work-around seems to be to add a “memreserve” property to the DTS.  Also, It turns out that only the first half megabyte needs to be ignored.  Patch attached.
>
>> Thomas Skibo
> thomasskibo at yahoo.com
>
>
>
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"


More information about the freebsd-arm mailing list